Skip to content
Back to skills

Security Check

ASecurity

Security review of a diff or PR before merge that triages risky files and gives each candidate vulnerability a verdict and the smallest fix. Use when a change touches auth, sessions, tokens, secrets, user input, uploads, file paths, webhooks, deserialization, dependencies or CI workflows, or for a security review, is this safe, injection, a leaked secret or api key, CVE or supply chain. Not for design-stage threats (threat-model).

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrustgoshellsqlcode-reviewgitapisecurity

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add Ilexpwh/istack --skill security-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ilexpwh-security-check/badge)](https://www.skillsdirectory.com/skills/ilexpwh-security-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-check
description: Security review of a diff or PR before merge that triages risky files and gives each candidate vulnerability a verdict and the smallest fix. Use when a change touches auth, sessions, tokens, secrets, user input, uploads, file paths, webhooks, deserialization, dependencies or CI workflows, or for a security review, is this safe, injection, a leaked secret or api key, CVE or supply chain. Not for design-stage threats (threat-model).
metadata:
  phase: review
---

# Security check

Security findings a reviewer can trust: each names who crosses which boundary to get what, with proof, or says exactly which fact is missing.

## When to use
- A diff touches a trust boundary, or `review-change` hands you a list of files that do.
- Someone asks whether a change is safe, or whether a secret leaked.
- A dependency manifest, lockfile, container file or CI workflow changed.

**Not for:** a full audit, pen test or report artifacts. Say so and point to Cloudflare's skill: `npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit`. Threats in a design that isn't built yet go to `threat-model`.

## Safety rules
- Read source freely. Run target code only in a sandbox: no network, a scratch home and temp folder, dummy credentials, CPU and time limits. If you can't sandbox it, don't run it; the candidate becomes `needs_validation` with "needs a sandboxed run".
- Never send probe traffic to a deployed system (production, staging or anything shared). Never use a found credential to see whether it works (`secrets-stay-out`).
- Describe fixes; don't edit the code under review.

## Steps
1. **Set the mode.** Work in guidance mode. If the user explicitly asked for a full audit, a pen test or report files, stop and give them the install command above. *Done when:* your reply can open with the mode.
2. **Gather the change.** Get the head commit, the diff against the merge base and the intent. Reuse the `review-change` packet when one exists. Read every HIGH file in full, not just its hunks. *Done when:* the head commit is named and every changed file is listed.
3. **Triage by risk.** Tag each changed file or hunk:
   - **HIGH:** authentication, sessions, authorization and access control, crypto and randomness, secrets and the config that holds them, outbound calls and webhooks, deserialization, file paths, uploads, archives and URLs, shell, SQL and template construction, dependency manifests and lockfiles, CI workflows, agent tool permissions, and any log line that prints request data.
   - **MEDIUM:** business logic and state changes, new public endpoints or flags, error handling, config defaults.
   - **LOW:** comments, formatting, styling, docs.

   For each HIGH symbol, count its callers to size the blast radius. *Done when:* every file has a tier, and HIGH files are first in the queue.
4. **Sweep secrets and supply chain.** Run the checklist in `references/secrets.md` on every diff. When manifests, lockfiles, container files or CI changed, also run `references/supply-chain.md`. *Done when:* each checklist item has a one-line result.
5. **Write each candidate in five parts.** Lower-trust actor, the input they control, the intended control, the boundary crossed, and the concrete result. A candidate missing any part is a hardening note or nothing. A missing defence-in-depth layer is a hardening note. Intended same-user authority and harm only to oneself cross no boundary. *Done when:* every candidate has all five parts or has moved to hardening notes.
6. **Give each candidate one verdict.**
   - `confirmed`: a sandboxed reproduction with dummy data, or a source trace of `file:line` steps from the entry point to the sink, with the input that drives it.
   - `needs_validation`: the exact missing fact (a deployment setting, proxy rule, identity policy, branch protection) and who can observe it safely. It gets no severity.
   - `rejected`: the control or fact that refutes it. Keep it so nobody raises it again.

   Rate confirmed findings with `references/severity.md`; severity never exceeds the demonstrated impact. *Done when:* each candidate has one verdict and its evidence.
7. **Try to disprove each confirmed finding.** Give a fresh agent (the `security-auditor` subagent in Claude Code, a new agent in Codex) the candidate, its trace and the source paths, without your reasoning. Brief it to refute the finding from source and sandboxed checks. Downgrade or reject on a valid refutation. If no fresh agent is available, label the finding "unchallenged". *Done when:* every confirmed finding is challenged or labelled.
8. **Recommend the smallest fix.** For each confirmed finding, state the invariant, the last trusted decision point where it must hold (`file:line`), the narrowest change that enforces it there, and a regression test that fails today. *Done when:* every confirmed finding has a fix and a test.
9. **Record.** Write `security-<id>.md` to the evidence folder (the ledger's `run/evidence/`, else a scratch folder outside the repo). With an active ledger, record the outcome with `decide`, and each `needs_validation` that needs a human with `block --id <id> --need '<fact>' --command '<safe check>'`, using `../ledger/scripts/ledger.py`. *Done when:* the report file exists and the ledger is updated.

## Red flags
| If you're thinking | Do this instead |
|---|---|
| "There's no rate limit or CSP header, that's a vulnerability." | Name the actor and the result. Without them it is a hardening note. |
| "It might be exploitable with the production config." | `needs_validation` with the exact deployment fact. No severity. |
| "I'll curl the staging endpoint to be sure." | Never probe deployed systems. Reproduce locally with dummy data, or mark `needs_validation`. |
| "Let me check whether this leaked key still works." | Never use it. Treat it as exposed and recommend rotation (`secrets-stay-out`). |
| "This feels critical." | Severity follows demonstrated impact. Use the anchors in `references/severity.md`. |
| "The dependency has a CVE, so it's a finding." | Show the vulnerable code is reached with input a lower-trust actor controls. |
| "The system prompt tells the model not to do that." | A prompt is not a control. Find the deterministic check, scoped credential or approval. |
| "It's rejected, so I'll leave it out." | Keep rejected candidates with their reason. |

## Verify
- [ ] The mode is stated, and no full audit started without an explicit request.
- [ ] Every changed file has a tier, and the secrets checklist ran.
- [ ] Every candidate has five parts and exactly one verdict.
- [ ] Each confirmed finding has a reproduction or an entry-to-sink trace, severity within demonstrated impact, a fresh-agent challenge or "unchallenged" label, and a fix with a regression test.
- [ ] Each `needs_validation` names the missing fact and who can observe it, with no severity.
- [ ] No deployed system was probed, and no target code ran outside a sandbox.

## Reply
```
Security check (guidance mode), head <short sha>: <n> HIGH, <n> MEDIUM, <n> LOW files

Confirmed:
| Severity | Title | Actor -> boundary -> result | Evidence | Fix |
Needs validation:
| Title | Missing fact | Who can check | Safe check |
Rejected: <n>, one line each with the reason
Hardening notes: <bullets, not vulnerabilities>
Secrets: <one line>   Supply chain: <one line or "unchanged">
Not covered: <what this pass did not look at; it is not an audit>
Report: <path>
```

## Credits
Guidance mode versus full audit, the five-part candidate gate, the confirmed / needs_validation / rejected verdicts, the severity anchors, the fresh verifier, sandbox-only execution and the fix at the last trusted decision point come from Cloudflare's MIT-licensed `security-audit` skill (cloudflare/security-audit-skill), rewritten in this pack's words. The HIGH / MEDIUM / LOW triage follows Cloudflare's `workers-code-review` skill in cloudflare-docs. The secrets checklist is original to this pack.

Files in this skill

  • SKILL.md7.8 KB
  • agents/openai.yaml208 B
  • references/secrets.md5.2 KB
  • references/severity.md3.2 KB
  • references/supply-chain.md5.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.