@openai/codex-security 0.10.0 → 0.10.1

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 (130) hide show
  1. package/_bundled_plugin/.mcp.json +1 -0
  2. package/_bundled_plugin/mcp/helpers.mjs.br +0 -0
  3. package/_bundled_plugin/mcp/native/darwin-arm64/unix.node +0 -0
  4. package/_bundled_plugin/mcp/native/darwin-x64/unix.node +0 -0
  5. package/_bundled_plugin/mcp/native/win32-arm64/windows.node +0 -0
  6. package/_bundled_plugin/mcp/native/win32-x64/windows.node +0 -0
  7. package/_bundled_plugin/mcp/server.mjs.br +0 -0
  8. package/_bundled_plugin/references/access-advisory.md +1 -1
  9. package/_bundled_plugin/references/threat-model.md +1 -0
  10. package/_bundled_plugin/scripts/deep_scan_workbench.py +1 -0
  11. package/_bundled_plugin/scripts/finalize_scan_contract.py +18 -6
  12. package/_bundled_plugin/scripts/launch_codex_security_mcp.cmd +2 -0
  13. package/_bundled_plugin/scripts/workbench_db.py +16 -54
  14. package/_bundled_plugin/scripts/workbench_scan_history.py +23 -28
  15. package/_bundled_plugin/scripts/workbench_scan_start.py +65 -2
  16. package/_bundled_plugin/scripts/workbench_source_scopes.py +8 -0
  17. package/_bundled_plugin/scripts/workbench_target.py +17 -3
  18. package/_bundled_plugin/shared/workbench-history-repairs.json +5 -1
  19. package/_bundled_plugin/skills/attack-path-analysis/SKILL.md +4 -2
  20. package/_bundled_plugin/skills/attack-path-analysis/references/severity-policy.md +2 -2
  21. package/_bundled_plugin/skills/publish-findings/SKILL.md +3 -1
  22. package/dist/api.d.ts +1 -0
  23. package/dist/api.d.ts.map +1 -1
  24. package/dist/api.js +23 -4
  25. package/dist/api.js.map +1 -1
  26. package/dist/classify-severity-diagnostics.d.ts +10 -0
  27. package/dist/classify-severity-diagnostics.d.ts.map +1 -0
  28. package/dist/classify-severity-diagnostics.js +57 -0
  29. package/dist/classify-severity-diagnostics.js.map +1 -0
  30. package/dist/classify-severity-records.d.ts +4 -0
  31. package/dist/classify-severity-records.d.ts.map +1 -1
  32. package/dist/classify-severity-records.js +35 -8
  33. package/dist/classify-severity-records.js.map +1 -1
  34. package/dist/cli.d.ts +3 -0
  35. package/dist/cli.d.ts.map +1 -1
  36. package/dist/cli.js +99 -11
  37. package/dist/cli.js.map +1 -1
  38. package/dist/component-plan.d.ts.map +1 -1
  39. package/dist/component-plan.js +3 -3
  40. package/dist/component-plan.js.map +1 -1
  41. package/dist/continuum-aws.d.ts +6 -0
  42. package/dist/continuum-aws.d.ts.map +1 -0
  43. package/dist/continuum-aws.js +202 -0
  44. package/dist/continuum-aws.js.map +1 -0
  45. package/dist/continuum-collector.d.ts +44 -0
  46. package/dist/continuum-collector.d.ts.map +1 -0
  47. package/dist/continuum-collector.js +266 -0
  48. package/dist/continuum-collector.js.map +1 -0
  49. package/dist/continuum-findings.d.ts +31 -2
  50. package/dist/continuum-findings.d.ts.map +1 -1
  51. package/dist/continuum-findings.js +440 -64
  52. package/dist/continuum-findings.js.map +1 -1
  53. package/dist/contract.d.ts +1 -0
  54. package/dist/contract.d.ts.map +1 -1
  55. package/dist/contract.js +3 -0
  56. package/dist/contract.js.map +1 -1
  57. package/dist/crowdstrike-findings.d.ts +7 -0
  58. package/dist/crowdstrike-findings.d.ts.map +1 -0
  59. package/dist/crowdstrike-findings.js +210 -0
  60. package/dist/crowdstrike-findings.js.map +1 -0
  61. package/dist/external-findings-local.d.ts.map +1 -1
  62. package/dist/external-findings-local.js +26 -8
  63. package/dist/external-findings-local.js.map +1 -1
  64. package/dist/external-findings-publish.d.ts.map +1 -1
  65. package/dist/external-findings-publish.js +5 -1
  66. package/dist/external-findings-publish.js.map +1 -1
  67. package/dist/external-findings-read.d.ts +10 -2
  68. package/dist/external-findings-read.d.ts.map +1 -1
  69. package/dist/external-findings-read.js +26 -3
  70. package/dist/external-findings-read.js.map +1 -1
  71. package/dist/external-import-contract.d.ts +3 -0
  72. package/dist/external-import-contract.d.ts.map +1 -1
  73. package/dist/external-import-contract.js +6 -1
  74. package/dist/external-import-contract.js.map +1 -1
  75. package/dist/host-protocol.d.ts +6 -0
  76. package/dist/host-protocol.d.ts.map +1 -1
  77. package/dist/host-protocol.js +11 -1
  78. package/dist/host-protocol.js.map +1 -1
  79. package/dist/host-records-protocol.d.ts +2 -0
  80. package/dist/host-records-protocol.d.ts.map +1 -1
  81. package/dist/host-records-protocol.js +4 -0
  82. package/dist/host-records-protocol.js.map +1 -1
  83. package/dist/index.d.ts +2 -1
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +1 -0
  86. package/dist/index.js.map +1 -1
  87. package/dist/multiscan.d.ts.map +1 -1
  88. package/dist/multiscan.js +4 -2
  89. package/dist/multiscan.js.map +1 -1
  90. package/dist/project-config-schema.d.ts +2 -0
  91. package/dist/project-config-schema.d.ts.map +1 -1
  92. package/dist/project-config-schema.js +1 -0
  93. package/dist/project-config-schema.js.map +1 -1
  94. package/dist/project-config.d.ts +1 -0
  95. package/dist/project-config.d.ts.map +1 -1
  96. package/dist/project-config.js +3 -0
  97. package/dist/project-config.js.map +1 -1
  98. package/dist/runtime.d.ts.map +1 -1
  99. package/dist/runtime.js +4 -0
  100. package/dist/runtime.js.map +1 -1
  101. package/dist/scan-comparison.d.ts +20 -2
  102. package/dist/scan-comparison.d.ts.map +1 -1
  103. package/dist/scan-comparison.js +20 -3
  104. package/dist/scan-comparison.js.map +1 -1
  105. package/dist/scan-settings.d.ts +1 -0
  106. package/dist/scan-settings.d.ts.map +1 -1
  107. package/dist/scan-settings.js +1 -0
  108. package/dist/scan-settings.js.map +1 -1
  109. package/dist/severity-review.d.ts.map +1 -1
  110. package/dist/severity-review.js +1 -0
  111. package/dist/severity-review.js.map +1 -1
  112. package/dist/stored-finding-projection.d.ts.map +1 -1
  113. package/dist/stored-finding-projection.js +30 -5
  114. package/dist/stored-finding-projection.js.map +1 -1
  115. package/dist/targets.d.ts +2 -0
  116. package/dist/targets.d.ts.map +1 -1
  117. package/dist/targets.js +27 -0
  118. package/dist/targets.js.map +1 -1
  119. package/dist/trusted-executable.d.ts +1 -0
  120. package/dist/trusted-executable.d.ts.map +1 -1
  121. package/dist/trusted-executable.js +11 -3
  122. package/dist/trusted-executable.js.map +1 -1
  123. package/dist/value.js +3 -1
  124. package/dist/value.js.map +1 -1
  125. package/docs/classify-severity-records.md +30 -0
  126. package/docs/cli.md +164 -18
  127. package/docs/sdk.md +23 -8
  128. package/package.json +7 -2
  129. package/schemas/project-config.schema.json +5 -0
  130. package/_bundled_plugin/skills/publish-findings/scripts/collect_continuum.py +0 -224
@@ -45,6 +45,7 @@
45
45
  "CODEX_SECURITY_PYTHON_COMMAND",
46
46
  "CODEX_SECURITY_GIT",
47
47
  "CODEX_SECURITY_KNOWLEDGE_BASE",
48
+ "CODEX_SECURITY_EXCLUDE_PATHS",
48
49
  "CODEX_SECURITY_CONFIG_PATH",
49
50
  "CODEX_SECURITY_DEEP_SCAN_CONFIG_PATH",
50
51
  "CODEX_SECURITY_SCAN_DIR",
Binary file
Binary file
@@ -6,6 +6,6 @@ Call `get_codex_security_daybreak_access` only if it is already available in the
6
6
 
7
7
  - Failed, `unknown`, or `stale: true`: continue silently without a speculative access warning.
8
8
  - Fresh `granted`: report the status and available Daybreak programs.
9
- - Fresh `not_granted`: before other scan-start progress, show a separate prominent warning that Daybreak access is not granted and protected scan outputs may not be displayable. Link the returned `enrollmentUrl`, falling back to `https://chatgpt.com/cyber`.
9
+ - Fresh `not_granted`: before other scan-start progress, show a separate prominent warning that Daybreak access is not granted and protected scan outputs may not be displayable. Link the complete returned `enrollmentUrl`, including its query parameters. If it is absent, use `https://chatgpt.com/cyber?source=codex_security_plugin`.
10
10
 
11
11
  Continue regardless; the advisory never authorizes or gates a scan. Do not poll or repeat it between phases. If the user asks about access, report the result or its uncertainty. Recheck after an account/access change only when the user requests it and the tool is available.
@@ -6,6 +6,7 @@ Model how the authorized software is used and which boundaries protect its asset
6
6
 
7
7
  - Identify the product, users, interfaces, components, and supported execution/deployment modes. Separate production, privileged administration/build/release workflows, and tests/examples; include each only within the authorized scope.
8
8
  - Follow representative inputs through actual entry points, controls, and sensitive consumers. Establish the actors, transferred data or authority, protected asset, and invariant. Use callers and effective behavior rather than keyword matches or a complete call graph.
9
+ - For routes found in tests or deleted lines, verify the app still serves them.
9
10
  - For library APIs, identify which protections the library enforces by default and which its callers must enable or implement.
10
11
  - For workers, extensions, native bindings, and tool APIs, distinguish available operations from enforced caller authority. Trace inherited permissions, brokered writes, ownership claims, and the component enforcing a restriction. Do not invent isolation between actors with the same authority.
11
12
  - When configuration or deployment changes a boundary, trace materially different paths from the consumer through helper returns, path derivation, configuration precedence, and mounts. Record effective locations, readers/writers or recipients, controls, and source evidence. A directory name, mount label, or separate setting does not prove isolation. Keep discrepancies between documented and actual behavior, including material platform differences.
@@ -345,6 +345,7 @@ def deep_scan_state(connection: sqlite3.Connection, scan_id: str) -> dict[str, A
345
345
  "targetPath": scan["target_path"],
346
346
  "scope": scan["scope"],
347
347
  "includePaths": dependencies().requested_scan_paths(scan),
348
+ "excludePaths": dependencies().requested_exclude_paths(scan),
348
349
  "filePaths": dependencies().requested_scan_file_paths(scan),
349
350
  "userContext": (
350
351
  json.loads(run["discovery_user_context_json"])
@@ -3198,23 +3198,35 @@ def _prepare_scan_finalization(
3198
3198
  validate_against_schema(findings_for_validation, schema_dir / "findings.schema.json")
3199
3199
  validate_against_schema(coverage, schema_dir / "coverage.schema.json")
3200
3200
  _require_hardening_portfolio_file(scan_dir, scan)
3201
- if finding_scope is not None:
3201
+ requested_exclusions = (
3202
+ completion_binding.get("scope", {}).get("excludePaths", [])
3203
+ if completion_binding is not None
3204
+ else []
3205
+ )
3206
+ if finding_scope is not None or requested_exclusions:
3202
3207
  # Accepted worker/reducer files remain immutable; only the new parent
3203
3208
  # projection is scoped, after the existing validation of every finding.
3204
3209
  scoped_findings = []
3205
3210
  excluded_findings = []
3206
3211
  for finding in findings["findings"]:
3207
3212
  in_scope = any(
3208
- PurePosixPath(location["path"]) == PurePosixPath(path)
3209
- if is_file
3210
- else path_within_scope(location["path"], path)
3213
+ not any(path_within_scope(location["path"], path) for path in requested_exclusions)
3214
+ and (
3215
+ finding_scope is None
3216
+ or any(
3217
+ PurePosixPath(location["path"]) == PurePosixPath(path)
3218
+ if is_file
3219
+ else path_within_scope(location["path"], path)
3220
+ for path, is_file in finding_scope
3221
+ )
3222
+ )
3211
3223
  for location in finding["locations"]
3212
- for path, is_file in finding_scope
3213
3224
  )
3214
3225
  (scoped_findings if in_scope else excluded_findings).append(finding)
3215
3226
  if was_sealed and len(scoped_findings) != len(findings["findings"]):
3227
+ label = "Deep scan" if finding_scope is not None else "scan"
3216
3228
  raise ContractError(
3217
- "The sealed Deep scan contains findings outside its requested paths; "
3229
+ f"The sealed {label} contains findings outside its requested scope; "
3218
3230
  "start a new scan to produce scoped results."
3219
3231
  )
3220
3232
  if not was_sealed:
@@ -3,6 +3,8 @@ setlocal DisableDelayedExpansion
3
3
 
4
4
  set "CODEX_SECURITY_MCP_SCRIPT=%~dp0..\mcp\server.mjs"
5
5
  if "%~1"=="--helper" (
6
+ rem An inherited ERRORLEVEL would shadow the helper exit code.
7
+ set "ERRORLEVEL="
6
8
  set "CODEX_SECURITY_MCP_SCRIPT=%~dp0..\mcp\helpers.mjs"
7
9
  goto launch
8
10
  )
@@ -86,6 +86,7 @@ from workbench_scan_start import (
86
86
  archive_scan,
87
87
  insert_running_scan,
88
88
  loaded_plugin_version,
89
+ parse_scan_recipe,
89
90
  prepare_cli_scan_target,
90
91
  register_windows_resume_output,
91
92
  restore_cli_scan_archive,
@@ -118,6 +119,7 @@ from workbench_source_scopes import (
118
119
  capture_source_scopes,
119
120
  expected_target_kinds,
120
121
  public_scan_recipe,
122
+ requested_exclude_paths,
121
123
  requested_scan_paths,
122
124
  safe_source_path,
123
125
  )
@@ -377,7 +379,7 @@ def scan_contract(scan: sqlite3.Row) -> dict[str, Any]:
377
379
  return {
378
380
  "diffTarget": stored_diff_target(scan),
379
381
  "scope": {
380
- "requiredExcludePaths": [],
382
+ "requiredExcludePaths": requested_exclude_paths(scan),
381
383
  "requestedPath": scan["scope"],
382
384
  "filePaths": requested_scan_file_paths(scan),
383
385
  **(
@@ -491,7 +493,7 @@ def verify_manifest_binding(scan: sqlite3.Row, manifest: dict[str, Any]) -> None
491
493
  include_paths = scope.get("includePaths")
492
494
  if not isinstance(include_paths, list):
493
495
  raise SystemExit("scan-manifest.json scope includePaths must be an array.")
494
- if scope.get("excludePaths") != []:
496
+ if scope.get("excludePaths") != expected_contract["scope"]["requiredExcludePaths"]:
495
497
  raise SystemExit(
496
498
  "scan-manifest.json scope excludePaths must match the workbench scan scope."
497
499
  )
@@ -1652,10 +1654,19 @@ def register_cli_scan(
1652
1654
  paths or ["."],
1653
1655
  diff_target_kind=diff_target["kind"] if diff_target is not None else None,
1654
1656
  )
1657
+ exclusions = recipe.get("excludePaths", [])
1655
1658
  scope_file_count = (
1656
- scoped_regular_file_count(repository, paths)
1657
- if mode == "standard" and len(paths) > 1
1658
- else scan_scope_file_count(repository, paths or ["."], diff_target)
1659
+ (
1660
+ diff_scope_file_count(repository, diff_target, exclusions)
1661
+ if diff_target is not None
1662
+ else scoped_regular_file_count(repository, paths or ["."], exclusions)
1663
+ )
1664
+ if exclusions
1665
+ else (
1666
+ scoped_regular_file_count(repository, paths)
1667
+ if mode == "standard" and len(paths) > 1
1668
+ else scan_scope_file_count(repository, paths or ["."], diff_target)
1669
+ )
1659
1670
  )
1660
1671
  require_working_tree_unchanged(repository, diff_target)
1661
1672
  parent_scan_id = (
@@ -1839,55 +1850,6 @@ def set_scan_cost_limit(connection: sqlite3.Connection, args: argparse.Namespace
1839
1850
  return {"scanId": scan["id"], "maxCostUsd": limit}
1840
1851
 
1841
1852
 
1842
- def parse_scan_recipe(value: str, repository: Path) -> dict[str, Any]:
1843
- try:
1844
- recipe = json.loads(value, parse_constant=reject_non_finite_json)
1845
- except (TypeError, UnicodeError, ValueError) as exc:
1846
- raise SystemExit("Scan launch recipe must be a valid JSON object.") from exc
1847
- if not isinstance(recipe, dict):
1848
- raise SystemExit("Scan launch recipe must be a JSON object.")
1849
- requested_repository = recipe.get("repository")
1850
- if (
1851
- not isinstance(requested_repository, str)
1852
- or require_target(requested_repository) != repository
1853
- ):
1854
- raise SystemExit("Scan launch recipe repository must match the scanned repository.")
1855
- if recipe.get("mode") not in {"standard", "deep"}:
1856
- raise SystemExit("Scan launch recipe mode must be standard or deep.")
1857
- if not isinstance(recipe.get("config"), dict):
1858
- raise SystemExit("Scan launch recipe config must be a JSON object.")
1859
- target = recipe.get("target")
1860
- if not isinstance(target, dict) or target.get("kind") not in {
1861
- "repository",
1862
- "paths",
1863
- "refs",
1864
- "working_tree",
1865
- }:
1866
- raise SystemExit("Scan launch recipe target must identify a supported scan target.")
1867
- paths = target.get("paths")
1868
- if not isinstance(paths, list) or not all(isinstance(path, str) for path in paths):
1869
- raise SystemExit("Scan launch recipe target paths must be an array of strings.")
1870
- if target["kind"] == "paths" and not paths:
1871
- raise SystemExit("A scoped scan launch recipe must include at least one target path.")
1872
- if target["kind"] != "paths" and paths:
1873
- raise SystemExit("Only scoped scan launch recipes can include target paths.")
1874
- for path in paths:
1875
- candidate = PurePosixPath(path)
1876
- if (
1877
- not path
1878
- or candidate.is_absolute()
1879
- or ".." in candidate.parts
1880
- or "\\" in path
1881
- or not (repository / candidate).exists()
1882
- or not (repository / candidate).resolve().is_relative_to(repository)
1883
- ):
1884
- raise SystemExit("Scan launch recipe target paths must exist inside the repository.")
1885
- if target["kind"] in {"refs", "working_tree"}:
1886
- if not isinstance(target.get("base"), str) or not isinstance(target.get("head"), str):
1887
- raise SystemExit("Diff scan launch recipes require resolved base and head revisions.")
1888
- return recipe
1889
-
1890
-
1891
1853
  def coverage_summary_for_history(scan: sqlite3.Row) -> dict[str, Any]:
1892
1854
  return scan_history.coverage_summary_for_history(
1893
1855
  _WORKBENCH_DB_CONTEXT, scan, require_canonical_scan_directory
@@ -594,11 +594,14 @@ def _cross_mode_context(
594
594
  findings: dict[str, list[dict[str, Any]]],
595
595
  sites: dict[str, _FindingSites],
596
596
  ) -> dict[str, Any]:
597
- # Different repository subdirectories can share both the Git revision and clean digest.
597
+ # The saved generation includes the relative target path in a linked worktree.
598
+ same_target = before["target_id"] is not None and before["target_id"] == after["target_id"]
599
+ if not same_target:
600
+ generation = scan_repository_generation(before)
601
+ same_target = generation is not None and generation == scan_repository_generation(after)
598
602
  if (
599
603
  {before["mode"], after["mode"]} != {"standard", "deep"}
600
- or before["target_id"] is None
601
- or before["target_id"] != after["target_id"]
604
+ or not same_target
602
605
  or before["target_revision"] != after["target_revision"]
603
606
  or before["target_snapshot_digest"] is None
604
607
  or before["target_snapshot_digest"] != after["target_snapshot_digest"]
@@ -639,7 +642,12 @@ def list_unmatched_scan_pairs(
639
642
  values,
640
643
  ).fetchall()
641
644
 
642
- selected.sort(key=lambda scan: (timestamp_key(scan["started_at"]), scan["id"]))
645
+ focus_scan_id = getattr(args, "after_scan_id", None)
646
+ if focus_scan_id is None:
647
+ selected.sort(key=lambda scan: (timestamp_key(scan["started_at"]), scan["id"]))
648
+ else:
649
+ selected.sort(key=_scan_completion_order)
650
+ scan_ids = [scan["id"] for scan in selected]
643
651
 
644
652
  available = []
645
653
  for scan in selected:
@@ -653,14 +661,12 @@ def list_unmatched_scan_pairs(
653
661
  frozenset((row["before_scan_id"], row["after_scan_id"]))
654
662
  for row in connection.execute("SELECT before_scan_id, after_scan_id FROM scan_comparisons")
655
663
  }
656
- focus_scan_id = getattr(args, "after_scan_id", None)
657
- if focus_scan_id is not None and not any(scan["id"] == focus_scan_id for scan in selected):
664
+ if focus_scan_id is not None and focus_scan_id not in scan_ids:
658
665
  raise SystemExit("The scan to match is not a completed scan in this repository.")
659
- if focus_scan_id is not None:
660
- available.sort(key=_scan_completion_order)
661
666
  batches = []
662
667
  skipped = 0
663
668
  matching_findings: dict[str, list[dict[str, Any]]] = {}
669
+ compact = os.environ.get("CODEX_SECURITY_MATCHING_PLAN_FORMAT") == "compact"
664
670
  sites: dict[str, _FindingSites] = {}
665
671
  known_links: list[sqlite3.Row] | None = None
666
672
  for index, after in enumerate(available):
@@ -680,39 +686,27 @@ def list_unmatched_scan_pairs(
680
686
  if not previous:
681
687
  continue
682
688
  if known_links is None:
683
- known_links = (
684
- []
685
- if args.force
686
- else _saved_finding_links(connection, {scan["id"] for scan in selected})
687
- )
689
+ known_links = [] if args.force else _saved_finding_links(connection, set(scan_ids))
688
690
  for scan in (*previous, after):
689
691
  if scan["id"] not in matching_findings:
690
692
  backfill_finding_details(connection, scan)
691
693
  matching_findings[scan["id"]] = [
692
694
  _matching_input(row) for row in _scan_findings(connection, scan["id"]).values()
693
695
  ]
694
- known_groups = _known_finding_groups(
695
- known_links,
696
- {
697
- scan["id"]
698
- for scan in selected
699
- if (
700
- _scan_completion_order(scan) <= _scan_completion_order(after)
701
- if focus_scan_id is not None
702
- else (timestamp_key(scan["started_at"]), scan["id"])
703
- <= (timestamp_key(after["started_at"]), after["id"])
704
- )
705
- },
706
- )
696
+ known_groups = []
697
+ if known_links:
698
+ # Unavailable scans can still contribute a saved finding identity.
699
+ through_after = set(scan_ids[: scan_ids.index(after["id"]) + 1])
700
+ known_groups = _known_finding_groups(known_links, through_after)
707
701
  batches.append(
708
702
  {
709
- "afterFindings": matching_findings[after["id"]],
710
703
  "afterScanId": after["id"],
704
+ **({} if compact else {"afterFindings": matching_findings[after["id"]]}),
711
705
  "beforeScans": [
712
706
  {
713
707
  **_cross_mode_context(before, after, matching_findings, sites),
714
- "findings": matching_findings[before["id"]],
715
708
  "scanId": before["id"],
709
+ **({} if compact else {"findings": matching_findings[before["id"]]}),
716
710
  }
717
711
  for before in previous
718
712
  ],
@@ -720,6 +714,7 @@ def list_unmatched_scan_pairs(
720
714
  }
721
715
  )
722
716
  return {
717
+ **({"findingsByScanId": matching_findings} if compact else {}),
723
718
  "batches": batches,
724
719
  "repository": str(repository),
725
720
  "scanCount": len(selected),
@@ -14,7 +14,7 @@ from collections.abc import Callable, Iterator
14
14
  from contextlib import contextmanager
15
15
  from dataclasses import dataclass
16
16
  from datetime import datetime, timezone
17
- from pathlib import Path
17
+ from pathlib import Path, PurePosixPath
18
18
  from typing import Any
19
19
 
20
20
  # Some plugin hosts launch Python with safe-path isolation enabled.
@@ -28,12 +28,13 @@ from workbench.storage import (
28
28
  state_dir,
29
29
  )
30
30
  from workbench_feedback import get_scan_feedback
31
+ from workbench_setup import require_target
31
32
  from workbench_target import (
32
33
  directory_content_digest,
33
34
  git_revision,
34
35
  worktree_content_digest,
35
36
  )
36
- from workbench_validation import optional_text, read_json_object
37
+ from workbench_validation import optional_text, read_json_object, reject_non_finite_json
37
38
 
38
39
 
39
40
  def safe_segment(value: str) -> str:
@@ -501,5 +502,67 @@ def insert_running_scan(
501
502
  return scan_id
502
503
 
503
504
 
505
+ def parse_scan_recipe(value: str, repository: Path) -> dict[str, Any]:
506
+ try:
507
+ recipe = json.loads(value, parse_constant=reject_non_finite_json)
508
+ except (TypeError, UnicodeError, ValueError) as exc:
509
+ raise SystemExit("Scan launch recipe must be a valid JSON object.") from exc
510
+ if not isinstance(recipe, dict):
511
+ raise SystemExit("Scan launch recipe must be a JSON object.")
512
+ requested_repository = recipe.get("repository")
513
+ if (
514
+ not isinstance(requested_repository, str)
515
+ or require_target(requested_repository) != repository
516
+ ):
517
+ raise SystemExit("Scan launch recipe repository must match the scanned repository.")
518
+ if recipe.get("mode") not in {"standard", "deep"}:
519
+ raise SystemExit("Scan launch recipe mode must be standard or deep.")
520
+ if not isinstance(recipe.get("config"), dict):
521
+ raise SystemExit("Scan launch recipe config must be a JSON object.")
522
+ target = recipe.get("target")
523
+ if not isinstance(target, dict) or target.get("kind") not in {
524
+ "repository",
525
+ "paths",
526
+ "refs",
527
+ "working_tree",
528
+ }:
529
+ raise SystemExit("Scan launch recipe target must identify a supported scan target.")
530
+ paths = target.get("paths")
531
+ if not isinstance(paths, list) or not all(isinstance(path, str) for path in paths):
532
+ raise SystemExit("Scan launch recipe target paths must be an array of strings.")
533
+ if target["kind"] == "paths" and not paths:
534
+ raise SystemExit("A scoped scan launch recipe must include at least one target path.")
535
+ if target["kind"] != "paths" and paths:
536
+ raise SystemExit("Only scoped scan launch recipes can include target paths.")
537
+ for path in paths:
538
+ candidate = PurePosixPath(path)
539
+ if (
540
+ not path
541
+ or candidate.is_absolute()
542
+ or ".." in candidate.parts
543
+ or "\\" in path
544
+ or not (repository / candidate).exists()
545
+ or not (repository / candidate).resolve().is_relative_to(repository)
546
+ ):
547
+ raise SystemExit("Scan launch recipe target paths must exist inside the repository.")
548
+ exclusions = recipe.get("excludePaths", [])
549
+ if not isinstance(exclusions, list) or any(
550
+ not isinstance(path, str)
551
+ or not path
552
+ or any(ord(character) < 32 for character in path)
553
+ or re.match(r"^[A-Za-z]:", path)
554
+ or "\\" in path
555
+ or PurePosixPath(path).is_absolute()
556
+ or ".." in PurePosixPath(path).parts
557
+ or PurePosixPath(path).as_posix() != path
558
+ for path in exclusions
559
+ ):
560
+ raise SystemExit("Scan launch recipe exclusions must be literal repository-relative paths.")
561
+ if target["kind"] in {"refs", "working_tree"}:
562
+ if not isinstance(target.get("base"), str) or not isinstance(target.get("head"), str):
563
+ raise SystemExit("Diff scan launch recipes require resolved base and head revisions.")
564
+ return recipe
565
+
566
+
504
567
  if __name__ == "__main__":
505
568
  argparse.ArgumentParser(description=__doc__).parse_args()
@@ -48,6 +48,14 @@ def requested_scan_paths(scan: sqlite3.Row) -> list[str]:
48
48
  return [scan["scope"]]
49
49
 
50
50
 
51
+ def requested_exclude_paths(scan: sqlite3.Row) -> list[str]:
52
+ if scan["recipe_json"] is None:
53
+ return []
54
+ return json.loads(scan["recipe_json"], parse_constant=reject_non_finite_json).get(
55
+ "excludePaths", []
56
+ )
57
+
58
+
51
59
  def public_scan_recipe(scan: sqlite3.Row) -> dict[str, Any]:
52
60
  """Return the decoded launch recipe with the internal file-scope metadata removed."""
53
61
  recipe = json.loads(scan["recipe_json"], parse_constant=reject_non_finite_json)
@@ -548,7 +548,9 @@ def git_changed_paths(repo: Path, base: str, head: str, mode: str) -> list[tuple
548
548
  raise SystemExit(f"Unknown diff mode: {mode}")
549
549
 
550
550
 
551
- def diff_scope_file_count(target: Path, diff_target: dict[str, str]) -> int | None:
551
+ def diff_scope_file_count(
552
+ target: Path, diff_target: dict[str, str], exclusions: tuple[str, ...] | list[str] = ()
553
+ ) -> int | None:
552
554
  base, head = diff_target["baseRevision"], diff_target["headRevision"]
553
555
  local = diff_target["kind"] == "working_tree"
554
556
  selected: list[str] = []
@@ -560,6 +562,8 @@ def diff_scope_file_count(target: Path, diff_target: dict[str, str]) -> int | No
560
562
  return None
561
563
  for path, status in changes:
562
564
  name = path.relative_to(target).as_posix()
565
+ if any(PurePosixPath(name).is_relative_to(PurePosixPath(scope)) for scope in exclusions):
566
+ continue
563
567
  if not local or status == "D":
564
568
  committed[name] = f"{base if status == 'D' else head}:{name}"
565
569
  else:
@@ -1477,7 +1481,9 @@ def directory_snapshot_regular_file_count(target: Path) -> int:
1477
1481
  return sum(1 for _ in directory_snapshot_regular_files(target))
1478
1482
 
1479
1483
 
1480
- def scoped_regular_file_count(repository: Path, scopes: list[str]) -> int:
1484
+ def scoped_regular_file_count(
1485
+ repository: Path, scopes: list[str], exclusions: tuple[str, ...] | list[str] = ()
1486
+ ) -> int:
1481
1487
  # Count directory entries once while retaining explicitly requested ignored files.
1482
1488
  names: set[str] = set()
1483
1489
  for scope in scopes:
@@ -1490,7 +1496,15 @@ def scoped_regular_file_count(repository: Path, scopes: list[str]) -> int:
1490
1496
  names.add(selected.as_posix())
1491
1497
  elif selected.is_dir():
1492
1498
  names.update(path.as_posix() for path in directory_snapshot_regular_files(selected))
1493
- return len(names)
1499
+ return sum(
1500
+ not any(
1501
+ PurePosixPath(Path(name).relative_to(repository).as_posix()).is_relative_to(
1502
+ PurePosixPath(scope)
1503
+ )
1504
+ for scope in exclusions
1505
+ )
1506
+ for name in names
1507
+ )
1494
1508
 
1495
1509
 
1496
1510
  def copy_directory_excluding(
@@ -3,6 +3,9 @@
3
3
  "WITH input AS (SELECT :history AS history),",
4
4
  "previews AS (",
5
5
  " SELECT version, CASE",
6
+ " -- Retire the superseded scan Git preview receipts. Keep their saved columns.",
7
+ " WHEN name IN ('save scan target Git positions', 'save scan Git repository identities')",
8
+ " THEN 'DELETE FROM schema_migrations'",
6
9
  " -- Prefer the original timestamp when a reader reopened the 52/53 repository preview.",
7
10
  " WHEN version IN (64, 67) AND name = 'persist repository identities'",
8
11
  " AND EXISTS (SELECT 1 FROM schema_migrations WHERE version = 52 AND name = receipt.name)",
@@ -111,7 +114,8 @@
111
114
  " released.version || ', ' || quote(json_extract(history.value, '$.name')) || ', ?)' AS value",
112
115
  "FROM released JOIN json_each(:history) AS history",
113
116
  " ON json_extract(history.value, '$.version') = released.version",
114
- "WHERE EXISTS (SELECT 1 FROM schema_migrations WHERE name = 'persist repository identities')",
117
+ "WHERE (EXISTS (SELECT 1 FROM schema_migrations WHERE name = 'persist repository identities')",
118
+ " OR EXISTS (SELECT 1 FROM pragma_table_info('scans') WHERE name = 'target_git_prefix'))",
115
119
  " AND NOT EXISTS (SELECT 1 FROM schema_migrations WHERE version = released.version)",
116
120
  " AND EXISTS (SELECT 1 FROM pragma_table_info(released.table_name) WHERE name = released.column_name);"
117
121
  ],
@@ -13,12 +13,14 @@ For a scan phase, use its per-scan threat model and candidate set from `../../re
13
13
 
14
14
  For standalone analysis, use the supplied finding, repository, threat model or security policy, and context. A per-scan artifact is not required. State material assumptions and ask for missing context only when it prevents a meaningful assessment.
15
15
 
16
- 1. Establish the in-scope attacker, affected product surface, entry point, controlled input, security boundary, and sensitive operation. Trace the path from repository evidence.
16
+ 1. Establish the in-scope attacker, affected product surface, entry point, controlled input, security boundary, and sensitive operation. Trace each step using repository evidence and supplied observations of the target.
17
17
  2. Identify relevant controls and the strongest counterevidence. Explain what they establish, which prerequisites remain, and whether the exact claimed boundary is crossed.
18
18
  3. Assess impact and likelihood from those facts. Apply [references/severity-policy.md](references/severity-policy.md) for the final decision. When the scan supplies a severity rubric, use it to grade reportable findings and retain `ignore` for candidates without security impact. Keep facts, severity calibration, and the final policy decision distinguishable in the result.
19
19
  4. Return an explicit decision for every eligible candidate, including ignored or deferred candidates. Do not replace a supported instance with a neighboring finding or lose its root-control location.
20
20
 
21
- Use repository evidence and explicitly supplied context. Access the network only when the user has expressly authorized it; an offline scan never accesses the network. Do not invent unsupported attack chains. Missing deployment or public-ingress evidence can limit confidence without defeating an otherwise supported finding.
21
+ For an imported AWS Continuum issue or single finding, read `source_data.evidence_artifacts` in the supplied finding evidence. A `VALIDATION_EVIDENCE` artifact's `body.validationEvidence` may establish a step the repository cannot show. Match the tested target, attacker privileges, and observed effect to the claimed path. For a bundled issue, use `perFindingResults` and `flowVerdicts` when present to identify the relevant finding and flow. An HTTP `exploitArtifact` can establish reachability from the tested position. An `executedProof` establishes what ran in its test environment. `sourceAnalysis` records a static inference, and an `exploitable` verdict alone does not demonstrate deployed reachability. Cite the artifact ID and the observation that supports or contradicts the step.
22
+
23
+ Treat supplied artifacts as evidence. Access the network only when the user has expressly authorized it; an offline scan never accesses the network. Do not invent unsupported attack chains. Missing deployment or public-ingress evidence can limit confidence without defeating an otherwise supported finding.
22
24
 
23
25
  ## Scan integration
24
26
 
@@ -1,6 +1,6 @@
1
1
  # Severity and Policy Guidance
2
2
 
3
- Apply this policy after establishing the attack path, scope, and counterevidence. Start from the candidate's severity hypothesis and adjust it using repository-supported impact, likelihood, prerequisites, and mitigations. Do not reopen discovery during calibration.
3
+ Apply this policy after establishing the attack path, scope, and counterevidence. Start from the candidate's severity hypothesis and adjust it using the impact, likelihood, prerequisites, and mitigations supported by the repository and supplied validation evidence. Do not reopen discovery during calibration.
4
4
 
5
5
  Grade reportable findings with the scan's rubric or, when none is supplied, the [default severity rubric](../../../references/default-severity-rubric.md).
6
6
 
@@ -12,7 +12,7 @@ For SSRF, a documented outbound-request feature or optional operator filter does
12
12
  - Do not discard a real, reportable finding solely because its impact or likelihood is low; use the corresponding lower severity.
13
13
  - Apply hard suppression to self-only impact or unachievable/highly unrealistic prerequisites.
14
14
  - Privileged-only, operator-only, developer-only, physical-access-only, or protected-write-path prerequisites imply `ignore` unless a privilege-escalation delta is the issue.
15
- - If repository evidence does not establish a realistic lower-privileged in-scope attacker path, set `ignore`.
15
+ - A realistic lower-privileged, in-scope attacker path can be established by repository evidence, supplied validation evidence, or both. Set `ignore` if the evidence does not support such a path.
16
16
 
17
17
  Private or internal exposure alone does not suppress a supported authorization, identity, trust-boundary, or security-control failure in a real product or production workflow. Missing deployment or ingress evidence can lower confidence or leave facts unknown without defeating an otherwise supported finding.
18
18
 
@@ -22,9 +22,11 @@ For a fresh scan, look for the relevant executable in the environment where it w
22
22
  | Semgrep Platform Web API | For a whole project and ref use `codex-security import semgrep PROJECT --deployment DEPLOYMENT --ref REF --format json`. For selected SAST IDs use the original project response and selected findings pages. |
23
23
  | GitHub | The signed-in GitHub CLI collector `codex-security import github OWNER/REPO` accepts repeated `--github-alert NUMBER` or a `--github-ref REF`. Use `import github-advisories` for advisories. For Dependabot, export full paginated repository REST alert objects through the available GitHub connection. Keep separate source keys for these three families. |
24
24
  | Snyk | For a monitored Open Source project use `codex-security import snyk PROJECT_ID --org ORG_ID --source-repository-url URL --format json`. Add `--snyk-product code` for a monitored Code project. For a fresh dependency scan use native `snyk test` JSON or the signed-in Snyk plugin's SCA export from the requested root. Keep acquisition formats in distinct namespaces. |
25
+ | AWS Continuum | Use `codex-security import continuum ENVIRONMENT_ID --format json` to collect all environment issues, linked findings, and issue-level `EVIDENCE` and `VALIDATION_EVIDENCE` artifacts. The environment must have exactly one Git repository, which the report records. S3 sources may also be present. Override the AWS CLI defaults with `--aws-profile` and `--aws-region` as needed. Verify that the issues belong to the intended repository before importing with `publish findings --provider continuum`. Supply the verified `--source-repository-url` for saved reports without a repository URL. For attack-path scoring, give `$attack-path-analysis` the selected issue's stored `.evidence`, including its validation artifacts. [Continuum guide](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/continuum.md) |
25
26
  | Checkmarx | Export a completed Checkmarx One scan as CLI JSON or self-managed CxSAST as XML. Follow the [collector instructions](references/checkmarx-import.md) for the selected product, scan, and verified owning project. |
26
27
  | Wiz | Use the connected Wiz tools or API to retrieve the selected repository findings by occurrence ID, or use a detailed report. JSON covers multiple finding families. Detailed CSV covers repository package vulnerabilities. [Wiz input profiles](references/wiz-import.md) |
27
- | AWS Continuum | From a trusted directory outside the checkout, run the [bundled collector](scripts/collect_continuum.py) with the signed-in AWS CLI and selected profile and Region. Pass `--source-root` with the absolute path of the selected local checkout, `--environment-id`, `--finding-id`, and either `--single-repository` for a verified single-repository environment or `--repository-name` with the exact AWS source name. Import the resulting JSON to retain generated patches as evidence. A saved native detail or complete single-repository list also works offline. [Continuum guide](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/continuum.md) |
28
+ | AWS Continuum single finding | Run `codex-security import continuum ENVIRONMENT_ID --finding-id FINDING_ID --source-root CHECKOUT --repository-name AWS_SOURCE_NAME --format json` for one finding with its matching validation evidence and repository patches. Use an absolute checkout path and the exact AWS source name. Omit `--repository-name` when the environment has exactly one Git repository and no S3 sources. The CLI verifies that with `GetEnvironment` before collecting the finding. Publish the JSON with `--provider continuum` and the verified `--source-repository-url`. [Continuum guide](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/continuum.md#collect-a-finding-with-patches) |
29
+ | CrowdStrike FCS | Use a saved FCS CLI 4.x `fcs scan iac` JSON report, such as a CI artifact from the [FCS GitHub Action](https://github.com/CrowdStrike/fcs-action). For a fresh scan, run the installed `fcs` CLI from the directory to import into: `fcs scan iac --path . --report-formats json --output-path DIR`, where `DIR` is an existing private directory outside it whose name has no dot. For a remote `git::` URL, add `?ref=COMMIT` and import into a checkout of that commit, or into its subdirectory for a `//subdir` suffix. A nonzero exit can mean that detections matched `--fail-on` or that the scan failed; import only the `*-scan-results.json` file named in `Results saved to file`. If `fcs` is not on `PATH`, do not install it or pass Falcon credentials in arguments; ask for a saved report. Import with `--to local` only. The directory does not need to be a Git checkout, but each detection's file must have the content that FCS scanned. Add `--source-repository-url` only for a verified URL. A `git::https://` report already names its repository, and a different URL stops the import. [CrowdStrike guide](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/crowdstrike.md) |
28
30
  | Other built-in readers | OpenGrep accepts native scan JSON including scanner errors. Endor uses `endorctl` Finding JSON with complete records. Inspector uses Inspector2 ListFindings for one Code Security repository. Black Duck uses BOM-6 vulnerable components for one project version. Veracode uses paginated STATIC policy findings for one application. Tenable uses a selected Code Repository inventory capture and verified HTTPS clone URL. [Provider guides and identity rules](https://github.com/openai/codex-security/blob/main/docs/scanner-imports/README.md#choose-your-scanner) |
29
31
 
30
32
  ### SonarQube Cloud issues
package/dist/api.d.ts CHANGED
@@ -187,6 +187,7 @@ export interface ScanPreflight extends DeepScanOptions, ScanModelConfiguration {
187
187
  maxTimeMinutes?: number;
188
188
  repository: string;
189
189
  target: NormalizedTarget;
190
+ excludePaths?: string[];
190
191
  mode: ScanMode;
191
192
  knowledgeBasePaths?: string[];
192
193
  outputDir: string | null;
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAgDA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAEL,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAKL,gBAAgB,EAKhB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAMnB,OAAO,EAkBL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,sBAAsB,EAE5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,WAAW,CAAC;AACnB,OAAO,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