@openai/codex-security 0.1.27 → 0.1.28

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 (187) hide show
  1. package/README.md +250 -55
  2. package/_bundled_plugin/mcp/native/win32-arm64/windows.node +0 -0
  3. package/_bundled_plugin/mcp/native/win32-x64/windows.node +0 -0
  4. package/_bundled_plugin/mcp/server.mjs.br.part-000 +0 -0
  5. package/_bundled_plugin/mcp/server.mjs.br.part-001 +0 -0
  6. package/_bundled_plugin/references/artifact-storage.md +56 -0
  7. package/_bundled_plugin/references/config-preflight.md +7 -1
  8. package/_bundled_plugin/references/final-report.md +2 -0
  9. package/_bundled_plugin/references/scan-artifacts.md +6 -14
  10. package/_bundled_plugin/references/scan-prologue.md +2 -0
  11. package/_bundled_plugin/references/security-guidance.md +2 -0
  12. package/_bundled_plugin/scripts/deep_scan_config.py +10 -8
  13. package/_bundled_plugin/scripts/deep_scan_defaults.json +8 -0
  14. package/_bundled_plugin/scripts/reserved_artifact_paths.json +6 -0
  15. package/_bundled_plugin/scripts/windows_scan_local_files.py +1 -3
  16. package/_bundled_plugin/scripts/workbench/storage.py +18 -0
  17. package/_bundled_plugin/scripts/workbench_cli.py +13 -0
  18. package/_bundled_plugin/scripts/workbench_db.py +13 -13
  19. package/_bundled_plugin/scripts/workbench_saved_results.py +72 -1
  20. package/_bundled_plugin/scripts/workbench_scan_usage.py +23 -10
  21. package/_bundled_plugin/skills/assess-patch-risk/SKILL.md +2 -0
  22. package/_bundled_plugin/skills/attack-path-analysis/SKILL.md +2 -0
  23. package/_bundled_plugin/skills/deep-security-scan/SKILL.md +5 -1
  24. package/_bundled_plugin/skills/finding-discovery/SKILL.md +2 -0
  25. package/_bundled_plugin/skills/fix-finding/SKILL.md +3 -1
  26. package/_bundled_plugin/skills/fix-finding/agents/openai.yaml +1 -1
  27. package/_bundled_plugin/skills/propose-security-hardening/SKILL.md +2 -0
  28. package/_bundled_plugin/skills/security-scan/references/desktop-scan.md +5 -1
  29. package/_bundled_plugin/skills/threat-model/SKILL.md +2 -0
  30. package/_bundled_plugin/skills/validation/SKILL.md +2 -0
  31. package/_bundled_plugin/skills/vulnerability-writeup/SKILL.md +2 -0
  32. package/dist/api.d.ts +7 -23
  33. package/dist/api.d.ts.map +1 -1
  34. package/dist/api.js +109 -113
  35. package/dist/api.js.map +1 -1
  36. package/dist/auth.d.ts.map +1 -1
  37. package/dist/auth.js.map +1 -1
  38. package/dist/bulk-scan-discovery.d.ts +1 -1
  39. package/dist/bulk-scan-discovery.d.ts.map +1 -1
  40. package/dist/bulk-scan-discovery.js +2 -2
  41. package/dist/bulk-scan-discovery.js.map +1 -1
  42. package/dist/classify-scan-severity.js.map +1 -1
  43. package/dist/classify-severity.d.ts.map +1 -1
  44. package/dist/classify-severity.js.map +1 -1
  45. package/dist/cli.d.ts +6 -2
  46. package/dist/cli.d.ts.map +1 -1
  47. package/dist/cli.js +646 -365
  48. package/dist/cli.js.map +1 -1
  49. package/dist/cloud-publish.js.map +1 -1
  50. package/dist/component-plan.js.map +1 -1
  51. package/dist/component-scan.d.ts +4 -2
  52. package/dist/component-scan.d.ts.map +1 -1
  53. package/dist/component-scan.js +7 -1
  54. package/dist/component-scan.js.map +1 -1
  55. package/dist/config-path.d.ts +6 -0
  56. package/dist/config-path.d.ts.map +1 -0
  57. package/dist/config-path.js +6 -0
  58. package/dist/config-path.js.map +1 -0
  59. package/dist/config.d.ts +2 -0
  60. package/dist/config.d.ts.map +1 -1
  61. package/dist/config.js +13 -3
  62. package/dist/config.js.map +1 -1
  63. package/dist/contract.js.map +1 -1
  64. package/dist/cost-model.d.ts +20 -6
  65. package/dist/cost-model.d.ts.map +1 -1
  66. package/dist/cost-model.js +73 -8
  67. package/dist/cost-model.js.map +1 -1
  68. package/dist/cost.d.ts.map +1 -1
  69. package/dist/custom-publish.js.map +1 -1
  70. package/dist/deduplication/checkpointed-review.d.ts.map +1 -1
  71. package/dist/deduplication/checkpointed-review.js.map +1 -1
  72. package/dist/deduplication/codex-review.d.ts.map +1 -1
  73. package/dist/deduplication/codex-review.js.map +1 -1
  74. package/dist/deduplication/deduplication-reviewer.d.ts.map +1 -1
  75. package/dist/deduplication/deduplication-reviewer.js.map +1 -1
  76. package/dist/deduplication/deduplication.js.map +1 -1
  77. package/dist/deduplication/scan.d.ts.map +1 -1
  78. package/dist/deduplication/scan.js.map +1 -1
  79. package/dist/deep-config.d.ts +17 -0
  80. package/dist/deep-config.d.ts.map +1 -0
  81. package/dist/deep-config.js +145 -0
  82. package/dist/deep-config.js.map +1 -0
  83. package/dist/deep-progress.d.ts.map +1 -1
  84. package/dist/deep-scan-defaults.d.ts +9 -0
  85. package/dist/deep-scan-defaults.d.ts.map +1 -0
  86. package/dist/deep-scan-defaults.js +10 -0
  87. package/dist/deep-scan-defaults.js.map +1 -0
  88. package/dist/errors.d.ts.map +1 -1
  89. package/dist/errors.js +2 -2
  90. package/dist/errors.js.map +1 -1
  91. package/dist/feedback.d.ts.map +1 -1
  92. package/dist/feedback.js +21 -7
  93. package/dist/feedback.js.map +1 -1
  94. package/dist/finding-catalogue.js.map +1 -1
  95. package/dist/finding-workflow.d.ts.map +1 -1
  96. package/dist/finding-workflow.js.map +1 -1
  97. package/dist/findings-client.d.ts.map +1 -1
  98. package/dist/findings-client.js.map +1 -1
  99. package/dist/findings-import.d.ts +6 -6
  100. package/dist/github.d.ts +625 -7
  101. package/dist/github.d.ts.map +1 -1
  102. package/dist/github.js.map +1 -1
  103. package/dist/import-scan.js.map +1 -1
  104. package/dist/index.d.ts +5 -0
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +1 -0
  107. package/dist/index.js.map +1 -1
  108. package/dist/knowledge-base.d.ts.map +1 -1
  109. package/dist/knowledge-base.js +17 -6
  110. package/dist/knowledge-base.js.map +1 -1
  111. package/dist/models.d.ts.map +1 -1
  112. package/dist/models.js.map +1 -1
  113. package/dist/multiscan.d.ts +6 -6
  114. package/dist/multiscan.d.ts.map +1 -1
  115. package/dist/multiscan.js +69 -4
  116. package/dist/multiscan.js.map +1 -1
  117. package/dist/patch-tui.d.ts.map +1 -1
  118. package/dist/patch-tui.js.map +1 -1
  119. package/dist/project-config-schema.d.ts +191 -0
  120. package/dist/project-config-schema.d.ts.map +1 -0
  121. package/dist/project-config-schema.js +85 -0
  122. package/dist/project-config-schema.js.map +1 -0
  123. package/dist/project-config.d.ts +50 -0
  124. package/dist/project-config.d.ts.map +1 -0
  125. package/dist/project-config.js +220 -0
  126. package/dist/project-config.js.map +1 -0
  127. package/dist/prompt-files.d.ts +13 -0
  128. package/dist/prompt-files.d.ts.map +1 -0
  129. package/dist/prompt-files.js +74 -0
  130. package/dist/prompt-files.js.map +1 -0
  131. package/dist/publication-events.d.ts.map +1 -1
  132. package/dist/publication-events.js.map +1 -1
  133. package/dist/publish.d.ts.map +1 -1
  134. package/dist/publish.js +1 -1
  135. package/dist/publish.js.map +1 -1
  136. package/dist/result.d.ts +2 -1
  137. package/dist/result.d.ts.map +1 -1
  138. package/dist/result.js +5 -0
  139. package/dist/result.js.map +1 -1
  140. package/dist/runtime.js +4 -4
  141. package/dist/runtime.js.map +1 -1
  142. package/dist/scan-comparison.d.ts.map +1 -1
  143. package/dist/scan-comparison.js.map +1 -1
  144. package/dist/scan-dashboard.d.ts +1 -0
  145. package/dist/scan-dashboard.d.ts.map +1 -1
  146. package/dist/scan-dashboard.js +34 -22
  147. package/dist/scan-dashboard.js.map +1 -1
  148. package/dist/scan-history-renderer.d.ts.map +1 -1
  149. package/dist/scan-history-renderer.js.map +1 -1
  150. package/dist/scan-logs.d.ts +12 -5
  151. package/dist/scan-logs.d.ts.map +1 -1
  152. package/dist/scan-logs.js +49 -18
  153. package/dist/scan-logs.js.map +1 -1
  154. package/dist/scan-modes.d.ts +3 -0
  155. package/dist/scan-modes.d.ts.map +1 -0
  156. package/dist/scan-modes.js +2 -0
  157. package/dist/scan-modes.js.map +1 -0
  158. package/dist/scan-settings.d.ts +81 -0
  159. package/dist/scan-settings.d.ts.map +1 -0
  160. package/dist/scan-settings.js +123 -0
  161. package/dist/scan-settings.js.map +1 -0
  162. package/dist/security-policy-cli.js +2 -2
  163. package/dist/security-policy-cli.js.map +1 -1
  164. package/dist/security-policy.d.ts.map +1 -1
  165. package/dist/security-policy.js.map +1 -1
  166. package/dist/server/dashboard/THIRD_PARTY_NOTICES.txt +2 -2
  167. package/dist/server/dashboard/app.js +2 -2
  168. package/dist/server/dashboard.js.map +1 -1
  169. package/dist/server/embeddings.d.ts.map +1 -1
  170. package/dist/server/embeddings.js.map +1 -1
  171. package/dist/server/errors.d.ts.map +1 -1
  172. package/dist/server/errors.js.map +1 -1
  173. package/dist/server/findings-service.d.ts.map +1 -1
  174. package/dist/server/findings-service.js.map +1 -1
  175. package/dist/server/serve.js.map +1 -1
  176. package/dist/server/sqlite-store.d.ts.map +1 -1
  177. package/dist/server/sqlite-store.js.map +1 -1
  178. package/dist/severity-store.js.map +1 -1
  179. package/dist/targets.d.ts +2 -1
  180. package/dist/targets.d.ts.map +1 -1
  181. package/dist/targets.js.map +1 -1
  182. package/dist/thread-source.d.ts.map +1 -1
  183. package/dist/version.js.map +1 -1
  184. package/dist/worker-progress.d.ts.map +1 -1
  185. package/dist/worker-progress.js.map +1 -1
  186. package/package.json +31 -28
  187. package/schemas/project-config.schema.json +211 -0
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import argparse
6
+ import json
6
7
  import math
