owasp/secure-agent-playbook

code-review-security

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

ソースを見る
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

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
同じリポジトリから

関連する Skills

すべての Skills
owasp
コミュニティ

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.

導入数
1
GitHub Stars
184
更新日
9月25日
owasp
コミュニティ

prd-securability-enhancement

Enhance PRDs, feature specs, user stories, or product briefs with explicit OWASP ASVS coverage and FIASSE v1.0.4 SSEM implementation guidance — before code is written. Trigger on "harden the PRD/spec", "choose ASVS level", "map features to ASVS", "find missing security requirements", "add NFRs for security", "make these requirements securable", "security-review my product brief". For code review use securability-engineering-review; for code generation use securability-engineering.

導入数
1
GitHub Stars
184
更新日
9月25日
owasp
コミュニティ

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.

導入数
1
GitHub Stars
184
更新日
9月25日
owasp
コミュニティ

security-guidance

Security-first development guidance based on OWASP ASVS (Application Security Verification Standard). Use this skill automatically when planning or implementing any code that touches user input, authentication, data persistence, network communication, file I/O, cryptography, or access control. This skill ensures all generated code adheres to industry-standard security practices with explicit references to applied guidance.

導入数
2
GitHub Stars
184
更新日
9月25日