Security review
Perform a static security review of the current codebase or pending diff WITHOUT executing the code. Looks for OWASP top 10 issues, leaked secrets, injection sinks, weak auth, insecure deserialization, SSRF, and unsafe dependencies. Triggers on: security review, audit, vulnerability scan, check for secrets, OWASP, find injection, review for security.From its SKILL.md
npx -y skills add sztwiorok/dont-run-it-skill --skill security-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.5 KB, as published. Nobody here has run it
Security Review
Static-only security audit. Never run the code under review — no npm start, no python app.py, no installing untrusted dependencies, no executing user-supplied scripts. Read, grep, reason. If a check would require execution, report it as "needs dynamic testing" instead of running it.
Scope
By default, review the pending diff on the current branch (git diff main...HEAD and unstaged changes). If the user asks for a full audit, expand to the whole repository.
Ask the user (AskUserQuestion) only when ambiguous:
- Diff vs. full-repo review
- Production-facing code only, or include tests/scripts/fixtures
- Specific threat model (e.g., multi-tenant SaaS, public API, internal tool)
What to look for
1. Secrets and credentials
- API keys, tokens, passwords, private keys committed to source
.envfiles tracked by git- Hardcoded connection strings, JWT secrets, signing keys
- Grep patterns:
(api[_-]?key|secret|password|token|private[_-]?key)\s*[:=],-----BEGIN,AKIA[0-9A-Z]{16},ghp_,sk-
2. Injection
- SQL — string concatenation/interpolation into queries; missing parameterization
- Command —
exec,spawn,system,shell=True, backticks with user input - XSS —
innerHTML,dangerouslySetInnerHTML, unescaped templating,v-html - Path traversal — user input concatenated into file paths without normalization
- SSRF — user-controlled URLs passed to
fetch/requests/http.getwithout allowlist - LDAP/NoSQL/XPath/template injection in the relevant stacks
3. AuthN / AuthZ
- Missing auth middleware on sensitive routes
- IDOR — endpoints that take an ID but don't verify ownership
- Privilege checks done in the UI only
- JWT:
alg: none, weak secrets, missingexp, signature not verified - Session: predictable IDs, missing
HttpOnly/Secure/SameSite, no rotation on login
4. Cryptography
- MD5/SHA1 for passwords or signatures (use bcrypt/argon2/scrypt for passwords; HMAC-SHA256+ for signatures)
- Hardcoded IVs, ECB mode, missing authentication (use AEAD: AES-GCM, ChaCha20-Poly1305)
Math.random()/random.random()for security-sensitive values (usecrypto.randomBytes/secrets)- Custom crypto — flag every time
5. Deserialization & parsing
pickle.loads,yaml.load(withoutSafeLoader),eval,Function(...),unserialize- XML: external entities (XXE) — disable DTDs and external entity resolution
- ZIP/tar extraction without path validation (zip-slip)
6. Dependencies
package.json/requirements.txt/go.mod/Gemfile.lockfor known-vulnerable versions- Suspicious typo-squat-looking package names
- Unpinned versions on security-sensitive libs
- Postinstall scripts in npm dependencies
7. Transport & headers
- HTTP instead of HTTPS for sensitive endpoints
- Missing
Content-Security-Policy,Strict-Transport-Security,X-Frame-Options,X-Content-Type-Options - Permissive CORS (
Access-Control-Allow-Origin: *with credentials) - Cookies without
Secure/HttpOnly/SameSite
8. Logging & info disclosure
- Logging secrets, tokens, full request bodies, PII
- Stack traces returned to the client in production
- Verbose error messages revealing schema/internals
9. Business-logic & misuse
- Race conditions on balance/inventory/quota mutations
- Missing rate limits on auth, password reset, OTP
- Mass assignment (
User.update(req.body)without allowlist) - Open redirect (
?next=taken as-is)
Workflow
- Scope —
git diffto see what's actually changed; orfind . -type ffiltered to source for a full audit. Skipnode_modules,vendor,.git, build outputs. - Run the bundled pre-scan — invoke the static scanner that ships with this skill:
It outputsbash "${CLAUDE_PLUGIN_ROOT}/skills/security-review/scripts/scan.sh" <path>[SEVERITY] CATEGORY: file:line: snippetlines. Treat this as a candidate list, not a final report — every line still needs confirmation by reading the source. - Read suspicious files in full — the scanner gives candidates; confirm by reading surrounding context. Don't report from a single grep line.
- Trace data flow — for each candidate sink, follow inputs back to the boundary (HTTP handler, CLI arg, file read). If the input is attacker-controlled and reaches the sink unsanitized, it's a real finding. If the input is a constant or already sanitized, drop it from the report.
- Add categories the scanner doesn't cover — IDOR / missing authz, race conditions, mass assignment, open redirect, business logic. The scanner is pattern-based; these need code reading.
- Report — group by severity (Critical / High / Medium / Low / Info). For each: file:line, what it is, why it matters, suggested fix. No fluff.
Output format
## Security Review — <scope, e.g., branch `feature/login` vs main>
### Critical
- `src/auth/login.ts:42` — SQL injection: user-supplied `email` interpolated into raw query.
Fix: parameterize via `db.query('... WHERE email = $1', [email])`.
### High
- ...
### Medium
- ...
### Notes / needs dynamic testing
- Rate limiting on `/auth/reset` — config-driven, can't verify statically. Recommend load test.
If nothing is found in a category, omit the category — don't pad the report.
Rules
- Do not execute the reviewed code, its tests, its install scripts, or its dependencies. Running
scripts/scan.shis fine — it's pure grep over text and never invokes the reviewed code. If the user explicitly asks "run the tests," confirm before doing so and treat the test run as a separate step outside the review. - Do not modify the code as part of the review. Suggest fixes in the report; let the user (or a follow-up
/simplify/ edit pass) apply them. - Cite file:line for every finding so the user can jump straight to the source.
- No false-positive theater — if you're not sure something is exploitable, mark it
Infoor "needs dynamic testing", notHigh. - Prefer the diff over the whole repo unless asked otherwise. Reviewing 50k lines when only 200 changed wastes the user's time.