1# Scan code changes for security | Codex use cases1---
2 2name: Scan code changes for security
3Codex use cases3tagline: Review a pull request or local diff for security regressions.
4 4summary: Use the Codex Security plugin to examine a Git-backed change set,
55 validate plausible security regressions, and produce an evidence-based report
6 6 before merge.
77skills:
8 8 - token: $codex-security:security-diff-scan
9Codex use case9 url: /codex/security/plugin
10 10 description: Review a pull request, commit, branch diff, or working-tree patch
11# Scan code changes for security11 for security regressions with validation and attack-path evidence.
12 12bestFor:
13Review a pull request or local diff for security regressions.13 - Pull requests that touch authentication, authorization, parsing, file
14 14 access, secrets, or privileged workflows.
15Difficulty **Intermediate**15 - Release branches or local patches that need a security-focused check before
16 16 merge.
17Time horizon **30m**17 - Reviewers who need findings anchored to changed code and directly supporting
18 18 files.
19Use the Codex Security plugin to examine a Git-backed change set, validate plausible security regressions, and produce an evidence-based report before merge.19starterPrompt:
20 20 title: Review a Change for Security Regressions
21## Best for21 body: >-
22 22 /goal Scan this PR, commit, branch diff, or working-tree patch for security
23- Pull requests that touch authentication, authorization, parsing, file access, secrets, or privileged workflows.23 regressions. Do not stop until all in-scope changed files are covered and
24- Release branches or local patches that need a security-focused check before merge.24 all required steps are complete.
25- Reviewers who need findings anchored to changed code and directly supporting files.25
26 26
27# Contents27 Scope and rules:
28 28
29[← All use cases](https://developers.openai.com/codex/use-cases)29 - Target: [this pull request / commit SHA / branch diff from BASE to HEAD /
30 30 the current working-tree patch]
31Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/scan-code-changes-for-security/?export=pdf)31
32 32 - I am authorized to assess this repository and change set.
33Use the Codex Security plugin to examine a Git-backed change set, validate plausible security regressions, and produce an evidence-based report before merge.33
34 34 - Pay particular attention to [auth, input handling, secrets, filesystem,
35Intermediate35 network, dependencies, or other sensitive surface].
36 36
3730m37 - Keep this pass read-only; do not modify code or open a pull request.
38 38
39Related links39
40 40 Return the final Markdown report and any Codex app review directives for
41[Codex Security plugin](https://developers.openai.com/codex/security/plugin) [Review GitHub pull requests](https://developers.openai.com/codex/use-cases/github-code-reviews) [Agent approvals and security](https://developers.openai.com/codex/agent-approvals-security)41 findings that require human review.
42 42 suggestedEffort: high
43## Best for43relatedLinks:
44 44 - label: Codex Security plugin
45- Pull requests that touch authentication, authorization, parsing, file access, secrets, or privileged workflows.45 url: /codex/security/plugin
46- Release branches or local patches that need a security-focused check before merge.46 - label: Review GitHub pull requests
47- Reviewers who need findings anchored to changed code and directly supporting files.47 url: /codex/use-cases/github-code-reviews
48 48 - label: Agent approvals and security
49## Skills & Plugins49 url: /codex/agent-approvals-security
50 50---
51- [Codex Security:security Diff Scan](https://developers.openai.com/codex/security/plugin)
52
53 Review a pull request, commit, branch diff, or working-tree patch for security regressions with validation and attack-path evidence.
54
55| Skill | Why use it |
56| --- | --- |
57| [Codex Security:security Diff Scan](https://developers.openai.com/codex/security/plugin) | Review a pull request, commit, branch diff, or working-tree patch for security regressions with validation and attack-path evidence. |
58
59## Starter prompt
60
61/goal Scan this PR, commit, branch diff, or working-tree patch for security regressions. Do not stop until all in-scope changed files are covered and all required steps are complete.
62Scope and rules:
63- Target: [this pull request / commit SHA / branch diff from BASE to HEAD / the current working-tree patch]
64- I am authorized to assess this repository and change set.
65- Pay particular attention to [auth, input handling, secrets, filesystem, network, dependencies, or other sensitive surface].
66- Keep this pass read-only; do not modify code or open a pull request.
67Return the final Markdown report and any Codex app review directives for findings that require human review.
68
69Open in the Codex app
70
71/goal Scan this PR, commit, branch diff, or working-tree patch for security regressions. Do not stop until all in-scope changed files are covered and all required steps are complete.
72Scope and rules:
73- Target: [this pull request / commit SHA / branch diff from BASE to HEAD / the current working-tree patch]
74- I am authorized to assess this repository and change set.
75- Pay particular attention to [auth, input handling, secrets, filesystem, network, dependencies, or other sensitive surface].
76- Keep this pass read-only; do not modify code or open a pull request.
77Return the final Markdown report and any Codex app review directives for findings that require human review.
78 51
79## Review the change instead of the whole repository52## Review the change instead of the whole repository
80 53
102fix task with the finding identifier or the relevant report section.79fix task with the finding identifier or the relevant report section.
103See [Remediate a vulnerability backlog](https://developers.openai.com/codex/use-cases/remediate-vulnerability-backlog)80See [Remediate a vulnerability backlog](https://developers.openai.com/codex/use-cases/remediate-vulnerability-backlog)
104for the fix-and-validation loop.81for the fix-and-validation loop.
105
106## Related use cases
107
108[
109
110### Run a deep security scan
111
112Use the Codex Security plugin to run a higher-recall, repository-wide audit that repeats...
113
114Engineering Quality](https://developers.openai.com/codex/use-cases/deep-security-scan)[
115
116### Audit dependency incidents
117
118Use Codex to turn a public package or supply chain advisory into a read-only audit, then...
119
120Engineering Quality](https://developers.openai.com/codex/use-cases/dependency-incident-audits)[
121
122### Remediate a vulnerability backlog
123
124Bring in approved findings from ticketing tools or vulnerability reporting systems, then use...
125
126Engineering Quality](https://developers.openai.com/codex/use-cases/remediate-vulnerability-backlog)
127