Zum Inhalt springen
Skillpedia
Sicherheit16k · #10880

skill-security-auditor

Was er macht

Dieser Skill prüft ein Projekt auf typische Sicherheitsschwächen und erklärt, was du beheben solltest. Er ist für Entwickler gedacht, die vor einer Veröffentlichung oder nach größeren Änderungen eine Sicherheitsprüfung wollen.

Wann du ihn nutzt

  • ✓Wenn du vor der Veröffentlichung ein Sicherheits-Audit für ein Projekt willst.
  • ✓Wenn du vermutest, dass fest eingetragene Geheimnisse oder Zugangsdaten im Code stehen.
  • ✓Wenn du Abhängigkeiten auf bekannte Schwachstellen prüfen oder die Anmeldung kontrollieren willst.

Link zum Skill

https://github.com/eigent-ai/eigent/blob/main/resources/example-skills/skill-security-auditor/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/eigent-ai/eigent/blob/main/resources/example-skills/skill-security-auditor/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Führe ein Sicherheits-Audit für dieses Projekt durch und liste alles auf, was ein Injection-Risiko hat oder Geheimnisse preisgibt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Dein Agent ermittelt zuerst die Sprachen, Frameworks und Einstiegspunkte des Projekts und startet dann eine Suche nach Geheimnissen und riskanten Code-Mustern. Danach prüft er die Anmeldung, die Abhängigkeiten und die Konfiguration und schreibt auf, was er gefunden hat.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

# 
Häufige Fragen

Ersetzt ein Scan eine vollständige Prüfung?

Nein. Der mitgelieferte Scan ist ein schneller erster Durchgang, und der Skill empfiehlt für ein gründliches Audit eine tiefere Analyse.

Findet er wirklich jede Schwachstelle?

Kein Audit findet alles. Der Skill meldet, was er bestätigen kann, und zeigt auf die Bereiche, die genauer angesehen werden sollten.

Welche Arten von Problemen sucht er?

Er deckt Probleme wie SQL-Injection, Cross-Site-Scripting, Command-Injection, Path Traversal und Geheimnisse im Code ab.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
16k
Platz im Ranking
#10880
Lizenz
Apache-2.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills