SpyBara
Go Premium

Documentation 2026-11-10 23:57 UTC to 2026-11-11 23:00 UTC

31 files changed +204 −445. View all changes and history on the product overview
2026
Thu 26 23:00 Wed 25 23:02 Tue 24 23:01 Mon 23 23:58 Fri 20 23:59 Thu 19 23:02 Wed 18 22:59 Tue 17 22:59 Mon 16 23:00 Sun 15 23:01 Sat 14 23:01 Fri 13 23:58 Thu 12 22:58 Wed 11 23:00 Tue 10 23:57 Mon 9 23:02 Fri 6 23:02 Thu 5 23:03 Wed 4 23:02 Tue 3 23:57 Mon 2 23:02
Details

341Prompt-build, review-session, and parse failures fail closed. Timeouts are341Prompt-build, review-session, and parse failures fail closed. Timeouts are

342surfaced separately, but the action still does not run.342surfaced separately, but the action still does not run.

343 343 

344To add rules or replace the policy locally or across an organization, see344To replace the policy locally or across an organization, see

345[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).345[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).

346 346 

347In the ChatGPT desktop app, these reviews appear as Auto-review items with a status347In the ChatGPT desktop app, these reviews appear as Auto-review items with a status

Details

310 310 

311Request access through the [enterprise Daybreak application](https://openai.com/form/enterprise-trusted-access-for-cyber/) or your OpenAI account team. After approval,311Request access through the [enterprise Daybreak application](https://openai.com/form/enterprise-trusted-access-for-cyber/) or your OpenAI account team. After approval,

312work with your AWS account team to provision the model on Amazon Bedrock.312work with your AWS account team to provision the model on Amazon Bedrock.

313GPT-5.6-Cyber requires separate model-specific approval beyond Daybreak Red.

314Confirm the [Daybreak access requirements](https://help.openai.com/en/articles/20001258-openai-daybreak-trusted-access-for-cyber-overview) with your OpenAI account team.

315 313 

316After provisioning, select Daybreak Blue explicitly in `~/.codex/config.toml`:314After provisioning, select Daybreak Blue explicitly in `~/.codex/config.toml`:

317 315 


658 bedrock: "unavailable",656 bedrock: "unavailable",

659 },657 },

660 },658 },

661 {

662 name: "GitHub issue and PR delegation with `@codex`",

663 shortName: "GitHub delegation",

664 href: "/codex/third-party/github#give-codex-other-tasks",

665 availability: {

666 bedrock: "unavailable",

667 },

668 },

669 {659 {

670 name: "GitHub code review and automatic PR reviews",660 name: "GitHub code review and automatic PR reviews",

671 shortName: "GitHub PR reviews",661 shortName: "GitHub PR reviews",


774 },764 },

775 },765 },

