/claude-security-skills:sast-litefrom claude-security-skills
AST-based static security analysis for Python source code. Detects command injection, insecure deserialization, weak crypto, SQL injection, hardcoded secrets, and more with CWE tagging. Useful for auditing code before merging.
Ships in claude-security-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An AST-based static analyzer for Python. Instead of fragile regex matching, it
parses each file into an abstract syntax tree and inspects how dangerous APIs
are actually called — so subprocess.run(cmd, shell=True) is flagged while
subprocess.run(["ls"]) is not. No third-party dependencies.
| Rule | CWE | Severity |
|---|---|---|
eval() / exec() on dynamic input | CWE-95 | critical/high |
os.system / subprocess(shell=True) | CWE-78 | high |
pickle/marshal deserialization | CWE-502 | high |
yaml.load without SafeLoader | CWE-20 | high |
SQL via f-string / concat / .format / % | CWE-89 | high |
requests(verify=False) | CWE-295 | high |
| Hardcoded password/secret literal | CWE-798 | high |
random used for a token, password, OTP, nonce or salt | CWE-330 | high |
| Weak hash (md5/sha1) | CWE-327 | medium |
tempfile.mktemp | CWE-377 | medium |
Flask(debug=True) | CWE-489 | medium |
Jinja2 autoescape=False | CWE-79 | medium |
assert used for a security check | CWE-617 | medium |
# Scan a directory
python skills/sast-lite/analyzer.py src/
# JSON for tooling / CI
python skills/sast-lite/analyzer.py . --json
# Only show high+ severity
python skills/sast-lite/analyzer.py . --min-severity high
Exit codes: 0 clean · 1 issues found · 2 usage/parse error — ready
for CI gating.
--json and parse the issue list.path:line and confirm the data flow is genuinely
attacker-controllable (the analyzer is intra-procedural, so it may flag
patterns that are safe in context).py.sql-injection, yaml.safe_load for py.yaml-load,
list-form subprocess calls for py.subprocess-shell.This is a lite analyzer: single-file, no cross-function taint tracking. It is designed for fast, high-signal triage — not a replacement for a full SAST suite. Treat findings as leads to verify, not automatic verdicts.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub novacode37/claude-security-skills --plugin claude-security-skills8 skills in this plugin
/cors-auditorAudit a site's Cross-Origin Resource Sharing (CORS) configuration for misconfigurations — wildcard origin with credentials, reflected arbitrary Origin, the 'null' origin, overly broad allowed methods, and risky credentialed CORS. Use when the user asks to "check my CORS config", "is my API's CORS safe", "test for CORS misconfiguration", or "why can any site call my API"./dependency-checkAudit project dependencies for known-vulnerable versions and risky pinning. Parses requirements.txt and package.json, matches a bundled offline advisory DB, optionally queries OSV.dev live, and warns about unpinned versions. Use when the user asks to "check dependencies for vulnerabilities", "audit my requirements.txt / package.json", "scan for vulnerable packages", or "is my dependency tree secure"./dockerfile-scanScan a Dockerfile for insecure build patterns — running as root, unpinned or :latest base images, ADD from remote URLs, piping curl/wget into a shell, hardcoded secrets in ENV/ARG, world-writable chmod 777, and sudo usage. Use when the user asks to "review my Dockerfile", "is this container image secure", "lint my Dockerfile for security", or "why does my image run as root"./http-sec-auditAudit a website's HTTP security headers and cookie flags — CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/COEP, version-leaking banners, and Secure/HttpOnly/SameSite cookies. Use when the user asks to "check my site's security headers", "audit HTTP headers", "is my CSP/HSTS configured right", or "scan a URL for header misconfigs"./jwt-inspectorDecode and security-audit a JSON Web Token — flag alg=none, missing/excessive expiry, symmetric-alg confusion risk, missing claims — and attempt an offline HMAC secret crack against a wordlist to detect weak signing keys. Use when the user asks to "decode this JWT", "is this token secure?", "audit a JWT", or "check if this token uses a weak secret"./prompt-injection-testerRed-team an LLM application against prompt injection and jailbreaks using a curated, categorized payload library and canary-based detection, then produce a resilience score. Use when the user asks to "test my chatbot for prompt injection", "check if my AI app is jailbreakable", "red-team my LLM", "evaluate prompt-injection defenses", or audit a system prompt's guardrails.Other plugins' skills for the same job