owasp/secure-agent-playbook

code-review-security

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

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/owasp/secure-agent-playbook --skill code-review-security

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

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

Verwandte Aufgaben

aus demselben Repository

Weitere Skills

Alle 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.

Installationen / 1h
2
GitHub Stars
209
Aktualisiert
15. Okt.
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.

Installationen / 1h
1
GitHub Stars
204
Aktualisiert
15. Okt.
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.

Installationen / 1h
1
GitHub Stars
204
Aktualisiert
15. Okt.
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.

Installationen / 1h
1
GitHub Stars
184
Aktualisiert
25. Sept.