Security Audit — OWASP Top 10 & Real Fixes
by Pavithran
1) Run the scanner, then triage.
$10
Security Audit — OWASP Top 10 & Real Fixes
Example session with this skill installed
Audit the attached login.py and config.yaml files. Tell me if there are any holes an attacker could use to bypass auth or steal data.
- Read your context and instructions
- Compiled the security audit
I have completed the security audit of login.py and config.yaml. I ran the automated scanner and performed a manual review of the authentication logic.
Verdict: FIX REQUIRED
Risk score: 60/100
Scope
- Audited:
login.py(Auth logic),config.yaml(App configuration). - Protects: User credentials and session tokens.
- Not audited: The underlying database implementation.
Findings
- Critical —
login.py:22— The user query uses string formatting for theemailfield, allowing SQL injection.
Fix: Use parameterized queries with the database driver. - High —
config.yaml:10—DEBUGmode is set totrue, which may leak stack traces in production.
Fix: SetDEBUG: falseand use environment variables for toggling. - Medium —
login.py:45— Session tokens are generated usingrandom.random()which is cryptographically weak.
Fix: Use thesecretsmodule for token generation.
Not flagged
- Hardcoded Secret —
config.yaml:15— TheAPI_KEYvalue is"your-key-here", which is a placeholder.
Fix plan
- P0: Fix SQL injection in
login.pyimmediately. - P1: Disable debug mode in
config.yamlbefore deployment. - P2: Replace the random number generator in
login.py.
Next steps
- Implement parameterized queries in the login handler.
- Update the session generation logic to use the
secretslibrary. - Rerun the audit to verify the fixes and reach a SECURE verdict.
Connects securely to your tools. The creator never sees your data.
About this skill
Most security advice is a checklist. This skill does the real thing: it audits code the way an attacker would read it, rates every finding by severity, scores the risk, and prioritises the fixes — and it knows what NOT to flag, so the owner doesn't learn to ignore the next audit. 1) Run the scanner, then triage. A pattern detector (security_scan.py, standard library only) scans Python, JavaScript/TypeScript, and config files (.env, .yaml, requirements, package.json) for concrete vulnerabilities — SQL injection, eval(), shell injection, pickle/YAML deserialisation, weak hashes, TLS verification off, hardcoded secrets, predictable tokens, debug mode in production, CORS *, unpinned dependencies, XSS, and more — each with a code, a severity, and a suggested fix. Then the agent triages every finding by reading the line: a scanner finding is a lead, not a verdict. 2) Walk the OWASP Top 10 by hand. The skill walks through broken access control, cryptographic failures, injection, insecure design, misconfiguration, vulnerable components, auth failures, integrity failures, logging failures, and SSRF — in priority order. This is the part no tool does, and it is where the serious findings live: a delete endpoint with no ownership check, a reset token that never expires, a method checked as a boolean so any user can delete anyone. 3) Rate every finding and score the risk. A five-level rubric (Critical / High / Medium / Low / Info) with upgrade and downgrade rules: rate the impact, not the cleverness; rate the reachable impact; when torn between two levels, pick the higher one and say why. Then a risk score (100 minus 25 per Critical, 15 per High, 5 per Medium, 1 per Low, floored at 0) and a fix plan ordered by risk — P0 before anything ships, P1 this week, P2 in the next change. 4) Decide what NOT to flag. Placeholders and test data, dead code, controls that already exist elsewhere, hypotheticals with no trigger — all go in a 'Not flagged' section with one line of reason each. That section is the proof the auditor looked. 5) Write the report and validate it. A fixed report format (verdict, risk score, scope, findings with severity + file:line + fix, 'Not flagged' section, fix plan) checked by a second script (audit_checklist.py) that enforces the discipline: no verdict without findings, no finding without a severity, a location, and a fix, no SECURE with an open Critical or High finding, and a risk score that matches the findings. What's inside: SKILL.md (step-by-step process, decision criteria, severity definitions, good/bad audit findings, constraints), two Python scripts (standard library only — no network, no credentials), three reference guides (OWASP Top 10 checklist with the severity rubric, secrets and auth review, dependencies and config hardening), and three full before/after audits with real scanner output: a Python shop API (12 scanner findings + 3 manual findings), a JavaScript shop app (9 + 3), and a clean rate limiter that earns a SECURE. Tested, honestly: 47 checks, 47 passed — the scanner flags all 45 planted vulnerabilities across 7 files and reports 0 findings on 7 clean files; a manual audit caught all 5 logic/auth flaws the scanner correctly missed (a method checked as a boolean, an IDOR, an unexpiring token, a deduct-before-lookup, a login with no rate limit); the checklist validator passes the good report 8/8 and fails each of 7 bad reports on exactly its one intended check; all 3 example audit reports pass 8/8. The full evidence, including the 7 defects found and fixed during testing, is in TEST-REPORT.md. The limits are stated there too: the skill has not been run inside a buyer's live agent, the scanner has not been run on a large real-world codebase, the JavaScript checks are line-based heuristics (the Python ones use the AST and are precise), and the scanner cannot check a pinned dependency against a vulnerability database — it flags unpinned and wildcard versions only. Works in Claude, ChatGPT, Cursor, Codex and Gemini CLI — any agent that reads SKILL.md. Python 3.8+ only; no installs, no accounts. This skill audits code and config you can read. It does not probe live systems or send exploit traffic.
Supports Python and JS/TS first. No live network probing or CVE database lookups. Requires local file access to run the included Python scanner.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.