1# Daybreak Defense Factory setup1# Set up Daybreak Defense Factory
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 Daybreak Defense Factory5Daybreak Defense Factory scans code in a connected GitHub repository and shares
6(formerly Codex Security Cloud), then review its findings. Afterward, you can6the findings with your team. Start with one repository or folder. Once you’ve
7enable monitoring for new commits.7reviewed the results, you can monitor new commits or set a schedule.
8 8
9Daybreak Defense Factory runs scans in [Codex cloud](https://learn.chatgpt.com/docs/cloud). For scans
10 of a local repository in the desktop app or CLI, use the separate [Codex
11 Security plugin](https://learn.chatgpt.com/docs/security/plugin).
12 9
13## Before you start
14 10
15Use a workspace with Daybreak Defense Factory access and [Codex cloud](https://learn.chatgpt.com/docs/cloud)11> Illustration: Daybreak welcome screen with options to set up PR reviews, run an agentic scan, or connect your tools.
16set up. You need permission to connect the GitHub repository you want to scan.
17You can create its cloud environment during setup.
18 12
19If the plugin is unavailable, check access with your workspace administrator.
20If a repository is missing, use **Configure access** in the repository picker to
21check the GitHub app's organization and repository access. If you can't grant
22access yourself, ask your GitHub administrator to add the repository.
23 13
24## 1. Install and open the plugin
25 14
261. Open **Plugins** in ChatGPT on the web or in the desktop app.15
272. Search the plugin marketplace for **Daybreak Defense Factory (Preview)**.16
283. Install and enable the plugin, then open **Daybreak** in the sidebar.17
18
19
20
21
22
23
24## Open Daybreak and connect GitHub
25
261. Open **Plugins** on the web or in the desktop app using a ChatGPT workspace with access to Daybreak. Search for **Daybreak Defense Factory (Preview)**, then install and enable it.
272. Open **Daybreak** in the sidebar. On the welcome screen, select **Run an agentic scan**.
283. If prompted, select **Connect GitHub** and sign in with an account that can access the repository.
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"
32 label="Open plugin marketplace"32 label="Open Daybreak in the marketplace"
33 target="_blank"33 target="_blank"
34 rel="noopener noreferrer"34 rel="noopener noreferrer"
35 icon="external"35 icon="external"
36 class="my-8"36 class="my-8"
37/>37/>
38 38
39## 2. Connect GitHub39Cloud scans run in [Codex cloud](https://learn.chatgpt.com/docs/cloud). Each person who starts a scan
40 40needs a personal GitHub connection. Daybreak Defense Factory doesn't support workspace connections. If the repository doesn’t appear, check
41Confirm that [Codex cloud](https://learn.chatgpt.com/docs/cloud) is set up for your workspace. In the41which repositories the GitHub app can access under **Configure access**. Ask your GitHub administrator to
42plugin, select **Scan**. If prompted, select **Connect GitHub** and sign in42add the repository if needed.
43with your own GitHub account. Each person who starts scans needs their own43
44connection and access to the repository.44
45 45
46Daybreak Defense Factory doesn't support workspace connections.46
47 47## Run your first scan
48## 3. Start a repository scan48
49 491. On **Configure your scan**, select a repository.
501. In **New Scan**, choose the repository.502. Choose **Full repository** to scan the default branch, or **Specific folder or files** to narrow the scan. Enter one path per line, relative to the repository root. For example, enter `src/` to scan only the application code in that folder.
512. Review the environment. **Auto** creates an environment when you start.513. Select **Start Scan**. When **First scan queued** appears, select **View scan**. Check the repository and paths in the scan record. You can return to it from **Scans**.
52 Use **Customize** to choose an existing environment. See [Codex cloud52
53 environments](https://learn.chatgpt.com/docs/environments/cloud-environment) for setup details.53
543. Under **Scan Method**, select **One-Time Scan**.54
554. Select **Create**.55> Illustration: Configure your scan with the src/ folder selected in the sample reporting-api repository.
56 56
57Open the scan in **Scans** to follow progress. Wait for it to finish, then57
58check the reported status and target before interpreting its findings. If it58
59fails or is canceled, read the available output as an incomplete review.59
60 60
61## 4. Review findings and available fixes61
62 62When the scan finishes, open a finding to see the affected code and how an
63Open **Findings**. Use **Open findings** to review findings with a **New**,63attacker could reach it. If the scan failed or stopped early, check what it
64**Triaged**, or **In Progress** status. Search the list or use **Filters** to64covered before interpreting the results. See [Review findings and fixes](https://learn.chatgpt.com/docs/security/findings-and-fixes).
65narrow the results. The **Severity and status** chart summarizes the matching65
66findings.66
67 67
68<figure className="not-prose my-8">68
69 <CodexScreenshot69## Choose how to scan a repository
70 alt="Daybreak Defense Factory findings filtered to New, Triaged, and In Progress, with a severity and status chart above the findings table"70
71 lightSrc={cloudFindings.src}71From **New scan**, choose **Cloud**, select the repository, and check the
72 darkSrc={cloudFindings.src}72[cloud environment](https://learn.chatgpt.com/docs/environments/cloud-environment) that Daybreak will use.
73 variant="no-wallpaper"73
74 maxHeight="560px"74| Scan method | When to use it |
75 imageClass="border border-subtle"75| ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
76 panOnMobile76| **Repository scan** | Check the current code once. Use this to look for existing issues, including bugs that span several commits. |
77 />77| **Continuous monitoring** | Check new commits on the default branch. Choose how far back to start if you also want to review recent history. |
78 <figcaption className="mt-3 text-sm text-secondary">78| **Scheduled scan** | Repeat a repository scan on a schedule. Use this for a regular review of the default branch. |
79 Filter and review open findings. Repositories, findings, and counts are79
80 fictional.80
81 </figcaption>81
82</figure>82> Illustration: New scan panel with the Cloud option selected, the three scan methods, and the choice of a full repository or specific paths.
83 83
84Open a finding from the scan or from **Findings**. Check its affected code and84
85revision, the path an attacker could take, and the validation evidence. Read85
86any unresolved assumptions before deciding whether the issue applies. A scan86You can change or pause monitoring in **Continuous scanning settings**. Open
87with no reported findings doesn't establish that the repository has no87**Repositories** and select the repository to find these settings. The owner, people with edit access,
88vulnerabilities.88and Daybreak Defense Factory administrators can change these settings for the whole team. You can also
89 89[edit the repository’s threat model](https://learn.chatgpt.com/docs/security/threat-model) to update the context for future scans.
90When a repository finding offers **Fix with Codex**, selecting it starts a90
91Codex conversation to check the finding against current code, implement a fix,91You can [enable pull request reviews](https://learn.chatgpt.com/docs/security/security-review) to check
92and run relevant tests. Review the resulting changes and test evidence there.92changes before they merge. [Workspace notifications](https://learn.chatgpt.com/docs/security/notifications)
93 93let you send scan events to a service you control.
94Findings from commit monitoring can instead offer a suggested patch. Review94
95that patch before selecting **Create draft pull request**. These actions have95## Scan your local checkout
96different effects, so follow the workflow shown for the finding.96
97 97In the desktop app, select **New scan**, then **Local**. Choose **Codebase** to
98## 5. Monitor new commits98scan the checkout or **Changes** to review uncommitted work. For a codebase
99 99scan, you can limit the scope to one folder. Turn on **Deep scan** if you want
100Once you've reviewed the first scan, you can monitor changes as new commits100multiple passes and can spend more time and tokens.
101arrive:101
102 102Local findings appear in **Overview** on this device. A local scan can send
1031. Select **Scan**, then choose the repository and review the environment.103relevant code and prompts to the configured model provider. Local scans with
1042. Under **Scan Method**, select **Continuous Scanning**. The plugin scans104Daybreak Blue require trusted access. If you see **Apply for Daybreak**, use it
105 the repository's default branch.105to request access.
1063. Choose **Scan commit history from**. Longer windows provide more context,
107 but the initial scan takes longer.
1084. Optionally add threat model scoping guidance.
1095. Select **Create**.
110
111<figure className="not-prose my-8">
112 <CodexScreenshot
113 alt="New Scan settings with the fictional acme/web-app repository, continuous scanning, the main branch, and one week of commit history"
114 lightSrc={cloudScan.src}
115 darkSrc={cloudScan.src}
116 variant="no-wallpaper"
117 maxHeight="560px"
118 imageClass="border border-subtle"
119 panOnMobile
120 />
121 <figcaption className="mt-3 text-sm text-secondary">
122 Configure continuous scanning. The repository shown is fictional.
123 </figcaption>
124</figure>
125
126To adjust monitoring, open **Repositories**, select the repository, and open
127**Monitoring settings**. You can change the Cloud environment, choose how
128many days of history to review, and pause or enable monitoring.
129Select **Save** to apply changes.
130
131The scan owner, people granted edit access, and Daybreak Defense Factory administrators
132can change monitoring settings. Changes, including pausing monitoring, apply to
133that 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 Daybreak Defense Factory
135administrator.
136
137Review the generated threat model in **Monitoring settings** and update it
138with deployment or security context the code doesn't establish. See
139[Improve the threat model](https://learn.chatgpt.com/docs/security/threat-model).
140
141For questions about builds, validation, or result interpretation, see the
142[Cloud FAQ](https://learn.chatgpt.com/docs/security/faq). To review GitHub pull requests, use
143[Security Review](https://learn.chatgpt.com/docs/security/security-review).