@openai/codex-security 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +328 -59
  2. package/_bundled_plugin/examples/completed-scan/report.md +0 -1
  3. package/_bundled_plugin/mcp/native/win32-arm64/windows.node +0 -0
  4. package/_bundled_plugin/mcp/native/win32-x64/windows.node +0 -0
  5. package/_bundled_plugin/mcp/server.mjs.br.part-000 +0 -0
  6. package/_bundled_plugin/mcp/server.mjs.br.part-001 +0 -0
  7. package/_bundled_plugin/references/artifact-storage.md +56 -0
  8. package/_bundled_plugin/references/config-preflight.md +7 -1
  9. package/_bundled_plugin/references/final-report.md +2 -0
  10. package/_bundled_plugin/references/scan-artifacts.md +6 -14
  11. package/_bundled_plugin/references/scan-prologue.md +2 -0
  12. package/_bundled_plugin/references/security-guidance.md +2 -0
  13. package/_bundled_plugin/scripts/deep_scan_config.py +10 -8
  14. package/_bundled_plugin/scripts/deep_scan_defaults.json +8 -0
  15. package/_bundled_plugin/scripts/finalize_scan_contract.py +2 -0
  16. package/_bundled_plugin/scripts/generate_in_scope_files.py +12 -2
  17. package/_bundled_plugin/scripts/generate_rank_input.py +1 -6
  18. package/_bundled_plugin/scripts/rank_preview.py +8 -7
  19. package/_bundled_plugin/scripts/report_projection.py +0 -1
  20. package/_bundled_plugin/scripts/reserved_artifact_paths.json +6 -0
  21. package/_bundled_plugin/scripts/windows_scan_local_files.py +1 -3
  22. package/_bundled_plugin/scripts/workbench/storage.py +18 -0
  23. package/_bundled_plugin/scripts/workbench_cli.py +13 -0
  24. package/_bundled_plugin/scripts/workbench_dashboard.py +24 -3
  25. package/_bundled_plugin/scripts/workbench_db.py +13 -13
  26. package/_bundled_plugin/scripts/workbench_saved_results.py +77 -1
  27. package/_bundled_plugin/scripts/workbench_scan_usage.py +23 -10
  28. package/_bundled_plugin/skills/assess-patch-risk/SKILL.md +2 -0
  29. package/_bundled_plugin/skills/attack-path-analysis/SKILL.md +2 -0
  30. package/_bundled_plugin/skills/deep-security-scan/SKILL.md +5 -1
  31. package/_bundled_plugin/skills/finding-discovery/SKILL.md +2 -0
  32. package/_bundled_plugin/skills/fix-finding/SKILL.md +3 -1
  33. package/_bundled_plugin/skills/fix-finding/agents/openai.yaml +1 -1
  34. package/_bundled_plugin/skills/propose-security-hardening/SKILL.md +2 -0
  35. package/_bundled_plugin/skills/security-scan/references/desktop-scan.md +5 -1
  36. package/_bundled_plugin/skills/threat-model/SKILL.md +2 -0
  37. package/_bundled_plugin/skills/validation/SKILL.md +2 -0
  38. package/_bundled_plugin/skills/vulnerability-writeup/SKILL.md +2 -0
  39. package/dist/api.d.ts +7 -23
  40. package/dist/api.d.ts.map +1 -1
  41. package/dist/api.js +109 -113
  42. package/dist/api.js.map +1 -1
  43. package/dist/auth.d.ts.map +1 -1
  44. package/dist/auth.js.map +1 -1
  45. package/dist/bulk-scan-discovery.d.ts +1 -1
  46. package/dist/bulk-scan-discovery.d.ts.map +1 -1
  47. package/dist/bulk-scan-discovery.js +2 -2
  48. package/dist/bulk-scan-discovery.js.map +1 -1
  49. package/dist/classify-scan-severity.js.map +1 -1
  50. package/dist/classify-severity.d.ts.map +1 -1
  51. package/dist/classify-severity.js.map +1 -1
  52. package/dist/cli-scan-logs-json.d.ts +3 -0
  53. package/dist/cli-scan-logs-json.d.ts.map +1 -0
  54. package/dist/cli-scan-logs-json.js +22 -0
  55. package/dist/cli-scan-logs-json.js.map +1 -0
  56. package/dist/cli.d.ts +6 -2
  57. package/dist/cli.d.ts.map +1 -1
  58. package/dist/cli.js +802 -394
  59. package/dist/cli.js.map +1 -1
  60. package/dist/cloud-publish.js.map +1 -1
  61. package/dist/component-plan.js.map +1 -1
  62. package/dist/component-scan.d.ts +4 -2
  63. package/dist/component-scan.d.ts.map +1 -1
  64. package/dist/component-scan.js +7 -1
  65. package/dist/component-scan.js.map +1 -1
  66. package/dist/config-path.d.ts +6 -0
  67. package/dist/config-path.d.ts.map +1 -0
  68. package/dist/config-path.js +6 -0
  69. package/dist/config-path.js.map +1 -0
  70. package/dist/config.d.ts +2 -0
  71. package/dist/config.d.ts.map +1 -1
  72. package/dist/config.js +13 -3
  73. package/dist/config.js.map +1 -1
  74. package/dist/contract.js.map +1 -1
  75. package/dist/cost-model.d.ts +20 -6
  76. package/dist/cost-model.d.ts.map +1 -1
  77. package/dist/cost-model.js +73 -8
  78. package/dist/cost-model.js.map +1 -1
  79. package/dist/cost.d.ts.map +1 -1
  80. package/dist/custom-publish.js.map +1 -1
  81. package/dist/deduplication/checkpointed-review.d.ts.map +1 -1
  82. package/dist/deduplication/checkpointed-review.js.map +1 -1
  83. package/dist/deduplication/codex-review.d.ts.map +1 -1
  84. package/dist/deduplication/codex-review.js +26 -4
  85. package/dist/deduplication/codex-review.js.map +1 -1
  86. package/dist/deduplication/deduplication-reviewer.d.ts.map +1 -1
  87. package/dist/deduplication/deduplication-reviewer.js.map +1 -1
  88. package/dist/deduplication/deduplication.d.ts +12 -1
  89. package/dist/deduplication/deduplication.d.ts.map +1 -1
  90. package/dist/deduplication/deduplication.js +41 -7
  91. package/dist/deduplication/deduplication.js.map +1 -1
  92. package/dist/deduplication/refusal.d.ts +3 -0
  93. package/dist/deduplication/refusal.d.ts.map +1 -0
  94. package/dist/deduplication/refusal.js +16 -0
  95. package/dist/deduplication/refusal.js.map +1 -0
  96. package/dist/deduplication/scan.d.ts.map +1 -1
  97. package/dist/deduplication/scan.js.map +1 -1
  98. package/dist/deep-config.d.ts +17 -0
  99. package/dist/deep-config.d.ts.map +1 -0
  100. package/dist/deep-config.js +145 -0
  101. package/dist/deep-config.js.map +1 -0
  102. package/dist/deep-progress.d.ts.map +1 -1
  103. package/dist/deep-scan-defaults.d.ts +9 -0
  104. package/dist/deep-scan-defaults.d.ts.map +1 -0
  105. package/dist/deep-scan-defaults.js +10 -0
  106. package/dist/deep-scan-defaults.js.map +1 -0
  107. package/dist/errors.d.ts +1 -1
  108. package/dist/errors.d.ts.map +1 -1
  109. package/dist/errors.js +2 -2
  110. package/dist/errors.js.map +1 -1
  111. package/dist/feedback.d.ts.map +1 -1
  112. package/dist/feedback.js +21 -7
  113. package/dist/feedback.js.map +1 -1
  114. package/dist/finding-catalogue.js.map +1 -1
  115. package/dist/finding-workflow.d.ts.map +1 -1
  116. package/dist/finding-workflow.js.map +1 -1
  117. package/dist/findings-client.d.ts.map +1 -1
  118. package/dist/findings-client.js.map +1 -1
  119. package/dist/findings-import.d.ts +6 -6
  120. package/dist/github.d.ts +625 -7
  121. package/dist/github.d.ts.map +1 -1
  122. package/dist/github.js.map +1 -1
  123. package/dist/import-scan.js.map +1 -1
  124. package/dist/index.d.ts +6 -0
  125. package/dist/index.d.ts.map +1 -1
  126. package/dist/index.js +1 -0
  127. package/dist/index.js.map +1 -1
  128. package/dist/knowledge-base.d.ts.map +1 -1
  129. package/dist/knowledge-base.js +17 -6
  130. package/dist/knowledge-base.js.map +1 -1
  131. package/dist/models.d.ts.map +1 -1
  132. package/dist/models.js.map +1 -1
  133. package/dist/multiscan.d.ts +6 -6
  134. package/dist/multiscan.d.ts.map +1 -1
  135. package/dist/multiscan.js +69 -4
  136. package/dist/multiscan.js.map +1 -1
  137. package/dist/patch-tui.d.ts.map +1 -1
  138. package/dist/patch-tui.js.map +1 -1
  139. package/dist/project-config-schema.d.ts +191 -0
  140. package/dist/project-config-schema.d.ts.map +1 -0
  141. package/dist/project-config-schema.js +85 -0
  142. package/dist/project-config-schema.js.map +1 -0
  143. package/dist/project-config.d.ts +50 -0
  144. package/dist/project-config.d.ts.map +1 -0
  145. package/dist/project-config.js +220 -0
  146. package/dist/project-config.js.map +1 -0
  147. package/dist/prompt-files.d.ts +13 -0
  148. package/dist/prompt-files.d.ts.map +1 -0
  149. package/dist/prompt-files.js +74 -0
  150. package/dist/prompt-files.js.map +1 -0
  151. package/dist/publication-events.d.ts.map +1 -1
  152. package/dist/publication-events.js.map +1 -1
  153. package/dist/publish.d.ts.map +1 -1
  154. package/dist/publish.js +1 -1
  155. package/dist/publish.js.map +1 -1
  156. package/dist/result.d.ts +2 -1
  157. package/dist/result.d.ts.map +1 -1
  158. package/dist/result.js +5 -0
  159. package/dist/result.js.map +1 -1
  160. package/dist/runtime.js +4 -4
  161. package/dist/runtime.js.map +1 -1
  162. package/dist/scan-comparison.d.ts.map +1 -1
  163. package/dist/scan-comparison.js.map +1 -1
  164. package/dist/scan-dashboard.d.ts +1 -0
  165. package/dist/scan-dashboard.d.ts.map +1 -1
  166. package/dist/scan-dashboard.js +34 -22
  167. package/dist/scan-dashboard.js.map +1 -1
  168. package/dist/scan-history-renderer.d.ts.map +1 -1
  169. package/dist/scan-history-renderer.js.map +1 -1
  170. package/dist/scan-logs.d.ts +12 -5
  171. package/dist/scan-logs.d.ts.map +1 -1
  172. package/dist/scan-logs.js +76 -19
  173. package/dist/scan-logs.js.map +1 -1
  174. package/dist/scan-modes.d.ts +3 -0
  175. package/dist/scan-modes.d.ts.map +1 -0
  176. package/dist/scan-modes.js +2 -0
  177. package/dist/scan-modes.js.map +1 -0
  178. package/dist/scan-settings.d.ts +81 -0
  179. package/dist/scan-settings.d.ts.map +1 -0
  180. package/dist/scan-settings.js +123 -0
  181. package/dist/scan-settings.js.map +1 -0
  182. package/dist/security-policy-cli.js +2 -2
  183. package/dist/security-policy-cli.js.map +1 -1
  184. package/dist/security-policy.d.ts.map +1 -1
  185. package/dist/security-policy.js.map +1 -1
  186. package/dist/server/dashboard/THIRD_PARTY_NOTICES.txt +3 -3
  187. package/dist/server/dashboard/app.css +1 -1
  188. package/dist/server/dashboard/app.js +7 -7
  189. package/dist/server/dashboard-types.d.ts +4 -1
  190. package/dist/server/dashboard-types.d.ts.map +1 -1
  191. package/dist/server/dashboard-types.js.map +1 -1
  192. package/dist/server/dashboard.d.ts.map +1 -1
  193. package/dist/server/dashboard.js +18 -4
  194. package/dist/server/dashboard.js.map +1 -1
  195. package/dist/server/embeddings.d.ts.map +1 -1
  196. package/dist/server/embeddings.js.map +1 -1
  197. package/dist/server/errors.d.ts.map +1 -1
  198. package/dist/server/errors.js.map +1 -1
  199. package/dist/server/findings-service.d.ts.map +1 -1
  200. package/dist/server/findings-service.js.map +1 -1
  201. package/dist/server/serve.js.map +1 -1
  202. package/dist/server/sqlite-store.d.ts.map +1 -1
  203. package/dist/server/sqlite-store.js.map +1 -1
  204. package/dist/severity-store.js.map +1 -1
  205. package/dist/targets.d.ts +2 -1
  206. package/dist/targets.d.ts.map +1 -1
  207. package/dist/targets.js +4 -4
  208. package/dist/targets.js.map +1 -1
  209. package/dist/thread-source.d.ts.map +1 -1
  210. package/dist/version.js.map +1 -1
  211. package/dist/worker-progress.d.ts.map +1 -1
  212. package/dist/worker-progress.js.map +1 -1
  213. package/package.json +31 -28
  214. package/schemas/project-config.schema.json +211 -0
