Skip to content
Skills Library
Security · Review & audit

security-audit

/security-audit

Security-audit v2 workflow for application, repository, scoped path, PR, branch, or working-tree security review. Use for security audit, OWASP, secrets, threat model, attack path, Codex Security diff scan, release security gate, or security_change evidence requests.

Licence
MIT
Last repository change
21.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Security-audit v2 workflow for application, repository, scoped path, PR, branch, or working-tree security review. Use for security audit, OWASP, secrets, threat model, attack path, Codex Security diff scan, release security gate, or security_change evidence requests.

Arguments

/security-audit project, service, file, or changed area
Original author description

Security-audit v2 workflow for application, repository, scoped path, PR, branch, or working-tree security review. Use for security audit, OWASP, secrets, threat model, attack path, Codex Security diff scan, release security gate, or security_change evidence requests.

How it works

  1. Phase Contract
  2. Coverage Artifacts
  3. Review Areas
  4. Diff Security Gate
  5. Deep Scan Mode
  6. Output
  7. Self-validation
  8. Rules
Original SKILL.md headings · 111 lines, 600 words
SKILL.md preview
---
name: security-audit
description: Security-audit v2 workflow for application, repository, scoped path, PR, branch, or working-tree security review. Use for security audit, OWASP, secrets, threat model, attack path, Codex Security diff scan, release security gate, or security_change evidence requests.
argument-hint: project, service, file, or changed area
license: MIT
metadata:
  category: quality
  tags: [security, audit, owasp]
  effort: high
  side_effect: local-filesystem-write
  explicit_invocation: false
  skill_version: 1
  prompt_version: pfo-security-audit-v1
  eval_dataset: tests/eval-datasets/security-audit.json
---

# Security Audit

Run a source-read-only security audit. Writing the audit report and coverage artifacts is allowed; changing application code is not.

The canonical rubric lives in `docs/rubrics/security.md`. Use it as the source of truth.

Use `docs/templates/THREAT_MODEL.md` and `docs/templates/DATA_CLASSIFICATION.md` for non-trivial SaaS, API, e-commerce, mini app, internal automation, and bot projects.

Use `docs/templates/SECURITY_AUDIT_REPORT.md` for the report shape. Validate completed reports with:

```bash
python3 scripts/validate_security_report.py SECURITY_AUDIT_REPORT.md --require-artifacts --artifacts-dir <artifacts-dir>
```

When a full repository, scoped path, PR, branch, or working-tree security scan is requested, prefer the Codex Security plugin workflow when available:

```text
threat model -> finding discovery -> validation -> attack-path analysis -> final report
```

If Codex Security is unavailable, run the PFO-equivalent workflow below and mark the report as `PFO-equivalent`.

## Phase Contract

Keep phases separate. Do not collapse discovery, validation, and severity judgment into one pass.

1. Threat model: identify assets, trust boundaries, attacker-controlled inputs, security invariants, and assumptions.
2. Discovery: build the review worklist, inspect files, and record plausible candidates without final severity claims.
3. Validation: validate or suppress each candidate with runtime proof, focused tests, or bounded source tracing.
4. Attack path: map surviving candidates from realistic attacker boundary to impact, including counterevidence.
5. Final report: write the report and validate its shape.

## Coverage Artifacts

Write artifacts under `reports/security-audit/<scan-id>/artifacts/` unless the project already has a better security-scan artifact convention.

Required artifacts:

- `02_discovery/deep_review_input.csv`: canonical file or shard worklist.
- `02_discovery/work_ledger.jsonl`: completion receipts for every reviewed row.
- `03_coverage/repository_coverage_ledger.md`: surfaces closed as `reportable`, `suppressed`, `not_applicable`, or `deferred`.
- `05_findings/<candidate_id>/candidate_ledger.jsonl`: discovery, validation, and attack_path receipts for every candidate that reaches discovery.

Every candidate must have a stable id. Do not finalize a reportable finding until its candidate ledger has discovery, validation, and attack_path receipts, or a precise deferred proof gap.

## Review Areas

- Authentication and authorization
- Secret handling
- Injection risks
- File upload and path traversal
- CORS, CSP, cookies, sessions
- Dependency and supply-chain exposure
- Logging of sensitive data
- Rate limiting and abuse controls
- Threat model coverage
- Data classification and retention
- Tenant isolation and role boundaries
- Security test coverage for sensitive flows

## Diff Security Gate

When `PFO_CONTRACT_GATE.json` or `pfo_contract_gate.py` reports `security_change`, require one of:

- Codex Security diff-scan artifacts.
- A PFO-equivalent security report validated by `scripts/validate_security_report.py`.

No report means `BLOCKED`, even if the change looks small.

## Deep Scan Mode

Deep scan mode is expensive. Use it only for release readiness, high-risk scopes, explicit user request, or security-sensitive regressions.

Deep mode must still use the same final report contract. Extra discovery passes improve recall, but validation and attack-path analysis still decide reportability.

## Output

Use `docs/templates/SECURITY_AUDIT_REPORT.md`. Each numbered finding must include:

- Severity
- Confidence
- CWE
- Affected lines
- Summary
- Validation
- Dataflow
- Reachability
- Remediation

Return `BLOCKED` when Critical findings exist.

## Self-validation

Before final output, verify:

- Route, side-effect, and confirmation requirements match metadata.
- Required report and coverage artifacts are explicit.
- The final report validates with `scripts/validate_security_report.py`.
- Verification, blockers, and next route are stated.

## Rules

- Do not apply fixes unless the user explicitly asks for remediation.
- Do not print secrets.
- Prefer exploitability and impact over theoretical noise.
- If the rubric and this skill conflict, follow the rubric and update this skill later.
- Return `BLOCKED` if a product handles sensitive data and has no threat model or data classification before deploy readiness.
- Use plugin-assisted findings as candidates until they are validated against local code paths.
- Treat missing candidate receipts, missing worklist coverage, or unclosed `security_change` evidence as `BLOCKED`.

Versions

RepositoryScoreLicence
This page · hihol-labs/product-factory-os100MIT
posthog/posthog100MIT
mono/SkiaSharp100MIT
iuliandita/skills100MIT
gtlpanda/PandaStack100MIT
ericrisco/rsc-harness100MIT
matthewliu/matt-agent-playbook100MIT
drvoss/everything-copilot-cli100MIT
stella/stella100Apache-2.0

Database snapshot: 13.11.2026 · package version f4d59f90c99d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100audit-security
    Perform a security audit when the user asks to check for vulnerabilities, audit security, review OWASP compliance, scan for secrets, or assess application security posture
  • 98security-scan
    Use for a standard, single-pass security audit of an entire repository or a scoped path, package, folder, or submodule with no diff to review. This is the default repository scan. Do not use for PR, commit, branch, or working-tree diffs, or for deep, multi-pass scans.
  • 95security-checklist
    Pre-deployment security audit organized by OWASP Top 10. Use when reviewing code before shipping or going to production.
  • 100security-review
    Security review via Codex exec. Use when: OWASP Top 10:2025 audit, dependency vulnerability check, security-sensitive changes. Not for: code review (use codex-code-review), test review (use test-review). Output: security findings + audit report.
  • 98security-scan
    Use for a standard, single-pass security audit of an entire repository or a scoped path, package, folder, or submodule with no diff to review. This is the default repository scan. Do not use for PR, commit, branch, or working-tree diffs, or for deep, multi-pass scans.
  • 100security
    Application security principles and OWASP Top 10. Use to review code for vulnerabilities, implement authentication or authorization, handle secrets, configure security headers, prevent injection (SQL, XSS, CSRF), or prepare for an audit.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.