* Add OWASP Security Skills agent
* feat: Add OWASP Comprehensive Security Skills
* Update .claude-plugin/skills/owasp-security/README.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Remove accidental submodule reference at .claude/agents/owasp-security
* Address review feedback: SKILL.md frontmatter + cubic findings
Owner-requested change:
- Add YAML frontmatter (name, description) to SKILL.md so the skill loader
can register it.
Documentation/manifest consistency:
- Point all references from the non-existent owasp-comprehensive-security-skills.md
to the actual SKILL.md (examples, README, instructions, skill.json).
- Correct example section anchors (k8s -> ...-2025-draft, api -> ...-2023).
- Rename owasp-css.instructions.md -> owasp-css-instructions.md (kebab-case) and
update skill.json references.
- skill.json: drop missing CONTRIBUTING.md core key; set prompt-injection example
language to Text (file is .txt).
- README: fix symlink instructions to target the directory containing SKILL.md.
Example correctness fixes:
- cryptographic-failures.js: align .env var name with process.env.ENCRYPTION_KEY,
remove unused https import, redirect via configured CANONICAL_HOST instead of the
client-controlled Host header (host-header injection / open redirect).
- api-auth-bypass.js: move vulnerable handlers to /vulnerable/* paths so the secure
/secure/* routes are reachable rather than shadowed dead code.
- k8s-rbac.yaml: replace invalid runAsRoot with runAsUser: 0.
- broken-access-control.py: correct docstring to reflect missing authentication AND
authorization (not just IDOR among authenticated users).
- logging-monitoring-failures.py: emit pure-JSON log lines (%(message)s) so the
Logstash /^{.*}$/ filter matches; extract user_id from kwargs for audit attribution.
- security-misconfiguration.py: replace app.run() with gunicorn guidance; fix the
multi-stage Dockerfile to carry deps over via a copied virtualenv.
SKILL.md content fixes:
- Resolve MASVS L3 WebView double-negative.
- Split ValidatingAdmissionPolicy into a valid Policy + Binding.
- Add caveat that sanitize_input is input hygiene, not prompt-injection prevention.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Update .claude-plugin/skills/owasp-security/examples/cryptographic-failures.js
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Sync owasp-security skill with upstream source repo updates
Brings the PR in line with the latest mfkocalar/OWASP-Security-Skills, which
has since had accuracy and content improvements (commits "Polish for public
release" and "Standardize OWASP version labels").
Version labels standardized on the accurate published editions:
- OWASP Top 10: 2025 -> 2021 (Section 1's content uses the 2021 category
codes/ordering; 2021 is the accurate label).
- Kubernetes Top 10: 2025 -> 2022 (2022 is the only published edition).
- Agentic Applications: drop "(Preview)"; released Dec 2025 as the 2026 edition.
- XSS example: A07 -> A03 (A07 was the 2017 code; XSS is under Injection in 2021).
Applied across SKILL.md (headings, anchors, frontmatter), skill.json, README,
owasp-css-instructions.md, and every example cross-reference.
Fuller/better example content pulled from the source repo:
- injection.js: adds parameterized-query and validated (/^\d+$/) secure variants
(was a vulnerable-only stub).
- xss.html: adds textContent and DOMPurify secure variants, IIFE-scoped blocks.
- broken-access-control.py: adds current-user existence checks in secure handlers.
- logging-monitoring-failures.py: pure-JSON log lines; kwargs/positional user_id
extraction for audit attribution.
- prompt-injection.txt: raises PermissionError on unauthorized tool use; injects
the llm dependency instead of a global.
- security-misconfiguration.py: obvious fake API-key placeholder.
skill.json example line counts and total updated to match; the local
CANONICAL_HOST guard in cryptographic-failures.js and the /vulnerable//secure/
route split in api-auth-bypass.js (both ahead of source) were preserved.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/examples/injection.js
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Update .claude-plugin/skills/owasp-security/SKILL.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Comprehensive OWASP Security Skill
A unified security reference skill covering six OWASP standards for developers building secure web applications, APIs, mobile apps, containers, and AI/LLM systems.
Drop this folder into your model's skill directory, and any security-related prompt—code reviews, architecture decisions, auth implementation, or deployment configuration—will trigger deep security analysis focused on the OWASP standards most relevant to your context.
🔍 What It Does
This skill doesn't just flag problems; it teaches and guides across multiple security domains:
- Reads your code, configuration, or description and identifies security risks across all supported contexts.
- References the appropriate OWASP standard for your specific use case (web app, API, mobile, K8s, AI).
- Recommends concrete remedies with code examples, configuration patterns, and step-by-step fixes.
- Warns about clever bypasses and edge cases attackers exploit.
- Adapts to your context — automatically selects relevant guidance for web apps, APIs, containerized systems, mobile apps, or AI agents.
📥 Installation
Getting started is fast:
-
Clone the repo and enter the skill directory (the folder that contains
SKILL.mdandskill.json):git clone https://github.com/mfkocalar/OWASP-Security-Skills.git cd OWASP-Security-Skills # If installing from the claude-code-templates monorepo instead, use: # cd claude-code-templates/.claude-plugin/skills/owasp-security -
Link or copy that directory into your assistant's skill folder:
- Claude:
~/.claude/skills/owasp-security - GitHub Copilot:
~/.copilot/skills/owasp-securityor.github/skills - Other agents: similar directories under
~/.agents
# Run from the directory containing SKILL.md so $PWD points at the skill root ln -s "$PWD" ~/.claude/skills/owasp-security - Claude:
-
Reload or restart the assistant if needed.
Now the skill is live for any security-related prompt.
🎯 Coverage: Six OWASP Standards
OWASP Top 10 (2021) — Web Application Security
Critical risks: Broken Access Control, Cryptographic Failures, Injection, Insecure Design, Security Misconfiguration, Vulnerable Components, Authentication Failures, Software Integrity, Logging Failures, SSRF.
OWASP ASVS 5.0 — Application Security Verification
Detailed requirements across L1 (Basic), L2 (Standard), L3 (Advanced) for: Authentication, Access Control, Cryptography, Input Validation, Session Management, and more.
OWASP MASVS v2.1.0 — Mobile App Security
8 control groups (Storage, Crypto, Auth, Network, Platform, Code, Resilience, Privacy) with iOS/Android-specific implementation guidance.
OWASP API Security Top 10 (2023) — API-Specific Risks
10 risks: BOLA, Broken Auth, Property-Level Auth, Resource Consumption, Function Auth, Sensitive Flow Abuse, SSRF, Misconfiguration, Inventory Management, Unsafe Third-Party APIs.
OWASP Kubernetes Top 10 (2022) — Container & Infrastructure Security
10 risks in containerized environments: Insecure Workload Config, RBAC, Secrets Management, Policy Enforcement, Network Segmentation, Exposed Components, Vulnerable Components, Cluster Lateral Movement, Authentication, Logging.
OWASP Agentic Applications 2026 — AI/LLM Security
10 emerging risks: Prompt Injection, Insufficient Input Validation, Insecure Output Handling, Model Poisoning, Denial of Service, Unauthorized Tool Access, Training Data Leakage, Excessive Autonomy, Inadequate Logging, Supply Chain Risks.
🚀 Quick Start
Just ask. For example:
I'm reviewing a REST API endpoint. Please audit this code for OWASP API security issues.
[insert code here]
The skill responds with a clear analysis—"BOLA vulnerability here…", "Missing rate limiting on that endpoint…"—and shows how to patch each issue.
You can also call it directly for multi-standard reviews:
Review my Kubernetes manifests against the OWASP Top 10 for K8s and provide hardening steps.
or
I'm integrating an LLM agent. What are the key security risks I should worry about?
The skill returns targeted guidance from the relevant OWASP standard.
🎯 Example Prompts by Domain
These example prompts automatically trigger the relevant security standard:
Web Application & API Security (OWASP Top 10 + API Security)
Review this code for SQL injection vulnerabilities
Audit this REST API endpoint for BOLA and broken authentication
Check this authentication endpoint for weaknesses
Is this login form secure against credential stuffing?
Mobile Security (MASVS)
Is this iOS Keychain implementation secure?
Review this Android storage for MASVS compliance
Audit biometric authentication in this mobile app
Check for certificate pinning in this API client
Container & Kubernetes (K8s Top 10)
Harden this Kubernetes RBAC configuration
Review this pod for security misconfigurations
Audit etcd encryption and secrets management
Check network policies for segmentation
AI/LLM Security (Agentic Applications)
How do I prevent prompt injection in my chatbot?
Audit this LLM agent for unauthorized tool access
Review output filtering for sensitive data leakage
Check for training data exposure vulnerabilities
Compliance & Standards (ASVS)
What ASVS L2 requirements apply to this application?
Is this mobile app MASVS compliant?
List the top API Security risks for my endpoint
Show me ASVS L1/L2/L3 requirements for authentication
🧪 Examples
9 intentionally vulnerable code samples in examples/ let you test the skill across all domains.
Each example shows VULNERABLE patterns alongside SECURE implementations with detailed explanations.
OWASP Top 10 Examples:
- examples/broken-access-control.py — Permission bypasses & missing authorization checks (A01)
- examples/cryptographic-failures.js — Weak hashing, plaintext storage, hardcoded keys, missing TLS (A02)
- examples/injection.js – SQL injection via string concatenation (A03)
- examples/security-misconfiguration.py — Debug mode, default credentials, missing security headers (A05)
- examples/xss.html – Reflected XSS with
innerHTML(A03: Injection) - examples/logging-monitoring-failures.py — Missing security logs, secrets in logs, no alerting (A09)
Multi-Standard Examples:
- examples/api-auth-bypass.js — JWT validation flaws & CORS misconfiguration (OWASP API Security Top 10)
- examples/k8s-rbac.yaml — Overly permissive RBAC & unencrypted secrets (OWASP Kubernetes Top 10)
- examples/prompt-injection.txt — Direct/indirect LLM prompt injection patterns (OWASP Agentic Applications 2026)
How to Use Examples:
Paste code into prompts to trigger skill analysis:
Please review this code for security vulnerabilities according to the OWASP Top 10.
[paste example code here]
The skill identifies vulnerabilities, explains risks, and shows how to apply the SECURE patterns from each example.
📖 Comprehensive Reference
The core reference is SKILL.md — a unified guide combining all six OWASP standards with:
- Key vulnerability descriptions
- Detection clues
- Mitigation strategies & code examples
- Prevention checklists
- Cross-standard references for unified security architecture
Use this for deep dives into specific standards or cross-referencing security requirements across contexts.
🛠️ Use Cases
- Code Review: "Audit this component against OWASP guidelines."
- API Design: "Review this endpoint design for OWASP API security risks."
- Mobile Development: "Is this iOS implementation compliant with MASVS?"
- Infrastructure: "Harden this Kubernetes cluster using OWASP K8s Top 10 guidance."
- AI/LLM Integration: "How do I secure this AI agent against prompt injection?"
- Compliance: "What ASVS L2 requirements apply to authentication in this flow?"
📝 Contributing
Found an issue or have an improvement? Contributions welcome. See CONTRIBUTING.md.
Status: Actively maintained. Covers the published OWASP editions (Top 10 2021, ASVS 5.0, MASVS 2.1.0, API Security 2023, Kubernetes 2022, Agentic Applications 2026).