Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 14k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-scan

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install security-diff-scan in Claude Code

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

A

No 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 →

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.

security-diff-scan Install

Add to stack

Loading.