cors-auditor
Audit a site's Cross-Origin Resource Sharing (CORS) configuration for misconfigurations — wildcard origin with credentials, reflected arbitrary Origin, the…
Scan a codebase for hardcoded secrets — API keys, tokens, private keys and passwords — using a custom regex + Shannon-entropy engine. Use when the user asks to "find secrets", "check for leaked credentials", "scan for API keys", do a pre-commit secret check, or audit a repo
$ npx -y skills add NovaCode37/claude-security-skills --skill secret-scanner --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/secret-scannerContext preview
The summary Claude sees to decide when to auto-load this skill.
Scan a codebase for hardcoded secrets — API keys, tokens, private keys and passwords — using a custom regex + Shannon-entropy engine. Use when the user asks to "find secrets", "check for leaked credentials", "scan for API keys", do a pre-commit secret check, or audit a repo
name: secret-scanner description: >- Scan a codebase for hardcoded secrets — API keys, tokens, private keys and passwords — using a custom regex + Shannon-entropy engine. Use when the user asks to "find secrets", "check for leaked credentials", "scan for API keys", do a pre-commit secret check, or audit a repo before making it public. license: MIT
A dependency-free engine that finds committed credentials by combining **high-signal vendor regex rules** (AWS, GitHub, GCP, Stripe, OpenAI, Anthropic, Slack, …) with **Shannon-entropy gating** to catch generic secrets while keeping false positives low.
The engine has **no third-party dependencies** — just Python 3.9+.
# Human-readable report (default) python skills/secret-scanner/engine.py . # Machine-readable JSON (pipe into other tooling) python skills/secret-scanner/engine.py . --json # Tune entropy sensitivity (lower = more findings) python skills/secret-scanner/engine.py src/ --min-entropy 3.0 # Include test directories (skipped by default) python skills/secret-scanner/engine.py . --include-tests
**Exit codes:** `0` clean · `1` findings present · `2` usage error. This makes it drop-in for CI: a non-zero exit fails the build.
Each finding reports `severity`, `rule_id`, `path:line:column`, a **redacted** preview of the value (never the full secret), and the measured entropy.
Severity guide:
provider tokens). Rotate immediately.
1. Run the scanner with `--json` and parse the findings. 2. For each finding, open the file at the reported line to confirm it is a real secret and not a placeholder/test fixture. 3. Report confirmed leaks grouped by severity, and advise the user to **rotate** the credential (committing a fix does not un-leak git history). 4. If the secret is in git history, recommend `git filter-repo` / BFG and credential rotation — deleting the line is not enough.
The engine already filters obvious placeholders (`example`, `<your-key>`, `xxxx`, `changeme`, `${ENV}`, etc.) and gates generic rules behind entropy. If a finding is a known dummy value, treat it as noise. To re-check with stricter entropy, raise `--min-entropy`.
skipped automatically.
Security skills for Claude Code. Install them once and ask Claude, in plain language, to scan a repo for leaked secrets, review Python code, red-team an LLM for prompt injection, or audit HTTP headers, JWTs, Dockerfiles, CORS, and dependencies.
Audit a site's Cross-Origin Resource Sharing (CORS) configuration for misconfigurations — wildcard origin with credentials, reflected arbitrary Origin, the…
Audit project dependencies for known-vulnerable versions and risky pinning. Parses requirements.txt and package.json, matches a bundled offline advisory DB,…
Scan a Dockerfile for insecure build patterns — running as root, unpinned or :latest base images, ADD from remote URLs, piping curl/wget into a shell,…
Audit a website's HTTP security headers and cookie flags — CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/COEP,…
Decode and security-audit a JSON Web Token — flag alg=none, missing/excessive expiry, symmetric-alg confusion risk, missing claims — and attempt an offline…
Red-team an LLM application against prompt injection and jailbreaks using a curated, categorized payload library and canary-based detection, then produce a…