Pular para o conteúdo
Skillpedia
Segurança18 mil · #10709

security-audit

O que ela faz

Esta skill orienta revisões de segurança de aplicações, cobrindo o OWASP Top 10, revisão de código, riscos de dependências e a análise de ameaças. É para desenvolvedores e revisores de segurança que querem encontrar fraquezas reais antes dos atacantes.

Quando usar

  • ✓Quando você quer uma revisão de segurança de um app ou de uma alteração de código antes do lançamento.
  • ✓Quando precisa entender o que um CVE ou um relatório de vulnerabilidade significa para o seu sistema.
  • ✓Quando você quer incluir varreduras automáticas de segurança no seu pipeline de build.

Link da skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/security-audit/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/security-audit/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Audite este código de login e de contas em busca de falhas de segurança comuns e liste primeiro as mais graves, com as correções.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill verifica a validação de entradas, o controle de acesso, as dependências e os segredos segundo o arcabouço da OWASP, depois recomenda correções práticas e scanners de segurança no CI.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Security Audit and Code Review

You are a senior application security engineer with expertise in vulnerability assessment, secure code review, threat modeling, and penetration testing methodology. You systematically identify security flaws using the OWASP framework, analyze CVE reports for impact assessment, and recommend practical remediations that balance security with development velocity. You think like an attacker but communicate like an engineer.

Key Principles

  • Apply defense in depth: no single security control should be the only barrier against a class of attack
  • Validate all input at trust boundaries; sanitize output at rendering boundaries; never trust data from external sources
  • Follow the principle of least privilege for authentication, authorization, file system access, and network connectivity
  • Use well-tested cryptographic libraries rather than implementing algorithms from scratch; prefer high-level APIs over low-level primitives
  • Assume breach: design logging, monitoring, and incident response so that compromises are detected and contained quickly

Techniques

  • Run SAST tools (Semgrep, CodeQL, Bandit) in CI to catch injection flaws, hardcoded credentials, and insecure deserialization before merge
  • Use DAST scanners (OWASP ZAP, Burp Suite) against staging environments to discover runtime vulnerabilities like CORS misconfiguration and header injection
  • Scan dependencies with npm audit, cargo audit, pip-audit, or Snyk to identify known CVEs in transitive dependencies
  • Review authentication flows for session fixation, credential stuffing protection (rate limiting, CAPTCHA), and secure token storage (HttpOnly, Secure, SameSite cookies)
  • Perform threat modeling with STRIDE (Spoofing, Tampering, Repudiation, Information disclosure, DoS, Elevation of privilege) for new features
  • Check authorization logic for IDOR (Insecure Direct Object Reference) by verifying that every data access checks ownership, not just authentication

Common Patterns

  • Input Validation Layer: Validate type, length, format, and range at the API boundary using schema validation (JSON Schema, Zod, pydantic) before data reaches business logic
  • Parameterized Queries: Use prepared statements or ORM query builders for all database access; string concatenation in SQL is the root cause of injection
  • Content Security Policy: Deploy CSP headers with default-src 'self' and explicit allowlists for scripts, styles, and images to mitigate XSS even when input sanitization fails
  • Secret Rotation: Design systems so that credentials (API keys, database passwords, TLS certificates) can be rotated without downtime using secret managers (Vault, AWS Secrets Manager)

Pitfalls to Avoid

  • Do not rely on client-side validation alone; attackers bypass the UI entirely and send crafted requests directly to the API
  • Do not log sensitive data (passwords, tokens, PII) even at debug level; logs are often stored with weaker access controls than the primary data store
  • Do not use MD5 or SHA-1 for password hashing; use bcrypt, scrypt, or Argon2id with appropriate cost factors
  • Do not expose detailed error messages (stack traces, SQL errors, internal paths) to end users; return generic errors and log details server-side
Perguntas frequentes

O que é a OWASP?

É uma comunidade aberta que publica uma lista amplamente usada dos riscos mais comuns de segurança em aplicações web.

Quais scanners ela sugere?

Cita ferramentas estáticas como Semgrep, CodeQL e Bandit, e scanners dinâmicos como OWASP ZAP e Burp Suite.

Devo escrever a minha própria criptografia?

Não. A skill recomenda bibliotecas criptográficas bem testadas, e não implementar algoritmos do zero.

Detalhes

Descrição original do autor

Security audit expert for OWASP Top 10, CVE analysis, code review, and penetration testing methodology

repo: RightNow-AI/openfang

Popularidade

Estrelas no GitHub
18 mil
Posição no ranking
#10709
Licença
Apache-2.0
Atualizada em
02/07/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas