Back to skills
SKILL.md
Source Code Review
ASecurityWhite-box SAST-style source review — trace sources to dangerous sinks, grep high-signal vulnerable patterns across languages, hunt hardcoded secrets, and audit authn/authz logic. Tier 1 (analysis). Use when source code is provided or obtained (repo, .git dump, decompiled, source maps) to find and confirm vulnerabilities at the code level.
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill source-code-review --agent claude-codeAre you the author of Source Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-source-code-review)---
name: source-code-review
description: White-box SAST-style source review — trace sources to dangerous sinks, grep high-signal vulnerable patterns across languages, hunt hardcoded secrets, and audit authn/authz logic. Tier 1 (analysis). Use when source code is provided or obtained (repo, .git dump, decompiled, source maps) to find and confirm vulnerabilities at the code level.
---
# White-Box Source Code Review (sources → sinks, SAST)
Source access turns black-box guessing into certainty. Work sink-first (find dangerous functions, trace back to attacker-controlled sources) and source-first (follow tainted input forward), plus secrets and authz audit.
## Trigger phrases
`source code review, sast, white box, code audit, grep patterns, sinks, sources, taint, secure code review, static analysis`
## Method
1. **Map the app:** language(s), framework, entry points (routes/controllers/handlers), auth middleware, ORM/DB layer, deserialization, template engine, file/exec usage, config.
2. **Run SAST for breadth:** `semgrep --config auto` (or `p/owasp-top-ten`, language packs), CodeQL where available, `bandit` (Python), `brakeman` (Rails), `gosec` (Go), `njsscan` (Node), `phpcs`/`psalm` taint (PHP), SpotBugs/`find-sec-bugs` (Java). Triage — tools over- and under-report; confirm by reading code.
3. **Sink grep (high-signal), trace each back to a source:**
- **Command exec:** `system|exec|popen|shell_exec|proc_open|child_process|Runtime.exec|os.system|subprocess` (+ `shell=True`).
- **Code eval:** `eval|assert|Function(|vm.runIn|pickle.loads|yaml.load|Marshal.load|create_function`.
- **SQL:** string-concat/f-string queries, `.raw(`, `$queryRawUnsafe`, `.extra(`, `text(`, `whereRaw`, `createQuery("..."+`.
- **Deserialization:** `readObject|ObjectInputStream|BinaryFormatter|unserialize|pickle|yaml.load|node-serialize`.
- **Path/file:** `open(|readFile|include|require|fopen|sendFile` with user input → LFI/traversal/upload.
- **SSRF:** `requests.get|fetch|HttpClient|curl|urllib` on user URLs.
- **Template/SSTI:** `render_template_string|Template(` with concatenation.
4. **Sources:** request params/body/headers/cookies, filenames, webhooks, message queues, DB fields reused later (second-order). Confirm the source→sink path lacks sanitization.
5. **Secrets:** `trufflehog`/`gitleaks` + grep for keys, connection strings, private keys, hardcoded creds, JWT/APP secrets (→ `cicd-secrets`).
6. **Authn/Authz review:** every state-changing route has an auth check; object-level checks (owner == current user) vs IDOR/BOLA; function-level checks on admin routes (BFLA); JWT verify (alg, signature, exp), session handling, CSRF protection, mass-assignment allow-lists.
## Modern / rare techniques
- **ORM escape hatches** (§ raw-query review) → `orm-injection`; **prototype pollution** sinks (recursive merge, `lodash.set`) → `server-side-prototype-pollution`.
- **Dependency graph** from manifests/lockfiles → `supply-chain`/`vulnerable-components`; internal names → `dependency-confusion`.
- **IaC/CI files** in-repo → `cicd-pipeline`/`cicd-secrets`.
- **Diff review** of recent commits/PRs for introduced bugs and secret commits.
## Bypass / evasion
N/A (white-box). Where a sink looks reachable, build a black-box PoC to confirm exploitability against the running app.
## Escalation / chaining
Each confirmed sink → the matching exploitation skill (`command-injection`, `web-sqli`, `web-deserialization`, `web-ssti`, `web-file-upload`, `idor`, `jwt`) to prove real impact.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP). semgrep/CodeQL + language SAST, ripgrep, trufflehog/gitleaks. git-dumper/source maps to obtain source. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm a reported sink is reachable from an untrusted source (no sanitizer in the path) and, where feasible, reproduce against the live app before scoring. Report true positives only.
## Evidence
File:line of source and sink, the tainted path, SAST rule ID, and (where built) the runtime PoC. Remediation: parameterize queries, validate/escape at sinks, safe deserialization, allow-list inputs, enforce per-object/function authz, remove secrets, add SAST + secret scanning to CI.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.