agentleFS
Domenico-Tenace-Open-LabsDomenico-Tenace-Open-Labs/web-dev-agent/skills/security-audit/SKILL.md

security-audit

Skill3 starsChanged 13 days agoMITView on GitHub

Audits codebase for security vulns, misconfigs, cybersecurity risks: source code, deps, config files, IaC (Docker, Terraform, Kubernetes, CI/CD). Produces severity-ranked report (Critical/High/Medium/Low/Info) in chat. Trigger when user says "handle security", "review security", "security audit", "find vulnerabilities", "find security issues", "check for vulnerabilities", "cybersecurity review", "is this code secure", "pentest this", "check for secrets/exposed keys", or asks to scan/review/check repo/folder/file for security problems — even without word "security" (e.g. "can someone hack this", "any risks in this code"). Always use this skill instead of ad-hoc read-through.

  • Reads credentials

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

Files
SKILL.md

Security Audit

Systematic security review of codebase. Covers source code, deps, config/secrets, infrastructure-as-code. Output: concise, deduplicated, severity-ranked report in chat — no file unless user asks.

Workflow

  1. Scope target. Find root path to scan (user path, or cwd/repo if unspecified — ask only if ambiguous, e.g. multiple unrelated repos). Detect stack: language(s), frameworks, package managers, Docker/Terraform/K8s/CI config.
  2. Scan in passes, using references/checklist.md for concrete patterns per category:
    • Source code — injection flaws, auth/session issues, unsafe deserialization, path traversal, SSRF, weak crypto, insecure error handling.
    • Secrets & hardcoded credentials — API keys, passwords, tokens, private keys, connection strings anywhere in tracked files (config, .env committed by mistake, code comments).
    • Dependencies — parse manifest/lockfiles (package.json/package-lock.json, requirements.txt/poetry.lock, *.csproj/packages.lock.json, go.mod, pom.xml, etc). Flag known-vulnerable or abandoned/unpinned versions. Web search for CVE lookups on suspect packages/versions; else flag "needs CVE verification", not guessing.
    • Config & IaC — Dockerfiles, docker-compose, Terraform, Kubernetes manifests, CI/CD pipelines, nginx/apache configs, cloud policy files. Watch permissive access, exposed ports/services, root containers, plaintext secrets, disabled TLS verification, wildcard permissions.
  3. Deduplicate before reporting. Same root cause repeats across files (vulnerable dep in 12 places, copy-pasted unsafe pattern) → report once as single finding listing all affected locations — never repeat explanation per occurrence. Hard requirement, not style.
  4. Assign severity using rubric below. Consistent; don't inflate or downplay.
  5. Write report in chat per format below. Skip empty severity sections (omit, not "No findings"), note total categories scanned at top.

Severity rubric

SeverityCriteria
CriticalRemotely exploitable, no auth, full compromise, data breach, or RCE (e.g. SQLi on unauthenticated endpoint, hardcoded prod credentials, exposed private key).
HighExploitable with some precondition (auth, local access, specific config), or high-impact (auth bypass, SSRF, unsafe deserialization, known-CVE dep with available exploit).
MediumSignificant preconditions or user interaction (reflected XSS needing victim click, weak crypto not yet broken, missing rate limiting, verbose error leaking stack traces).
LowDefense-in-depth gaps, best-practice violations with limited real-world impact (missing security headers, outdated non-vulnerable dep, verbose logging).
InfoWorth noting, not a vuln (missing .gitignore entries, no SECURITY.md, dep close to EOL).

Report format

# Security Audit — <scope>

Scanned: <n files/dirs>, categories: code / secrets / dependencies / config & IaC
Findings: X Critical, Y High, Z Medium, W Low, V Info

## Critical
### <Short title>
- **Where:** file:line (list all locations if repeated)
- **Issue:** one or two sentences, no boilerplate
- **Impact:** one sentence
- **Fix:** concrete, actionable

## High
...

Each finding tight: 4 lines max unless genuinely complex. No repeated preambles — say once per finding. Category scanned with zero findings → don't list in body; summary line covers it.

When context is large

Big repos: don't read every file verbatim into context. Prioritize: entry points (routes/controllers), auth code, user-input handling, config/env files, IaC files, manifest/lockfiles. Use grep/search for known-risky patterns (see checklist) before deep-reading, then read only hits with surrounding context.

After the report

Offer, don't push: "Want me to go deeper on any of these, or help fix the Critical/High ones first?" Don't generate a file unless asked.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.