agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/security-review/SKILL.md

security-review

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Review code and designs for security vulnerabilities — injection,

  • Reads credentials

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc 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.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    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 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 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 5 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check authn (identity) separately from authz (permission on *this* object).

    line 45
  2. Distinctive:

    Every finding needs an abuse path or an honest "theoretical if X".

    line 90
  3. Distinctive:

    Do not invent framework behavior you cannot see.

    line 92
  4. Distinctive:

    Prefer the smallest correct fix over a multi-month rewrite.

    line 94
  5. Very specific:

    Never request or generate real secrets.

    line 97
  6. Distinctive:

    If the code is solid, say so and list what you checked — empty critical/high is a valid result.

    line 98
  7. Very specific:

    When the user wants an OWASP-style coverage map or a full audit checklist, read references/owasp-top10.md and map findings to categories …

    line 101
  8. Distinctive:

    Near-miss with code-review skill: if they want general quality review, still focus on security.

    line 113

“Common” is measured: kept by at least 6 in 10 of the 165 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

Find exploitable issues and missing controls. Prefer concrete abuse paths over generic security advice. Severity is about impact and exploitability, not how impressive the finding sounds.

Review order

Tag every finding:

  1. [critical] — remote code execution, auth bypass, secret leakage to untrusted parties, unrestricted data destruction, or payment fraud.
  2. [high] — privilege escalation, injection with realistic input path, SSRF to internal networks, IDOR on sensitive records, broken crypto in production paths.
  3. [medium] — missing rate limits on auth/sensitive actions, weak session flags, overly broad CORS, information disclosure that aids further attacks.
  4. [low] — defense-in-depth gaps, missing security headers, logging of mildly sensitive fields, incomplete hardening.

Workflow

  1. Identify trust boundaries: who is untrusted (browser, mobile, third party, other tenants) and what assets matter (accounts, money, PII, secrets).
  2. Map entry points: HTTP handlers, jobs, webhooks, file parsers, admin tools, SQL/ORM queries, template renders, shell invocations.
  3. For each entry point, ask what happens with hostile input, a stolen session, or a confused deputy (the server calling an attacker-controlled URL).
  4. Check authn (identity) separately from authz (permission on this object).
  5. Summarize residual risk and the minimum fixes to ship safely.

Checklist (always cover what applies)

  • Injection: SQL/NoSQL/OS/LDAP/template; prefer parameterized APIs and avoid string-built queries or shell commands with user data.
  • Authn: password storage (argon2/bcrypt, not plaintext/MD5), MFA paths, session fixation, cookie flags (HttpOnly, Secure, SameSite).
  • Authz: object-level checks (IDOR), role checks on every mutating route, tenant isolation in multi-tenant data.
  • Secrets: hardcoded keys/tokens, secrets in logs/errors/URLs, long-lived tokens without rotation, committed .env patterns.
  • Crypto: custom crypto, ECB, hardcoded IVs, non-constant-time compares on tokens, weak random for security decisions.
  • SSRF / redirects: user-controlled URLs fetched server-side; open redirects.
  • Uploads / files: type sniffing only via magic bytes + size limits + no executable paths; path traversal on download.
  • Deserialization / XML / YAML: unsafe loaders, XXE, gadget chains.
  • Dependencies: known-vulnerable patterns only when versions are visible; never invent CVEs.

Output format

## Security review: <one-line target>

**Scope:** what was reviewed (files/endpoints/design)
**Assumptions:** language, framework, deployment notes you inferred

### Findings
1. [critical] `path:line` — <issue>
   - **Abuse path:** how an attacker exploits it
   - **Impact:** what is lost or gained
   - **Fix:** concrete change (code or config)

### Residual risk
What remains after the listed fixes, or what you could not verify.

### Ship verdict
**do not ship** | **ship with fixes** | **acceptable risk** — one sentence why.

Rules

  1. Every finding needs an abuse path or an honest "theoretical if X". No bare "consider adding validation".
  2. Do not invent framework behavior you cannot see. Say "if this route is public, …".
  3. Prefer the smallest correct fix over a multi-month rewrite.
  4. Separate product bugs from security bugs; only security findings get severity tags above.
  5. Never request or generate real secrets; use placeholders like REDACTED.
  6. If the code is solid, say so and list what you checked — empty critical/high is a valid result.

When the user wants an OWASP-style coverage map or a full audit checklist, read references/owasp-top10.md and map findings to categories that apply.

Edge cases

  • Design-only / no code: produce a short abuse-path list (assets, actors, entry points, top 5 controls). For a full STRIDE system model, point at threat-modeling.
  • Huge surface: prioritize auth, multi-tenancy, money movement, and file/ URL handling first; offer a second pass for the rest.
  • User asks "is this secure?": answer with residual risk, not a yes/no absolution. Absolute security claims are never appropriate.
  • Near-miss with code-review skill: if they want general quality review, still focus on security; mention non-security bugs only if they enable exploitation.

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.