/offensive-claude:vulnerability-analysisfrom offensive-claude
Audits source code for vulnerabilities using CodeQL, Semgrep, and Joern to trace taint from source to sink across injection, memory safety, deserialization, secrets, authz, and supply-chain risks.
Ships in offensive-claude. 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; scripts run unread.
Every vulnerability you miss is one an attacker finds first. Systematic source
auditing traces untrusted data from source to sink, evaluates every
sanitizer for bypass, and questions each trust-boundary assumption. This skill is
the router; depth lives in references/, and every technique cluster is backed
by a runnable tool in scripts/.
| Technique | ATT&CK | CWE | Reference | Script |
|---|---|---|---|---|
| Taint analysis (source/sink/sanitizer modeling) | T1190 | CWE-20 | references/taint-engines-static-analysis.md | scripts/taint_trace.py |
| CodeQL/Semgrep/Joern engine orchestration + merge | T1190 | CWE-20 | references/taint-engines-static-analysis.md | scripts/sast_runner.py, scripts/joern_taint.sc |
| SQL injection (raw/ORM/identifier/2nd-order/NoSQL) | T1190 | CWE-89 | references/injection-source-patterns.md | scripts/taint_trace.py |
| OS command / argument injection | T1059 | CWE-78 / CWE-88 | references/injection-source-patterns.md | scripts/taint_trace.py |
| Server-side template injection | T1190 | CWE-1336 | references/injection-source-patterns.md | scripts/taint_trace.py |
| Path traversal | T1083 | CWE-22 | references/injection-source-patterns.md | scripts/taint_trace.py |
| SSRF (tainted server-side URL) | T1190 | CWE-918 | references/injection-source-patterns.md | scripts/taint_trace.py |
| Integer overflow -> heap/stack overflow | T1203 | CWE-190 / CWE-787 | references/memory-safety-c-cpp.md | scripts/joern_taint.sc |
| Use-after-free / double-free | T1203 | CWE-416 / CWE-415 | references/memory-safety-c-cpp.md | scripts/joern_taint.sc |
| Unbounded copy / NULL deref | T1203 | CWE-120 / CWE-476 | references/memory-safety-c-cpp.md | scripts/joern_taint.sc |
| Insecure deserialization + gadget preconditions | T1059 | CWE-502 | references/deserialization-prototype-pollution.md | scripts/deser_gadget_scan.py |
| Prototype pollution -> gadget -> RCE | T1059.007 | CWE-1321 | references/deserialization-prototype-pollution.md | scripts/deser_gadget_scan.py |
| Hardcoded secrets / high-entropy literals | T1552.001 | CWE-798 / CWE-321 | references/secrets-crypto-authz-concurrency.md | scripts/secret_crypto_audit.py |
| Weak / misused cryptography | T1600 | CWE-327 / CWE-328 / CWE-330 / CWE-347 | references/secrets-crypto-authz-concurrency.md | scripts/secret_crypto_audit.py |
| Broken authorization / IDOR / BOLA | T1190 | CWE-639 / CWE-862 | references/secrets-crypto-authz-concurrency.md | scripts/secret_crypto_audit.py |
| TOCTOU / race condition | T1190 | CWE-367 / CWE-362 | references/secrets-crypto-authz-concurrency.md | scripts/secret_crypto_audit.py |
| Known-CVE dependency (SCA) | T1195.001 | CWE-1395 / CWE-1104 | references/supply-chain-dependency-audit.md | scripts/dep_audit.py |
| Malicious package / install worm / typosquat | T1195.002 | CWE-506 / CWE-829 / CWE-1357 | references/supply-chain-dependency-audit.md | scripts/dep_audit.py |
| Variant hunting — one finding -> all siblings, root-cause clustered | T1190 | CWE-20 | references/variant-hunting.md | scripts/variant_hunt.py |
| Path feasibility — branch guards -> tri-state SAT/UNSAT (Z3 optional) | T1190 | CWE-20 | references/taint-engines-static-analysis.md | scripts/path_conditions.py |
| Evidence grounding + FP gate (structured proof, EVD citations) | T1190 | CWE-20 | references/finding-validation-runtime.md | scripts/validate_findings.py, scripts/evidence_kit.py |
| Runtime reachability confirmation (Frida sink-executed) | T1190 | CWE-20 | references/dynamic-instrumentation.md | scripts/merge_runtime_evidence.py |
# 0. Intake from recon-osint: languages, frameworks, trust boundaries, entry points.
# 1. Fast triage — rank files by unsanitized source->sink flows (heuristic, multi-lang)
python3 scripts/taint_trace.py trace ./src --lang py,js,php,java --json triage.json
python3 scripts/taint_trace.py config --lang py > seed.semgrep.yml # seed a real rule
# 2. Deep interprocedural — drive the real engines, then merge into one ranked list
python3 scripts/sast_runner.py semgrep --src ./src --config p/owasp-top-ten --pro --out sg.sarif
python3 scripts/sast_runner.py codeql --src ./src --lang python \
--suite codeql/python-queries:codeql-suites/python-security-extended.qls --out cq.sarif
python3 scripts/sast_runner.py joern --src ./src --script scripts/joern_taint.sc --out joern.json
python3 scripts/sast_runner.py merge sg.sarif cq.sarif joern.json --out merged.json --top 50
# 3. Class-specific deep passes
python3 scripts/deser_gadget_scan.py all ./src --json deser.json # deser sinks + gadget libs
python3 scripts/secret_crypto_audit.py all ./src --json sca.json # secrets+crypto+authz+TOCTOU
python3 scripts/dep_audit.py all ./repo --json dep.json # CVE SCA + worm/typosquat
trufflehog filesystem ./src --only-verified # confirm LIVE secrets
# 4. Exploitability gate (per finding): reachable? controllable? real impact? sanitizer real?
# -> write confirmed issues to templates/exploit/findings/ with
# severity, CWE, CVSS, taint path, PoC, evidence, ATT&CK ID, remediation.
python3 scripts/evidence_kit.py verify --store evidence.json # re-hash every artifact
python3 scripts/validate_findings.py --findings findings.json \
--evidence ./evidence --evidence-store evidence.json --strict # tier + EVD-citation gate
# 5. After a CONFIRMED finding: hunt every sibling, then prune false-positive paths
python3 scripts/variant_hunt.py ./src --seed-finding findings.json --lang py,js --json variants.json
python3 scripts/taint_trace.py trace ./src --lang py --json trace.json # trace carries branch guards
python3 scripts/path_conditions.py --trace trace.json --json feasibility.json # Z3 prune (tri-state)
python3 scripts/merge_runtime_evidence.py --events events.jsonl --findings findings.json --out merged.json
| Technique | Telemetry / IOC | Detection (Sigma/EDR) | OPSEC note |
|---|---|---|---|
| SAST engine runs | codeql database create, semgrep --sarif, joern-parse process trees; large codeql-db//cpg.bin | CI process-creation Sigma (informational) | offline & silent; CodeQL --command runs target build -> sandbox hostile repos; purge DBs/SARIF on teardown |
| Injection (SQLi/cmdi/SSTI/SSRF) | SQL keywords/SLEEP, web svc spawning sh/curl, template engine errors, OOB DNS | webserver regex + EDR child-shell Sigma | source review is noiseless; validate with time-based/DNS-OOB, never --dump |
| Memory safety (C/C++) | SIGSEGV/SIGABRT, glibc corrupted/double free, ASan reports | auditd ANOM_ABEND Sigma; EDR RWX/W^X alerts | CPG review silent; fuzz a local copy in a container, purge cores (may hold secrets) |
| Deserialization / proto-pollution | Java rO0AB/.NET AAEAAAD///// in bodies; JVM->LDAP/RMI; POST / w/ Next-Action (CVE-2025-55182) | egress Sigma to 389/636/1099/1389; body-marker rules | prove gadget chain exists; id/DNS callback not reverse shell; proto-pollution is global -> revert |
| Secrets / crypto / authz / TOCTOU | AKIA*/ghp_* patterns; alg:none; sequential-id 200s; symlink-race auditd | secret-scanning push protection; symlink/PATH auditd | secret verification makes a logged provider API call -> only in scope; read one record for IDOR/TOCTOU evidence |
| Supply chain (SCA / worm) | install hook spawning shell/net; bundle.js/setup_bun.js; new public Shai-Hulud repo | install-script process-creation Sigma; agentless SBOM lookup | never npm install a suspect tree; --ignore-scripts in a disposable container; treat a compromised dep as full host compromise |
reachableBy; engine orchestration + multi-tool merge; CPG+LLM (2025).unsafe Rust surface.variant_hunt.py. Pairs with
evidence_kit.py (re-verifiable EVD evidence), path_conditions.py (Z3 path-prune, tri-state),
and merge_runtime_evidence.py (Frida runtime sink confirmation).references/deserialization-prototype-pollution.md (opens in a new tab)references/injection-source-patterns.md (opens in a new tab)references/memory-safety-c-cpp.md (opens in a new tab)references/secrets-crypto-authz-concurrency.md (opens in a new tab)references/supply-chain-dependency-audit.md (opens in a new tab)references/taint-engines-static-analysis.md (opens in a new tab)references/variant-hunting.md (opens in a new tab)scripts/dep_audit.py (opens in a new tab)scripts/deser_gadget_scan.py (opens in a new tab)scripts/evidence_kit.py (opens in a new tab)scripts/finding_dedup.py (opens in a new tab)scripts/joern_taint.sc (opens in a new tab)scripts/merge_runtime_evidence.py (opens in a new tab)scripts/path_conditions.py (opens in a new tab)scripts/provenance.py (opens in a new tab)scripts/sast_runner.py (opens in a new tab)scripts/secret_crypto_audit.py (opens in a new tab)scripts/taint_trace.py (opens in a new tab)scripts/validate_findings.py (opens in a new tab)scripts/variant_hunt.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vulnerability-analysis, static-analysis, taint-tracking, codeql, semgrep, joern
npx claudepluginhub hypnguyen1209/offensive-claude --plugin offensive-claude38 skills in this plugin
/active-directory-attackUse when attacking a Windows Active Directory domain — Kerberos roasting/delegation, coercion + NTLM/Kerberos relay (CVE-2025-33073), ADCS ESC1-16 (EKUwu), ticket forgery & DCSync, dMSA BadSuccessor (CVE-2025-53779), BloodHound attack-path enumeration, domain dominance/advanced-redteam-opsUse when designing C2 infrastructure or OPSEC for a long-haul red-team op — redirectors, malleable profiles, tiered/segregated infra, living-off-the-land, data exfiltration/ai-agent-redteamUse when red-teaming an agentic AI / LLM application — indirect & zero-click prompt injection, MCP tool poisoning, persistent memory poisoning, excessive-agency tool abuse, multi-turn jailbreaks, PyRIT/Garak/Promptfoo harnesses/ai-securityUse when attacking an AI/ML system or model — prompt injection & jailbreaks (Crescendo, Skeleton Key, Best-of-N), RAG/vector poisoning, agentic/MCP exploitation (CVE-2025-54136), ML supply-chain RCE (pickle CVE-2025-32434), model extraction / membership inference / adversarial suffixes (GCG)/browser-exploitationUse when building a client-side browser exploit — V8/JSC JIT type confusion to renderer R/W, V8 heap-sandbox escape, renderer-to-browser sandbox escape (Mojo IPC, GPU/Dawn/ANGLE), Electron/webview IPC abuse, 1-click RCE chains/cicd-supply-chainUse when attacking or auditing a CI/CD pipeline or software supply chain — pwn requests, poisoned pipeline execution, compromised/mutable-tag actions, dependency confusion, registry worms, runner backdoors, OIDC trust abuse, SLSA/provenanceOther plugins' skills for the same job