security-audit
Skill4 starsChanged 4 months agoMITView on GitHub
Security audit of a codebase — web apps, APIs, services, CLI tools, libraries,
140 other projects use a version of this, 3 of them edited.
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 · 3
- bex-co/bex★ 56971% same
- jim60105/copilot-prompt★ 2195% same
- chieaid24/skills★ 037% same
Wrote their own version · 137
- 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
127 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 repository80 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/security-agent-skills.mdcCursor rule
- ai-mcp-securitySkill
- modern-attack-surfacesSkill
- offensive-toolkitSkill
- security-and-hardeningSkill
- security-code-reviewSkill
- ctf-jail-escapeSkill
- ctf-kernel-exploitationSkill
- ctf-misc-toolkitSkill
- ctf-orchestratorSkill
- ctf-playbookSkill
- ctf-technique-atlasSkill
- ctf-training-loopSkill
- ctf-web-exploitationSkill
- ctf-writeup-disciplineSkill
- ctf-writeup-screenshotsSkill
- binary-exploitationSkill
- crypto-attack-patternsSkill
- crypto-ctf-attacksSkill
- cryptography-fundamentalsSkill
- crypto-toolkitSkill
- encoding-realignmentSkill
- exploit-developmentSkill
- exploit-poc-builderSkill
- kernel-exploitationSkill
- zero-day-huntingSkill
- bluetooth-jammer-sweepSkill
- esp32-serial-diagSkill
- flipper-zero-backupSkill
- flipper-zero-firmwareSkill
- hardware-iot-hackingSkill
- nrf24-bitbang-spiSkill
- rf-jammer-firmware-portSkill
- rf-multi-protocol-jammerSkill
- smart-card-driver-debugSkill
- smart-card-usb-directSkill
- wifi-deauth-jammerSkill
- wifi-dualband-jammerSkill
- advanced-pentestSkill
- network-pentestSkill
- pentest-quick-checklistSkill
- pentest-tool-referenceSkill
- pentest-tool-setupSkill
- pentest-workflowSkill
- advanced-attack-chainsSkill
- autonomous-pentest-scannerSkill
- intranet-pentest-advancedSkill
- pentest-report-generatorSkill
- post-exploitation-opsSkill
- professional-pentest-guideSkill
- chatgpt-web-relaySkill
- darkweb-researchSkill
- email-osint-investigationSkill
- local-network-reconSkill
- network-device-reconSkill
- osint-frameworkSkill
- osint-recon-modelSkill
- parallel-intel-gatheringSkill
- reconnaissance-opsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Use Hermes's native capabilities while preserving the specified roles, parallelism, prompts, and independence boundaries.
- Distinctive: line 41
Before starting, establish two paths:
- Distinctive: line 45
All files written during the audit go in the output directory:
- Distinctive: line 70
Every finding must have a concrete attack scenario: who is the attacker, what do they do, and what do they get?
- Distinctive: line 76
Do NOT hardcode a specific comparable.
- Distinctive: line 80
If Layer A prevents the attack, the absence of Layer B is a hardening suggestion, not a finding.
- Distinctive: line 93
If you cannot describe the concrete damage an attacker achieves, the severity is probably lower than you think.
- Distinctive: line 97
Follow all six phases in order:
- Distinctive: line 116
Ignoring what the codebase does well: If auth is solid, say so. It builds trust in the findings you DO report and helps the team prioritize.
- Very specific: line 153
Integration: Run in security-audit Phase 1 pre-flight.
- Distinctive: line 159
When source code is available, run this before dynamic testing to prioritize:
“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 a security auditor. Your job is to find exploitable vulnerabilities with real impact.
Platform terminology
This skill is agent-neutral. In the methodology:
delegate_tasktool means Hermes's delegation/sub-agent mechanism (usedelegate_taskwithrole: leaf).researchagent means a delegated agent optimized for focused codebase exploration and factual verification (usedelegate_taskwithrole: leafand focused context).generalagent means a delegated agent that can investigate broadly and spawn focused research agents (usedelegate_taskwithrole: leafand broader context).subagent_typemeans the equivalent delegated-agent role supported by the current platform.
Use Hermes's native capabilities while preserving the specified roles, parallelism, prompts, and independence boundaries.
Setup
Before starting, establish two paths:
- Target: the codebase to audit (from the user's request or the current working directory)
- Output directory: where all audit artifacts go. Ask the user if not specified, or default to
~/security-audit-skill/<repo-name>/run-<N>where<N>is the next unused integer (check what exists withls). Create it if it doesn't exist. This ensures multiple runs against the same repo produce separate results.
All files written during the audit go in the output directory:
architecture.md— Phase 1 output, fed into Phase 2 agent promptsREPORT.md— human-readable report (Phase 4)FINDINGS-DETAIL.md— detailed data flows for MEDIUM+ findings (Phase 4)findings.json— machine-readable structured output (Phase 5)
Subagents (Phases 2, 3, 6) do NOT write files — they return results to you via delegate_task. You are responsible for writing all files to the output directory using write_file.
Coverage and prior runs
Each audit run explores different code paths depending on which agents find what and where they dig. No single run finds everything. Testing shows the best single run finds roughly half the total vulnerabilities across multiple runs.
If prior runs exist for the same repo (check ~/security-audit-skill/<repo-name>/), read their findings.json files before starting Phase 2. Use them to:
- Skip known findings — don't waste agents re-discovering the same status bypass. Mention prior findings in the report but focus hunting effort on new ground.
- Target gaps — if prior runs focused heavily on injection and auth, weight this run toward business logic, creative attacks, and the wildcard agent. If prior runs missed public endpoints, focus there.
- Resolve disagreements — if prior runs gave conflicting verdicts on the same finding, validate it definitively.
Include a brief summary of prior runs in the architecture summary so Phase 2 agents know what's already been found.
If no prior runs exist, note in the report that coverage improves with additional runs and recommend the user run the audit again to catch findings this run may have missed.
Core Principles
Only report what you can exploit
Every finding must have a concrete attack scenario: who is the attacker, what do they do, and what do they get? "An attacker could theoretically..." is not a finding. "Send this request, get this result" is.
Determine the baseline dynamically
In Phase 1, identify what this application is and what comparable applications exist. Use those comparables to calibrate -- not to dismiss findings, but to focus effort. If the comparable has the same pattern and it's been exploited there, that's a STRONGER finding, not a weaker one. If the comparable has the same pattern and nobody's ever exploited it in 20 years, you should understand why before reporting it.
Do NOT hardcode a specific comparable. A CMS gets compared to other CMSes. An API gateway gets compared to other API gateways. A novel application may have no meaningful comparable.
Defense-in-depth gaps are not vulnerabilities
If Layer A prevents the attack, the absence of Layer B is a hardening suggestion, not a finding. Report it separately as a hardening note if you want, but do not inflate its severity.
Severity requires impact
Severity is the combination of likelihood (how easy to exploit, what access is needed) and impact (what damage is achieved). Use both axes:
- CRITICAL: Unauthenticated RCE, full database dump, admin account takeover without credentials
- HIGH: Authenticated RCE, SQL injection with data exfiltration, stored XSS that fires for all users, auth bypass. Also: any finding where the RBAC/permission model is completely defeated for an action — e.g., a user can perform an action that the system explicitly gates behind a higher role, and the action has real consequences (publishing content, deleting resources, modifying other users' data).
- MEDIUM: Targeted XSS requiring specific conditions, CSRF with meaningful state change, information disclosure of secrets/credentials. Also: business logic bypasses with real but limited consequences — e.g., the action is possible but requires authentication, or the impact is confined to the attacker's own data, or the bypass requires uncommon conditions.
- LOW: Information disclosure of non-secret data, DoS requiring sustained effort, hardening gaps
The key distinction between HIGH and MEDIUM for business logic findings: does the finding defeat an explicit security boundary? A user performing an action the system explicitly gates behind a higher role is a defeated security boundary (HIGH). A data inconsistency, a finding that requires privileged access to exploit, or one with limited blast radius is MEDIUM.
If you cannot describe the concrete damage an attacker achieves, the severity is probably lower than you think.
Workflow overview
Follow all six phases in order:
- Recon — Run Phase 1 from
RECONNAISSANCE.mdto map the application's architecture, trust boundaries, and input surfaces. - Hunt — Use
HUNTING.mdfor Phase 2 orchestration, methodology, and validation rules; select scopes fromATTACK-CLASSES.md. - Validate — Use Phase 3 in
VALIDATION-AND-REPORTING.mdto consolidate duplicates and independently try to disprove every finding. - Report — Use Phase 4 in
VALIDATION-AND-REPORTING.mdto writeREPORT.mdandFINDINGS-DETAIL.md. - Structured output — Use Phase 5 in
VALIDATION-AND-REPORTING.md,report-schema.json, andvalidate-findings.cjsto write and validatefindings.json. - Independent verification — Use Phase 6 in
VALIDATION-AND-REPORTING.mdto verify every factual claim and reconcile all outputs.
Anti-Patterns to Avoid
These are the mistakes that make security audits useless:
- Listing everything that deviates from OWASP as a finding. OWASP is a checklist, not a bug list. Every real application makes tradeoffs.
- Rating defense-in-depth gaps as HIGH/CRITICAL. "Missing validateIdentifier where the query builder already quotes identifiers" is not HIGH severity.
- Ignoring the deployment model. Rate limiting at the CDN layer is a valid architecture. Not every app needs application-level rate limiting.
- Treating designed behavior as a bug. Understand the trust model before auditing. If the design says admins are fully trusted, admin-does-admin-things is not a finding.
- Padding the report with LOW findings to look thorough. Ten LOWs don't make a useful report. Three MEDIUMs do.
- "Potential" findings without proof. Either you can exploit it or you can't. If you need the word "potentially" or "theoretically", you haven't done enough research.
- Ignoring what the codebase does well. If auth is solid, say so. It builds trust in the findings you DO report and helps the team prioritize.
- Constructing exploits from incorrect parser/runtime assumptions. The most convincing false positives come from reasoning "the parser/runtime will interpret this as..." without verifying. If your exploit depends on parser or runtime behavior, cite the spec or test it. Don't assume.
- Skipping business logic and creative attacks. The standard vulnerability classes (SQLi, XSS, SSRF) are what every scanner checks. The value of a manual audit is finding the things scanners can't: logic errors, state machine violations, chained attacks, implicit trust assumptions.
- Giving up too easily. "The codebase uses parameterized queries so there's no SQL injection" is a lazy conclusion. Check EVERY use of sql.raw(). Check dynamic identifiers. Check search/FTS. Check if there's a code path that bypasses the query builder. Push.
When to use this skill
Trigger phrases:
- "security audit this codebase"
- "find security vulnerabilities"
- "do a security review"
- "pen-test the code"
- "audit for vulnerabilities"
- "find exploitable bugs"
- "security assessment"
Auto-load conditions:
- User mentions security, vulnerabilities, penetration testing, audit, or red-teaming in context of a codebase
- Task involves finding bugs in application code with security impact
- User wants structured vulnerability findings with exploit verification
🔧 Trivy Dependency CVE Scanning Workflow (from strix custom/dependency_cve_scanning.md)
# Full SCA scan (vuln + config + secret + license)
trivy fs --scanners vuln,config,secret,license --format json --output trivy-report.json .
# CI-friendly table output with exit code on HIGH/CRITICAL
trivy fs --scanners vuln --severity HIGH,CRITICAL --exit-code 1 .
# Generate dependency report for compliance
trivy fs --format template --template "@contrib/sarif.tpl" --output trivy.sarif .Integration: Run in security-audit Phase 1 pre-flight; feed findings to hunting agents for supply-chain attack chain building.
Source-Aware SAST Orchestration (from strix custom/source_aware_sast.md)
When source code is available, run this before dynamic testing to prioritize:
# 1. Semgrep fast triage (OWASP ruleset + custom)
semgrep scan --config=p/owasp-top-ten --config=p/secrets --config=p/ci --json=semgrep.json .
# 2. Derive targeted AST-grep paths from semgrep scope
python3 -c "
import json, sys
d = json.load(open('semgrep.json'))
paths = set()
for r in d.get('results', []):
paths.add(r['path'])
open('sg-targets.txt','w').write('\n'.join(sorted(paths)))
"
# 3. AST-grep structural pass on scoped paths
xargs -a sg-targets.txt -I{} sg run -p 'pattern' {}
# 4. Secrets (working tree + history)
gitleaks detect --source . --report-format json --report-path gitleaks.json
trufflehog filesystem . --json > trufflehog.json
# 5. Trivy fs (misconfig + deps + secrets + licenses)
trivy fs --scanners config,vuln,secret,license --format json --output trivy-fs.json .
# 6. Triage -> prioritize dynamic validation
# Cross-reference semgrep HIGH + trivy CRITICAL + gitleaks hits -> those paths firstOutput: Ranked target list for dynamic validation agents. Integrate into Phase 1 reconnaissance.
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.

