security-analysis
Skill4 starsChanged 4 months agoMITView on GitHub
Reviews code or a change for exploitable vulnerabilities — injection, auth and access-control gaps, secret exposure, unsafe deserialization, SSRF, path traversal, and reports them with the concrete attack path. Use this whenever the user asks about security, vulnerabilities, hardening, or a security review, and also proactively when a change touches authentication, authorization, user input handling, file paths, subprocess calls, deserialization, or credentials. For general correctness review, use code-review.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- trebaud/skillstheir own version, first seen Aug 18, 2026
- microsoft/hastetheir own version, first seen Apr 22, 2026
- Willhong/claude_skilltheir own version, first seen Nov 17, 2025
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- microsoft/haste★ 106same name
- trebaud/skills★ 1same name
- Willhong/claude_skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Distinctive: line 107
No finding without a path: If you cannot name the source, the sink, and the unbroken route between them, report it as an area to verify — …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security analysis
A finding is only real if you can describe the attacker, what they control, and what they get. "This could be unsafe" is not a finding — it is an unfinished one. The discipline here is identical to debugging: trace from a source you can influence to a sink that does something dangerous, and prove the path is unbroken.
Scope: this is for reviewing code you or the user are authorized to work on — your own projects, your employer's, or an engagement you have permission for. It finds and fixes defects. It does not produce working exploits against systems you do not control.
1. Map trust boundaries first
You cannot assess code without knowing where untrusted data enters. Identify:
- Sources: HTTP request bodies, query params, headers, cookies, uploaded files, webhook payloads, message queues, third-party API responses, filenames, environment in multi-tenant contexts, and anything read from the database that a user once wrote
- Sinks: SQL, shell, filesystem paths, HTTP requests made by the server, template
rendering, deserializers,
eval-alikes, redirects, log statements that feed a parser - The boundary: where a request stops being anonymous and becomes a principal with rights
That last one, written down explicitly, is where most real findings live.
Done when: you have listed the sources and sinks in the code under review.
2. Trace source to sink
For each sink, walk backwards. The question is never "is this validated?" but "is every path to here validated, including the one added last week?"
The path is broken, and there is no finding — only if a transformation makes the data safe for that specific sink. Safe for one sink is not safe for another: HTML-escaping does nothing for SQL, and SQL parameterization does nothing for a shell command.
Done when: each source→sink pair is either proven safe or recorded as a finding.
3. Check the categories that get missed
Injection is well known and usually handled. These are where real findings cluster:
Access control: the highest-yield category, and the one scanners cannot find.
- Does the handler check that the authenticated user may act on this specific object, or only that they are logged in? Object-level authorization is the most common serious gap in otherwise careful code.
- Can an identifier be swapped for someone else's? Test it mentally with a neighbouring ID.
- Are admin routes protected by anything other than not being linked in the UI?
- Does the check happen before the side effect, on every path including the error path?
Secrets
- Hardcoded keys, tokens, connection strings, including in tests, fixtures, and comments
- Secrets in log lines, error responses, stack traces, or URLs
- Anything committed once: it is in history, and rotating it is the only fix
Server-side request forgery: any user-influenced URL the server fetches. Check for redirect following, internal address ranges, and cloud metadata endpoints.
Path traversal: user input reaching a filesystem path. Check after normalization, not before, and check the decoded form.
Deserialization and templates: untrusted data into a deserializer or a template engine is usually remote code execution, not a data problem.
Dependencies: known-vulnerable versions, and lockfile drift from the manifest.
Cryptography: homegrown crypto, ECB mode, static IVs, Math.random() for tokens,
non-constant-time comparison of secrets, missing certificate verification.
Done when: each category is checked or explicitly noted as not applicable.
4. Rank by exploitability, not by category name
A theoretical SQL injection behind an admin-only route matters less than an unauthenticated object-reference gap. Rank by:
- Who can reach it — anonymous internet > authenticated user > admin > local
- What they get — code execution > data of other users > own data > information disclosure
- What it costs them — a single request > a race window > a chained multi-step path
Done when: findings are ordered by reachability and impact, not by scanner severity labels.
5. Report with the attack path and the fix
**`api/orders.py:52` — Any authenticated user can read any order (IDOR)**
`get_order(request.args["id"])` looks up by ID with no ownership check. A logged-in user
changing `?id=1041` to `?id=1042` receives another customer's order, including address and
partial card data. Reachable by any account, single request.
Fix: scope the query to the session user — `Order.get(id=..., user_id=session.user_id)`, and
return 404, not 403, so IDs cannot be enumerated.State reachability explicitly. A finding without "who can trigger this" cannot be prioritized and will sit in the backlog.
Report what you checked and found clean, too. It tells the reader what the review covered, so absence of a finding is not mistaken for absence of review.
Honesty rules
- No finding without a path. If you cannot name the source, the sink, and the unbroken route between them, report it as an area to verify — clearly labelled as unverified.
- Do not pad with best practices. A missing security header in a list of real findings dilutes them. Separate "hardening suggestions" from "vulnerabilities".
- Say when you could not tell. Framework magic, dynamic dispatch, and middleware you cannot see all produce genuine uncertainty. Name it rather than guessing in either direction.
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.

