Pular para o conteúdo
Skillpedia
Segurança16 mil · #10880

skill-security-auditor

O que ela faz

Esta skill verifica um projeto quanto a fraquezas de segurança comuns e explica o que corrigir. É para desenvolvedores que querem uma revisão de segurança antes de um lançamento ou depois de uma grande mudança.

Quando usar

  • ✓Quando você quer uma auditoria de segurança de um projeto antes do lançamento.
  • ✓Quando você suspeita que segredos ou credenciais estão embutidos no código.
  • ✓Quando você quer verificar dependências quanto a vulnerabilidades conhecidas ou revisar a autenticação.

Link da skill

https://github.com/eigent-ai/eigent/blob/main/resources/example-skills/skill-security-auditor/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/eigent-ai/eigent/blob/main/resources/example-skills/skill-security-auditor/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

“Faça uma auditoria de segurança neste projeto e liste tudo que tenha risco de injeção ou segredos vazados.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente primeiro mapeia as linguagens, os frameworks e os pontos de entrada do projeto e depois executa uma varredura por segredos e padrões de código arriscados. Em seguida revisa a autenticação, as dependências e a configuração e escreve o que encontrou.

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

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

Security Auditor Guide

Overview

This guide covers security auditing workflows for source code, dependencies, and configurations. For detailed vulnerability patterns and detection rules, see references/vulnerability-patterns.md. For secrets detection patterns, see references/secrets-patterns.md.

Quick Start

Run the bundled scan script against a project directory:

python scripts/scan_project.py /path/to/project

This performs a lightweight scan for common issues: hardcoded secrets, dangerous function calls, and insecure patterns. For deeper analysis, follow the workflows below.

Testing the scripts

python scripts/scan_project.py /path/to/some/project --format text
python scripts/scan_secrets.py /path/to/some/project --format text

Audit Workflow

1. Reconnaissance

Before auditing, understand the project:

# Identify languages, frameworks, and entry points
find . -type f -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.go" -o -name "*.java" | head -20
cat package.json pyproject.toml requirements.txt go.mod pom.xml 2>/dev/null

Key questions:

  • What frameworks are used? (Express, Django, Flask, Spring, etc.)
  • Where are the entry points? (routes, controllers, API handlers)
  • How is authentication handled?
  • What external services are called?
  • Is user input accepted? Where?

2. Secrets Detection

Scan for hardcoded credentials, API keys, and tokens. See references/secrets-patterns.md for the full pattern list.

python scripts/scan_secrets.py /path/to/project

Common patterns to check:

  • API keys and tokens in source files
  • Database connection strings with embedded passwords
  • Private keys or certificates committed to the repo
  • .env files or config files with plaintext secrets
  • Secrets in CI/CD configuration files

3. Vulnerability Scanning

OWASP Top 10 Checklist

# Category What to Look For
A01 Broken Access Control Missing auth checks, IDOR, privilege escalation
A02 Cryptographic Failures Weak algorithms, plaintext storage, missing TLS
A03 Injection SQL, NoSQL, OS command, LDAP, XSS
A04 Insecure Design Missing rate limits, business logic flaws
A05 Security Misconfiguration Debug mode, default credentials, verbose errors
A06 Vulnerable Components Outdated dependencies with known CVEs
A07 Auth Failures Weak passwords, missing MFA, session issues
A08 Data Integrity Failures Insecure deserialization, unsigned updates
A09 Logging Failures Missing audit logs, sensitive data in logs
A10 SSRF Unvalidated URLs in server-side requests

Language-Specific Checks

Python

# Dangerous: SQL injection
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
# Safe: Parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

# Dangerous: Command injection
os.system(f"ping {hostname}")
# Safe: Use subprocess with list args
subprocess.run(["ping", hostname], capture_output=True)

# Dangerous: Path traversal
open(f"/data/{user_input}")
# Safe: Validate and resolve path
path = pathlib.Path("/data") / user_input
path.resolve().relative_to(pathlib.Path("/data").resolve())

JavaScript/TypeScript

// Dangerous: XSS via innerHTML
element.innerHTML = userInput;
// Safe: Use textContent or sanitize
element.textContent = userInput;

// Dangerous: Prototype pollution
Object.assign(target, JSON.parse(userInput));
// Safe: Validate input structure
const parsed = JSON.parse(userInput);
if (typeof parsed !== 'object' || Array.isArray(parsed)) throw new Error();
const sanitized = Object.fromEntries(
  Object.entries(parsed).filter(([k]) => !k.startsWith('__'))
);

// Dangerous: eval or Function constructor
eval(userInput);
// Safe: Never use eval with user input

Go

// Dangerous: SQL injection
db.Query("SELECT * FROM users WHERE id = " + id)
// Safe: Parameterized query
db.Query("SELECT * FROM users WHERE id = $1", id)

// Dangerous: Path traversal
http.ServeFile(w, r, filepath.Join(baseDir, r.URL.Path))
// Safe: Clean and validate path
cleaned := filepath.Clean(r.URL.Path)
full := filepath.Join(baseDir, cleaned)
if !strings.HasPrefix(full, baseDir) { http.Error(...) }

4. Dependency Audit

Check for known vulnerabilities in project dependencies:

# Python
pip audit
safety check -r requirements.txt

# Node.js
npm audit
npx auditjs ossi

# 
Perguntas frequentes

Uma varredura substitui uma revisão completa?

Não. A varredura incluída é uma primeira passada leve, e a skill recomenda uma análise mais profunda para uma auditoria completa.

Ele vai encontrar todas as vulnerabilidades?

Nenhuma auditoria encontra tudo. A skill relata o que consegue confirmar e aponta as áreas que precisam de uma análise mais detalhada.

Que tipos de problema ela procura?

Cobre problemas como injeção de SQL, cross-site scripting, injeção de comandos, travessia de caminhos e segredos no código.

Detalhes

Descrição original do autor

Security auditing for code, configs, and infrastructure. Use when the user wants to audit or improve security: scan for vulnerabilities (SQL injection, XSS, command injection, path traversal), detect hardcoded secrets and credentials, review auth and authorization, check dependencies for known CVEs, audit config files for insecure defaults, or generate security reports. Trigger on \"security audit\", \"vulnerability scan\", \"code review for security\", \"find secrets\", \"check for vulnerabilities\", \"OWASP\", \"CVE\", or questions about code security.

repo: eigent-ai/eigent

Popularidade

Estrelas no GitHub
16 mil
Posição no ranking
#10880
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas