# cloudflare/security-audit-skill — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `skills`
- Overall score: `3.6/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `c1c8a8c14710` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:04:29Z
- Repository: https://github.com/cloudflare/security-audit-skill
- Radar entry: https://radar.alplab.co/#repo/cloudflare/security-audit-skill
- License: `MIT`
- Tags: `security-audit`, `coding-agent`, `agent-skills`, `vulnerability-hunting`, `prompt-orchestration`

## Summary

A coding-agent skill orchestrating six-phase security audits (recon, ledger-driven hunting, validation, reporting) with two hardened zero-dependency Node validators.

## Implementation Check

README's six phases and file table match SKILL.md/HUNTING.md/VALIDATION-AND-REPORTING.md workflows exactly; both validators and report-schema.json implement their described Phase 4-5 roles.

## When to Use

Use when you want a coding agent to run structured, source-grounded security audits of your own codebases with reproducible report artifacts. Not a scanner: needs a capable agent, Node.js, and an OS sandbox for dynamic checks.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 3.5/5 |

## Code Evidence

- skills/security-audit/SKILL.md defines the six-phase workflow, guidance vs full-audit modes, sandbox-only execution, and parent-only shared-file writes
- validate-findings.cjs `run`/`validateDocument` hand-rolls a JSON-schema interpreter with 5MiB, depth-64, 1000-item, and 100-error input limits
- validate-findings.cjs `readFileWithinLimit` opens O_NOFOLLOW|O_NONBLOCK and rejects symlinks, FIFOs, non-regular and oversized input
- validate-coverage-ledger.cjs `canonicalCoverageId` derives RFC3986 percent-encoded NFC IDs; `validateDocument` enforces the ledger state machine
- validate-findings.test.cjs runs 30+ node:test cases incl. hostile CLI inputs, terminal-control escaping, Unicode paths, cross-validator checks
- HUNTING.md embeds verbatim hunter/verifier prompts, the structured-result JSON contract, coverage-critic waves, and strict agent-budget gates

## Issues Found

- No CI workflow: the node:test suites in validate-*.test.cjs never run automatically, so validator regressions ship untested
- The no-follow descriptor promotion procedure (SKILL.md, HUNTING.md) is prose only; no shipped code implements it
- readFileWithinLimit fails closed on platforms without O_NOFOLLOW (e.g. Windows), rejecting every findings/ledger input there

## Key Risks

- Needs a coding agent with tool use and parallel sub-agents, Node.js, and an OS-enforced sandbox for any dynamic check
- Orchestration is markdown prompts; effectiveness and safety depend entirely on host-model compliance, not enforced code
- No CI config ships, so the substantial node:test suites are never run automatically
- README itself notes one run found roughly half the vulnerabilities that repeated runs found

## Reviewed Files

- `README.md`
- `skills/security-audit/SKILL.md`
- `skills/security-audit/RECONNAISSANCE.md`
- `skills/security-audit/HUNTING.md`
- `skills/security-audit/ATTACK-CLASSES.md`
- `skills/security-audit/AI-AND-LLM.md`
- `skills/security-audit/VALIDATION-AND-REPORTING.md`
- `skills/security-audit/report-schema.json`
- `skills/security-audit/validate-findings.cjs`
- `skills/security-audit/validate-findings.test.cjs`
- `skills/security-audit/validate-coverage-ledger.cjs`
- `skills/security-audit/validate-coverage-ledger.test.cjs`