7
8
  import os
8
9
  from pathlib import Path
@@ -13,12 +14,15 @@ try:
13
14
  except ModuleNotFoundError: # pragma: no cover - Python 3.10 only
14
15
  import tomli as tomllib
15
16
 
16
- DEFAULT_WORKERS = 4
17
- DEFAULT_SUBAGENTS = 3
18
- DEFAULT_STOP_AFTER_NO_NEW = 4
19
- DEFAULT_STOP_AFTER_CONSECUTIVE_ERRORS = 3
20
- DEFAULT_MAX_DISCOVERY_RUNS = 40
21
- DEFAULT_MAX_TIME_HOURS = 96
17
+ DEFAULTS = json.loads(
18
+ Path(__file__).with_name("deep_scan_defaults.json").read_text(encoding="utf-8")
19
+ )
20
+ DEFAULT_WORKERS = DEFAULTS["workers"]
21
+ DEFAULT_SUBAGENTS = DEFAULTS["subagents"]
22
+ DEFAULT_STOP_AFTER_NO_NEW = DEFAULTS["stopAfterNoNew"]
23
+ DEFAULT_STOP_AFTER_CONSECUTIVE_ERRORS = DEFAULTS["stopAfterConsecutiveErrors"]
24
+ DEFAULT_MAX_DISCOVERY_RUNS = DEFAULTS["maxDiscoveryRuns"]
25
+ DEFAULT_MAX_TIME_HOURS = DEFAULTS["maxTimeHours"]
22
26
  MAX_TIME_HOURS = 96