@@ -3,11 +3,13 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import argparse
6
+ import base64
6
7
  import copy
7
8
  import hashlib
8
9
  import json
9
10
  import os
10
11
  import re
12
+ import sqlite3
11
13
  import stat
12
14
  import sys
13
15
  from collections.abc import Callable, Iterator
@@ -34,6 +36,7 @@ from finalize_scan_contract import (
34
36
  open_scan_local_file_descriptor,
35
37
  write_scan_local_bytes,
36
38
  )
39
+ from workbench_constants import PHASES
37
40
  from workbench_validation import path_within_scope
38
41
 
39
42
  _PUBLISHED_OUTPUTS = (
@@ -47,6 +50,9 @@ _PUBLISHED_OUTPUTS = (
47
50
  _PUBLICATION_FOLLOW_UP_WARNING = (
48
51
  "Saved scan evidence remains on disk; result publication needs follow-up:"
49
52
  )
53
+ _RESERVED_ARTIFACT_PATHS = json.loads(
54
+ Path(__file__).with_name("reserved_artifact_paths.json").read_text(encoding="utf-8")
55
+ )
50
56
 
51
57
 
52
58
  @dataclass(frozen=True)
@@ -679,6 +685,11 @@ def merge_saved_results(
679
685
  "deferred": [],
680
686
  }
681
687
  )
688
+ if isinstance(coverage.get("openQuestions"), list):
689
+ coverage["openQuestions"] = [
690
+ {"question": item.strip()} if isinstance(item, str) else item
691
+ for item in coverage["openQuestions"]
692
+ ]
682
693
  canonical_rows = (
683
694
  {
684
695
  id(item)
@@ -1254,7 +1265,6 @@ def preserve_scan_results_locked(
1254
1265
  for relative, digest in retained_sources.items()
1255
1266
  ):
1256
1267
  raise ContractError("Stopped scan source digests could not be frozen.")
1257
- frozen_source_digests = retained_sources
1258
1268
  with connection:
1259
1269
  connection.execute(
1260
1270
  "UPDATE scans SET retained_source_digests_json = ? "
@@ -1334,6 +1344,49 @@ def preserve_scan_results(db: Any, connection: Any, args: Any) -> dict[str, Any]
1334
1344
  return db.scan_context(connection, scan_id)
1335
1345
 
1336
1346
 
1347
+ def read_or_save_artifact(args: Any) -> dict[str, Any]:
1348
+ """Read or publish supplemental bytes through verified filesystem handles."""
1349
+ root = Path(args.artifact_root)
1350
+ if args.command == "read-artifact":
1351
+ descriptor = open_scan_local_file_descriptor(root, args.artifact_path, "Saved artifact")
1352
+ with os.fdopen(descriptor, "rb") as source:
1353
+ return {"content": base64.b64encode(source.read()).decode("ascii")}
1354
+ write_scan_local_bytes(root, args.artifact_path, sys.stdin.buffer.read())
1355
+ return {"path": str(root / args.artifact_path)}
1356
+
1357
+
1358
+ def save_scan_artifact(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1359
+ """Publish supplemental bytes under the same lock as finalization and recovery."""
1360
+ scan_id = db.require_uuid(args.scan_id, "scan-id")
1361
+ with db.scan_completion_lock(scan_id):
1362
+ scan = db.require_scan(connection, scan_id)
1363
+ db.handoff.require_current_continuation(
1364
+ scan,
1365
+ args.claim_token,
1366
+ error_message="Scan artifacts are owned by another continuation.",
1367
+ )
1368
+ if scan["status"] != "running" or scan["seal_manifest_digest"] is not None:
1369
+ raise SystemExit("The scan stopped; its artifacts cannot be modified.")
1370
+ scan_dir = db.require_canonical_scan_directory(Path(scan["scan_dir"]))
1371
+ manifest_path = db.artifact_path(scan_dir, "scan-manifest.json", required=False)
1372
+ if manifest_path is not None:
1373
+ manifest = db.read_json_object(manifest_path).get("scan", {})
1374
+ if manifest.get("sealedAt") is not None or manifest.get("artifacts") is not None:
1375
+ raise SystemExit("The scan is sealed; its artifacts cannot be modified.")
1376
+ output = args.artifact_path
1377
+ key = output.lower()
1378
+ if not (
1379
+ key.startswith(("artifacts/", "findings/", "hardening/"))
1380
+ or key == "report_validation.md"
1381
+ ) or any(
1382
+ key == reserved or key.startswith(reserved + "/")
1383
+ for reserved in _RESERVED_ARTIFACT_PATHS
1384
+ ):
1385
+ raise SystemExit("Use the typed scan tools for canonical artifacts and checkpoints.")
1386
+ write_scan_local_bytes(scan_dir, output, sys.stdin.buffer.read())
1387
+ return {"scanId": scan_id, "path": str(scan_dir / output)}
1388
+
1389
+
1337
1390
  def write_scan_draft(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1338
1391
  scan_id = db.require_uuid(args.scan_id, "scan-id")
1339
1392
  with db.scan_completion_lock(scan_id):
@@ -1405,6 +1458,29 @@ def write_scan_draft(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1405
1458
  filename,
1406
1459
  (json.dumps(document, allow_nan=False, indent=2) + "\n").encode(),
1407
1460
  )
1461
+ # Accepted Standard drafts are evidence of review or report assembly,
1462
+ # even when the parent omitted its explicit progress call.
1463
+ if scan["mode"] == "standard":
1464
+ phase = "discovery" if manifest["scan"].get("complete") is False else "reporting"
1465
+ earlier = PHASES[: PHASES.index(phase)]
1466
+ placeholders = ",".join("?" for _ in earlier)
1467
+ timestamp = db.now()
1468
+ try:
1469
+ with connection:
1470
+ changed = connection.execute(
1471
+ "UPDATE scans SET phase = ?, updated_at = ? "
1472
+ f"WHERE id = ? AND status = 'running' AND phase IN ({placeholders})",
1473
+ (phase, timestamp, scan_id, *earlier),
1474
+ )
1475
+ if changed.rowcount:
1476
+ connection.execute(
1477
+ "UPDATE scan_progress SET phase_items_total = 0, "
1478
+ "phase_items_completed = 0, phase_progress_unit = NULL, updated_at = ? "
1479
+ "WHERE scan_id = ?",
1480
+ (timestamp, scan_id),
1481
+ )
1482
+ except sqlite3.Error as exc:
1483
+ print(f"Could not save scan progress: {exc}", file=sys.stderr)
1408
1484
  return {"scanId": scan_id, "status": "draft_written"}
1409
1485
 
1410
1486
 
@@ -174,18 +174,21 @@ def _scan_root_thread_ids(
174
174
  connection: sqlite3.Connection,
175
175
  scan: sqlite3.Row,
176
176
  supplied_thread_id: str | None,
177
+ *,
178
+ include_owner_threads: bool = True,
177
179
  ) -> list[str]:
178
180
  candidates: list[str | None] = [supplied_thread_id]
179
- if "continuation_thread_id" in scan.keys():
180
- candidates.append(scan["continuation_thread_id"])
181
- if "deep_scan_owner_thread_id" in scan.keys():
182
- candidates.append(scan["deep_scan_owner_thread_id"])
183
- workspace = connection.execute(
184
- "SELECT thread_id FROM workspaces WHERE id = ?",
185
- (scan["workspace_id"],),
186
- ).fetchone()
187
- if workspace is not None:
188
- candidates.append(workspace["thread_id"])
181
+ if include_owner_threads:
182
+ if "continuation_thread_id" in scan.keys():
183
+ candidates.append(scan["continuation_thread_id"])
184
+ if "deep_scan_owner_thread_id" in scan.keys():
185
+ candidates.append(scan["deep_scan_owner_thread_id"])
186
+ workspace = connection.execute(
187
+ "SELECT thread_id FROM workspaces WHERE id = ?",
188
+ (scan["workspace_id"],),
189
+ ).fetchone()
190
+ if workspace is not None:
191
+ candidates.append(workspace["thread_id"])
189
192
  if scan["mode"] == "deep":
190
193
  candidates.extend(
191
194
  row["sdk_thread_id"]
@@ -208,6 +211,16 @@ def _scan_root_thread_ids(
208
211
  return roots
209
212
 
210
213
 
214
+ def _scan_execution_thread_ids(connection: sqlite3.Connection, scan: sqlite3.Row) -> list[str]:
215
+ # CLI recipes identify dedicated executions; Desktop continuations can be shared.
216
+ return _scan_root_thread_ids(
217
+ connection,
218
+ scan,
219
+ scan["continuation_thread_id"] if scan["recipe_json"] is not None else None,
220
+ include_owner_threads=False,
221
+ )
222
+
223
+
211
224
  def _codex_state_database() -> Path | None:
212
225
  configured_database = os.environ.get("CODEX_STATE_DB", "").strip()
213
226
  if configured_database:
@@ -5,6 +5,8 @@ description: "Assess an immutable patch artifact's program impact, regression ri
5
5
 
6
6
  # Assess Patch Risk
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  Explain what can change if the patch merges and whether the available evidence supports merging it. Keep these concepts separate:
9
11
 
10
12
  - **impact if wrong**: the consequence and blast radius of a regression;
@@ -5,6 +5,8 @@ description: Use when Codex is already in the attack-path-analysis phase of a se
5
5
 
6
6
  # Security Attack Path Analysis
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Objective
9
11
 
10
12
  Turn validated or still-plausible findings into explicit attacker stories, structured attack-path analysis facts, severity calibration, and a final reportability decision grounded in the threat model.
@@ -39,7 +39,11 @@ After preserving any native continuation's scan context and applying its one-tim
39
39
 
40
40
  ## Daybreak Access Advisory
41
41
 
42
- Immediately before the first `start_codex_security_deep_scan` call, the top-level parent calls the plugin's `get_codex_security_daybreak_access` tool once when available; workers never perform this advisory. ChatGPT-authenticated desktop and CLI sessions both support this advisory; API-key-only sessions cannot verify account access. Reuse an existing result when continuing the same scan. Report the exact `status` and available Daybreak programs. If `status` is `not_granted`, prominently warn before scan-start progress that Daybreak access is not granted and protected outputs may not be displayable, and include the returned `enrollmentUrl` as a clickable application link, falling back to `https://chatgpt.com/cyber` when it is absent. If `status` is `unknown`, `stale` is `true`, or the tool is unavailable or fails, warn that access could not be verified and protected outputs may not be displayable. Then continue regardless: the advisory never authorizes, gates, or becomes a capability preflight for the scan. Do not poll or repeat it between phases; recheck only when the user explicitly requests a fresh result after an account or Daybreak access change.
42
+ Immediately before the first `start_codex_security_deep_scan` call, the top-level parent calls the plugin's `get_codex_security_daybreak_access` tool once only if it is available in the current session; workers never perform this advisory. If the tool is unavailable, skip the advisory silently: do not attempt a call, probe for it, or use a replacement access tool or connector. ChatGPT-authenticated desktop and CLI sessions support this advisory; skip it silently in known API-key-only sessions, which cannot verify account access. Reuse an existing result when continuing the same scan.
43
+
44
+ If the call fails, returns `status: "unknown"`, or returns `stale: true`, continue silently. Do not expose the unavailable check, unknown status, empty program list, or a speculative protected-output warning in progress messages or the final response. For a fresh `granted` result, report the exact status and available Daybreak programs. For a fresh `not_granted` result, prominently warn before scan-start progress that Daybreak access is not granted and protected outputs may not be displayable, and include the returned `enrollmentUrl` as a clickable application link, falling back to `https://chatgpt.com/cyber` when absent.
45
+
46
+ Continue regardless: the advisory never authorizes, gates, or becomes a capability preflight for the scan. Do not retry, poll, or repeat it between phases. If the user explicitly asks about Daybreak access, report the result or explain that it could not be verified; an unavailable or unknown result does not establish that access is denied. Recheck only when the user explicitly requests a fresh result after an account or Daybreak access change, and only when the tool is available.
43
47
 
44
48
  ## Run Independent Standard Scans
45
49
 
@@ -5,6 +5,8 @@ description: Use when Codex is already in the finding-discovery phase of a secur
5
5
 
6
6
  # Security Finding Discovery
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Objective
9
11
 
10
12
  Investigate the proposed code or code changes for technically plausible security vulnerabilities using the threat model as context.
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: fix-finding
3
- description: Use when the user explicitly asks to fix and verify a validated or plausible security finding. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.
3
+ description: Use only when the user explicitly asks to fix and verify a validated or plausible security vulnerability. Do not use for ordinary bug fixes, correctness or design review findings, general validation, or full PR, commit, branch, patch, or repository scans.
4
4
  ---
5
5
 
6
6
  # Fix Finding
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Objective
9
11
 
10
12
  Turn a current security finding into a minimal, validated code change. If the code is already safe, prove that and report that no change was needed.
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "Fix Finding"
2
+ display_name: "Fix Security Finding"
3
3
  short_description: "Fix and verify a given security finding"
4
4
  default_prompt: "Use $fix-finding to fix a given security finding and verify the issue no longer reproduces."
@@ -5,6 +5,8 @@ description: Develop evidence-backed structural and architectural security harde
5
5
 
6
6
  # Propose Security Hardening
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Objective
9
11
 
10
12
  Turn a collection of security evidence into a decision-ready portfolio of structural or architectural hardening opportunities. The evidence may be a Codex Security scan that is still in final reporting or is already complete,
@@ -12,7 +12,11 @@ Resolve the target, requested scope, and user-provided security context before s
12
12
 
13
13
  Use the returned `scanId`, `scanDir`, scope, and exact `userContext` throughout the parent workflow. Read `../../../references/desktop-config-preflight.md` and run capability preflight only after this authoritative context exists.
14
14
 
15
- Use the existing desktop phase labels for work that actually occurs: threat mapping, investigation, parent-led validation, attack-path assessment, and report assembly. Preserve the authoritative scan ID and handoff token. Increase the investigator total before dispatching each newly discovered assignment; the concurrently running baseline is independent and does not inflate that total. Capture each completed, source-backed investigation as a real coverage surface before advancing its `review_receipts` progress count. Do not create separate receipt files. Advance later phase counts only after the corresponding finding or report artifact exists, and never invent counts, phase workers, or coverage.
15
+ ## Publish Live Progress
16
+
17
+ Call `update_codex_security_scan_progress({ scanId, handoffClaimToken, phase })` when entering each real phase. After publishing a ready preflight result, set `phase: "threat_model"` before mapping security boundaries. Set `discovery` before dispatching investigation packets, `validation` before parent validation, `attack_path` before assessing reachability, and `reporting` before assembling the final report inputs. Preserve the current phase when work overlaps; never move backward or repeat completed work. Use the returned `scan.userContext` for the new phase and its workers.
18
+
19
+ Publish meaningful completed-review batches through the same tool. Increase the investigator total before dispatching each newly discovered assignment; the concurrently running baseline is independent and does not inflate that total. Capture each completed, source-backed investigation as a real coverage surface before advancing its `review_receipts` progress count. Do not create separate receipt files. Advance later phase counts only after the corresponding finding or report artifact exists, and never invent counts, phase workers, or coverage. Accepted checkpoints also advance a Standard scan to at least `discovery`, and the final draft advances it to `reporting`; publish earlier phase transitions as they happen instead of waiting for a checkpoint.
16
20
 
17
21
  ## Complete The Same Scan
18
22
 
@@ -5,6 +5,8 @@ description: Use when Codex is already in the threat-modeling phase of a securit
5
5
 
6
6
  # Security Threat Model
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  Create or reuse the repository-scoped threat model defined in `../../references/scan-artifacts.md`. Honor explicit user-provided input and output paths. If an explicitly required input is missing, ask for it instead of substituting a generated model. A generated model describes the repository's actual architecture, attacker capabilities, trust boundaries, and security-relevant failure modes.
9
11
 
10
12
  Standard scans and Deep Scan workers build their threat models within their ordinary Standard scan workflow; neither invokes this separate phase skill.
@@ -5,6 +5,8 @@ description: Use when Codex is already in the validation phase of a security sca
5
5
 
6
6
  # Security Validation
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Objective
9
11
 
10
12
  Take candidate findings from discovery and produce the strongest evidence-backed validation assessment you can. Prefer targeted, non-interactive reproduction or falsification when it is feasible and proportionate, but use focused code tracing when dynamic execution is blocked by missing services, unavailable infrastructure, or excessive setup relative to the candidate and scan scope.
@@ -5,6 +5,8 @@ description: Turn vulnerability notes, disclosure reports, PoCs, source code, or
5
5
 
6
6
  # Vulnerability Writeup
7
7
 
8
+ Before choosing paths or saving retained output, read `../../references/artifact-storage.md` and follow its storage policy.
9
+
8
10
  ## Purpose
9
11
 
10
12
  Produce a disclosure report that another security researcher can understand, check and, where safely possible, reproduce. Treat the original finding as a hypothesis, not a conclusion. Establish the assessed software version, attacker position, reachable entry point, expected security behaviour, actual failure and narrowest demonstrated impact before deciding how strongly the report can speak. Pin the exact underlying source privately so the report remains accurate without burdening the reader with unnecessary commit hashes.
package/dist/api.d.ts CHANGED
@@ -3,40 +3,26 @@ import { CodexLoginHandle, type AccountStatus } from "./auth.js";
3
3
  import { type CodexSecurityConfig, type JsonObject } from "./config.js";
4
4
  import { type ScanCost, type ScanSessionEvent } from "./cost.js";
5
5
  import { type DeepScanProgress } from "./deep-progress.js";
6
+ import { type DeepScanSources } from "./deep-config.js";
7
+ import { type DeepScanOptions, type ScanAuthMode, type ScanSettings } from "./scan-settings.js";
8
+ export { SCAN_AUTH_MODES } from "./scan-settings.js";
9
+ export type { DeepScanOptions, ScanAuthMode } from "./scan-settings.js";
6
10
  import { ScanResult } from "./result.js";
7
- import type { SeverityLevel } from "./models.js";
8
11
  import { type SecurityPolicyDraft, type SecurityPolicyOptions, type SecurityPolicyPreflight } from "./security-policy.js";
9
12
  import { type ScanActivity } from "./scan-activity.js";
10
13
  import { type ScanProgress, type ScanWorkerStatus } from "./worker-progress.js";
11
14
  import { importAmbientAuth, type ProcessEnvironment } from "./runtime.js";
12
- import { type NormalizedTarget, type ScanMode, type ScanTarget } from "./targets.js";
13
- export interface DeepScanOptions {
14
- workers?: number;
15
- subagents?: number;
16
- stopAfterNoNew?: number;
17
- maxDiscoveryRuns?: number;
18
- maxTimeHours?: number;
19
- }
20
- export interface ScanOptions extends DeepScanOptions {
15
+ import { type NormalizedTarget, type ScanMode } from "./targets.js";
16
+ export interface ScanOptions extends ScanSettings {
21
17
  /** Save synthetic Standard scan results without calling Codex or a model. */
22
18
  mock?: boolean;
23
19
  /** Opt into a durable scan -> custom publication -> dedupe workflow. */
24
20
  workflowId?: string;
25
- auth?: ScanAuthMode;
26
21
  /** Stable, privacy-preserving end-user ID for this scan's model requests. */
27
22
  safetyIdentifier?: string;
28
- target?: ScanTarget;
29
- mode?: ScanMode;
30
- knowledgeBasePaths?: string[];
31
- scanPrompt?: string;
32
- validationPrompt?: string;
33
- postScanPrompt?: string;
34
- outputDir?: string;
35
23
  archiveExisting?: boolean;
36
24
  parentScanId?: string;
37
25
  expectedPluginVersion?: string;
38
- failureSeverity?: SeverityLevel;
39
- maxCostUsd?: number;
40
26
  onCost?: (cost: Readonly<ScanCost>, maxCostUsd?: number) => void;
41
27
  onBudgetApproaching?: (budget: ScanBudget) => number | undefined | Promise<number | undefined>;
42
28
  onOutputArchived?: (archiveDir: string) => void;
@@ -66,8 +52,6 @@ export interface ValidationResult {
66
52
  outputDir: string;
67
53
  threadId: string | null;
68
54
  }
69
- export declare const SCAN_AUTH_MODES: readonly ["auto", "chatgpt", "api-key"];
70
- export type ScanAuthMode = (typeof SCAN_AUTH_MODES)[number];
71
55
  export type ScanAuthentication = {
72
56
  method: "command";
73
57
  verified: false;
@@ -110,6 +94,7 @@ export interface ScanPreflight extends DeepScanOptions {
110
94
  modelProvider?: string;
111
95
  reasoningEffort: string;
112
96
  maxCostUsd?: number;
97
+ deepScanSources?: DeepScanSources;
113
98
  }
114
99
  export interface CodexSecurityMetadata {
115
100
  sdk: "@openai/codex-sdk";
@@ -153,5 +138,4 @@ export declare function classifyConnectionFailure(error: unknown): "rate_limited
153
138
  export declare function scanRuntimeCodexConfig(config: JsonObject, protectedCredentialHome?: string): JsonObject;
154
139
  export declare function scanPreflightCodexConfig(config: JsonObject): JsonObject;
155
140
  export declare function environmentValue(environment: ProcessEnvironment, requested: string): string | undefined;
156
- export {};
157
141
  //# sourceMappingURL=api.d.ts.map
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAqCA,OAAO,EAKL,gBAAgB,EAGhB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAMnB,OAAO,EAaL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAiC5B,OAAO,EACL,UAAU,EAIX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAaL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAI7B,MAAM,sB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