owasp/secure-agent-playbook

code-review-security

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

Ver código-fonte

Como usar

  1. Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
  2. Consulte no original as ferramentas, credenciais e ambientes necessários.
  3. Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/owasp/secure-agent-playbook --skill code-review-security

Antes de começar

  • A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
  • Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Documento original do Skill

Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.

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

Relacionados por tarefa

do mesmo repositório

Mais Skills

Todos os Skills
owasp
Comunidade

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.

Instalações / 1h
2
GitHub Stars
209
Atualizado
15 de out.
owasp
Comunidade

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.

Instalações / 1h
1
GitHub Stars
204
Atualizado
15 de out.
owasp
Comunidade

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.

Instalações / 1h
1
GitHub Stars
204
Atualizado
15 de out.
owasp
Comunidade

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.

Instalações / 1h
1
GitHub Stars
184
Atualizado
25 de set.