owasp/secure-agent-playbook

code-review-security

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

Zobacz źródło
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

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
z tego samego repozytorium

Więcej Skills

Wszystkie Skills
owasp
Społeczność

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.

instalacje
1
GitHub Stars
184
Aktualizacja
25 wrz
owasp
Społeczność

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.

instalacje
1
GitHub Stars
184
Aktualizacja
25 wrz
owasp
Społeczność

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.

instalacje
1
GitHub Stars
184
Aktualizacja
25 wrz
owasp
Społeczność

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.

instalacje
2
GitHub Stars
184
Aktualizacja
25 wrz