23
27
  CONFIG_KEYS = {
24
28
  "workers",
@@ -130,8 +134,6 @@ def main() -> None:
130
134
  parser = argparse.ArgumentParser(description=__doc__)
131
135
  parser.add_argument("--available-parallelism", type=int, required=True)
132
136
  args = parser.parse_args()
133
- import json
134
-
135
137
  print(json.dumps(resolve_deep_scan_config(args.available_parallelism), sort_keys=True))
136
138
 
137
139
 
@@ -0,0 +1,8 @@
1
+ {
2
+ "workers": 4,
3
+ "subagents": 3,
4
+ "stopAfterNoNew": 4,
5
+ "stopAfterConsecutiveErrors": 3,
6
+ "maxDiscoveryRuns": 40,
7
+ "maxTimeHours": 96
8
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ "artifacts/01_context/false_positive_feedback.json",
3
+ "artifacts/02_discovery/candidate_ledger.jsonl",
4
+ "artifacts/02_discovery/in_scope_files.txt",
5
+ "artifacts/deep_discovery"
6
+ ]
@@ -465,7 +465,7 @@ def open_read_fd(scan_dir: Path, relative_path: str, context: str) -> int:
465
465
  flags=_FILE_FLAG_OPEN_REPARSE_POINT,
466
466
  )
