security-scan
Skill39 starsChanged 37 days agoMITView on GitHub
Single-round adversarial security scan.
89 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- bsene/skillstheir own version, first seen Nov 8, 2026
- TheurgicDuke771/DataQtheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- NemesLaszlo/claude-code-harnesstheir own version, first seen Nov 8, 2026
- pfangueiro/claude-code-agentstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use django-security, deployment-patterns 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.
mstuder-slalomSkilldjango-security
Django security best practices, authentication, authorization, CSRF protection, SQL injection prevention, XSS prevention, and secure deployment configurations.
Also in 5 projects that use this
royaluniondesign-sysSkilldeployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
Also in 5 projects that use this
mstuder-slalomSkillspringboot-security
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
Also in 4 projects that use this
DonTiziSkilldependency-check
Analyze project dependencies for outdated packages, security vulnerabilities, and licensing issues. Use for dependency audits and maintenance.
Also in 3 projects that use this
RojiosSkillsecurity-bounty-hunter
Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.
Also in 3 projects that use this
nek1987Skillpostgres-patterns
PostgreSQL patterns for reviewing migrations and writing efficient queries. Use when reviewing Alembic migrations, optimizing queries, or debugging database issues.
Also in 6 projects that use this
- +2 more from mstuder-slalom
Other versions89 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 89
- openai/codex-security★ 11ksame name
- openai/plugins★ 7.8ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- heartleo/zlib★ 1.5ksame name
- codewithmukesh/dotnet-claude-kit★ 808same name
- bagofwords1/bagofwords★ 463same name
- loulanyue/awesome-claude-notes★ 272same name
- Resgrid/Core★ 238same name
- GoogleCloudPlatform/cloud-solutions★ 139same name
- Fmarzochi/EGC★ 61same name
79 more not listed
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 repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- build-itSkill
- challenge-implementation-1Skill
- challenge-implementation-2Skill
- challenge-implementation-3Skill
- challenge-implementation-4Skill
- challenge-implementation-5Skill
- challenge-plan-1Skill
- challenge-plan-2Skill
- challenge-plan-3Skill
- challenge-plan-4Skill
- challenge-plan-5Skill
- construct-the-planSkill
- frame-itSkill
- handoffSkill
- quizSkill
- security-scanSkill
- soloSkill
- start-upSkill
- test-itSkill
- wrap-upSkill
- build-itSkill
- challenge-implementation-1Skill
- challenge-implementation-2Skill
- challenge-implementation-3Skill
- challenge-implementation-4Skill
- challenge-implementation-5Skill
- challenge-plan-1Skill
- challenge-plan-2Skill
- challenge-plan-3Skill
- challenge-plan-4Skill
- challenge-plan-5Skill
- construct-the-planSkill
- frame-itSkill
- handoffSkill
- quizSkill
- soloSkill
- start-upSkill
- test-itSkill
- wrap-upSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 80 edited versions we read keep these.
2
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
- Distinctive: line 15
If the scan already ran in this conversation, treat this invocation as a fresh pass over the same surface to catch what the first pass …
- Distinctive: line 19
If build-it's flow is running (no pull request open yet), any bugs the scan finds get fixed via new commits on the feature branch.
“Common” is measured: kept by at least 6 in 10 of the 80 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.
Files
Single-round adversarial security scan. Scan a focused surface for findings anchored to named threat classes, argue against each candidate before believing it, and require an articulated reproduction path before anything gets reported. Run it after editing security-sensitive code (auth, payments, user data, anything that parses untrusted input) and BEFORE the implementation-challenge chain.
Guard: nothing to scan
The scan covers the files modified by the agent in this conversation. If none, decline with: "No scan scope detected; make code edits in this conversation first, or name file paths explicitly after the command." Don't invent imaginary changes to scan.
Guard: repeat invocation
If the scan already ran in this conversation, treat this invocation as a fresh pass over the same surface to catch what the first pass missed. Say so explicitly.
Guard: during the chain
If build-it's flow is running (no pull request open yet), any bugs the scan finds get fixed via new commits on the feature branch. Do NOT open a pull request; that's wrap-up's job.
Scope
Files modified by the agent in this conversation, or files explicitly named after the command. Nothing else.
Sequence note
Run the scan BEFORE implementation-challenge round 1 when both are used: any security bug the scan fixes becomes part of the diff the chain then reviews. Reverse order means the chain validates a not-yet-fixed surface. Test-it runs before the scan for the same reason; the scan should see the finished diff, tests included.
Threat classes (define these for your project, once)
The scan only works when the search is anchored to failure modes your project actually has. Write 5-8 threat classes into your project's AGENTS.md or a security doc, each with the concrete surfaces to check, and cross-reference the industry-standard OWASP Top 10 categories where they map. A worked example set for a typical web app with accounts:
- Cross-user data exposure (OWASP A01, Broken Access Control). User A seeing user B's data through any read path: list endpoints, search, joins, cached responses.
- Authorization bypass (OWASP A01). Actions gated in the UI but not on the server; object IDs accepted from the client without an ownership check.
- Injection and composition bugs (OWASP A05, Injection). One component's safe output becoming another's unsafe input: string-built SQL, HTML rendered from stored text, shell commands built from user fields. Trace input to sink, seam by seam.
- Resource exhaustion (denial of service). Unbounded loops over client-supplied collections, missing rate limits, queries without limits, large-payload handlers.
- Auth and session bugs (OWASP A07, Authentication Failures). Expired tokens accepted, second-factor bypass, replay, session confusion across reconnect or refresh paths.
- Data-write authorization (OWASP A01). Missing ownership checks on update and delete, database policies that trust the client, raw queries carrying user input.
- Secrets exposure. Keys or tokens in logs, error messages, client bundles, or committed files.
For each class, ask: where in the scoped files could THIS specific failure occur? Be concrete. Not "validation might be missing" but "the message handler at file:line passes payload.text onward without re-running the filter."
Adversarial validation (before reporting anything)
For every candidate finding, switch sides and try to kill it. Does the surrounding architecture already make the path unreachable? Is the "attack" within what the product intends to allow? Could a realistic caller already do the same thing through a sanctioned route? A finding survives only if it grants an attacker capability they don't already have. Drop everything else.
This step exists because scanning agents overstate: they report reachable-looking paths that the wider system already blocks. Hunting and judging are different modes; do them separately, in that order.
Reproduction path requirement
For every finding that survives, articulate the data flow from untrusted input to the vulnerable sink as file:line -> file:line -> file:line. Short paths are fine for resource-exhaustion findings; composition bugs usually take several hops. A finding without an articulable path gets demoted to Hardening or dropped. (Bigger pipelines write an actual reproduction test per finding; for a single-agent scan, the articulated path is the affordable substitute.)
Severity grading (5 tiers)
- High: directly exploitable under realistic conditions; patch immediately.
- Medium: exploitable in principle, but needs chained preconditions or unlikely access.
- Low: real issue, marginal practical impact.
- Hardening: real pattern, but grants nothing beyond what sanctioned callers already have. Defense-in-depth observation.
- Not applicable: the threat model didn't survive adversarial validation; dropped from the report.
Auto-fix policy
Same policy as the implementation rounds: high-confidence bugs get fixed now via a new commit on the feature branch (no pull request until wrap-up; in no-git mode, fix in place and log it). Out-of-scope findings become observations. Findings needing the human's call defer with a [NEEDS HUMAN: <one-line ask>] marker, translated to plain English in chat.
End your response with the structured report
Findings before adversarial validation: N.
Demoted by validation as unreachable / sanctioned / not-applicable: M.
Final severity counts: High: K_h. Medium: K_m. Low: K_l. Hardening: K_ha.
Bugs fixed: K.For each surviving finding: threat class and surface, reproduction path, disposition (fixed inline / fixed in commit / deferred with marker).
No-rubber-stamp guard
Reaching "no findings" without at least one attempted reproduction path per threat class means the scan was skipped, not passed. The classes exist to anchor the search; trace each one against the scoped files. A genuinely clean scan closes with: "Traced [N] threat classes against [M] scoped files; no high-confidence findings."
Rationale (recorded so future edits don't drift it)
The scan's shape adapts Ramp Engineering's write-up "Finding high-severity security issues with publicly available models": threat-class anchoring so the search doesn't wander, an adversarial self-argument step to suppress the overstatement scanning agents reliably exhibit, and a reproduction-path bar so findings are evidence, not vibes. The adversarial step's wording here is our own; the technique and its motivation are theirs, and their multi-agent pipeline (where a validator writes a real test per finding) is the fuller version this single-agent scan approximates.
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.

