con un clic
security-audit
OWASP Top 10 and STRIDE security auditing with supply chain analysis
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
OWASP Top 10 and STRIDE security auditing with supply chain analysis
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "知识固化".
Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".
Adversarial review of code quality findings. Challenges insights with counter-evidence, verifies claims against source code, and produces structured verdicts. Triggers on 'insight-challenge', 'challenge finding', '审查发现'.
Quick execution for small tasks (≤1-2 files, no artifact handoff) — minimal run lifecycle (create + complete only) with evidence recording. Can read/write/run any tool, but scoped to tasks completable in a few actions. Not for multi-step workflows or tasks needing downstream gates
Create or sync session worktree for parallel dev
Manage editing boundary restrictions
| name | security-audit |
| disable-model-invocation | true |
| description | OWASP Top 10 and STRIDE security auditing with supply chain analysis |
| argument-hint | [quick|standard|deep] [--scope <path>] |
| allowed-tools | ["Bash","Glob","Grep","Read","Write","followup_task","interrupt_agent","list_agents","request_user_input","send_message","spawn_agent","spawn_agents_on_csv","wait_agent"] |
| session-mode | none |
| version | 0.5.55 |
Tier coverage:
| Tier | OWASP | Dependencies | Secrets | CI/CD | STRIDE | Git History |
|---|---|---|---|---|---|---|
| quick | ✓ | ✓ | — | — | — | — |
| standard | ✓ | ✓ | ✓ | ✓ | — | — |
| deep | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Output boundary: ALL file writes MUST target {run_dir}/outputs/ or .workflow/state.json only. NEVER modify source code, configuration files, or dependencies. Audit is read-only analysis.
GATE 1: Recon → Scan
GATE 2: Scan → Report (tier-gated)
GATE 3: Report → Completion
maestro run complete.Phase 1: Reconnaissance
Phase 2: OWASP Top 10 Scan (all tiers)
For each category, scan relevant source files:
| # | Category | What to check |
|---|---|---|
| A01 | Broken Access Control | Missing auth middleware, direct object references, path traversal |
| A02 | Cryptographic Failures | Weak algorithms, hardcoded keys, missing TLS, plaintext storage |
| A03 | Injection | SQL concatenation, shell exec with user input, template injection |
| A04 | Insecure Design | Missing rate limits, no CSRF tokens, predictable tokens |
| A05 | Security Misconfiguration | Debug mode, default credentials, verbose errors, open CORS |
| A06 | Vulnerable Components | Known CVEs in dependencies |
| A07 | Auth Failures | Weak password rules, missing brute-force protection, session fixation |
| A08 | Data Integrity | Deserialization of untrusted data, unsigned updates |
| A09 | Logging Failures | Missing audit logs, logging sensitive data |
| A10 | SSRF | Unvalidated URLs in server-side requests |
Use Grep for pattern matching (e.g., eval(, exec(, innerHTML, dangerouslySetInnerHTML,
sql.*\+.*req\., process\.env without validation).
Phase 3: Dependency Audit (all tiers)
# Node.js
npm audit --json 2>/dev/null || true
# Check lockfile integrity
test -f package-lock.json && echo "lockfile present" || echo "WARNING: no lockfile"
Check for:
Phase 4: Secrets Detection (standard + deep)
Grep({
pattern: "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}",
glob: "*.{ts,js,json,env*}",
output_mode: "content"
})
Check .env.example for leaked values. Check .gitignore for missing .env patterns.
Phase 5: CI/CD Audit (standard + deep)
Scan .github/workflows/*.yml for:
permissions: (write-all, contents: write)uses: actions/checkout@main vs @v4.1.0)mask or add-mask)pull_request_target (code injection risk)Phase 6: STRIDE Threat Modeling (deep only)
For each critical module identified in Phase 1:
| Threat | Question |
|---|---|
| Spoofing | Can identity be faked? Is auth per-request? |
| Tampering | Can data be modified in transit/storage? Integrity checks? |
| Repudiation | Are actions logged with user identity? |
| Information Disclosure | Can unauthorized data be accessed? |
| Denial of Service | Resource limits? Rate limiting? |
| Elevation of Privilege | Can roles be escalated? Input validation on role fields? |
Phase 7: Git History Archaeology (deep only)
# Search for previously committed secrets
git log --all --diff-filter=D --name-only --pretty=format: -- "*.env" "*.key" "*.pem" 2>/dev/null | head -20
git log -p --all -S "password" --since="1 year ago" -- "*.ts" "*.js" 2>/dev/null | head -50
Phase 8: Report
Output severity matrix:
=== Security Audit ({tier}) ===
CRITICAL ({count}):
- [A03] SQL injection in {file}:{line} — {description}
Fix: {remediation}
HIGH ({count}):
...
MEDIUM ({count}):
...
LOW ({count}):
...
Summary: {total} findings ({critical} critical, {high} high, {medium} medium, {low} low)
Register artifact on completion:
Write the declared security findings under {run_dir}/outputs/ and the human summary to {run_dir}/report.md. maestro run complete performs registration automatically; the model never edits an artifact registry.
--- COMPLETION STATUS ---
STATUS: DONE|DONE_WITH_CONCERNS
CONCERNS: {count} critical findings require immediate action
--- END STATUS ---
Status mapping:
End the step by calling the CLI (no text block output):
maestro run complete --session {session_id} --verdict {VERDICT} [--evidence {path}]
(run-id 可省略 — 自动解析当前 running 步)
| Condition | Suggestion |
|---|---|
| No critical findings | maestro run create review --session YYYYMMDD-review-{topic} --intent "{goal}" -- {phase} |
| Critical findings need fix | maestro run create plan --session YYYYMMDD-plan-{topic} --intent "{goal}" -- {phase} --gaps |
| Need deeper analysis | /security-audit deep --scope {path} |
| Want dependency remediation | Fix vulnerabilities, then re-run /security-audit |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | No source files found in scope | Verify --scope path exists |
| E002 | error | Tech stack not detected | Manually specify entry points |
| W001 | warning | npm audit / dependency tool unavailable | Skip dependency phase, note limitation |
| W002 | warning | Git history scan failed | Skip Phase 7, note limitation |
| W003 | warning | Partial scan (some files inaccessible) | Report coverage gap in findings |
| </error_codes> |
<success_criteria>