Security review (OWASP Top 10), codex-free. Use when: security audit, dependency vulnerability check, security-sensitive changes. For a Codex-driven audit, use /dhpk:codex-security instead. Not for: code review (use dhpk-change-review), test review (use dhpk-test-review). Output: security findings + audit report.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add hmj1026/dhpk --skill dhpk-security-review --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Dhpk Security Review?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hmj1026-dhpk-security-review)More formats (shields.io, HTML) on the badges page.
---
name: dhpk-security-review
description: "Security review (OWASP Top 10), codex-free. Use when: security audit, dependency vulnerability check, security-sensitive changes. For a Codex-driven audit, use /dhpk:codex-security instead. Not for: code review (use dhpk-change-review), test review (use dhpk-test-review). Output: security findings + audit report."
metadata:
dhpk-invocation-class: "implicit-eligible"
---
# Security Review Skill
## When NOT to Use
- General code review (use `dhpk-change-review`)
- Functional testing (use `dhpk-test-review`)
- Performance issues (not security-related)
## Codex isolation
This skill is **codex-free**: the OWASP Top 10 audit is performed inline (it runs in
an isolated read-only fork; apply the OWASP Top 10 checklist below directly against the
collected changes). It needs no Codex CLI/MCP and MUST NOT call any `mcp__codex__*`
tool — its `allowed-tools` deliberately omits it.
For a **Codex-driven** audit (independent second opinion), use the dedicated
**`/codex-security`** command instead — that command owns the `mcp__codex__*` permission
and drives the Codex review. `/dhpk:do --codex` routes security tasks there.
## Commands
| Command | Purpose | When |
| ----------------- | ----------------------------------------- | --------------------------- |
| `/dhpk:dhpk-security-review`| OWASP Top 10 audit — codex-free (inline) | Security-sensitive code |
| `/codex-security` | OWASP audit via Codex | Want a Codex second opinion |
| `/dep-audit` | Dependency security audit | Periodic / PR |
## Workflow
```
Determine scope → Collect changes → inline OWASP review → Findings + Gate → Loop if Must fix
```
### Step 1: Determine Scope
Parse `--scope` from arguments, default to `src/`.
### Step 2: Collect Code Changes
Priority order:
1. Uncommitted changes: `git diff HEAD -- <scope> | head -1500`
2. Recent commits: `git diff HEAD~5..HEAD -- <scope> | head -1500`
3. Key security files: `Glob("**/*{auth,login,password,token,secret,key,credential}*")`
### Step 3: OWASP Security Review (inline)
Apply the OWASP Top 10 checklist below directly against the collected changes. For each
category, inspect the relevant code paths (auth, input handling, sensitive data,
dependencies) and record any finding with severity. No Codex.
(For a Codex-driven audit, stop here and use `/codex-security` instead.)
### Step 4: Consolidate Output
Organize results into findings summary table + detailed findings + gate.
## OWASP Top 10
| Code | Category | Check Focus |
| ---- | ------------------ | ------------------------------------ |
| A01 | Broken Access Ctrl | IDOR, permission bypass, CORS |
| A02 | Crypto Failures | Sensitive data encryption, weak crypto |
| A03 | Injection | SQL/NoSQL/Cmd Injection |
| A04 | Insecure Design | Rate Limiting, business logic |
| A05 | Misconfiguration | Debug mode, default passwords |
| A06 | Vulnerable Comp | Known vulnerable dependencies |
| A07 | Auth Failures | Brute force, session, weak passwords |
| A08 | Integrity Failures | Deserialization, CI/CD |
| A09 | Logging Failures | Sensitive data in logs, auditing |
| A10 | SSRF | URL validation, internal network access |
## Output
Return a findings summary table, detailed evidence with file and line
locations, severity (P0/P1/P2), actionable remediation, verification method,
and an explicit `Mergeable` or `Must fix` gate. A dependency-only audit must
also state the command, advisory scope, and whether the result is advisory.
## Review Loop
Auto-loop semantics: `${CLAUDE_PLUGIN_ROOT}/rules/execution-policy.md` §Anti-loop & output.
⛔ Must fix → fix P0 issues → re-audit the fixed code inline → repeat until ✅ Mergeable.
Max 3 rounds. Still failing → report blocker.
## Verification
- [ ] Each issue tagged with severity (P0/P1/P2)
- [ ] Gate is explicit (✅ Mergeable / ⛔ Must fix)
- [ ] Fix recommendations are specific and actionable
- [ ] Includes verification test method
- [ ] Auth / input / sensitive-data code paths inspected inline
## References
- OWASP prompt: `references/codex-prompt-security.md`
- Examples: `references/examples.md`
## Examples
```
Input: /dhpk:dhpk-security-review --scope src/controller/
Action: inline OWASP Top 10 check → output issues + Gate
Input: /dep-audit --level high
Action: npm audit → filter high/critical → output report
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!