Applies OWASP Top 10 security principles to code review, authentication/authorization, secrets handling, security headers, and injection prevention. Useful for audits and vulnerability fixes.
Ships in knowledge-virtuoso. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Security is a property of every feature: design every endpoint, form, data flow, and integration point with it from the start. Stack-agnostic guidance follows.
Use the OWASP Top 10 as a starting checklist, not a full list. The table follows the 2025 edition (OWASP Top 10:2025). Mapping from the 2021 edition and per-category prevention steps are in the reference.
| # | Vulnerability | What it is | Primary defense | Reference |
|---|---|---|---|---|
| A01 | Broken Access Control | Users act outside intended permissions (includes SSRF) | Deny by default, enforce server-side, allowlist outbound destinations | reference |
| A02 | Security Misconfiguration | Insecure default configs, incomplete setup | Hardened defaults, automated config validation | reference |
| A03 | Software Supply Chain Failures | Compromise of dependencies, build systems, or distribution | Inventory and pin dependencies, verify integrity, secure the pipeline | reference |
| A04 | Cryptographic Failures | Sensitive data exposed due to weak/missing crypto | Use strong algorithms, encrypt in transit and at rest | reference |
| A05 | Injection | Untrusted data sent to interpreter as part of a command/query | Parameterized queries, input validation, output encoding | reference |
| A06 | Insecure Design | Missing or ineffective security controls by design | Threat modeling, secure design patterns | reference |
| A07 | Authentication Failures | Broken authentication/identification | MFA, rate limiting, secure password storage | reference |
| A08 | Software or Data Integrity Failures | Code/data integrity not verified | Signed updates, no unsafe deserialization | reference |
| A09 | Security Logging and Alerting Failures | Attacks go unnoticed for lack of logs and alerts | Log security events, alert on suspicious patterns | reference |
| A10 | Mishandling of Exceptional Conditions | Errors and edge cases handled badly or fail open | Fail closed, roll back partial work, handle every error path | reference |
Related: LLM and agent security. Systems that embed an LLM or run autonomous agents have their own risk lists: the OWASP Top 10 for LLM Applications 2025 and the OWASP Top 10 for Agentic Applications 2026.
Input validation is the first line of defense. Validate at every system boundary, not just at the UI.
Type coercion:
Loose type comparisons can bypass security checks. A string "0" might equal integer 0 or boolean false depending on the language. Use strict comparison operators and explicit type casting.
Parameterized queries:
Never concatenate user input into SQL, LDAP, or OS commands. Use parameterized queries or prepared statements. This applies to ORMs too, because raw query methods bypass ORM protections. See secure coding reference for details.
Authentication verifies identity: "who are you?" See auth patterns reference for detailed guidance.
Password hashing:
Multi-factor authentication (MFA):
Session management:
HttpOnly, Secure, SameSite=Lax (or Strict)Token-based auth (JWT caveats):
alg: noneOAuth2 flows:
Authorization determines permissions: "what are you allowed to do?" It is not the same as authentication. See auth patterns reference for details.
Principle of least privilege:
Role-Based Access Control (RBAC):
Attribute-Based Access Control (ABAC):
Common authorization mistakes:
Encryption at rest:
Encryption in transit:
PII handling:
Secure deletion:
Never in code or config files:
.gitignore for local config files, but do not rely on it as your only protectionEnvironment variables:
Secret managers:
Rotation strategy:
Set these HTTP response headers on every response. Each addresses a specific class of attack.
| Header | Purpose | Recommended value |
|---|---|---|
Content-Security-Policy (CSP) | Prevents XSS by controlling which sources can load content | Start with a restrictive policy; avoid unsafe-inline and unsafe-eval |
Strict-Transport-Security (HSTS) | Forces HTTPS for all future requests | max-age=63072000; includeSubDomains; preload |
X-Content-Type-Options | Prevents MIME-type sniffing | nosniff |
X-Frame-Options | Prevents clickjacking by controlling iframe embedding | DENY or SAMEORIGIN |
Referrer-Policy | Controls how much referrer info is sent | strict-origin-when-cross-origin |
Permissions-Policy | Controls browser features (camera, mic, geolocation) | Disable features you do not use |
CORS (Cross-Origin Resource Sharing):
Access-Control-Allow-Origin: * for authenticated endpointsAccess-Control-Allow-Methods and Access-Control-Allow-HeadersThese mistakes show up often and create vulnerabilities:
Items to check in review that are not covered above:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/accessibilityWeb accessibility patterns and WCAG 2.1/2.2 compliance. Use to build accessible components, audit a UI for a11y issues, fix screen reader or keyboard problems, check contrast, or add ARIA./context-engineeringHow to budget and structure what a coding agent sees. Use when asked to trim, split or write AGENTS.md, CLAUDE.md, rules files or skill descriptions (for example 'CLAUDE.md is too long'), when an agent ignores instructions, forgets rules or drifts in long sessions, and when planning compaction or progress notes./debuggingSystematic debugging by root cause analysis. Use when facing a bug, test failure, flaky behavior, production error, or integration failure. Covers reproduce, hypothesize, fix, prevent, and post-mortems./docs-lookupLooks up current, version-correct docs before answering a library question from memory. Use when asked for an exact method signature, argument order, config key, CLI flag, or the call for 'our version' or a named version (for example 'in 7.2'). Check the docs or lockfile first even when sure, because APIs change between versions./performanceProfiling-driven performance optimization: caching, query tuning, N+1 fixes, memory, and load testing. Use to diagnose a bottleneck or set performance budgets.No slash command · from knowledge-virtuoso
npx claudepluginhub krzysztofsurdy/code-virtuoso --plugin knowledge-virtuosoOther plugins' skills for the same job