security-diff-scan
Skill by openai
Reviews a pull request, commit, branch diff, or working-tree patch for security vulnerabilities. It is for developers and reviewers who want changed code checked for security issues.
Install security-diff-scan
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/codex-security /tmp/codex-security && mkdir -p ~/.claude/skills && cp -r /tmp/codex-security/plugins/codex-security/skills/security-diff-scan ~/.claude/skills/security-diff-scanRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openai/codex-security /tmp/codex-security && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/codex-security/plugins/codex-security/skills/security-diff-scan ~/.gemini/antigravity-cli/skills/security-diff-scanAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Security Diff Scan reviews a pull request, commit, branch diff, or working-tree patch for security vulnerabilities. It inventories every changed text file, including deleted files, and follows changed behavior into supporting code. It does not expand into an unrelated repository audit. It applies relevant SECURITY.md guidance and keeps the exact Git range or local patch unchanged during the review.
The scan runs in phases: a threat model, finding discovery across the changed files, validation of candidates, and attack-path analysis for candidates marked reportable or deferred. Progress and checkpoints are saved through the host's scan runtime. Workers stay offline. Files or candidates that are not finished are reported as unfinished, not as clean.
Written from the project's SKILL.md and checked against it.
What it can do
- Changed file inventoryPrepares the list of changed text files and reads all pages of it for review.
- Threat modelRuns a threat model of the repository, or uses a model supplied by the user.
- Finding discoverySearches the changed files for candidate security vulnerabilities.
- Validation and attack-path analysisChecks candidates and analyzes attack paths for reportable or deferred ones.
- prepare_codex_security_review_itemsPrepares the changed-file review items for the scan.
- record_codex_security_discovery_candidatesRecords discovery candidates once so they are kept addressable.
What you need
- A host-supplied scan runtime
- A Git range or local patch to review
Try asking
- Review this pull request for security vulnerabilities
- Scan the diff between my branch and main for security issues
- Check my uncommitted working-tree patch for security problems
Good to know
- Workers stay offline during the scan
- The review covers changed files and only supporting code needed to explain changed behavior
- Cancellation happens only when the user explicitly cancels the scan
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/codex-security/skills/security-diff-scan/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
agents/openai.yaml284 B -
references/compact-phases.md2 KB
Alternatives to security-diff-scan
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
security-diff-scan: common questions
Does it review deleted files?
Yes. The source says every changed text file is reviewed, including deleted files, which are inspected at the baseline revision.
Does it audit the whole repository?
No. The source says it follows changed behavior into supporting code without expanding into an unrelated repository audit.
What happens if the review cannot finish?
The source says every changed file and candidate must be reviewed, resolved, or explicitly marked unfinished, so an incomplete review is not reported as having no findings.
How do I install security-diff-scan?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is security-diff-scan free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is security-diff-scan safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to security-diff-scan?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
