skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
mn-youssef/security-skills93 installs

security-code-audit

Use when you have application source code and want to find security vulnerabilities by reading it — covers OWASP Top 10 across frontend, backend API, and database. Produces a findings register with severity, file:line, and exploitability.

How do I install this agent skill?

npx skills add https://github.com/mn-youssef/security-skills --skill security-code-audit
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides a structured methodology and reference material for performing security code audits using static analysis. It includes guidance on identifying common vulnerabilities across backend APIs, databases, and frontends. No malicious patterns, exfiltration attempts, or unauthorized behaviors were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Security Code Audit (FIND phase)

Overview

Read source code and find vulnerabilities by pattern. No running app required — works in any AI coding tool. Trace untrusted input from its source (where it enters) to its sink (where it's used dangerously).

Core principle: A vulnerability is untrusted data reaching a dangerous sink without adequate validation/encoding in between. Find the source→sink paths.

Method: source → sink tracing

  1. From the threat model (or by scanning entry points), pick a source of untrusted input.
  2. Follow the data through the code to where it's used (the sink).
  3. Ask: is it validated, sanitized, parameterized, or encoded for that sink? If not → finding.
  4. Record severity, file:line, the exact data path, and how to exploit it.

OWASP Top 10 — what to grep for

RiskSmell / sink to search
Injection (SQL/NoSQL/cmd)string-built queries, exec, eval, system, template interpolation in queries
Broken access control (IDOR)object lookups by user-supplied id with no ownership check
Broken authcustom crypto, weak session handling, missing MFA, token in URL
Cryptographic failuresmd5/sha1 for passwords, hardcoded keys, Math.random for tokens, no TLS
SSRFserver fetches a user-supplied URL (requests.get(input), fetch(input))
Security misconfigdebug=true, default creds, permissive CORS *, verbose errors
XSSinnerHTML, dangerouslySetInnerHTML, v-html, unescaped template output
Insecure deserializationpickle.loads, yaml.load, native deserialize on input
Vulnerable dependenciescheck lockfiles vs advisories (npm audit, pip-audit, osv)
SSTI / path traversaltemplate render of input, ../ in file paths from input

Domain references (load the ones that match your stack)

  • references/web-frontend.md — XSS, CSRF, CSP, client-side secrets, clickjacking
  • references/api-backend.md — authz/IDOR, injection, SSRF, JWT, rate limiting, mass assignment
  • references/database.md — SQLi/NoSQLi, access control, data exposure, ORM pitfalls

Output: findings register

IDSeverityTitleLocationSource→sinkExploitabilityFix pointer
F1HighSQLi in user searchapi/users.py:42?q= → raw SQLUnauth, dumps DBparameterize → security-hardening

Severity = the threat-model risk score, adjusted for how exploitable the code actually is.

Hand-off

High-severity findings on a running app → active-pentest to validate. All findings → security-hardening to fix.

Common mistakes

  • Pattern-matching sinks without confirming input is actually attacker-controlled (false positive).
  • Stopping at the first sink — one source often reaches several.
  • Trusting client-side validation — it's bypassable; the server must validate.
  • Ignoring authorization: most real-world breaches are access control, not exotic injection.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/mn-youssef/security-skills/security-code-audit">View security-code-audit on skillZs</a>