Application security audit against the OWASP Top 10: injections, broken auth, IDOR, XSS, CSRF, SSRF, logic vulnerabilities. Run on /audit-owasp.
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/audit-owasp/SKILL.mdApplies to server-side code with HTTP routing, authentication, database access, or file system access. For purely frontend components without fetch/API calls, apply only the XSS/CSRF sections. For CLI tools without network interaction, return an empty response.
This audit is stack-agnostic: the checks are framed neutrally, and the specifics (tools, idioms, anti-patterns, examples) come from the stack profile.
Profile passed in context? If the /audit orchestrator passed
runtime=<id> and/or the profile contents, use it and skip steps 2–3.
Otherwise, detect EXACTLY ONE runtime for this directory:
if [ -f package.json ]; then echo "runtime=node"
elif [ -f go.mod ]; then echo "runtime=go"
elif [ -f pyproject.toml ] || [ -f requirements.txt ] || [ -f setup.py ]; then echo "runtime=python"
elif [ -f Cargo.toml ]; then echo "runtime=rust"
elif [ -f pom.xml ] || ls build.gradle* settings.gradle* >/dev/null 2>&1; then echo "runtime=java"
else echo "runtime=generic"; fiOne run = one runtime; do not mix backend and frontend. If several markers are found (monorepo), pick the one matching the current scope / files under analysis and record the choice in the Audit Coverage section.
Load the profile via Read: ./skills/audit/stacks/<runtime>.md
(fallback ./skills/audit/stacks/_generic.md if the file is not found).
Then use the profile:
OWA-.tier: general or runtime=generic, mark stack-specific
findings without unambiguous evidence as 🔍 UNVERIFIED rather than ❌ FAIL.
Mark checks whose mechanism is absent in the runtime as N/A.| Severity | Assignment criterion |
|---|---|
| 🔴 Critical | RCE, auth bypass, data corruption, irreversible financial risk |
| 🟠 High | production outage, privilege escalation, data leak |
| 🟡 Medium | performance or maintainability degradation without an immediate outage |
| 🟢 Low | style, readability, minor convention violation |
Rule: severity = impact × exploitability × blast radius. The same pattern → the same severity across audits.
| Check ID | Check |
|---|---|
| OWA-01 | A03: All queries to the DB/OS/LDAP are parameterized, no injection |
| OWA-02 | A01: All protected routes have auth middleware |
| OWA-03 | A01: Resource ownership is verified, no IDOR [⚡ dynamic] |
| OWA-04 | A02: Passwords are stored securely (bcrypt/argon2/scrypt) |
| OWA-05 | A05: Secure server configuration (CORS, security headers, body limits) |
| OWA-06 | A07: Brute-force protection (rate limiting on auth and sensitive endpoints) |
| OWA-07 | A09: Technical information does not leak into responses (stack trace, internal paths) |
| OWA-08 | A10: A URL from user input is not passed to an HTTP client without a whitelist (SSRF) |
| OWA-09 | A05: CSRF protection is implemented (SameSite cookies or CSRF tokens on state-changing requests) |
✅ PASS only if you explicitly verified the mechanism (found the schema, config, guard) and confirmed there is no violation — state exactly what was checked.file:line for either a violation or a confirmation, assign 🔍 UNVERIFIED.
[⚡ dynamic] cannot be confirmed statically — only 🔍 UNVERIFIED or ❌ FAIL (with explicit evidence), never ✅ PASSdocs/audit-baseline.yml → ⏸ ACCEPTED.Every ❌ FAIL must include:
file:lineNot allowed:
🔍 UNVERIFIEDAudit results must be written in plain, clear language. Avoid complex terms, jargon, and abstract concepts unless necessary. Common technical terms (Docker, HTTP, API, JSON, URL) are fine. Describe problems so they are understandable to a developer of any level, not only a narrow specialist in the area.
Before analysis:
if [ ! -f ./docs/audit-baseline.yml ]; then
mkdir -p ./docs
cp ./skills/audit/audit-baseline-template.yml ./docs/audit-baseline.yml 2>/dev/null || \
printf "accepted: []\n" > ./docs/audit-baseline.yml
fi
cat ./docs/audit-baseline.ymlOWA-01 — Parameterized queries, no injection:
$where, $regex)OWA-02 — Auth middleware on protected routes:
OWA-03 — Resource ownership is verified:
OWA-04 — Secure password storage:
OWA-05 — Secure server configuration:
*) in production; origins by whitelist onlyhttp.MaxBytesReader, chi cors/secure; Node: express.json({ limit }), Helmet)OWA-06 — Brute-force protection:
alg:none and the RS256↔HS256 confusion (an attacker sends alg:none, or RS256 with a public key passed off as the HS256 secret); weak algorithms / short keyVerifier / golang-jwt WithValidMethods; Node: jwt.verify(token, secret, { algorithms: [...] }))OWA-07 — Technical information does not leak:
OWA-08 — SSRF: URL from user input without a whitelist:
OWA-09 — CSRF protection:
Origin/RefererSameSite, Secure, HttpOnly) — the browser will send the cookie on a cross-site request, or it is accessible to scripts / over HTTPSameSite=None without explicit justification (needed only for cross-site iframe/embed scenarios)audit-errors (ERR-02). If found here, add a cross-ref "see ERR-02" in the evidence, do not create a duplicate ❌ FAIL.audit-validation. Do not duplicate here.audit-secrets. Do not duplicate here.audit-api-contracts. Do not duplicate here.Before analysis, use the dep-audit category tool from the stack profile
("Tooling by category" section): it surfaces vulnerable dependencies (known CVEs).
This is a separate area, not part of the current checklist, but critical CVEs are
worth listing in the report's notes section. If the category cell is empty
(tier: general/generic), skip this step.
| Check ID | Check | Status | Confidence | Evidence | Solution | Fixed |
|---|---|---|---|---|---|---|
| OWA-01 | A03: All queries to the DB/OS/LDAP are parameterized, no injection | ✅ PASS | High | db/queries.ts checked — all queries are parameterized | — | — |
| OWA-02 | A01: All protected routes have auth middleware | ❌ FAIL 🔴 | High | routes/admin.ts:14 | 1. Add authMiddleware to all /admin routes \ 2. Use router-level middleware \ 3. Add a check in each handler | No |
| OWA-05 | A05: Secure server configuration (CORS, security headers, body limits) | ⏸ ACCEPTED | Medium | app.ts:9 | In baseline: internal service | — |
Statuses: ✅ PASS / ❌ FAIL 🔴 / ❌ FAIL 🟠 / ❌ FAIL 🟡 / ❌ FAIL 🟢 / ⏸ ACCEPTED / 🔍 UNVERIFIED
Confidence: High — checked several key files, the pattern is obvious / Medium — checked selectively, the pattern is likely / Low — limited context, full certainty is impossible
For ❌ FAIL: exactly 3 solution options, separated by \\, with option 1 in bold.
Fixed: FAIL → No (the developer changes it to ✅ Yes manually after the fix). PASS / ACCEPTED / UNVERIFIED → —.
Solution requirements:
At the end of the report, add a coverage section:
## Audit Coverage
Checked: src/module1/**, src/module2/**
Skipped: scripts/**, migrations/**, tests/**
Files checked: N | Skipped: NIf everything is PASS, output: ✅ No critical OWASP vulnerabilities found.
ls -dt ./docs/audits/[0-9]*/ 2>/dev/null | head -1 | sed 's|/$||'mkdir -p ./docs/audits/$(date +"%Y-%m-%d_%H-%M")<AUDIT_DIR>/audit-owasp.md# Audit Report: OWASP Application Security — <YYYY-MM-DD HH:MM>
<table>uxname/kodu
db733be
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.