security-audit
Skill54 starsChanged 6 months agoMITView on GitHub
Detects high-confidence security risks in code.
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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- architecture-sketchingSkill
- autonomous-bug-fixSkill
- behavioral-foundationSkill
- brainstormingSkill
- codebase-onboardingSkill
- code-reviewSkill
- debuggingSkill
- demand-eleganceSkill
- derive-nfr-from-driverSkill
- derive-security-from-riskSkill
- dispatching-parallel-agentsSkill
- durable-workSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- plan-before-codeSkill
- pr-workflowSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- requirements-elicitationSkill
- safety-guardrailsSkill
- self-improvementSkill
- subagent-strategySkill
- test-writingSkill
- traceability-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verify-before-doneSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 18
Before opening a PR that touches auth, secrets handling, deserialization, or external calls.
- Distinctive: line 20
When reviewing an unfamiliar contribution and you want a cheap first pass.
- Distinctive: line 23
NOT as the only security gate, and NOT as evidence that code is secure (see Pitfalls).
- Distinctive: line 29
Read access to the target tree.
- Very specific: line 33
Use the powershell tool to scan a directory and review the findings:
- Very specific: line 71
Run the default (high-confidence) profile over the target with the powershell tool.
- Very specific: line 75
Read each finding's rule id, severity, confidence, CWE, and location.
- Very specific: line 83
Write a report with --output (and --format json for machine diffing).
- Distinctive: line 95
DO NOT: treat a clean scan as "secure".
- Distinctive: line 96
DO NOT: commit real token-shaped fixtures to tests.
“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 Skill
Runs a deterministic heuristic scan over a codebase to flag high-confidence security risks — committed secrets, disabled TLS verification, insecure deserialization, and shell-injection sinks — then optionally layers LLM reasoning (OWASP/STRIDE) on top of the machine findings. This is a lightweight heuristic audit assistant, not a pentest, a SAST replacement, or a proof of security: it is a regex line-scanner that cannot follow data flow and will miss anything outside its rules. Treat its output as triage leads for human review, never as assurance.
When to Use
- Before opening a PR that touches auth, secrets handling, deserialization, or external calls.
- As a fast pre-commit sweep for accidentally committed credentials.
- When reviewing an unfamiliar contribution and you want a cheap first pass.
- To produce a persisted, idempotent report that diffs cleanly across runs.
- Paired with
derive-security-from-risk(which works forward, producing requirements) — this skill is the reverse, scanning existing code. - NOT as the only security gate, and NOT as evidence that code is secure (see Pitfalls).
Prerequisites
- The
powershellCopilot tool to invoke the scanner. - Python 3 on
PATH(the scan logic is one stdlib core; the.sh/.ps1are thin wrappers). - Read access to the target tree.
How to Run
Use the powershell tool to scan a directory and review the findings:
# High-confidence sweep of the repo (exit 1 = findings at/above --fail-on)
bash skills/security-audit/scripts/security-audit.sh . --suggest
# Broader (noisier) profile, fail only on medium-or-higher
bash skills/security-audit/scripts/security-audit.sh src --profile broad --fail-on medium
# Persist a deterministic JSON report for diffing
bash skills/security-audit/scripts/security-audit.sh . --format json --output audit.jsonOn Windows, call the parity wrapper security-audit.ps1 with the same arguments. Exit codes: 0 clean (below --fail-on), 1 findings at/above it, 2 usage error.
Quick Reference
| Rule | Flags | Confidence |
| SA-001..005 | private keys, AWS/GitHub/Slack/Stripe/Google tokens | high |
| SA-010 | TLS verification disabled (verify=False) | high |
| SA-011 | shell sink (shell=True, os.system) | high |
| SA-012 | insecure deserialization (pickle.loads, yaml.load) | high |
| SA-020..024 | eval/exec, generic creds, weak hash, DEBUG, CORS * | low (broad only) |
| Flag | Effect |
--profile broad / --include-low-confidence | enable low-confidence rules |
--fail-on low|medium|high | exit-1 threshold (default high) |
--format md|json | report shape (default md) |
--output PATH | persist report (excluded from its own scan) |
--ignore GLOB | extra path to skip (repeatable) |
--suggest | include remediation text |
Procedure
Step 1: Scan
Run the default (high-confidence) profile over the target with the powershell tool. Start narrow — the default rules are tuned to minimize false positives, so an exit 1 here usually means a real issue.
Step 2: Triage
Read each finding's rule id, severity, confidence, CWE, and location. Confirm whether it is a true positive. For a genuine non-issue, add an inline # security-audit: ignore SA-0NN reason=... on the matched or preceding line; the report then counts it as suppressed rather than dropping it silently.
Step 3: Reason (LLM tier)
For findings that need judgement, layer OWASP/STRIDE reasoning on the machine output: is the eval argument attacker-reachable, is the disabled TLS check on an internal or external call, what is the blast radius. The scanner finds candidates; you decide exploitability.
Step 4: Persist
Write a report with --output (and --format json for machine diffing). The report carries no timestamps, absolute paths, or environment data, so re-running on unchanged code produces byte-identical output and a noise-free diff.
Step 5: Remediate and Re-audit
Apply fixes guided by the --suggest remediation text. The scanner never edits code — suggestions only, by design. After fixing, re-run and confirm the findings clear (and that no new ones appeared).
Step 6: Extend the Rules
Rules live in skills/security-audit/scripts/security_audit.py as one shared core. Add a rule there with a matching case in tests/test_security_audit.py (generate any secret-shaped fixture at runtime — never commit a token-shaped literal), so the .sh and .ps1 wrappers stay in parity.
Pitfalls
- DO NOT treat a clean scan as "secure". A pass is the absence of a matched pattern, not a proof of safety — the scanner cannot follow data flow or reason about exploitability.
- DO NOT commit real token-shaped fixtures to tests; generate them at runtime by concatenation, or push protection and secret scanners will block them.
- DO NOT auto-apply suggestions blindly. They are remediation hints; review each in context.
- DO NOT widen the default profile until every
evaltrips it — false positives train reviewers to ignore the tool. Keep noisy rules behind--profile broad. - DO NOT edit only one wrapper. The logic lives in the Python core; the
.sh/.ps1are thin and must stay that way.
Verification
- The scanner was run on the target and its exit code observed.
- Each finding was triaged as true/false positive; false positives carry an inline ignore with a reason.
- A persisted report was produced where one was needed, and re-runs are byte-identical.
- Remediated findings were confirmed cleared on a re-audit, with no new findings introduced.
- New or changed rules have matching cases in
tests/test_security_audit.py.
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.

