threat-check
Skill1 starsChanged 14 days agoMITView on GitHub
Use when reviewing a change for security as the security-reviewer, or whenever code touches untrusted input, auth, secrets, files, network, crypto or dependencies, for a structured threat checklist and the audit commands per stack.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- project-skeleton/AGENTS.mdAGENTS.md
- adversarial-attackSkill
- agent-authoring-guideSkill
- docs-writingSkill
- glossary-and-decisionsSkill
- handoffSkill
- independent-reviewSkill
- performance-reviewSkill
- process-retrospectiveSkill
- pull-request-evidenceSkill
- release-processSkill
- requirements-interviewSkill
- resume-sessionSkill
- slice-into-tasksSkill
- systematic-debuggingSkill
- test-driven-slicesSkill
The file
Files
Threat check
Steps
- Map the trust boundaries. List where untrusted data enters the changed code (user input, files, network, environment, other services), and where privileged actions happen. Done when: each entry point and each privileged action in the diff is listed.
- Walk the checklist for each entry point. Done when: each item is marked ok, a finding, or not applicable.
- Run the audits for each stack (below) and read the results. A clean exit isn't enough if there are warnings. Done when: each audit's output is summarised in the findings.
- Demonstrate each critical/major finding with a test or a reproduction, redacting any real secrets.
Checklist
| Category | Questions |
| Spoofing / auth | Is identity checked on every new path? Are tokens validated (signature, expiry, audience)? |
| Tampering / input | Is every input validated for type, length, range and format at the boundary? Is a parser used instead of a regex where a grammar is involved? |
| Injection | SQL with bound parameters only? Shell commands without string concatenation? Templates auto-escaped? Paths normalised and confined to a base directory? |
| Deserialisation | Is untrusted data deserialised into arbitrary types (pickle, BinaryFormatter, YAML load)? |
| Authorisation | Is there an owner or role check on every object access, not just at the UI? |
| Information disclosure | Are secrets, tokens or PII kept out of logs, errors and URLs? Are error messages generic to callers? |
| Denial of service | Are sizes, recursion depth, timeouts and rate limits bounded? Can a regex backtrack catastrophically? |
| Secrets | Are there no hard-coded secrets? Is config read from the environment or a vault? Is the builtin:secrets gate clean? |
| Crypto | Are only vetted libraries used? No custom crypto, no ECB, no MD5/SHA1 for security, random from a CSPRNG? |
| Memory safety (cpp, unsafe rust) | Bounds checks, lifetimes, integer overflow in size calculations? Are sanitizers run in CI? |
| Supply chain | Is each new dependency needed, maintained, licence-compatible, and pinned in the lockfile? Do install scripts run? |
Audit commands
| Stack | Command |
| python | pip-audit, bandit -r <src> |
| javascript / typescript | npm audit --audit-level=high |
| rust | cargo audit, cargo deny check |
| go | govulncheck ./... |
| dotnet | dotnet list package --vulnerable --include-transitive |
| cpp | cppcheck, a sanitizer build (-fsanitize=address,undefined) running the tests |
| any | gitleaks detect (used by builtin:secrets when installed) |
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
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.

