Sec secrets crypto

From aturzone/Skull · View interactive version

Sec secrets crypto is an AI agent skill from the GitHub repository aturzone/Skull. Find hardcoded secrets and weak cryptography — keys/tokens/passwords in code or git history, secrets in logs, weak or misused crypto (bad hashing, ECB, static IV/keys), insecure randomness, and missing encryption in transit/at rest. Use when reviewing config, auth, crypto, or logging, or before open

How to use this skill

Skill file

Security: secrets & cryptography review

Two linked risks: secrets that leak (OWASP A05/A07, CWE-798) and cryptography that doesn't actually protect

(OWASP A02).

Secrets

api[_-]?key, secret, password\s*=, BEGIN (RSA|EC|OPENSSH) PRIVATE KEY, AKIA[0-9A-Z]{16},

xox[baprs]-, ghp_, sk_live_-style prefixes, and high-entropy strings.

git log -p -S'<token>' / git grep '<pattern>' $(git rev-list --all). Flag for rotation, not just deletion.

stack traces with secrets, or secrets in URLs/query strings (which end up in access logs and proxies).

Cryptography

security = CWE-327/916.

(CWE-329), hardcoded keys, key == IV.

Math.random(), rand(), random.random() for anything security-relevant (CWE-338).

where required.

Output

path:line (and the git ref for history hits) · CWE · severity (Critical for a live leaked key or a

forgeable token) · evidence · fix (rotate + move to a secret store; swap to the correct primitive). Coverage note.

When you find a real secret, tell the user to rotate it — never print the full secret value back.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.