security-scan
Find vulnerabilities in the current source of a whole repository or selected paths. This is the default single-pass audit. Use the diff skill for PR, commit, branch, or working-tree changes and the deep skill for an explicitly requested deep scan.
How do I install this agent skill?
npx skills add https://github.com/openai/codex-security --skill security-scanIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates security audits on repository source code. It can run commands on the local host to map files and generate diffs, and it can perform authorized network reads to gather audit context. Because it processes untrusted repository data and requires host filesystem access, it should be used in an appropriately scoped environment with least-privilege permissions.
- Socketpass
No alerts
- Snykfail
Risk: CRITICAL · 4 issues
What does this agent skill do?
Security Scan
Find vulnerabilities an attacker could actually exploit. Start from code that accepts untrusted input or exercises authority. Follow it to the operation it controls. Check the real enforcement point, its callers, and the strongest evidence that the suspected attack is blocked. For an exposed credential, the relevant path is who can read it and what access it grants.
Use the core audit for the independent baseline, focused investigations, and validation. Give reviewers the authorized source and security context. Keep scan administration in the parent. Report findings with source lines and concrete impact. Record what you reviewed and what remains uncertain.
Run the audit
Bind the target and scope before reading source. If the SDK supplied CODEX_SECURITY_SCAN_ID and CODEX_SECURITY_SCAN_DIR, follow its launch instructions or the SDK handoff. For a native scan, use the standard-scan topic in the runtime instructions for startup and checkpoints. Require a running Standard scan, follow the account access advisory when directed at launch, and resume the saved phase using managed scan progress.
Keep the target read-only and review its current source offline. Preserve exact user context as analysis data. Only the parent may read an explicitly supplied URL, once, if the user explicitly authorized that read. Do not follow links. Pass the scan’s existing investigation allowance unchanged to workers and resumes. Use the supplied reviewer feedback and grading criteria, or the bundled severity rubric for default grading.
Start the independent audit while mapping the repository. At the first usable threat model, follow save scan results. Checkpoint candidates as they arrive. Once assigned reviews return, validate each distinct broken control once and submit the findings and honest coverage to the same scan. The SDK owns finalization for its scans.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/openai/codex-security/security-scan">View security-scan on skillZs</a>