467
467
  assert handle is not None and handle.value is not None
468
- try:
468
+ with handle:
469
469
  _verify_regular_file(handle.value, path)
470
470
  raw_handle = handle.detach()
471
471
  try:
@@ -474,8 +474,6 @@ def open_read_fd(scan_dir: Path, relative_path: str, context: str) -> int:
474
474
  except BaseException:
475
475
  _close_handle(raw_handle)
476
476
  raise
477
- finally:
478
- handle.close()
479
477
  except WindowsScanLocalFileError as exc:
480
478
  raise WindowsScanLocalFileError(
481
479
  exc.errno,
@@ -0,0 +1,18 @@
1
+ """Storage paths shared by workbench persistence and MCP artifact selection."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ from pathlib import Path
7
+
8
+
9
+ def state_dir() -> Path:
10
+ state_dir = os.environ.get("CODEX_SECURITY_STATE_DIR")
11
+ if state_dir:
12
+ return Path(state_dir).expanduser().resolve()
13
+ codex_home = Path(os.environ.get("CODEX_HOME", "~/.codex")).expanduser()
14
+ return (codex_home / "state" / "plugins" / "codex-security").resolve()
15
+
16
+
17
+ def resolve_scan_root(scan_root: str | None) -> Path:
18
+ return Path(scan_root).expanduser().resolve() if scan_root else state_dir() / "scans"
@@ -34,6 +34,9 @@ def parse_args(description: str) -> argparse.Namespace:
34
34
  parser = argparse.ArgumentParser(description=description)
35
35
  subparsers = parser.add_subparsers(dest="command", required=True)
36
36
 
37
+ resolve_scan_root = subparsers.add_parser("resolve-scan-root")
38
+ resolve_scan_root.add_argument("--scan-root")
39
+
37
40
  create_workspace = subparsers.add_parser("create-workspace")
38
41
  create_workspace.add_argument("--workspace-id", required=True)
39
42
  create_workspace.add_argument("--thread-id")
@@ -271,6 +274,16 @@ def parse_args(description: str) -> argparse.Namespace:
271
274
  write_scan_draft.add_argument("--expected-draft-digest")
272
275
  write_scan_draft.add_argument("--claim-token")
273
276
 
277
+ save_scan_artifact = subparsers.add_parser("save-scan-artifact")
278
+ save_scan_artifact.add_argument("--scan-id", required=True)
279
+ save_scan_artifact.add_argument("--artifact-path", required=True)
280
+ save_scan_artifact.add_argument("--claim-token")
281
+
282
+ for command in ("save-artifact", "read-artifact"):
283
+ artifact = subparsers.add_parser(command)
284
+ artifact.add_argument("--artifact-root", required=True)
285
+ artifact.add_argument("--artifact-path", required=True)
286
+
274
287
  mark_handoff_delivered = subparsers.add_parser("mark-handoff-delivered")
275
288
  mark_handoff_delivered.add_argument("--scan-id", required=True)
276
289
  mark_handoff_delivered.add_argument("--claim-token", required=True)
@@ -60,6 +60,7 @@ from finalize_scan_contract import (
60
60
  )
61
61
  from finding_preview import bounded_finding_details
62
62
  from workbench import handoff
63
+ from workbench.storage import resolve_scan_root, state_dir
63
64
  from workbench_cli import parse_args
64
65
  from workbench_constants import (
65
66
  ARTIFACTS,
@@ -149,7 +150,6 @@ from workbench_validation import (
149
150
  FINDING_ARTIFACT_DIRECTORIES_LIMIT = 80
150
151
  FINDING_ARTIFACTS_LIMIT = 40
151
152
  FINDING_WRITEUP_REPORT_PATH = re.compile(r"^findings/([a-z0-9][a-z0-9._-]*)/\1\.md$")
152
- SCAN_RECIPE_MAX_BYTES = 256 * 1024
153
153
 
154
154
 
155
155
  def now() -> str:
@@ -162,14 +162,6 @@ def stale_claim_before(seconds: int = CLAIM_LEASE_SECONDS) -> str:
162
162
  )
163
163
 
164
164
 
165
- def state_dir() -> Path:
166
- state_dir = os.environ.get("CODEX_SECURITY_STATE_DIR")
167
- if state_dir:
168
- return Path(state_dir).expanduser().resolve()
169
- codex_home = Path(os.environ.get("CODEX_HOME", "~/.codex")).expanduser()
170
- return (codex_home / "state" / "plugins" / "codex-security").resolve()
171
-
172
-
173
165
  def database_path() -> Path:
174
166
  return state_dir() / "workbench.sqlite3"
175
167
 
@@ -809,7 +801,7 @@ def save_workspace(connection: sqlite3.Connection, args: argparse.Namespace) ->
809
801
 
810
802
 
811
803
  def scan_target_root(scan_root: str | None, target: Path) -> Path:
812
- root = Path(scan_root).expanduser().resolve() if scan_root else state_dir() / "scans"
804
+ root = resolve_scan_root(scan_root)
813
805
  target_root = (root / safe_segment(target.name)).resolve()
814
806
  if target_root == target or target in target_root.parents:
815
807
  raise SystemExit("The scan artifact directory must be outside the selected target.")
@@ -1820,8 +1812,6 @@ def set_scan_cost_limit(connection: sqlite3.Connection, args: argparse.Namespace
1820
1812
 
1821
1813
 
1822
1814
  def parse_scan_recipe(value: str, repository: Path) -> dict[str, Any]:
1823
- if len(value.encode("utf-8")) > SCAN_RECIPE_MAX_BYTES:
1824
- raise SystemExit("Scan launch recipe must be no larger than 256 KiB.")
1825
1815
  try:
1826
1816
  recipe = json.loads(value, parse_constant=reject_non_finite_json)
1827
1817
  except (TypeError, UnicodeError, ValueError) as exc:
@@ -2496,7 +2486,7 @@ def require_reviewed_patch_applied(
2496
2486
  checkout = checkout_root
2497
2487
  copy_directory_excluding(target, checkout, excluded)
2498
2488
  else:
2499
- checkout = copy_git_worktree_files(target, checkout_root, excluded)
2489
+ copy_git_worktree_files(target, checkout_root, excluded)
2500
2490
  arguments = ["apply", "--reverse", "--whitespace=nowarn"]
2501
2491
  if unversioned:
2502
2492
  arguments.append("--no-index")
@@ -2849,6 +2839,8 @@ def scan_result(
2849
2839
  **scan_usage.stored_scan_cost_fields(scan["cost_json"]),
2850
2840
  "contract": scan_contract(scan),
2851
2841
  "continuationThreadId": scan["continuation_thread_id"],
2842
+ "threadIds": scan_usage._scan_root_thread_ids(connection, scan, None),
2843
+ "executionThreadIds": scan_usage._scan_execution_thread_ids(connection, scan),
2852
2844
  "failureMessage": scan["failure_message"],
2853
2845
  "findings": [
2854
2846
  finding_result(connection, scan, row, related=relations.get(row["id"], []))
@@ -3432,6 +3424,9 @@ def main() -> None:
3432
3424
  preserve_stopped_results=preserve_stopped_results_after_transition,
3433
3425
  )
3434
3426
  )
3427
+ if args.command == "resolve-scan-root":
3428
+ print(json.dumps({"scanRoot": str(resolve_scan_root(args.scan_root))}))
3429
+ return
3435
3430
  if args.command == "inspect-target":
3436
3431
  result = inspect_target(args.target_path)
3437
3432
  print(json.dumps(result, allow_nan=False, sort_keys=True))
@@ -3440,6 +3435,9 @@ def main() -> None:
3440
3435
  result = inspect_setup(args)
3441
3436
  print(json.dumps(result, allow_nan=False, sort_keys=True))
3442
3437
  return
3438
+ if args.command in {"save-artifact", "read-artifact"}:
3439
+ print(json.dumps(saved_results.read_or_save_artifact(args)))
3440
+ return
3443
3441
  if args.command == "read-severity-classification":
3444
3442
  result = severity.read_classification(database_path(), args.scan_id)
3445
3443
  print(json.dumps(result, allow_nan=False, sort_keys=True))
@@ -3567,6 +3565,8 @@ def main() -> None:
3567
3565
  result = recover_scan_results(connection, args)
3568
3566
  elif args.command == "write-scan-draft":
3569
3567
  result = write_scan_draft(connection, args)
3568
+ elif args.command == "save-scan-artifact":
3569
+ result = saved_results.save_scan_artifact(_WORKBENCH_DB_CONTEXT, connection, args)
3570
3570
  elif args.command == "mark-handoff-delivered":
3571
3571
  result = handoff.mark_handoff_delivered(
3572
3572
  connection,
@@ -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)
@@ -1254,7 +1260,6 @@ def preserve_scan_results_locked(
1254
1260
  for relative, digest in retained_sources.items()
1255
1261
  ):
1256
1262
  raise ContractError("Stopped scan source digests could not be frozen.")
1257
- frozen_source_digests = retained_sources
1258
1263
  with connection:
1259
1264
  connection.execute(
1260
1265
  "UPDATE scans SET retained_source_digests_json = ? "
@@ -1334,6 +1339,49 @@ def preserve_scan_results(db: Any, connection: Any, args: Any) -> dict[str, Any]
1334
1339
  return db.scan_context(connection, scan_id)
1335
1340
 
1336
1341
 
1342
+ def read_or_save_artifact(args: Any) -> dict[str, Any]:
1343
+ """Read or publish supplemental bytes through verified filesystem handles."""
1344
+ root = Path(args.artifact_root)
1345
+ if args.command == "read-artifact":
1346
+ descriptor = open_scan_local_file_descriptor(root, args.artifact_path, "Saved artifact")
1347
+ with os.fdopen(descriptor, "rb") as source:
1348
+ return {"content": base64.b64encode(source.read()).decode("ascii")}
1349
+ write_scan_local_bytes(root, args.artifact_path, sys.stdin.buffer.read())
1350
+ return {"path": str(root / args.artifact_path)}
1351
+
1352
+
1353
+ def save_scan_artifact(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1354
+ """Publish supplemental bytes under the same lock as finalization and recovery."""
1355
+ scan_id = db.require_uuid(args.scan_id, "scan-id")
1356
+ with db.scan_completion_lock(scan_id):
1357
+ scan = db.require_scan(connection, scan_id)
1358
+ db.handoff.require_current_continuation(
1359
+ scan,
1360
+ args.claim_token,
1361
+ error_message="Scan artifacts are owned by another continuation.",
1362
+ )
1363
+ if scan["status"] != "running" or scan["seal_manifest_digest"] is not None:
1364
+ raise SystemExit("The scan stopped; its artifacts cannot be modified.")
1365
+ scan_dir = db.require_canonical_scan_directory(Path(scan["scan_dir"]))
1366
+ manifest_path = db.artifact_path(scan_dir, "scan-manifest.json", required=False)
1367
+ if manifest_path is not None:
1368
+ manifest = db.read_json_object(manifest_path).get("scan", {})
1369
+ if manifest.get("sealedAt") is not None or manifest.get("artifacts") is not None:
1370
+ raise SystemExit("The scan is sealed; its artifacts cannot be modified.")
1371
+ output = args.artifact_path
1372
+ key = output.lower()
1373
+ if not (
1374
+ key.startswith(("artifacts/", "findings/", "hardening/"))
1375
+ or key == "report_validation.md"
1376
+ ) or any(
1377
+ key == reserved or key.startswith(reserved + "/")
1378
+ for reserved in _RESERVED_ARTIFACT_PATHS
1379
+ ):
1380
+ raise SystemExit("Use the typed scan tools for canonical artifacts and checkpoints.")
1381
+ write_scan_local_bytes(scan_dir, output, sys.stdin.buffer.read())
1382
+ return {"scanId": scan_id, "path": str(scan_dir / output)}
1383
+
1384
+
1337
1385
  def write_scan_draft(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1338
1386
  scan_id = db.require_uuid(args.scan_id, "scan-id")
1339
1387
  with db.scan_completion_lock(scan_id):
@@ -1405,6 +1453,29 @@ def write_scan_draft(db: Any, connection: Any, args: Any) -> dict[str, Any]:
1405
1453
  filename,
1406
1454
  (json.dumps(document, allow_nan=False, indent=2) + "\n").encode(),
1407
1455
  )
1456
+ # Accepted Standard drafts are evidence of review or report assembly,
1457
+ # even when the parent omitted its explicit progress call.
1458
+ if scan["mode"] == "standard":
1459
+ phase = "discovery" if manifest["scan"].get("complete") is False else "reporting"
1460
+ earlier = PHASES[: PHASES.index(phase)]
1461
+ placeholders = ",".join("?" for _ in earlier)
1462
+ timestamp = db.now()
1463
+ try:
1464
+ with connection:
1465
+ changed = connection.execute(
1466
+ "UPDATE scans SET phase = ?, updated_at = ? "
1467
+ f"WHERE id = ? AND status = 'running' AND phase IN ({placeholders})",
1468
+ (phase, timestamp, scan_id, *earlier),
1469
+ )
1470
+ if changed.rowcount:
1471
+ connection.execute(
1472
+ "UPDATE scan_progress SET phase_items_total = 0, "
1473
+ "phase_items_completed = 0, phase_progress_unit = NULL, updated_at = ? "
1474
+ "WHERE scan_id = ?",
1475
+ (timestamp, scan_id),
1476
+ )
1477
+ except sqlite3.Error as exc:
1478
+ print(f"Could not save scan progress: {exc}", file=sys.stderr)
1408
1479
  return {"scanId": scan_id, "status": "draft_written"}
1409
1480
 
1410
1481
 
@@ -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,sBAAsB,CAAC;AAE9B,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKhF,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAYL,iBAAiB,EAoBjB,KAAK,kBAAkB,EAIxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAOL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAsDtB,MAA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