776 {766 {

777 name: "Codex Security cloud for connected GitHub repositories",767 name: "Daybreak Defense Factory for connected GitHub repositories",

778 shortName: "Codex Security cloud",768 shortName: "Daybreak Defense Factory",

779 href: "/codex/security/setup",769 href: "/codex/security/setup",

780 availability: {770 availability: {

781 bedrock: "unavailable",771 bedrock: "unavailable",

Details

36- **Repeated mistakes**: If the agent makes the same mistake repeatedly, add a rule.36- **Repeated mistakes**: If the agent makes the same mistake repeatedly, add a rule.

37- **Too much reading**: If it finds the right files but reads too many documents, add routing guidance (which directories/files to prioritize).37- **Too much reading**: If it finds the right files but reads too many documents, add routing guidance (which directories/files to prioritize).

38- **Recurring PR feedback**: If you leave the same feedback more than once, codify it.38- **Recurring PR feedback**: If you leave the same feedback more than once, codify it.

39- **In GitHub**: In a pull request comment, tag `@codex` with a request (for example, `@codex add this to AGENTS.md`) to delegate the update to a cloud chat.

40- **Automate drift checks**: Use [scheduled tasks](https://learn.chatgpt.com/docs/automations) to run recurring checks (for example, daily) that look for guidance gaps and suggest what to add to `AGENTS.md`.39- **Automate drift checks**: Use [scheduled tasks](https://learn.chatgpt.com/docs/automations) to run recurring checks (for example, daily) that look for guidance gaps and suggest what to add to `AGENTS.md`.

41 40 

42Pair `AGENTS.md` with infrastructure that enforces those rules: pre-commit hooks, linters, and type checkers catch issues before you see them, so the system gets smarter about preventing recurring mistakes.41Pair `AGENTS.md` with infrastructure that enforces those rules: pre-commit hooks, linters, and type checkers catch issues before you see them, so the system gets smarter about preventing recurring mistakes.

Details

133the reviewer model's default policy when available. Otherwise, it uses the133the reviewer model's default policy when available. Otherwise, it uses the

134[bundled policy (`policy.md`)](https://github.com/openai/codex/blob/rust-v0.167.0/codex-rs/prompts/templates/guardian/policy.md).134[bundled policy (`policy.md`)](https://github.com/openai/codex/blob/rust-v0.167.0/codex-rs/prompts/templates/guardian/policy.md).

135 135 

136**To add rules**, set `extra_policy` under `[auto_review]` in local136To replace the policy, copy the complete policy you want to adapt. If you

137`config.toml`, or set the top-level `guardian_extra_policy` in managed

138`requirements.toml`. Codex applies these rules alongside the active policy.

139 

140**To replace the policy**, copy the complete policy you want to adapt. If you

141use the bundled default, copy the full contents of `policy.md`. Edit the rules137use the bundled default, copy the full contents of `policy.md`. Edit the rules

142you want to change, then put the full text in local `[auto_review].policy` or138you want to change, then put the full text in local `[auto_review].policy` or

143managed `guardian_policy_config`. Omitted rules drop out of the replacement.139managed `guardian_policy_config`. Omitted rules drop out of the replacement.

144Codex still uses the reviewer's template and response format.140Codex still uses the reviewer's template and response format.

145 141 

146Codex resolves the two settings independently and ignores blank values.

147Managed `guardian_policy_config` takes precedence over local `[auto_review].policy`.142Managed `guardian_policy_config` takes precedence over local `[auto_review].policy`.

148Managed `guardian_extra_policy` takes precedence over local `[auto_review].extra_policy`.143Codex ignores blank policy values.

149For example, if your organization sets only a replacement policy, your local

150`extra_policy` still adds rules to it.

151 144 

152For organization-wide setup, see145For organization-wide setup, see

153[Configure Auto-review policy](https://learn.chatgpt.com/docs/enterprise/managed-configuration#configure-auto-review-policy).146[Configure Auto-review policy](https://learn.chatgpt.com/docs/enterprise/managed-configuration#configure-auto-review-policy).


160keep production systems, unrelated hosts, credentials, and persistent changes153keep production systems, unrelated hosts, credentials, and persistent changes

161out of scope unless explicitly authorized.154out of scope unless explicitly authorized.

162 155 

163This local `config.toml` example enables Auto-review and adds engagement156This local `config.toml` example enables Auto-review and selects the workspace

164rules to the active policy. Replace the example target and actions with your157permission profile.

165approved scope.

166 158 

167```toml159```toml

168approval_policy = "on-request"160approval_policy = "on-request"

169approvals_reviewer = "auto_review"161approvals_reviewer = "auto_review"

170default_permissions = ":workspace"162default_permissions = ":workspace"

171 

172[auto_review]

173extra_policy = """

174## Environment Profile

175- Authorized target: lab.example.com.

176- Approved actions: inspect the target, reproduce authorized vulnerabilities,

177 and validate fixes within the documented engagement window.

178 

179## Tenant Risk Taxonomy and Allow/Deny Rules

180- Allow only actions against the approved target that match the documented

181 engagement scope and approved actions.

182- Deny out-of-scope or unknown hosts, production access, credential theft,

183 persistence, data exfiltration, destructive operations, and policy bypass.

184- Deny ambiguous actions and high-impact changes until a human explicitly

185 approves the exact target, action, and side effects.

186"""

187```163```

188 164 

189Enforce target restrictions with independent filesystem and network rules.165Enforce target restrictions with independent filesystem and network rules.

190For an organization, put the same engagement rules in the top-level166The following managed `requirements.toml` example requires Auto-review and

191`guardian_extra_policy` in managed `requirements.toml`. The following167restricts the available permission profiles.

192requirements select Auto-review and restrict the available permission profiles.

193 168 

194```toml169```toml

195allowed_approval_policies = ["on-request"]170allowed_approval_policies = ["on-request"]

Details

370You can also use a granular approval policy (`approval_policy = { granular = { ... } }`) to allow or auto-reject individual prompt categories. This is useful when you want normal interactive approvals for some cases but want others, such as `request_permissions` or skill-script prompts, to fail closed automatically.370You can also use a granular approval policy (`approval_policy = { granular = { ... } }`) to allow or auto-reject individual prompt categories. This is useful when you want normal interactive approvals for some cases but want others, such as `request_permissions` or skill-script prompts, to fail closed automatically.

371 371 

372Set `approvals_reviewer = "auto_review"` to route eligible interactive approval372Set `approvals_reviewer = "auto_review"` to route eligible interactive approval

373requests through Auto-review. To add rules or replace the reviewer policy, see373requests through Auto-review. To replace the reviewer policy, see

374[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).374[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).

375 375 

376```toml376```toml

Details

370You can also use a granular approval policy (`approval_policy = { granular = { ... } }`) to allow or auto-reject individual prompt categories. This is useful when you want normal interactive approvals for some cases but want others, such as `request_permissions` or skill-script prompts, to fail closed automatically.370You can also use a granular approval policy (`approval_policy = { granular = { ... } }`) to allow or auto-reject individual prompt categories. This is useful when you want normal interactive approvals for some cases but want others, such as `request_permissions` or skill-script prompts, to fail closed automatically.

371 371 

372Set `approvals_reviewer = "auto_review"` to route eligible interactive approval372Set `approvals_reviewer = "auto_review"` to route eligible interactive approval

373requests through Auto-review. To add rules or replace the reviewer policy, see373requests through Auto-review. To replace the reviewer policy, see

374[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).374[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration).

375 375 

376```toml376```toml

Details

205 description:205 description:

206 "Markdown text that replaces the default Auto-review policy. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",206 "Markdown text that replaces the default Auto-review policy. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",

207 },207 },

208 {

209 key: "auto_review.extra_policy",

210 type: "string",

211 description:

212 "Markdown rules that Auto-review applies alongside the active policy. Managed `guardian_extra_policy` takes precedence. Blank values are ignored.",

213 },

214 {208 {

215 key: "allow_login_shell",209 key: "allow_login_shell",

216 type: "boolean",210 type: "boolean",


2240 description:2234 description:

2241 "Managed Markdown text that replaces the default Auto-review policy. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",2235 "Managed Markdown text that replaces the default Auto-review policy. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",

2242 },2236 },

2243 {

2244 key: "guardian_extra_policy",

2245 type: "string",

2246 description:

2247 "Managed Markdown rules that Auto-review applies alongside the active policy. This takes precedence over local `[auto_review].extra_policy`. Blank values are ignored.",

2248 },

2249 {2237 {

2250 key: "additional_developer_instructions",2238 key: "additional_developer_instructions",

2251 type: "string",2239 type: "string",

Details

205 description:205 description:

206 "Markdown text that replaces the default Auto-review policy. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",206 "Markdown text that replaces the default Auto-review policy. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",

207 },207 },

208 {

209 key: "auto_review.extra_policy",

210 type: "string",

211 description:

212 "Markdown rules that Auto-review applies alongside the active policy. Managed `guardian_extra_policy` takes precedence. Blank values are ignored.",

213 },

214 {208 {

215 key: "allow_login_shell",209 key: "allow_login_shell",

216 type: "boolean",210 type: "boolean",


2240 description:2234 description:

2241 "Managed Markdown text that replaces the default Auto-review policy. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",2235 "Managed Markdown text that replaces the default Auto-review policy. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",

2242 },2236 },

2243 {

2244 key: "guardian_extra_policy",

2245 type: "string",

2246 description:

2247 "Managed Markdown rules that Auto-review applies alongside the active policy. This takes precedence over local `[auto_review].extra_policy`. Blank values are ignored.",

2248 },

2249 {2237 {

2250 key: "additional_developer_instructions",2238 key: "additional_developer_instructions",

2251 type: "string",2239 type: "string",

Details

36- **Repeated mistakes**: If the agent makes the same mistake repeatedly, add a rule.36- **Repeated mistakes**: If the agent makes the same mistake repeatedly, add a rule.

37- **Too much reading**: If it finds the right files but reads too many documents, add routing guidance (which directories/files to prioritize).37- **Too much reading**: If it finds the right files but reads too many documents, add routing guidance (which directories/files to prioritize).

38- **Recurring PR feedback**: If you leave the same feedback more than once, codify it.38- **Recurring PR feedback**: If you leave the same feedback more than once, codify it.

39- **In GitHub**: In a pull request comment, tag `@codex` with a request (for example, `@codex add this to AGENTS.md`) to delegate the update to a cloud chat.

40- **Automate drift checks**: Use [scheduled tasks](https://learn.chatgpt.com/docs/automations) to run recurring checks (for example, daily) that look for guidance gaps and suggest what to add to `AGENTS.md`.39- **Automate drift checks**: Use [scheduled tasks](https://learn.chatgpt.com/docs/automations) to run recurring checks (for example, daily) that look for guidance gaps and suggest what to add to `AGENTS.md`.

41 40 

42Pair `AGENTS.md` with infrastructure that enforces those rules: pre-commit hooks, linters, and type checkers catch issues before you see them, so the system gets smarter about preventing recurring mistakes.41Pair `AGENTS.md` with infrastructure that enforces those rules: pre-commit hooks, linters, and type checkers catch issues before you see them, so the system gets smarter about preventing recurring mistakes.

Details

525### Configure Auto-review policy525### Configure Auto-review policy

526 526 

527To make Auto-review the default, select **Global** > **Defaults** > **Command execution** > **Approval reviewer**. Users can still choose another permitted527To make Auto-review the default, select **Global** > **Defaults** > **Command execution** > **Approval reviewer**. Users can still choose another permitted

528reviewer. To require Auto-review or supply organization-wide rules, select528reviewer. To require Auto-review or replace the reviewer policy, select

529**Edit as TOML** and edit Global `requirements.toml`. Browser actions have529**Edit as TOML** and edit Global `requirements.toml`. Browser actions have

530separate Auto-review controls.530separate Auto-review controls.

531 531 

532The following example requires Auto-review for eligible approval requests and532The following example requires Auto-review for eligible approval requests.

533adds an organization-specific rule to the active policy. To also allow manual533To also allow manual approval, include `"user"` in `allowed_approvals_reviewers`.

534approval, include `"user"` in `allowed_approvals_reviewers`.

535 534 

536```toml535```toml

537allowed_approval_policies = ["on-request"]536allowed_approval_policies = ["on-request"]

538allowed_approvals_reviewers = ["auto_review"]537allowed_approvals_reviewers = ["auto_review"]

539 

540guardian_extra_policy = """

541Deny uploads of build artifacts to destinations outside artifacts.example.com.

542"""

543```538```

544 539 

545To replace the entire policy, use `guardian_policy_config`. See540To replace the entire policy, use `guardian_policy_config`. See

546[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration) for541[Auto-review configuration](https://learn.chatgpt.com/docs/sandboxing/auto-review#configuration) for

547the default policy, how to prepare a replacement, and which managed settings542the default policy and how to prepare a replacement.

548take precedence over local ones.

549 543 

550### Control available permission profiles544### Control available permission profiles

551 545 

Details

208 208 

209If a repository is missing, check the designated account’s GitHub access and the app’s allowed actions in ChatGPT.209If a repository is missing, check the designated account’s GitHub access and the app’s allowed actions in ChatGPT.

210 210 

211Codex Security Cloud uses a personal GitHub connection. See [Cloud setup](https://learn.chatgpt.com/docs/security/setup#2-connect-github).211Daybreak Defense Factory uses a personal GitHub connection. See [Cloud setup](https://learn.chatgpt.com/docs/security/setup#2-connect-github).

212 212 

213 213 

214 214 

Details

171on the pull request. Open the associated Codex task and select the **Security171on the pull request. Open the associated Codex task and select the **Security

172Report** tab to view the full report.172Report** tab to view the full report.

173 173 

174## Act on review findings

175 

176After Codex posts a review, you can ask it to fix issues in the same pull

177request by leaving another comment:

178 

179```md

180@codex fix the P1 issue

181```

182 

183Codex starts a [legacy cloud chat](https://learn.chatgpt.com/docs/environments/cloud-environment) with the pull request as context and can push a fix

184back to the branch when it has permission to do so.

185 

186## Give Codex other tasks

187 

188If you mention `@codex` in a comment with anything other than `review`, Codex starts a [legacy cloud chat](https://learn.chatgpt.com/docs/environments/cloud-environment) using your pull request as context.

189 

190```md

191@codex fix the CI failures

192```

193 

194## Troubleshoot code review174## Troubleshoot code review

195 175 

196If Codex doesn't react or post a review:176If Codex doesn't react or post a review:

Details

133the reviewer model's default policy when available. Otherwise, it uses the133the reviewer model's default policy when available. Otherwise, it uses the

134[bundled policy (`policy.md`)](https://github.com/openai/codex/blob/rust-v0.167.0/codex-rs/prompts/templates/guardian/policy.md).134[bundled policy (`policy.md`)](https://github.com/openai/codex/blob/rust-v0.167.0/codex-rs/prompts/templates/guardian/policy.md).

135 135 

136**To add rules**, set `extra_policy` under `[auto_review]` in local136To replace the policy, copy the complete policy you want to adapt. If you

137`config.toml`, or set the top-level `guardian_extra_policy` in managed

138`requirements.toml`. Codex applies these rules alongside the active policy.

139 

140**To replace the policy**, copy the complete policy you want to adapt. If you

141use the bundled default, copy the full contents of `policy.md`. Edit the rules137use the bundled default, copy the full contents of `policy.md`. Edit the rules

142you want to change, then put the full text in local `[auto_review].policy` or138you want to change, then put the full text in local `[auto_review].policy` or

143managed `guardian_policy_config`. Omitted rules drop out of the replacement.139managed `guardian_policy_config`. Omitted rules drop out of the replacement.

144Codex still uses the reviewer's template and response format.140Codex still uses the reviewer's template and response format.

145 141 

146Codex resolves the two settings independently and ignores blank values.

147Managed `guardian_policy_config` takes precedence over local `[auto_review].policy`.142Managed `guardian_policy_config` takes precedence over local `[auto_review].policy`.

148Managed `guardian_extra_policy` takes precedence over local `[auto_review].extra_policy`.143Codex ignores blank policy values.

149For example, if your organization sets only a replacement policy, your local

150`extra_policy` still adds rules to it.

151 144 

152For organization-wide setup, see145For organization-wide setup, see

153[Configure Auto-review policy](https://learn.chatgpt.com/docs/enterprise/managed-configuration#configure-auto-review-policy).146[Configure Auto-review policy](https://learn.chatgpt.com/docs/enterprise/managed-configuration#configure-auto-review-policy).


160keep production systems, unrelated hosts, credentials, and persistent changes153keep production systems, unrelated hosts, credentials, and persistent changes

161out of scope unless explicitly authorized.154out of scope unless explicitly authorized.

162 155 

163This local `config.toml` example enables Auto-review and adds engagement156This local `config.toml` example enables Auto-review and selects the workspace

164rules to the active policy. Replace the example target and actions with your157permission profile.

165approved scope.

166 158 

167```toml159```toml

168approval_policy = "on-request"160approval_policy = "on-request"

169approvals_reviewer = "auto_review"161approvals_reviewer = "auto_review"

170default_permissions = ":workspace"162default_permissions = ":workspace"

171 

172[auto_review]

173extra_policy = """

174## Environment Profile

175- Authorized target: lab.example.com.

176- Approved actions: inspect the target, reproduce authorized vulnerabilities,

177 and validate fixes within the documented engagement window.

178 

179## Tenant Risk Taxonomy and Allow/Deny Rules

180- Allow only actions against the approved target that match the documented

181 engagement scope and approved actions.

182- Deny out-of-scope or unknown hosts, production access, credential theft,

183 persistence, data exfiltration, destructive operations, and policy bypass.

184- Deny ambiguous actions and high-impact changes until a human explicitly

185 approves the exact target, action, and side effects.

186"""

187```163```

188 164 

189Enforce target restrictions with independent filesystem and network rules.165Enforce target restrictions with independent filesystem and network rules.

190For an organization, put the same engagement rules in the top-level166The following managed `requirements.toml` example requires Auto-review and

191`guardian_extra_policy` in managed `requirements.toml`. The following167restricts the available permission profiles.

192requirements select Auto-review and restrict the available permission profiles.

193 168 

194```toml169```toml

195allowed_approval_policies = ["on-request"]170allowed_approval_policies = ["on-request"]

security.md +4 −4

Details

9## Choose where to start9## Choose where to start

10 10 

11| Use | When you want to | Start here |11| Use | When you want to | Start here |

12| --------------------- | ------------------------------------------------------------------------- | --------------------------------------------------- |12| ------------------------ | ------------------------------------------------------------------------- | --------------------------------------------------- |

13| Codex Security Cloud | Scan connected GitHub repositories in Codex cloud or monitor new commits. | [Cloud setup](https://learn.chatgpt.com/docs/security/setup) |13| Daybreak Defense Factory | Scan connected GitHub repositories in Codex cloud or monitor new commits. | [Cloud setup](https://learn.chatgpt.com/docs/security/setup) |

14| Codex Security plugin | Scan a local repository in Codex and work through findings interactively. | [Run your first local scan](https://learn.chatgpt.com/docs/security/plugin) |14| Codex Security plugin | Scan a local repository in Codex and work through findings interactively. | [Run your first local scan](https://learn.chatgpt.com/docs/security/plugin) |

15| Codex Security CLI | Run repeatable terminal scans or add checks to CI. | [CLI quickstart](https://learn.chatgpt.com/docs/security/cli) |15| Codex Security CLI | Run repeatable terminal scans or add checks to CI. | [CLI quickstart](https://learn.chatgpt.com/docs/security/cli) |

16| Codex Security SDK | Run scans and handle results in an application or developer tool. | [SDK guide](https://learn.chatgpt.com/docs/security/sdk) |16| Codex Security SDK | Run scans and handle results in an application or developer tool. | [SDK guide](https://learn.chatgpt.com/docs/security/sdk) |


23The Codex Security CLI and SDK are distributed in the public [@openai/codex-security package](https://github.com/openai/codex-security). Scans using OpenAI inference require Codex Security access. See each quickstart for its23The Codex Security CLI and SDK are distributed in the public [@openai/codex-security package](https://github.com/openai/codex-security). Scans using OpenAI inference require Codex Security access. See each quickstart for its

24runtime and authentication requirements.24runtime and authentication requirements.

25 25 

26Codex Security Cloud is a separate plugin, available in research preview on26Daybreak Defense Factory is a separate plugin, available in research preview on

27the web and in the desktop app. It requires workspace access, a GitHub27the web and in the desktop app. It requires workspace access, a GitHub

28connection, and a compatible Codex cloud environment. You can connect the28connection, and a compatible Codex cloud environment. You can connect the

29repository and create an environment during setup.29repository and create an environment during setup.

30 30 

31<figure className="not-prose my-8">31<figure className="not-prose my-8">

32 <CodexScreenshot32 <CodexScreenshot

33 alt="Codex Security Cloud overview with repository counts, finding statuses, and findings that need attention"33 alt="Daybreak Defense Factory overview with repository counts, finding statuses, and findings that need attention"

34 lightSrc={cloudOverview.src}34 lightSrc={cloudOverview.src}

35 darkSrc={cloudOverview.src}35 darkSrc={cloudOverview.src}

36 variant="no-wallpaper"36 variant="no-wallpaper"

Details

89 icon: "code",89 icon: "code",

90 },90 },

91 {91 {

92 title: "Codex Security Cloud setup",92 title: "Daybreak Defense Factory setup",

93 description:93 description:

94 "Install the Cloud plugin, connect GitHub, and start a security scan.",94 "Install the plugin, connect GitHub, and start a security scan.",

95 href: "/codex/security/setup",95 href: "/codex/security/setup",

96 icon: "storage",96 icon: "storage",

97 },97 },


108 icon: "webSearch",108 icon: "webSearch",

109 },109 },

110 {110 {

111 title: "Codex Security Cloud FAQ",111 title: "Daybreak Defense Factory FAQ",

112 description:112 description:

113 "Get answers about cloud scans, findings, privacy, and access.",113 "Get answers about cloud scans, findings, privacy, and access.",

114 href: "/codex/security/faq",114 href: "/codex/security/faq",

security/cli.md +3 −0

Details

97 --auth chatgpt --output-dir "$SCAN_DIR"97 --auth chatgpt --output-dir "$SCAN_DIR"

98```98```

99 99 

100If you have Daybreak Blue access in your ChatGPT workspace, add

101`--model gpt-6-sol --cyber-access-program daybreak_blue` to the scan command.

102 

100An interactive terminal shows a live dashboard. Non-interactive terminals show progress103An interactive terminal shows a live dashboard. Non-interactive terminals show progress

101lines. Add `--headless` to use progress lines in an interactive terminal too.104lines. Add `--headless` to use progress lines in an interactive terminal too.

102The dashboard and saved logs can contain source code or credentials. Review105The dashboard and saved logs can contain source code or credentials. Review

Details

101 --workers 4101 --workers 4

102```102```

103 103 

104`--workers` controls concurrent repository scans and defaults to `4`. It does104`--workers` controls how many repositories the campaign scans at once and

105not set the number of independent standard-scan workers within each deep scan;105defaults to `4`.

106configure those limits through

107[`[deep_scan]`](/codex/security/cli/reference#configure-deep-scans). Use `--mode

108deep` to select deep scanning for rows without their own `mode`. Each CSV row

109can still choose its own scan mode and repository scope.

110 

111Set `[deep_scan].max_time_hours` to limit worker execution for each deep scan in

112the campaign. The `--max-time-hours` flag works with `scan`, not `bulk-scan`.

113 106 

114The CLI checks out each pinned revision, scans the selected target, records the107The CLI checks out each pinned revision, scans the selected target, records the

115result, and removes the temporary repository checkout. A repository counts as108result, and removes the temporary repository checkout. A repository counts as

Details

65incomplete scan can leave areas without a review even when it reports no65incomplete scan can leave areas without a review even when it reports no

66findings.66findings.

67 67 

68In the Action release `action-v0.3.0`, a completed scan means the configured analysis

69produced a valid result. Scope exclusions, deferred investigations, and other

70coverage notes do not bypass the severity policy. Scanner and required

71reporting errors fail the job. CLI `0.3.0` returns exit code `2` for input,

72execution, result-integrity, or required-output failures. Review `coverage.json` when assessing the result; completion does

73not certify that every vulnerability was found.

74 

75Configure enforcement in the [GitHub Actions68Configure enforcement in the [GitHub Actions

76guide](https://learn.chatgpt.com/docs/security/cli/ci/github#choose-a-severity-policy) or the [GitLab69guide](https://learn.chatgpt.com/docs/security/cli/ci/github#choose-a-severity-policy) or the [GitLab

77CI/CD guide](https://learn.chatgpt.com/docs/security/cli/ci/gitlab#separate-reporting-from-policy-enforcement).70CI/CD guide](https://learn.chatgpt.com/docs/security/cli/ci/gitlab#separate-reporting-from-policy-enforcement).

Details

25 25 

26## Add the GitHub Actions workflow26## Add the GitHub Actions workflow

27 27 

28**Scan costs:** These workflows use your API key and may incur charges. Both28**Scan costs:** These workflows use your API key and may incur charges. The

29 examples omit `max-cost`, so they have no estimated cost stop threshold. To29 scheduled example omits `max-cost`. The pull-request workflow sets an

30 set a threshold of $5 per scan, add `max-cost: "5"` to the Codex Security30 estimated threshold of $5 per scan. The cost of requests already in progress

31 Action's `with` settings. This isn't a hard spending cap: requests already in31 can exceed that threshold. See [Set an optional scan

32 progress can exceed it. See [Set an optional scan32 budget](#set-an-optional-scan-budget).

33 budget](#set-an-optional-scan-budget) for pricing-support requirements.

34 33 

35### Scan the repository on a schedule34### Scan the repository on a schedule

36 35 


58 runs-on: ubuntu-24.0457 runs-on: ubuntu-24.04

59 timeout-minutes: 12058 timeout-minutes: 120

60 steps:59 steps:

61 - name: Set up the Ubuntu sandbox

62 run: |

63 sudo apt-get update

64 sudo apt-get install --yes bubblewrap apparmor-profiles

65 sudo apparmor_parser -r /usr/share/apparmor/extra-profiles/bwrap-userns-restrict

66 

67 - name: Check out the repository60 - name: Check out the repository

68 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.161 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

69 with:62 with:


71 64 

72 - name: Scan the repository65 - name: Scan the repository

73 id: security66 id: security

74 uses: openai/codex-security@3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3 # action-v0.3.067 uses: openai/codex-security@a98b35d7eef9f85c298c86229445bb64ac427aaf # action-v0.9.1

75 with:68 with:

76 scope: repository69 scope: repository

77 model: gpt-6-sol70 model: gpt-6-sol


84 OPENAI_API_KEY: ${{ secrets.CODEX_SECURITY_API_KEY }}77 OPENAI_API_KEY: ${{ secrets.CODEX_SECURITY_API_KEY }}

85```78```

86 79 

87**About the version:** Both examples pin the Codex Security Action to commit80The Action checks the Codex sandbox before using the scan credential. On a

88 `3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3` for the `action-v0.3.0` release,81GitHub-hosted Ubuntu 24.04 VM, it installs the required packages and loads the

89 which installs CLI `0.3.0`. Review a newer Action release before updating the82AppArmor profile if needed. On self-hosted runners and in job containers,

90 pinned commit.83provide a working sandbox, Linux x64, Node.js 24, and Python 3.11 or later.

91 

92**Adapting the runner:** The Action needs Node.js 24 and Python 3.11 or later,

93which this runner provides. The sandbox setup installs the `bubblewrap`

94package and loads the supplied AppArmor profile before the scan. Installing

95the package alone is not enough on this runner.

96 84 

97To run the workflow manually, open **Actions → Codex Security repository →85To run the workflow manually, open **Actions → Codex Security repository →

98Run workflow**. Open a completed run to review the summary, annotations, and86Run workflow**. Open a completed run to review the summary, annotations, and


116 104 

117### Scan pull-request changes105### Scan pull-request changes

118 106 

119Using the same secret, create `.github/workflows/codex-security-pr.yml`:1071. Copy the [pull-request workflow](https://github.com/openai/codex-security/blob/a98b35d7eef9f85c298c86229445bb64ac427aaf/github-action/examples/pull-request.yml)

120 108 to `.github/workflows/codex-security-pr.yml`. Replace

121```yaml109 `REPLACE_WITH_REVIEWED_COMMIT` with `a98b35d7eef9f85c298c86229445bb64ac427aaf`, the distribution commit for `action-v0.9.1`.

122name: Codex Security PR1102. Choose a model your API key can access. The template sets a $5 threshold for estimated

123 111 scan costs and fails on high or critical findings. For advisory findings, set

124on:112 `fail-on-severity: none`.

125 pull_request:1133. Open a PR from a branch in the same repository. Under **Checks**, open

126 types: [opened, synchronize, reopened, ready_for_review]114 **Scan changes** to review the results. The workflow also reports a check

127 115 named for the target branch, such as **Codex Security / main**.

128permissions:

129 contents: read

130 

131concurrency:

132 group: codex-security-pr-${{ github.event.pull_request.number }}

133 cancel-in-progress: true

134 

135jobs:

136 security:

137 if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'

138 name: Codex Security

139 runs-on: ubuntu-24.04

140 timeout-minutes: 60

141 steps:

142 - name: Set up the Ubuntu sandbox

143 run: |

144 sudo apt-get update

145 sudo apt-get install --yes bubblewrap apparmor-profiles

146 sudo apparmor_parser -r /usr/share/apparmor/extra-profiles/bwrap-userns-restrict

147 

148 - name: Check out the pull request

149 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

150 with:

151 ref: ${{ github.event.pull_request.head.sha }}

152 fetch-depth: 0

153 persist-credentials: false

154 

155 - name: Scan PR changes

156 id: security

157 uses: openai/codex-security@3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3 # action-v0.3.0

158 with:

159 scope: diff

160 model: gpt-6-sol

161 # For approved Daybreak Blue access, uncomment the next input.

162 # cyber-access-program: daybreak_blue

163 effort: high

164 fail-on-severity: none

165 upload-artifacts: "true"

166 env:

167 OPENAI_API_KEY: ${{ secrets.CODEX_SECURITY_API_KEY }}

168```

169 116 

170Open or update a PR from a branch in the same repository. The Action uses117The workflow checks the PR head, target branch, and live base revision before

171the full history to find the exact merge base and scans changes through the118scanning and again before accepting the result. If the base advances, update

172checked-out PR head. View the **Codex Security**119the PR branch to trigger a fresh scan. To enforce this at merge time, follow the [branch protection and freshness requirements](https://github.com/openai/codex-security/blob/a98b35d7eef9f85c298c86229445bb64ac427aaf/github-action/README.md#scan-pull-requests).

173check under **Checks** in the PR. Start with advisory findings, then [choose a severity

174policy](#choose-a-severity-policy) when you are ready to gate changes.

175 120 

176This example skips fork PRs and PRs opened by `dependabot[bot]`. A skipped job121The scan job skips fork PRs, so they cannot pass this workflow's required

177is not evidence of a security review. To include these bot PRs, remove the actor122check. To scan Dependabot PRs, also save `CODEX_SECURITY_API_KEY` as a [Dependabot secret](https://docs.github.com/en/code-security/reference/supply-chain-security/troubleshoot-dependabot/dependabot-on-actions#accessing-secrets).

178exclusion and also

179configure `CODEX_SECURITY_API_KEY` as a [secret

180for `dependabot[bot]`](https://docs.github.com/en/code-security/reference/supply-chain-security/troubleshoot-dependabot/dependabot-on-actions#accessing-secrets). The Action does not support `pull_request_target` or `workflow_run`.

181 123 

182The scanner reads applicable `SECURITY.md` guidance from the checkout,124The scanner reads applicable `SECURITY.md` guidance from the checkout,

183including policy changes in the PR. Review those changes alongside the code.125including policy changes in the PR. Review those changes alongside the code.

184 126 

185### Configure optional Daybreak access127### Configure optional Daybreak access

186 128 

187Daybreak is optional. Both workflow examples use `gpt-6-sol`. If your129If your organization has approval for [Trusted Access for

188organization has been approved for [Trusted Access for130Cyber](https://learn.chatgpt.com/docs/cyber-safety#trusted-access-for-cyber), select the program and a

189Cyber](https://learn.chatgpt.com/docs/cyber-safety#trusted-access-for-cyber), remove the `#` before131compatible model in the scan step's `with` block:

190`cyber-access-program` in the scan step's `with` block:

191 132 

192```yaml133```yaml

193model: gpt-6-sol134model: gpt-6-sol


197Use an API key from a project enabled for Daybreak Blue with access to138Use an API key from a project enabled for Daybreak Blue with access to

198`gpt-6-sol`.139`gpt-6-sol`.

199 140 

200The program input also accepts `standard`. Without Daybreak access, use a141The input also accepts `daybreak_red` for projects with Red access. To select

201model your API key can access under standard safeguards and omit142standard safeguards, set `cyber-access-program` to `standard`. Omitting the

202`cyber-access-program` or set it to `standard`. Selecting a model or program143input uses the CLI defaults. See the Action's [Daybreak access guidance](https://github.com/openai/codex-security/blob/a98b35d7eef9f85c298c86229445bb64ac427aaf/github-action/README.md#daybreak-access-and-refusals).

203does not grant access. See the Action's [Daybreak access guidance](https://github.com/openai/codex-security/blob/3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3/github-action/README.md#daybreak-access-and-refusals).

204 144 

205A refusal or safety block that aborts the scan fails the Action, including when145A refusal or safety block that aborts the scan fails the Action, including when

206`fail-on-severity` is `none`. That input controls findings policy, not scanner146`fail-on-severity` is `none`. That input controls findings policy, not scanner


208 148 

209### Set an optional scan budget149### Set an optional scan budget

210 150 

211Both workflow examples omit `max-cost`, so they have no estimated cost stop151The scheduled workflow omits `max-cost`. To set a threshold, add a positive

212threshold. To set one, add a positive USD amount with the `max-cost` input.152USD amount with the `max-cost` input. For direct CLI scans, use `--max-cost`.

213For direct CLI scans, use `--max-cost`.

214 153 

215The cost limit requires CLI pricing support for the selected model. The154The cost limit requires CLI pricing support for the selected model. The cost of

216estimated threshold is not a hard spending cap: the cost of requests already155requests already in progress can exceed the estimated threshold. Review findings and

217in progress can exceed it.156`scan-manifest.json` if a scan stops at the threshold. See

218Review findings and `coverage.json` if a scan stops at the threshold. See

219[output and policy options](https://learn.chatgpt.com/docs/security/cli/reference#set-output-and-policy-options)157[output and policy options](https://learn.chatgpt.com/docs/security/cli/reference#set-output-and-policy-options)

220for cost-limit behavior.158for cost-limit behavior.

221 159 

222### Save reports and upload SARIF160### Save reports and upload SARIF

223 161 

224The examples set `upload-artifacts: "true"` to save downloadable reports with a162Set `upload-artifacts: "true"` to save downloadable reports. The default

225seven-day retention window. Reports can contain source snippets, vulnerability163retention is seven days. Reports can contain source snippets, vulnerability

226evidence, and remediation details. Choose a retention window and repository164evidence, and remediation details. Choose a retention window and repository

227access appropriate for your code. The Action uploads only validated reports165access appropriate for your code. The Action uploads only validated reports

228on its allowlist; do not recursively upload its `results-directory` output.166on its allowlist; do not recursively upload its `results-directory` output.

229 167 

230SARIF upload is optional. For private or internal repositories, enable [GitHub Code Security](https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/integrate-with-existing-tools/upload-sarif-file) before uploading. Replace the workflow's `permissions` block with:168SARIF upload is optional. For private or internal repositories, enable [GitHub Code Security](https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/integrate-with-existing-tools/upload-sarif-file) before uploading. The scan job needs these permissions for SARIF upload:

231 169 

232```yaml170```yaml

233permissions:171permissions:

234 contents: read172 contents: read

235 security-events: write173 security-events: write

236 actions: read # Required for private repositories174 actions: read # Required for private repositories

175 pull-requests: read # Required only in the PR workflow

237```176```

238 177 

239Then add this step after the scan in either workflow:178Then add this step after the scan in either workflow:


256runs.195runs.

257 196 

258See the Action's [input197See the Action's [input

259and output reference](https://github.com/openai/codex-security/blob/3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3/github-action/README.md#inputs) for all settings, status fields, and report paths.198and output reference](https://github.com/openai/codex-security/blob/a98b35d7eef9f85c298c86229445bb64ac427aaf/github-action/README.md#inputs) for all settings, status fields, and report paths.

260 199 

261## Choose a severity policy200## Choose a severity policy

262 201 

263The GitHub workflows start with `fail-on-severity: none`. To fail on high or202The scheduled workflow starts with `fail-on-severity: none`. To fail on high or

264critical findings from a completed scan, change the scan step's input:203critical findings from a completed scan, use the PR workflow's setting:

265 204 

266```yaml205```yaml

267fail-on-severity: high206fail-on-severity: high

268```207```

269 208 

270Make **Codex Security** a required status check in your repository rules to209For each protected target branch, require the matching check from the GitHub

271block merges when the PR job fails. GitHub treats a [conditionally skipped job as successful](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks),210Actions app, such as **Codex Security / main** on `main`. GitHub treats

272even for required checks. Fork PRs and PRs from `dependabot[bot]` pass this211a [conditionally skipped job as successful](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks).

273check without a scan. To block those skips, [require a212The workflow's required check also verifies that the scan job ran. It accepts

274successful, completed scan](#require-a-successful-completed-scan).213a completed scan or a verified empty diff. To block empty diffs too,

214[require a successful, completed scan](#require-a-successful-completed-scan).

275 215 

276The Action follows the CLI outcome:216The Action follows the CLI outcome:

277 217 


283- Invalid or missing required reports, a changed checkout, failures to upload223- Invalid or missing required reports, a changed checkout, failures to upload

284 requested artifacts, and runtime cleanup failures also fail the step.224 requested artifacts, and runtime cleanup failures also fail the step.

285 225 

286A completed scan means the configured analysis produced a valid result.

287Scope exclusions, deferred investigations, and other notes in `coverage.json`

288do not create a separate scan outcome or bypass the severity policy.

289Completion does not certify that every vulnerability was found. Review

290`coverage.json` when assessing the result.

291 

292### Require a successful, completed scan226### Require a successful, completed scan

293 227 

294For a stricter policy, add a separate gate that runs even if the scan job228For a stricter policy, add a separate gate that runs even if the scan job

295fails or GitHub skips it. A step inside the scan job can't check a skipped job229fails or GitHub skips it. A step inside the scan job can't check a skipped job

296because none of its steps run.230because none of its steps run.

297 231 

298In the PR workflow, add this `outputs` mapping to the existing `security` job,232The PR workflow exposes the scan status through the `security` job:

299at the same indentation as `runs-on` and `steps`:

300 233 

301```yaml234```yaml

302outputs:235outputs:


307 240 

308```yaml241```yaml

309security-gate:242security-gate:

310 name: Codex Security gate243 name: ${{ github.event.action == 'edited' && github.event.changes.base == null && 'metadata / ' || '' }}Codex Security gate / ${{ github.event.pull_request.base.ref }}

311 needs: security244 needs: security

312 if: ${{ always() }}245 if: always() && (github.event.action != 'edited' || github.event.changes.base != null)

313 runs-on: ubuntu-24.04246 runs-on: ubuntu-24.04

314 steps:247 steps:

315 - name: Require a successful, completed scan248 - name: Require a successful, completed scan


319 run: test "$SCAN_RESULT" = success && test "$SCAN_STATUS" = completed252 run: test "$SCAN_RESULT" = success && test "$SCAN_STATUS" = completed

320```253```

321 254 

322Make **Codex Security gate** the required status check for this policy. It255For each protected branch, require its gate alongside its scan check. For

323requires both a successful scan job and `scan-status: completed`. Checking256`main`, require **Codex Security gate / main** and **Codex Security / main**. The gate requires both a successful scan job and

324both preserves failures from the severity policy, reporting, and cleanup,257`scan-status: completed`. Checking both preserves failures from the severity

325even when the scan itself completed.258policy, reporting, and cleanup, even when the scan itself completed.

326 259 

327With the example's exclusions, this gate blocks fork PRs and PRs from260With the example's exclusions, this gate blocks fork PRs. It also blocks

328`dependabot[bot]`. It also blocks empty diffs and dry runs, which the Action261empty diffs and dry runs, which the Action marks as `skipped`. The gate

329marks as `skipped`.262doesn't scan excluded PRs. Choose this policy only if these cases should

330The gate doesn't scan excluded PRs. Choose this policy only if these cases263prevent merging.

331should prevent merging.

332 264 

333## Troubleshoot a scan265## Troubleshoot a scan

334 266 

335- **Unknown Git ref or unexpected diff:** Check out the PR head with267- **Unknown Git ref or unexpected diff:** Check out the PR head with

336 `fetch-depth: 0`.268 `fetch-depth: 0`.

337- **Sandbox startup error:** On Ubuntu 24.04, install the `bubblewrap` package

338 and load the AppArmor profile before the Action. Installing the package alone

339 does not load the required profile.

340- **Missing credentials:** Confirm that `CODEX_SECURITY_API_KEY` is available to269- **Missing credentials:** Confirm that `CODEX_SECURITY_API_KEY` is available to

341 the trusted workflow and mapped to the scan step's `OPENAI_API_KEY`270 the trusted workflow and mapped to the scan step's `OPENAI_API_KEY`

342 environment variable.271 environment variable.

343- **Python setup error:** The Action requires Python 3.11 or later.272- **Python setup error:** The Action requires Python 3.11 or later.

344- **Coverage notes:** Review scope exclusions and deferred investigations in

345 `coverage.json`. These notes do not cause execution failures or bypass the

346 severity policy.

347- **Missing SARIF:** Inspect `scan-status`, `report-status`, and273- **Missing SARIF:** Inspect `scan-status`, `report-status`, and

348 `sarif-upload-ready`. If optional SARIF is missing, the Action warns without274 `sarif-upload-ready`. If optional SARIF is missing, the Action warns without

349 changing the scan outcome; requested artifact-upload failures still fail the275 changing the scan outcome; requested artifact-upload failures still fail the

Details

172 172 

173In `scan-manifest.json`, check `scan.status` to see whether the scan finished.173In `scan-manifest.json`, check `scan.status` to see whether the scan finished.

174`scan.scope` records the configured scope. `scan.review.excludedPaths` lists174`scan.scope` records the configured scope. `scan.review.excludedPaths` lists

175path patterns the scan excluded from review. If an older manifest has175path patterns the scan excluded from review. Check `scan.scope.limitations` for recorded

176`scan.coverageRef`, open the file it names for coverage details.176gaps, such as a deep scan reaching its deadline before any review finished.

177 177 

178Coverage gaps don't change a completed scan's exit code. Exit `0` doesn't mean178Coverage gaps don't change a completed scan's exit code. Exit `0` doesn't mean

179every file was reviewed. A later scan can't establish that an earlier finding179every file was reviewed. A later scan can't establish that an earlier finding


186Set a worker deadline when starting a deep scan:186Set a worker deadline when starting a deep scan:

187 187 

188```bash188```bash

189npx @openai/codex-security scan . --mode deep --max-time-hours 1.5189npx @openai/codex-security scan . --mode deep --max-time 90

190```190```

191 191 

192The default is `96` hours. Use any positive value up to `96`, including192The default and maximum are 5,760 minutes (96 hours). You can use fractional

193fractions. At the deadline, Codex Security stops unfinished workers, keeps193minutes. At the deadline, discovery stops and the report combines results from

194completed standard-scan results, and aggregates them into the final report.194completed reviews. Check the report for reviewed areas and deferred work.

195Check the report for reviewed areas and deferred work. The deadline alone

196doesn't determine the exit code; execution status and the severity policy do.

197 195 

198For persistent settings or bulk campaigns, set `max_time_hours` under196To reuse a time limit, set `scan.max_time_minutes` in your

199`[deep_scan]` in the [deep-scan197[project configuration](https://learn.chatgpt.com/docs/security/cli/reference#configure-deep-scans).

200configuration](https://learn.chatgpt.com/docs/security/cli/reference#configure-deep-scans).198Bulk campaigns apply it to each scan attempt.

201 199 

202### How do scan cost limits work200### How do scan cost limits work

203 201 


214configured severity threshold. If it can't produce a valid completed result,212configured severity threshold. If it can't produce a valid completed result,

215it returns `2` and preserves any available output.213it returns `2` and preserves any available output.

216 214 

217For GitHub pull-request checks and scheduled repository scans, use the215To run scans in CI, see the [CI/CD overview](https://learn.chatgpt.com/docs/security/cli/ci).

218[Codex Security GitHub Action](https://learn.chatgpt.com/docs/security/cli/ci/github). With

219`action-v0.3.0`, a completed scan means the configured analysis produced a

220valid result. Scope exclusions and deferred investigations do not bypass the

221severity policy. Review `coverage.json` to assess the scan's scope and

222limitations. To also reject empty diffs and dry runs, require the Action's

223`scan-status` output to be `completed`; see [Choose a severity

224policy](https://learn.chatgpt.com/docs/security/cli/ci/github#choose-a-severity-policy).

225 

226For other providers, see the [CI/CD overview](https://learn.chatgpt.com/docs/security/cli/ci).

227For a check before each commit, use216For a check before each commit, use

228[`install-hook`](https://learn.chatgpt.com/docs/security/cli/reference#codex-security-install-hook).217[`install-hook`](https://learn.chatgpt.com/docs/security/cli/reference#codex-security-install-hook).

Details

128 [--path PATH | --diff BASE | --working-tree]128 [--path PATH | --diff BASE | --working-tree]

129 [--head HEAD] [--base BASE]129 [--head HEAD] [--base BASE]

130 [--knowledge-base PATH] [--scan-prompt-file FILE]130 [--knowledge-base PATH] [--scan-prompt-file FILE]

131 [--validation-prompt-file FILE]131 [--validation-prompt-file FILE] [--rubric FILE]

132 [--post-scan-prompt-file FILE]132 [--post-scan-prompt-file FILE]

133 [--mode {standard,deep}] [--workers N]133 [--mode {standard,deep}] [--workers N]

134 [--subagents N] [--stop-after-no-new N]134 [--subagents N] [--stop-after-no-new N]


190npx @openai/codex-security scan . --auth api-key190npx @openai/codex-security scan . --auth api-key

191```191```

192 192 

193To scan with Daybreak Blue, use a key from a project with Blue enabled and add

194`--model gpt-6-sol --cyber-access-program daybreak_blue` to the command.

195For other models, see the [model and access program table](https://developers.openai.com/api/docs/guides/daybreak#choose-the-model-and-access-program).

196 

193To make stored credentials the automatic default, run197To make stored credentials the automatic default, run

194`unset OPENAI_API_KEY CODEX_API_KEY`.198`unset OPENAI_API_KEY CODEX_API_KEY`.

195 199 

196Use `--auth api-key` with

197`--cyber-access-program standard|daybreak_blue|daybreak_red` to select a

198Cyber access program for OpenAI model requests. Omission preserves Codex

199defaults; `standard` explicitly selects the standard program.

200Selecting a program doesn't grant access; your API project must be approved

201for the selected program. See the [access-program guide](https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#select-a-cyber-access-program) for credential requirements.

202 

203### Attribute scans to end users200### Attribute scans to end users

204 201 

205When scanning on behalf of users, `--safety-identifier ID` accepts a stable,202When scanning on behalf of users, `--safety-identifier ID` accepts a stable,


235### Use Amazon Bedrock232### Use Amazon Bedrock

236 233 

237Use `--provider amazon-bedrock` and a Bedrock model ID with `scan` or234Use `--provider amazon-bedrock` and a Bedrock model ID with `scan` or

238`bulk-scan`. After AWS provisions model access, scans use AWS credentials235`bulk-scan`. Bedrock scans use AWS credentials

239without `--auth`, an OpenAI login, or an OpenAI API key.236without `--auth`, an OpenAI login, or an OpenAI API key.

240 237 

241#### Daybreak Blue and Daybreak Red238#### Daybreak Blue and Daybreak Red

242 239 

243Daybreak Blue and Daybreak Red require Trusted Access for Cyber approval.240Request Daybreak access through your OpenAI account team or the [enterprise access application](https://openai.com/form/enterprise-trusted-access-for-cyber/). [Daybreak Red approval](https://help.openai.com/en/articles/20001258-openai-daybreak-trusted-access-for-cyber-overview) includes GPT-5.6 Cyber.

244To request access, submit the [enterprise access application](https://openai.com/form/enterprise-trusted-access-for-cyber/) or contact your OpenAI account team.241After OpenAI approves your request, ask your AWS account team to provision

245After approval, work with your AWS account team to provision model access242the model in the account you use for scans.

246on Amazon Bedrock.

247 

248Daybreak Red approval does not include GPT-5.6-Cyber access. GPT-5.6-Cyber

249requires separate U.S. government (USG) approval. Ask your OpenAI account

250team to request this additional approval before provisioning GPT-5.6-Cyber

251on Amazon Bedrock. See the [Daybreak access requirements](https://help.openai.com/en/articles/20001258-openai-daybreak-trusted-access-for-cyber-overview).

252 243 

253| Access | Bedrock model ID | AWS region |244| Access | Bedrock model ID | AWS region |

254| ------------- | ---------------------------------- | ----------- |245| ------------- | ---------------------------------- | ----------- |


257 248 

258For availability, check the AWS model cards for [Daybreak Blue](https://docs.aws.amazon.com/en_en/bedrock/latest/userguide/model-card-openai-gpt-daybreak-blue-56-sol.html) and [Daybreak Red](https://docs.aws.amazon.com/en_en/bedrock/latest/userguide/model-card-openai-gpt-56-cyber.html).249For availability, check the AWS model cards for [Daybreak Blue](https://docs.aws.amazon.com/en_en/bedrock/latest/userguide/model-card-openai-gpt-daybreak-blue-56-sol.html) and [Daybreak Red](https://docs.aws.amazon.com/en_en/bedrock/latest/userguide/model-card-openai-gpt-56-cyber.html).

259 250 

260To scan with Daybreak Blue, replace `<aws-profile-name>` with an AWS profile251Choose an AWS profile with access to the model. For Daybreak Blue, run:

261that has access to the Daybreak Blue model:

262 252 

263```bash253```bash

264export AWS_PROFILE="<aws-profile-name>"254export AWS_PROFILE="<aws-profile-name>"


268 --model openai.gpt-daybreak-blue-5.6-sol --effort high258 --model openai.gpt-daybreak-blue-5.6-sol --effort high

269```259```

270 260 

271To scan with Daybreak Red, choose an AWS profile with GPT-5.6-Cyber access.261For Daybreak Red, run:

272This may differ from the profile you use for Daybreak Blue:

273 262 

274```bash263```bash

275export AWS_PROFILE="<aws-profile-name>"264export AWS_PROFILE="<aws-profile-name>"


295 284 

296The CLI supports cost estimates and `--max-cost` for the Daybreak Blue and285The CLI supports cost estimates and `--max-cost` for the Daybreak Blue and

297Daybreak Red model IDs above. Estimates use AWS Standard286Daybreak Red model IDs above. Estimates use AWS Standard

298commercial in-region prices, including the AWS fee. The cost limit uses287prices, including the AWS fee. The cost limit uses

299`estimatedUsd`, the short-context baseline. Requests already in progress can288`estimatedUsd`, the short-context baseline. Requests already in progress can

300put this estimate above the limit. Long-context pricing can raise the reported289put this estimate above the limit. Long-context pricing can raise the reported

301`estimatedUsdRange` above it. This limit is not a billing cap.290`estimatedUsdRange` above it. This limit is not a billing cap.


356 345 

357| Argument | Description |346| Argument | Description |

358| ------------------------ | ----------------------------------------------------------------------------------------------------- |347| ------------------------ | ----------------------------------------------------------------------------------------------------- |

359| `--workers N` | Limit on concurrent independent standard-scan workers. Defaults to `4`. |348| `--workers N` | Maximum standard reviews running at once. Defaults to `4`. |

360| `--subagents N` | Subagents available to each worker. Defaults to `3`. Use `0` to disable them. |349| `--subagents N` | Subagents available to each worker. Defaults to `3`. Use `0` to disable them. |

361| `--stop-after-no-new N` | Stop after `N` consecutive completed worker scans find no new issues. Defaults to `4`. |350| `--stop-after-no-new N` | Stop after `N` consecutive completed worker scans find no new issues. Defaults to `4`. |

362| `--max-discovery-runs N` | Limit on total independent standard-scan runs. Defaults to `40`. |351| `--max-discovery-runs N` | Maximum reviews started, including failed attempts. Defaults to `40`. |

363| `--max-time MINUTES` | Discovery time limit. Accepts positive fractional minutes. The default and maximum are 5,760 minutes. |352| `--max-time MINUTES` | Discovery time limit. Accepts positive fractional minutes. The default and maximum are 5,760 minutes. |

364 353 

365For example, use two workers, allow up to ten runs, and stop discovery after 90 minutes:354For example, use two workers, allow up to ten runs, and stop discovery after 90 minutes:


374 --max-time 90363 --max-time 90

375```364```

376 365 

377When the time limit expires, the scan stops unfinished workers and combines

378completed findings in its report. For a standard scan, `--max-time` sets an

379advisory investigation time. Reporting can finish later. Custom validation

380and post-scan instructions run outside that allowance.

381 

382To reuse these limits, save them in a366To reuse these limits, save them in a

383[project configuration file](#load-project-configuration):367[project configuration file](#load-project-configuration):

384 368 


466`--mock`, or a scan cost limit set on the command line or in the project450`--mock`, or a scan cost limit set on the command line or in the project

467configuration.451configuration.

468 452 

453### Choose how to grade severity

454 

455Standard and deep scans use the bundled severity rubric by default. Pass

456`--rubric FILE` to use your own Markdown policy.

457 

469### Set output and policy options458### Set output and policy options

470 459 

471Use these options to keep artifacts, preserve earlier results, or create a460Use these options to keep artifacts, preserve earlier results, or create a


474| Argument | Description |463| Argument | Description |

475| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |464| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |

476| `--output-dir DIR` | Write scan artifacts to a private directory outside the enclosing Git worktree. Defaults to persistent Codex Security state. |465| `--output-dir DIR` | Write scan artifacts to a private directory outside the enclosing Git worktree. Defaults to persistent Codex Security state. |

477| `--archive-existing` | Move existing results to `DIR.previous-<timestamp>-<id>` and start with an empty output directory. Requires `--output-dir`. |466| `--archive-existing` | Move existing results to a sibling directory and report the archive path. Requires `--output-dir`. |

478| `--fail-on-severity LEVEL` | Return exit `1` when a completed scan reports a finding at or above `critical`, `high`, `medium`, or `low`. |467| `--fail-on-severity LEVEL` | Return exit `1` when a completed scan reports a finding at or above `critical`, `high`, `medium`, or `low`. |

479| `--patch` | Fix and verify selected findings after a complete scan. |468| `--patch` | Fix and verify selected findings after a complete scan. |

480| `--patch-severity LEVEL` | Patch findings at or above `critical`, `high`, `medium`, or `low`. Defaults to `low`. |469| `--patch-severity LEVEL` | Patch findings at or above `critical`, `high`, `medium`, or `low`. Defaults to `low`. |


499in progress can put this estimate above the limit. Long-context pricing can488in progress can put this estimate above the limit. Long-context pricing can

500raise `estimatedUsdRange` above it. This limit is not a billing cap.489raise `estimatedUsdRange` above it. This limit is not a billing cap.

501 490 

502If a deep scan reaches the limit491If a deep scan reaches the limit after discovery, the CLI can seal a

503after Codex Security aggregates completed worker results, the CLI can seal a492completed result with a budget warning. Check `scan.scope.limitations` in

504completed result and report the budget warning. It returns `0`, or `1` if493the manifest to see whether the scan deferred validation. A completed scan

505findings meet the configured severity threshold. If it can't produce a valid494returns `0`, or `1` if findings meet the configured severity threshold. If

506completed result, it returns `2` and leaves any available output on disk.495the CLI can't finalize the result, it returns `2` and keeps any available output.

507 496 

508When you omit `--output-dir`, results persist under497When you omit `--output-dir`, results persist under

509`$CODEX_HOME/state/plugins/codex-security/scans/<repository>`. `CODEX_HOME`498`$CODEX_HOME/state/plugins/codex-security/scans/<repository>`. `CODEX_HOME`


557| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |546| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |

558| `--auth {auto,chatgpt,api-key}` | Select the scan credentials. The default is `auto`. |547| `--auth {auto,chatgpt,api-key}` | Select the scan credentials. The default is `auto`. |

559| `--provider {openai,openrouter,fireworks,amazon-bedrock}` | Select the inference provider. The default is `openai`. |548| `--provider {openai,openrouter,fireworks,amazon-bedrock}` | Select the inference provider. The default is `openai`. |

549| `--cyber-access-program PROGRAM` | For OpenAI scans, use `standard`, `daybreak_blue`, or `daybreak_red`. |

560| `--model MODEL` | Select the model. The default is `gpt-5.6-sol`. Required for OpenRouter, Fireworks, and Amazon Bedrock. |550| `--model MODEL` | Select the model. The default is `gpt-5.6-sol`. Required for OpenRouter, Fireworks, and Amazon Bedrock. |

561| `--effort EFFORT` | Select the model's reasoning effort. The default is `xhigh`; supported values depend on the model and provider. |551| `--effort EFFORT` | Select the model's reasoning effort. The default is `xhigh`; supported values depend on the model and provider. |

562| `--plugin-path PATH` | Use a Codex Security plugin directory or ZIP to override the bundled plugin. |552| `--plugin-path PATH` | Use a Codex Security plugin directory or ZIP to override the bundled plugin. |


567Supported combinations depend on the model, provider, Codex version, and your557Supported combinations depend on the model, provider, Codex version, and your

568credentials.558credentials.

569 559 

570If the scan's isolated Codex configuration selects a profile, that profile's560To reuse a Codex file profile, put its settings in `$CODEX_HOME/review.config.toml`

571`model` and `model_reasoning_effort` values take precedence over `--model` and561(`~/.codex/review.config.toml` by default). Select it with

572`--effort`. Your normal Codex configuration isn't loaded.562`--codex "profile='review'"` or set `codex.profile` to `review` in your project

563configuration. Explicit scan settings override file profile values, which

564override scanner defaults.

573Add `--dry-run --verbose` to your scan command to inspect the resolved model565Add `--dry-run --verbose` to your scan command to inspect the resolved model

574and effort before starting a scan.566and effort before starting a scan.

575 567 


1215 1207 

1216Use `--to local` to save imported findings on your machine. With `--to cloud`,1208Use `--to local` to save imported findings on your machine. With `--to cloud`,

1217even a preview contacts the service. It needs a file-backed ChatGPT login and1209even a preview contacts the service. It needs a file-backed ChatGPT login and

1218an authorized repository ID or URL with an existing Cloud environment. A Cloud1210an authorized repository ID or URL. A Cloud import can return a partial result

1219import can return a partial result if the service rejects individual records.1211if the service rejects individual records.

1220See the [GitHub import guide](https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#import-github-findings-locally-or-to-cloud) for both workflows.1212See the [GitHub import guide](https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#import-github-findings-locally-or-to-cloud) for both workflows.

1221 1213 

1222To import Dependabot alerts for a local checkout, you need a saved export from1214### Preview and save a local report

1223the same GitHub repository. Follow the [Dependabot export guide](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/github-dependabot.md) to save all pages outside the checkout using a token with read access to Dependabot alerts.

1224 1215 

1225Append `echo "$out/dependabot.jsonl"` to the export script before running it.1216For example, export [Dependabot alerts](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/github-dependabot.md#export-repository-alerts)

1226In a new shell, use the path it printed to preview the file. Replace `./project` and `OWNER/REPO` with your checkout and repository.1217to a private file outside the checkout. Use the matching checkout for

1227If the checkout has network remotes, one must match the alert repository.1218`--repository` and a stable `--source-key` so repeat imports update the same

1228Otherwise, verify that the export belongs to the checkout.1219alerts. If the checkout has network remotes, one must match the alert repository.

1229 1220 

1230```bash1221```bash

1231export CODEX_SECURITY_ENABLE_EXTERNAL_IMPORTS=1

1232npx @openai/codex-security publish findings /path/to/dependabot.jsonl \1222npx @openai/codex-security publish findings /path/to/dependabot.jsonl \

1233 --to local --repository ./project --provider github \1223 --to local --repository ./project --provider github \

1234 --source-key github.com/OWNER/REPO/dependabot --dry-run --format json1224 --source-key github.com/OWNER/REPO/dependabot --dry-run --format json

1235```

1236 1225 

1237Check the destination and exclusions in the preview. A dry run exits with `0`1226npx @openai/codex-security publish findings /path/to/dependabot.jsonl \

1238even if it lists excluded alerts. To save the accepted alerts, rerun without1227 --to local --repository ./project --provider github \

1239`--dry-run` and confirm, or replace `--dry-run` with `--yes`. If the import1228 --source-key github.com/OWNER/REPO/dependabot

1240excludes any alerts, it saves the accepted ones and exits with `1`. Read the

1241stored alerts in the same shell.

1242 1229 

1243```bash

1244npx @openai/codex-security findings imported ./project --format json1230npx @openai/codex-security findings imported ./project --format json

1245```1231```

1246 1232 

1247Imported alerts start with the assessment status `not_assessed`. With the same1233Imported findings start as `not_assessed`. Repeat imports update matching

1248source key, a later import updates the stored records for alerts in the file.1234records and retain existing findings that the new report omits. When only some records

1249Omitted alerts keep their last imported state. Alerts that share an advisory remain1235are excluded, the preview exits with `0` and the import saves the accepted

1250separate records.1236records and exits with `1`. A valid report with no findings exits with `0`.

1237If all records are excluded, both commands exit with `2`.

1238 

1239### Publish a report to Cloud

1240 

1241Keep the file, provider, and source key from the local preview. Set `--to cloud`,

1242pass the connected repository URL or Cloud ID to `--repository`, and preview again

1243with `--dry-run --format json`. To publish, rerun without `--dry-run` and confirm.

1244 

1245| Destination in the preview | How to verify the import |

1246| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

1247| `privateImport` | The findings go to your private inbox. The repository is the suggested assessment target. Check that `privateJob.status` is `completed` and review the counts of errors and unprocessed rows. |

1248| `requests` | Check the destination environment for each request. Review the receipt for verified, unacknowledged, or failed records before retrying. |

1249 

1250If the CLI returns `savedSubmission`, keep the checkpoint and follow the [Cloud import recovery steps](https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#resume-interrupted-imports).

1251 1251 

1252## Finding review commands1252## Finding review commands

1253 1253 

1254These commands work with existing findings:1254These commands work with existing findings:

1255 1255 

1256| Command | Example | Behavior |1256| Command | Example | Behavior |

1257| ------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |1257| ------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |

1258| `classify-severity` | `codex-security classify-severity --scan latest --rubric policy.md --json` | Apply a rubric without repeating discovery or rewriting original findings. Omit `--rubric` to inherit an existing severity without model calls. Findings without severity require a rubric. |1258| `classify-severity` | `codex-security classify-severity --scan latest --rubric policy.md --json` | Reassess severity with the bundled rubric or a policy supplied with `--rubric` while preserving the original findings. |

1259| `suggest-owners` | `codex-security suggest-owners findings.json --source-root /path/to/repository --json` | Read committed source, CODEOWNERS, blame, and Git history to suggest owners. Doesn't assign tickets. |1259| `suggest-owners` | `codex-security suggest-owners findings.json --source-root /path/to/repository --json` | Read committed source, CODEOWNERS, blame, and Git history to suggest owners. Doesn't assign tickets. |

1260| `dedupe` | `codex-security dedupe --scan SCAN_ID --json` | Identify duplicate findings in local SQLite. Missing or stale embeddings require an embedding API key; fresh reviews require model access. |1260| `dedupe` | `codex-security dedupe --scan SCAN_ID --json` | Identify duplicate findings in local SQLite. Missing or stale embeddings require an embedding API key; fresh reviews require model access. |

1261| `verify-fix` | `codex-security verify-fix --scan SCAN_ID --json` | Check existing fixes in a read-only sandbox. Accepts finding IDs, descriptions, and Linear selectors. |1261| `verify-fix` | `codex-security verify-fix --scan SCAN_ID --json` | Check existing fixes in a read-only sandbox. Accepts finding IDs, descriptions, and Linear selectors. |


1610Python 3.10 also requires `tomli`. Use `--python` with `scan`, `bulk-scan`, or1610Python 3.10 also requires `tomli`. Use `--python` with `scan`, `bulk-scan`, or

1611`export`, or set `PYTHON` for any Python-backed command.1611`export`, or set `PYTHON` for any Python-backed command.

1612 1612 

1613To read or resume compressed Codex sessions (`.jsonl.zst`), use Node.js

161422.15.0 or later within 22.x, or Node.js 24 or 26. Plain `.jsonl` sessions work

1615on all supported Node.js versions.

1616 

1617Continue with the [CLI quickstart](https://learn.chatgpt.com/docs/security/cli), [bulk-scan1613Continue with the [CLI quickstart](https://learn.chatgpt.com/docs/security/cli), [bulk-scan

1618guide](https://learn.chatgpt.com/docs/security/cli/bulk-scans), [CLI FAQ](https://learn.chatgpt.com/docs/security/cli/faq), [CI1614guide](https://learn.chatgpt.com/docs/security/cli/bulk-scans), [CLI FAQ](https://learn.chatgpt.com/docs/security/cli/faq), [CI

1619guide](https://learn.chatgpt.com/docs/security/cli/ci), or [TypeScript SDK guide](https://learn.chatgpt.com/docs/security/sdk).1615guide](https://learn.chatgpt.com/docs/security/cli/ci), or [TypeScript SDK guide](https://learn.chatgpt.com/docs/security/sdk).

security/faq.md +8 −5

Details

1# Codex Security Cloud FAQ1# Daybreak Defense Factory FAQ

2 2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5These answers apply to Codex Security Cloud. For installation and a first scan,5These answers apply to Daybreak Defense Factory. For installation and a first scan,

6use [Cloud setup](https://learn.chatgpt.com/docs/security/setup). Local scans have separate6use [Cloud setup](https://learn.chatgpt.com/docs/security/setup). Local scans have separate

7[plugin](https://learn.chatgpt.com/docs/security/plugin) and [CLI](https://learn.chatgpt.com/docs/security/cli) guides.7[plugin](https://learn.chatgpt.com/docs/security/plugin) and [CLI](https://learn.chatgpt.com/docs/security/cli) guides.

8 8 


69 69 

70### Does the project need to be built for scanning?70### Does the project need to be built for scanning?

71 71 

72Codex Security can analyze source without a successful build. Validation may72Daybreak can analyze source without a successful build. Validation may

73need dependencies or a working build to reproduce an issue. Configure those73need dependencies or a working build to reproduce an issue. Configure those

74requirements in the [Codex cloud74requirements in the [Codex cloud

75environment](https://learn.chatgpt.com/docs/environments/cloud-environment).75environment](https://learn.chatgpt.com/docs/environments/cloud-environment).


79 79 

80### What languages are supported?80### What languages are supported?

81 81 

82Codex Security analyzes source across languages. Results depend on the model's82Daybreak analyzes source across languages. Results depend on the model's

83ability to reason about the language and framework, and on the available83ability to reason about the language and framework, and on the available

84repository context. A successful scan doesn't imply equal coverage across84repository context. A successful scan doesn't imply equal coverage across

85languages or components. Check the report for the scope actually reviewed.85languages or components. Check the report for the scope actually reviewed.


130 130 

131## Fixes131## Fixes

132 132 

133### Does Codex Security apply patches automatically?133 

134 

135 

136### Does Daybreak apply patches automatically?

134 137 

135The action depends on the finding. **Fix with Codex** on a repository finding138The action depends on the finding. **Fix with Codex** on a repository finding

136starts a conversation that asks Codex to verify the issue, implement a fix,139starts a conversation that asks Codex to verify the issue, implement a fix,

Details

8 8 

9This page covers the Codex Security plugin in the desktop app or Codex CLI. To9This page covers the Codex Security plugin in the desktop app or Codex CLI. To

10 scan a connected GitHub repository in Codex cloud, install the separate10 scan a connected GitHub repository in Codex cloud, install the separate

11 **Codex Security Cloud** plugin from the plugin marketplace. See [Cloud11 **Daybreak Defense Factory (Preview)** plugin from the plugin marketplace. See

12 setup](https://learn.chatgpt.com/docs/security/setup).12 [Cloud setup](https://learn.chatgpt.com/docs/security/setup).

13 13 

14## Install the plugin14## Install the plugin

15 15 

security/sdk.md +8 −9

Details

10or Node.js 22 starting with 22.13.0. Scanning also requires Python 3.10 or later.10or Node.js 22 starting with 22.13.0. Scanning also requires Python 3.10 or later.

11Python 3.10 also requires the `tomli` package.11Python 3.10 also requires the `tomli` package.

12 12 

13To read or resume compressed Codex sessions (`.jsonl.zst`), use Node.js

1422.15.0 or later within 22.x, or Node.js 24 or 26. Plain `.jsonl` sessions work

15on all supported Node.js versions.

16 

17For general coding agents, see the [Codex SDK guide](https://learn.chatgpt.com/docs/codex-sdk). For13For general coding agents, see the [Codex SDK guide](https://learn.chatgpt.com/docs/codex-sdk). For

18 terminal and CI workflows, see the [Codex Security CLI14 terminal and CI workflows, see the [Codex Security CLI

19 quickstart](https://learn.chatgpt.com/docs/security/cli).15 quickstart](https://learn.chatgpt.com/docs/security/cli).


332scan, pass `scanOptions.validationPrompt` to `runComponentScans`. Deep scans328scan, pass `scanOptions.validationPrompt` to `runComponentScans`. Deep scans

333reject custom validation.329reject custom validation.

334 330 

331### Apply a severity policy

332 

333Pass `rubricPath` to grade findings with a Markdown policy, or pass a

334`severityRubric` snapshot with `markdown`, a positive integer `revision`, and the `sha256`

335digest of the exact UTF-8 Markdown. A snapshot takes precedence over a file. Standard and deep scans save the

336selected rubric for retries, resumes, and reruns.

337 

335### Set a scan budget338### Set a scan budget

336 339 

337Set `maxCostUsd` to stop a scan when its estimated model cost exceeds a limit.340Set `maxCostUsd` to stop a scan when its estimated model cost exceeds a limit.


357in progress can put this estimate above the limit. Long-context pricing can360in progress can put this estimate above the limit. Long-context pricing can

358raise `estimatedUsdRange` above it. This limit is not a billing cap.361raise `estimatedUsdRange` above it. This limit is not a billing cap.

359 362 

360If a deep scan reaches the limit after

361Codex Security aggregates completed worker results, `run` can return a result

362with `manifest.scan.status` set to `"completed"` and report the budget warning

363through `onWarning`.

364 

365If the scan can't produce a valid completed result, `run` throws363If the scan can't produce a valid completed result, `run` throws

366`ScanCostLimitExceededError` and preserves any available output.364`ScanCostLimitExceededError` and preserves any available output.

367 365 


627| `onReconnect(attempt, maxAttempts)` | The SDK retries a disconnected scan stream. |625| `onReconnect(attempt, maxAttempts)` | The SDK retries a disconnected scan stream. |

628| `onActivity(activity)` | A command, tool, reasoning step, or message updates. |626| `onActivity(activity)` | A command, tool, reasoning step, or message updates. |

629| `onProgress(progress)` | The scan phase or reviewed file count changes. |627| `onProgress(progress)` | The scan phase or reviewed file count changes. |

628| `onDeepProgress(progress)` | Counts of active or completed deep reviews change. |

630| `onWorkerStatus(status)` | Best-effort counts of workers planned and started. |629| `onWorkerStatus(status)` | Best-effort counts of workers planned and started. |

631| `onSessionEvent(session)` | A scan or worker session emits an event. |630| `onSessionEvent(session)` | A scan or worker session emits an event. |

632| `onCost(cost)` | An updated estimated scan cost is available. |631| `onCost(cost)` | An updated estimated scan cost is available. |

Details

96 96 

97- [Review GitHub pull requests with Codex](https://learn.chatgpt.com/docs/third-party/github) explains Code Review and the GitHub integration.97- [Review GitHub pull requests with Codex](https://learn.chatgpt.com/docs/third-party/github) explains Code Review and the GitHub integration.

98- [Codex Security](https://learn.chatgpt.com/docs/security) gives the product overview.98- [Codex Security](https://learn.chatgpt.com/docs/security) gives the product overview.

99- [Codex Security cloud setup](https://learn.chatgpt.com/docs/security/setup) explains repository scans and findings review.99- [Daybreak Defense Factory setup](https://learn.chatgpt.com/docs/security/setup) explains repository scans and findings review.

100- [Improving the threat model](https://learn.chatgpt.com/docs/security/threat-model) explains how to tune repository context.100- [Improving the threat model](https://learn.chatgpt.com/docs/security/threat-model) explains how to tune repository context.

security/setup.md +15 −15

Details

1# Codex Security Cloud setup1# Daybreak Defense Factory setup

2 2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5Run a first scan of a connected GitHub repository with Codex Security Cloud,5Run a first scan of a connected GitHub repository with Daybreak Defense Factory

6then review its findings. Afterward, you can enable monitoring for new commits.6(formerly Codex Security Cloud), then review its findings. Afterward, you can

7enable monitoring for new commits.

7 8 

8Codex Security Cloud runs scans in [Codex cloud](https://learn.chatgpt.com/docs/cloud). For scans of a9Daybreak Defense Factory runs scans in [Codex cloud](https://learn.chatgpt.com/docs/cloud). For scans

9 local repository in the desktop app or CLI, use the separate [Codex Security10 of a local repository in the desktop app or CLI, use the separate [Codex

10 plugin](https://learn.chatgpt.com/docs/security/plugin).11 Security plugin](https://learn.chatgpt.com/docs/security/plugin).

11 12 

12## Before you start13## Before you start

13 14 

14Use a workspace with Codex Security Cloud access and [Codex cloud](https://learn.chatgpt.com/docs/cloud)15Use a workspace with Daybreak Defense Factory access and [Codex cloud](https://learn.chatgpt.com/docs/cloud)

15set up. You need permission to connect the GitHub repository you want to scan.16set up. You need permission to connect the GitHub repository you want to scan.

16You can create its cloud environment during setup.17You can create its cloud environment during setup.

17 18 


23## 1. Install and open the plugin24## 1. Install and open the plugin

24 25 

251. Open **Plugins** in ChatGPT on the web or in the desktop app.261. Open **Plugins** in ChatGPT on the web or in the desktop app.

262. Search the plugin marketplace for **Codex Security Cloud**.272. Search the plugin marketplace for **Daybreak Defense Factory (Preview)**.

273. Install and enable the plugin, then open **Security Cloud** from your283. Install and enable the plugin, then open **Daybreak** in the sidebar.

28 installed plugins or sidebar.

29 29 

30<CtaPillLink30<CtaPillLink

31 href="https://chatgpt.com/plugins/plugin_connector_1p_6317a32dbf5c81919acd66de6722daf5"31 href="https://chatgpt.com/plugins/plugin_connector_1p_6317a32dbf5c81919acd66de6722daf5"


43with your own GitHub account. Each person who starts scans needs their own43with your own GitHub account. Each person who starts scans needs their own

44connection and access to the repository.44connection and access to the repository.

45 45 

46Codex Security Cloud doesn't support workspace connections.46Daybreak Defense Factory doesn't support workspace connections.

47 47 

48## 3. Start a repository scan48## 3. Start a repository scan

49 49 


67 67 

68<figure className="not-prose my-8">68<figure className="not-prose my-8">

69 <CodexScreenshot69 <CodexScreenshot

70 alt="Codex Security Cloud findings filtered to New, Triaged, and In Progress, with a severity and status chart above the findings table"70 alt="Daybreak Defense Factory findings filtered to New, Triaged, and In Progress, with a severity and status chart above the findings table"

71 lightSrc={cloudFindings.src}71 lightSrc={cloudFindings.src}

72 darkSrc={cloudFindings.src}72 darkSrc={cloudFindings.src}

73 variant="no-wallpaper"73 variant="no-wallpaper"


101arrive:101arrive:

102 102 

1031. Select **Scan**, then choose the repository and review the environment.1031. Select **Scan**, then choose the repository and review the environment.

1042. Under **Scan Method**, select **Continuous Scanning**. Codex Security scans1042. Under **Scan Method**, select **Continuous Scanning**. The plugin scans

105 the repository's default branch.105 the repository's default branch.

1063. Choose **Scan commit history from**. Longer windows provide more context,1063. Choose **Scan commit history from**. Longer windows provide more context,

107 but the initial scan takes longer.107 but the initial scan takes longer.


128many days of history to review, and pause or enable monitoring.128many days of history to review, and pause or enable monitoring.

129Select **Save** to apply changes.129Select **Save** to apply changes.

130 130 

131The scan owner, people granted edit access, and Codex Security administrators131The scan owner, people granted edit access, and Daybreak Defense Factory administrators

132can change monitoring settings. Changes, including pausing monitoring, apply to132can change monitoring settings. Changes, including pausing monitoring, apply to

133that repository's shared configuration in the workspace, not just to the person133that repository's shared configuration in the workspace, not just to the person

134making the change. If you can't edit it, ask the scan owner or a Codex Security134making the change. If you can't edit it, ask the scan owner or a Daybreak Defense Factory

135administrator.135administrator.

136 136 

137Review the generated threat model in **Monitoring settings** and update it137Review the generated threat model in **Monitoring settings** and update it

Details

1# Improve the Cloud threat model1# Improve the Daybreak threat model

2 2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5Update a monitored repository's threat model when the generated version misses5Update a monitored repository's threat model when the generated version misses

6security assumptions or deployment context. This guide applies to Codex6security assumptions or deployment context. This guide applies to Daybreak Defense Factory. For local plugin policy, see [Configure the

7Security Cloud. For local plugin policy, see [Configure the

8scan](https://learn.chatgpt.com/docs/security/plugin/scans#configure-the-scan).7scan](https://learn.chatgpt.com/docs/security/plugin/scans#configure-the-scan).

9 8 

10## What a threat model is9## What a threat model is

11 10 

12A threat model is a short security summary of how your repository works. Codex Security creates the first draft from the code and uses it to guide future commit scans and prioritize findings.11A threat model is a short security summary of how your repository works. Daybreak creates the first draft from the code and uses it to guide future commit scans and prioritize findings.

13 12 

14A threat model describes:13A threat model describes:

15 14 


31 30 

32## Edit the threat model31## Edit the threat model

33 32 

341. Open the Codex Security Cloud plugin. See [Cloud setup](https://learn.chatgpt.com/docs/security/setup)331. Open **Daybreak** in the sidebar. See [Cloud setup](https://learn.chatgpt.com/docs/security/setup)

35 if you haven't installed it or configured commit monitoring.34 if you haven't installed it or configured commit monitoring.

362. Open **Repositories** and select the monitored repository.352. Open **Repositories** and select the monitored repository.

373. Open **Monitoring settings**.363. Open **Monitoring settings**.

Details

171on the pull request. Open the associated Codex task and select the **Security171on the pull request. Open the associated Codex task and select the **Security

172Report** tab to view the full report.172Report** tab to view the full report.

173 173 

174## Act on review findings

175 

176After Codex posts a review, you can ask it to fix issues in the same pull

177request by leaving another comment:

178 

179```md

180@codex fix the P1 issue

181```

182 

183Codex starts a [legacy cloud chat](https://learn.chatgpt.com/docs/environments/cloud-environment) with the pull request as context and can push a fix

184back to the branch when it has permission to do so.

185 

186## Give Codex other tasks

187 

188If you mention `@codex` in a comment with anything other than `review`, Codex starts a [legacy cloud chat](https://learn.chatgpt.com/docs/environments/cloud-environment) using your pull request as context.

189 

190```md

191@codex fix the CI failures

192```

193 

194## Troubleshoot code review174## Troubleshoot code review

195 175 

196If Codex doesn't react or post a review:176If Codex doesn't react or post a review:

Details

36 security:36 security:

37 runs-on: ubuntu-24.0437 runs-on: ubuntu-24.04

38 steps:38 steps:

39 - name: Set up the Ubuntu sandbox

40 run: |

41 sudo apt-get update

42 sudo apt-get install --yes bubblewrap apparmor-profiles

43 sudo apparmor_parser -r /usr/share/apparmor/extra-profiles/bwrap-userns-restrict

44 

45 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.139 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

46 with:40 with:

47 persist-credentials: false41 persist-credentials: false

48 - uses: openai/codex-security@3f61e5150981a5087c32e4395bbaa8ce5ce0c3e3 # action-v0.3.042 - uses: openai/codex-security@a98b35d7eef9f85c298c86229445bb64ac427aaf # action-v0.9.1

49 with:43 with:

50 model: gpt-5.6-sol44 model: gpt-5.6-sol

51 effort: high45 effort: high

Details

32 32 

33You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.33You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.

34 34 

35If Codex flags a regression or potential issue, you can ask it to fix it by commenting on the pull request with a follow-up prompt like `@codex fix it`.

36 

37This will start a new cloud chat that will fix the issue and update the pull request.

38 

39## Define review guidance35## Define review guidance

40 36 

41To customize what Codex reviews, add a `## Code Review Rules` section to the37To customize what Codex reviews, add a `## Code Review Rules` section to the