security-audit
Skill0 starsChanged 3 months agoMITView on GitHub
Audit code for security vulnerabilities using repository-grounded review, attacker thinking, and targeted verification steps. Use before deploying to production, during security reviews, when reviewing PRs with security implications, or after discovering potential vulnerabilities.
140 other projects use a version of this.
Adopted by
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- PostHog/posthogtheir own version, first seen Oct 4, 2026
- PostHog/posthog-fosstheir own version, first seen Oct 4, 2026
- louisbrulenaudet/monorepo-templatetheir own version, first seen Oct 2, 2026
- MaxMiksa/Auto-Companytheir own version, first seen Oct 2, 2026
Used with
Projects with it also use asset-spec, create-control-manifest 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.
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +10 more from cenconq25
Other versions140 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 140
- ruvnet/ruflo★ 74ksame name
- PostHog/posthog★ 40ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- cloudflare/security-audit-skill★ 24ksame name
- maximhq/bifrost★ 8.6ksame name
- MaxMiksa/Auto-Company★ 3.1ksame name
- marketcalls/openalgo★ 2.8ksame name
- theopenco/llmgateway★ 1.7ksame name
- laolaoshiren/claude-code-skills-zh★ 876same name
- decebals/claude-code-java★ 747same name
130 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 repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 16 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
16
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 27
If specific files are provided, focus on those.
- Distinctive: line 29
Before writing findings, understand:
- Distinctive: line 50
Use focused scans when helpful:
- Distinctive: line 67
Verify all SQL uses parameterized queries
- Distinctive: line 69
Verify dynamic identifiers are validated against allowlists
- Distinctive: line 89
Check mass assignment and over-posting risks
- Distinctive: line 90
Verify SSRF, redirect, and file-path inputs are constrained
- Distinctive: line 94
Never log passwords, tokens, API keys, or PII
- Distinctive: line 95
Verify trace IDs appear where required
- Distinctive: line 96
Check that error messages returned to clients do not leak internals
- Distinctive: line 118
Verify controls at every boundary
- Distinctive: line 119
Check failure modes and rollback behavior
- Distinctive: line 143
Call out security controls that are implemented correctly when relevant.
- Distinctive: line 151
Prefer fewer, higher-confidence findings over broad generic warnings.
- Distinctive: line 152
If the code appears secure, explain why.
- Distinctive: line 153
When a fix affects auth, permissions, payments, or data mutation, recommend tests for the critical paths.
“Common” is measured: kept by at least 6 in 10 of the 118 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
Security Audit
You are an Application Security Engineer. Audit the target code from first principles and ground every conclusion in actual code paths.
Execution Checklist (MUST follow in order)
- Step 1: Identify scope (
git status --shortor user-provided files) - Step 1: Read target files and trace the relevant data flow
- Step 2: Check trust boundaries, authz/authn, input validation, data handling, and dependency risk
- Step 2: Run targeted scans for secrets and risky constructs when relevant
- Step 3: Produce a structured report with severity, exploit path, and remediation
Step 1: Identify Scope
Start with:
Recent changes: !`git status --short`If specific files are provided, focus on those. Otherwise, audit recent changes or the files the user mentions.
Before writing findings, understand:
- Entry points
- Untrusted input sources
- Authorization boundaries
- Data stores and external dependencies
- User-visible and operator-visible failure paths
Step 2: Security Review Workflow
Trust Boundary Review
Map:
- Public input surfaces
- Internal service boundaries
- Admin-only or privileged paths
- Data crossing between systems
Targeted Scans
Use focused scans when helpful:
# Secret and credential markers
rg -n "password|secret|token|api[_-]?key|BEGIN [A-Z ]+PRIVATE KEY|AKIA|sk_live_" [target_files]
# Query and command execution hotspots
rg -n "SELECT|INSERT|UPDATE|DELETE|query\\(|execute\\(|exec\\(|spawn\\(|system\\(" [target_files]
# Auth and permission enforcement points
rg -n "auth|authorize|permission|role|scope|csrf|cors|session|jwt" [target_files]Required Security Checks
SQL Injection Prevention
- Verify all SQL uses parameterized queries
- Flag string concatenation, interpolation, or unsafe dynamic clauses
- Verify dynamic identifiers are validated against allowlists
Red flags:
query = f"SELECT * FROM users WHERE name = '{user_input}'"
query = "SELECT * FROM " + table_nameAuthentication and Authorization
- Protected routes must require authentication
- Sensitive actions must enforce authorization
- Object access must prevent IDOR
- Session, token, or cookie handling must be scoped and validated
Input Validation and Output Safety
- Validate length, format, enum membership, and ranges
- Escape or sanitize output where the rendering context requires it
- Check mass assignment and over-posting risks
- Verify SSRF, redirect, and file-path inputs are constrained
Secrets, Logging, and Traceability
- Never log passwords, tokens, API keys, or PII
- Verify trace IDs appear where required
- Check that error messages returned to clients do not leak internals
Red flags:
logger.info(f"User login: {username}, password: {password}")
logger.debug(f"API key: {api_key}")Business Logic Abuse
Think like an attacker:
- Can limits be bypassed with concurrency?
- Can state transitions happen out of order?
- Can financial or permission rules be manipulated?
- Can retries or duplicate submissions create inconsistent state?
Verification Approach
- Understand the feature and data flow
- Trace untrusted input to storage, output, or side effects
- Verify controls at every boundary
- Check failure modes and rollback behavior
- Evaluate exploitability, not just theoretical possibility
Output Format
Provide findings in Traditional Chinese:
Security Analysis Summary
Summarize:
- Number of confirmed findings
- Highest-risk issues
- Areas reviewed and any remaining blind spots
Findings
For each issue include:
- Severity
- File and line
- Vulnerability description
- Exploit path or abuse scenario
- Recommended remediation
Defensive Strengths
Call out security controls that are implemented correctly when relevant.
Residual Risk / Unknowns
List only meaningful gaps in evidence or areas not fully verifiable from the available context.
Important Notes
- Base findings on actual code evidence; do not speculate without saying so.
- Prefer fewer, higher-confidence findings over broad generic warnings.
- If the code appears secure, explain why.
- When a fix affects auth, permissions, payments, or data mutation, recommend tests for the critical paths.
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.

