security-audit
Scan application code for security vulnerabilities, OWASP Top 10 compliance, or hardcoded secrets across the project's repos. NOT for CI/CD hardening or SBOM generation (use supply-chain-security).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 8
- Forks
- 5
01 前言 Front Matter
- docs
- { "status": "reviewed", "updated": 1785974400000, "source_sha": "7aabe12b3053" }
- name
- security-audit
- color
- teal
- owner
- swarmery-core
- version
- 1.0.0
- description
- Scan application code for security vulnerabilities, OWASP Top 10 compliance, or hardcoded secrets across the project's repos. NOT for CI/CD hardening or SBOM generation (use supply-chain-security).
- allowed-tools
- Read, Grep, Glob, Bash
- disable-model-invocation
- true
02 资源文件 2
- 参考文档resources/audit-procedure.md10.1 KB
- 参考文档resources/owasp-checklist.md3.4 KB
03 SKILL.md 正文
Purpose
Perform a static security audit of the project's application code, configuration, and infrastructure manifests, producing a structured report where every finding carries a file:line citation, OWASP category, severity, and concrete remediation. Covers injection, auth bypass, secrets leakage, insecure configuration, and dependency CVEs; pipeline hardening, image scanning, and SBOMs belong to supply-chain-security.
Rules (never violate)
- Read-only: never modify source files, install packages, or fix findings during an audit.
- Redact any discovered secret with
***in the report — never print credentials in plain text. - Every finding needs a file:line citation, a severity (Critical/High/Medium/Low), and an OWASP category.
- Flag Critical findings (auth bypass, RCE, secrets in git) immediately, before the full report.
- Mark inferred or uncertain findings
[LOW-CONFIDENCE]; do not report guesses as facts. - Use
npm audit --json(never without--json— it may writepackage-lock.json).
Resources
- Read
resources/owasp-checklist.mdat the start of every audit — the authoritative OWASP Top 10 per-category checklist (map items onto the project's actual stack,project.json → stack). - Read
resources/audit-procedure.mdwhen running the audit: the 7-step procedure (secrets, injection, auth, device/realtime transport, dependencies, infrastructure), report template and length budgets, self-check, escalation, examples, failure modes.
How to use
What it does
Runs a read-only static security audit over application code, configuration, and deployment manifests: it walks the OWASP Top 10, hunts hardcoded secrets, injection paths, weak auth, vulnerable dependencies, and unsafe infrastructure settings, then hands you a structured report with a prioritized action plan and a scope-coverage list.
When to use it
- Someone asks to audit, scan, or review code for security vulnerabilities.
- A new feature or module needs a security review before merge.
- A quick secrets pass on the current branch; a suspected auth bypass or injection risk; an OWASP compliance picture for a repo.
Not for: pipeline hardening/SBOMs (supply-chain-security), pen-testing or fuzzing, plain quality review (code-standards/code-quality), repro tests (testing), or applying fixes (the project's infra pack skills).
How to invoke
Skill(skill: "core:security-audit")
State the scope (repo or module path, required) and optionally a depth: quick (secrets + critical injection, ≤80 lines) or full (all ten OWASP categories, ≤250 lines, default).
Worked example
Skill(skill: "core:security-audit")
Scope: apps/<mainApp>/src/app/api/orders/
The skill loads the bundled OWASP checklist, checks the auth middleware on the route, looks for injection in query parameters, verifies schema validation and session checks, then reports — e.g., one High finding for a missing session check at orders/route.ts:42 mapped to A01 Broken Access Control, with the exact code change that fixes it.
Related
supply-chain-security (images/SBOMs), testing (repro/prevention tests), the project's infra pack skills (service, TLS, network config remediation), troubleshooting (live incidents).
04 同仓库更多 Skills
short-desc
Too short.
no-frontmatter
暂无简介
global-skill
Fixture global skill (minimal user-scope shape, format doc §2.3).
documented-skill
Fixture skill whose usage guide deliberately omits the Worked example subsection.
z
NOT auto-discovered — only skills/ is scanned for plugins (§2.2).
y
Plugin skill y from toolpack — stored as "toolpack:y".