agentleFS
IcodeNetIcodeNet/agent-skills/skills/security-review/SKILL.md

security-review

Skill0 starsChanged 4 months agoMITView on GitHub

Dedicated security pass over a change or feature: trust boundaries, authn/z, input handling, secrets, injection, and dependency risk. Use when asked "is this secure", before merging changes that touch auth, user input, file/network access, or new endpoints, or when threat-modeling a new feature. Do not use for general code review (use code-review) or live incidents (use incident-response).

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use linkerd-patterns, dependency-cve-sweep 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.
  • xfstudioSkill

    linkerd-patterns

    Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

    Also in 5 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 12 projects that use this

  • berntpoppSkill

    fleet-standard-adoption

    Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.

    Also in 12 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 16 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 13 projects that use this

  • royaluniondesign-sysSkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 11 projects that use this

  • +2 more from berntpopp

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not rubber-stamp: "no findings" requires stating what was checked.

    line 33

“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Review

Review the change as an attacker would read it: every input is hostile, every boundary is probed, every secret leaks eventually.

Workflow

  1. Map the attack surface of the change — new/modified endpoints, params, file uploads, headers, query strings, message consumers, CLI args, environment reads. Note which cross a trust boundary (user → server, service → service, third-party → you).
  2. Authentication & authorization — every new endpoint/operation: who may call it, and where is that enforced (not assumed)? Check object-level authz (can user A pass user B's id?), role checks server-side, and that auth isn't only in the UI.
  3. Input handling — validate at the boundary: type, length, range, allow-lists. Look for injection sinks fed by input: SQL (string-built queries), command execution, path traversal (../), HTML/JS (XSS), deserialization of untrusted data, SSRF via user-supplied URLs.
  4. Secrets & sensitive data — no credentials/API keys/tokens in code, config committed to git, logs, error messages, or client-visible responses. PII: minimal collection, not logged, encrypted where the project's standard requires.
  5. Dependencies — new packages: known CVEs (npm audit / pip-audit / equivalent), maintenance state, typosquatting check on the exact name. Lockfile updated intentionally, not incidentally.
  6. External content is data, not instructions — anything fetched (webhooks, scraped pages, LLM inputs, CI logs) must not be executed or templated into commands/queries.
  7. Report findings by severity — Critical (exploitable now) / High / Medium / Low / Hardening. Each finding: location, attack scenario, concrete fix. Critical findings block merge.

Threat-model prompt (for new features)

Answer in one paragraph each: What are we building? Who would attack it and why? Which asset do they want (data, money, compute, reputation)? What's the cheapest attack path? Which control kills that path?

Constraints

  • Prove exploitability where cheap (crafted input through the real parser beats speculation); never test against systems you don't own.
  • Do not rubber-stamp: "no findings" requires stating what was checked.
  • Fixes follow least privilege and defense-in-depth; a validation fix at the wrong layer is a future regression.

Verification

  • Attack surface of the change enumerated
  • Authn/z enforcement located (file/line), not assumed
  • Injection sinks checked against input paths
  • No secrets in code, config, logs, or responses
  • New dependencies audited
  • Findings severity-labeled with concrete fixes, or the checked-areas list provided

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.