owasp/secure-agent-playbook

code-review-security

Security-focused code review mapped to OWASP Top 10 and ASVS.

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/owasp/secure-agent-playbook --skill code-review-security

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Security Code Review

Review code for security vulnerabilities by following the full procedure in plays/code-review-security.md.

Steps

  1. Scope & Context — Establish language/framework, trust boundary (server/client/library/CLI), data sensitivity (PII, credentials, financial), and exposure (internet-facing, internal, local).
  1. Systematic Review by Vulnerability Class (priority order):
  • Injection (A03) — SQL, command, XSS, SSTI, LDAP, path traversal, header, log injection
  • Authentication & Session (A07) — Hardcoded credentials, missing auth, weak sessions, JWT issues
  • Authorization (A01) — Missing authz checks, IDOR, horizontal/vertical privilege escalation
  • Cryptography (A02) — Weak algorithms, hardcoded keys, missing encryption, custom crypto
  • Data Exposure (A01) — Sensitive data in errors/logs, credentials in code, debug mode
  • Misconfiguration (A05) — Default credentials, permissive CORS, missing security headers
  • Deserialization (A08) — Untrusted deserialization, missing integrity checks, CSRF gaps
  1. Framework-Specific Checks — Apply checks for detected framework (React, Express, Django, Flask, Spring, Rails, Go).
  1. Diff-Specific Analysis (for PRs) — Focus on changed lines plus context, verify security controls preserved, check new endpoints match auth patterns, look for removed security controls.
  1. Produce Findings — Cite file:line, show vulnerable snippet, explain attack scenario, provide fixed code, rate confidence.

Output

Scope summary, findings sorted by severity using templates/finding.md, positive observations (good security controls in place), and severity count table.

OWASP References

  • OWASP Top 10 (2021): A01-A10
  • OWASP ASVS v5.0
  • OWASP Code Review Guide
  • OWASP Cheat Sheet Series

Related by task

from this repository

More skills

All skills
owasp
Community

web-security-review

Review web applications against the OWASP Top 10 for Web Applications (2021). Use when auditing web apps, reviewing server-side code, or assessing web frameworks for the classic OWASP Top 10 risks including injection, broken auth, and XSS.

1h installs
2
GitHub stars
209
Updated
Oct 15
owasp
Community

api-security-review

Comprehensive API security review against OWASP API Security Top 10 (2023). Use when reviewing OpenAPI/Swagger specs, auditing REST/GraphQL/gRPC implementations, testing authentication mechanisms, or checking API gateway configurations. Covers BOLA/IDOR, broken auth, mass assignment, rate limiting, SSRF, and more with real-world attack scenarios.

1h installs
1
GitHub stars
204
Updated
Oct 15
owasp
Community

prompt-injection-test

Test LLM-integrated applications against known prompt injection techniques, evasion methods, and attack intents using the Arcanum PI Taxonomy. Use when red-teaming AI apps, validating guardrails, or deepening LLM01 (Prompt Injection) assessments.

1h installs
1
GitHub stars
204
Updated
Oct 15
owasp
Community

llm-risk-assess

Comprehensive LLM security assessment against OWASP Top 10 for LLM Applications 2025. Use when reviewing LLM-integrated applications, RAG pipelines, chatbots, AI agents, or GenAI features. Covers prompt injection, data poisoning, supply chain, excessive agency, and more with real-world attack scenarios and testing methodologies.

1h installs
1
GitHub stars
184
Updated
Sep 25