@openai/codex-security 0.1.24 → 0.1.26
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.
- package/README.md +399 -27
- package/_bundled_plugin/.app.json +0 -5
- package/_bundled_plugin/.codex-plugin/plugin.json +1 -1
- package/_bundled_plugin/.mcp.json +1 -0
- package/_bundled_plugin/mcp/server.mjs.br.part-000 +0 -0
- package/_bundled_plugin/mcp/server.mjs.br.part-001 +0 -0
- package/_bundled_plugin/references/config-preflight.md +2 -2
- package/_bundled_plugin/references/final-report.md +5 -3
- package/_bundled_plugin/references/scan-artifacts.md +5 -1
- package/_bundled_plugin/references/scan-contract.md +7 -3
- package/_bundled_plugin/schemas/tools/deep-reducer.schema.json +27 -1
- package/_bundled_plugin/scripts/deep_scan_workbench.py +6 -1
- package/_bundled_plugin/scripts/finalize_scan_contract.py +2 -5
- package/_bundled_plugin/scripts/rank_preview.py +11 -1
- package/_bundled_plugin/scripts/report_projection.py +1 -1
- package/_bundled_plugin/scripts/workbench_cli.py +11 -1
- package/_bundled_plugin/scripts/workbench_db.py +55 -4
- package/_bundled_plugin/scripts/workbench_saved_results.py +41 -22
- package/_bundled_plugin/scripts/workbench_scan_history.py +374 -66
- package/_bundled_plugin/scripts/workbench_scan_usage.py +7 -6
- package/_bundled_plugin/scripts/workbench_schema.py +46 -0
- package/_bundled_plugin/scripts/workbench_severity.py +119 -0
- package/_bundled_plugin/scripts/workbench_target.py +86 -12
- package/_bundled_plugin/skills/deep-security-scan/SKILL.md +5 -3
- package/_bundled_plugin/skills/verify-fix/SKILL.md +5 -1
- package/dist/api.d.ts +15 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +333 -32
- package/dist/api.js.map +1 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +35 -3
- package/dist/auth.js.map +1 -1
- package/dist/classify-scan-severity.d.ts +16 -0
- package/dist/classify-scan-severity.d.ts.map +1 -0
- package/dist/classify-scan-severity.js +96 -0
- package/dist/classify-scan-severity.js.map +1 -0
- package/dist/classify-severity.d.ts +38 -0
- package/dist/classify-severity.d.ts.map +1 -0
- package/dist/classify-severity.js +185 -0
- package/dist/classify-severity.js.map +1 -0
- package/dist/cli.d.ts +7 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +403 -116
- package/dist/cli.js.map +1 -1
- package/dist/component-plan.d.ts.map +1 -1
- package/dist/component-plan.js +4 -2
- package/dist/component-plan.js.map +1 -1
- package/dist/component-scan.d.ts.map +1 -1
- package/dist/component-scan.js +21 -6
- package/dist/component-scan.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +46 -2
- package/dist/config.js.map +1 -1
- package/dist/cost.d.ts +1 -0
- package/dist/cost.d.ts.map +1 -1
- package/dist/cost.js +43 -17
- package/dist/cost.js.map +1 -1
- package/dist/deduplication/checkpointed-review.d.ts.map +1 -1
- package/dist/deduplication/checkpointed-review.js +2 -1
- package/dist/deduplication/checkpointed-review.js.map +1 -1
- package/dist/deduplication/codex-review.d.ts +3 -0
- package/dist/deduplication/codex-review.d.ts.map +1 -1
- package/dist/deduplication/codex-review.js +122 -36
- package/dist/deduplication/codex-review.js.map +1 -1
- package/dist/deduplication/deduplication-prompts.d.ts +4 -3
- package/dist/deduplication/deduplication-prompts.d.ts.map +1 -1
- package/dist/deduplication/deduplication-prompts.js +18 -9
- package/dist/deduplication/deduplication-prompts.js.map +1 -1
- package/dist/deduplication/deduplication-reviewer.d.ts +2 -7
- package/dist/deduplication/deduplication-reviewer.d.ts.map +1 -1
- package/dist/deduplication/deduplication-reviewer.js +47 -25
- package/dist/deduplication/deduplication-reviewer.js.map +1 -1
- package/dist/deduplication/deduplication.d.ts.map +1 -1
- package/dist/deduplication/deduplication.js +186 -23
- package/dist/deduplication/deduplication.js.map +1 -1
- package/dist/deduplication/scan.d.ts +9 -1
- package/dist/deduplication/scan.d.ts.map +1 -1
- package/dist/deduplication/scan.js +24 -7
- package/dist/deduplication/scan.js.map +1 -1
- package/dist/errors.d.ts +13 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -1
- package/dist/finding-catalogue.d.ts +11 -0
- package/dist/finding-catalogue.d.ts.map +1 -0
- package/dist/finding-catalogue.js +150 -0
- package/dist/finding-catalogue.js.map +1 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/mock-scan.d.ts +4 -0
- package/dist/mock-scan.d.ts.map +1 -0
- package/dist/mock-scan.js +210 -0
- package/dist/mock-scan.js.map +1 -0
- package/dist/patch-tui.js +1 -1
- package/dist/patch-tui.js.map +1 -1
- package/dist/publication-store.d.ts.map +1 -1
- package/dist/publication-store.js +9 -4
- package/dist/publication-store.js.map +1 -1
- package/dist/publication.d.ts +9 -0
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +45 -5
- package/dist/publication.js.map +1 -1
- package/dist/publish.d.ts +4 -2
- package/dist/publish.d.ts.map +1 -1
- package/dist/publish.js +4 -4
- package/dist/publish.js.map +1 -1
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +49 -14
- package/dist/runtime.js.map +1 -1
- package/dist/scan-comparison.d.ts +44 -30
- package/dist/scan-comparison.d.ts.map +1 -1
- package/dist/scan-comparison.js +673 -101
- package/dist/scan-comparison.js.map +1 -1
- package/dist/scan-dashboard.d.ts +3 -1
- package/dist/scan-dashboard.d.ts.map +1 -1
- package/dist/scan-dashboard.js +70 -3
- package/dist/scan-dashboard.js.map +1 -1
- package/dist/scan-history-renderer.d.ts.map +1 -1
- package/dist/scan-history-renderer.js +26 -0
- package/dist/scan-history-renderer.js.map +1 -1
- package/dist/server/api.d.ts +6 -0
- package/dist/server/api.d.ts.map +1 -0
- package/dist/server/api.js +4 -0
- package/dist/server/api.js.map +1 -0
- package/dist/server/dashboard/app.css +1 -1
- package/dist/server/embeddings.d.ts +2 -1
- package/dist/server/embeddings.d.ts.map +1 -1
- package/dist/server/embeddings.js +8 -3
- package/dist/server/embeddings.js.map +1 -1
- package/dist/server/serve.d.ts.map +1 -1
- package/dist/server/serve.js +1 -1
- package/dist/server/serve.js.map +1 -1
- package/dist/severity-store.d.ts +2 -0
- package/dist/severity-store.d.ts.map +1 -0
- package/dist/severity-store.js +111 -0
- package/dist/severity-store.js.map +1 -0
- package/dist/targets.d.ts.map +1 -1
- package/dist/targets.js +3 -5
- package/dist/targets.js.map +1 -1
- package/dist/thread-source.d.ts +1 -0
- package/dist/thread-source.d.ts.map +1 -1
- package/dist/thread-source.js +1 -0
- package/dist/thread-source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +11 -6
|
@@ -825,6 +825,48 @@ MIGRATIONS = (
|
|
|
825
825
|
ALTER TABLE finding_workflow_reviews ADD COLUMN contract_digest TEXT;
|
|
826
826
|
""",
|
|
827
827
|
),
|
|
828
|
+
(
|
|
829
|
+
40,
|
|
830
|
+
"index finding identity and comparison history",
|
|
831
|
+
"""
|
|
832
|
+
CREATE INDEX finding_occurrences_by_finding
|
|
833
|
+
ON finding_occurrences(finding_id, id);
|
|
834
|
+
|
|
835
|
+
CREATE INDEX scan_comparisons_by_after_scan
|
|
836
|
+
ON scan_comparisons(after_scan_id, before_scan_id);
|
|
837
|
+
""",
|
|
838
|
+
),
|
|
839
|
+
(
|
|
840
|
+
41,
|
|
841
|
+
"checkpoint finding severity assessments",
|
|
842
|
+
"""
|
|
843
|
+
CREATE TABLE finding_severity_assessments (
|
|
844
|
+
finding_id TEXT PRIMARY KEY REFERENCES findings(id) ON DELETE CASCADE,
|
|
845
|
+
occurrence_id TEXT,
|
|
846
|
+
input_sha256 TEXT NOT NULL,
|
|
847
|
+
rubric_sha256 TEXT,
|
|
848
|
+
knowledge_base_sha256 TEXT,
|
|
849
|
+
assessed_at TEXT NOT NULL,
|
|
850
|
+
source TEXT NOT NULL CHECK (source IN ('existing-severity', 'rubric')),
|
|
851
|
+
decision TEXT NOT NULL CHECK (decision IN ('assessed', 'excluded')),
|
|
852
|
+
level TEXT CHECK (level IN ('critical', 'high', 'medium', 'low', 'informational')),
|
|
853
|
+
rubric_label TEXT,
|
|
854
|
+
rationale TEXT NOT NULL,
|
|
855
|
+
confidence TEXT CHECK (confidence IN ('high', 'medium', 'low')),
|
|
856
|
+
review_trigger TEXT,
|
|
857
|
+
CHECK ((decision = 'assessed' AND level IS NOT NULL)
|
|
858
|
+
OR (decision = 'excluded' AND level IS NULL AND rubric_label IS NULL))
|
|
859
|
+
);
|
|
860
|
+
|
|
861
|
+
CREATE TABLE scan_severity_classifications (
|
|
862
|
+
scan_id TEXT PRIMARY KEY,
|
|
863
|
+
finding_ids_json TEXT NOT NULL,
|
|
864
|
+
assessed_at TEXT NOT NULL,
|
|
865
|
+
rubric_sha256 TEXT,
|
|
866
|
+
knowledge_base_sha256 TEXT
|
|
867
|
+
);
|
|
868
|
+
""",
|
|
869
|
+
),
|
|
828
870
|
)
|
|
829
871
|
|
|
830
872
|
|
|
@@ -1106,6 +1148,10 @@ def normalize_pre_release_execution_profile_migrations(
|
|
|
1106
1148
|
|
|
1107
1149
|
def normalize_pre_release_migrations(connection: sqlite3.Connection, timestamp: str) -> None:
|
|
1108
1150
|
normalize_mirror_lineage_migrations(connection)
|
|
1151
|
+
connection.execute(
|
|
1152
|
+
"UPDATE schema_migrations SET version = 40 WHERE version = 33 AND name = ?",
|
|
1153
|
+
("index finding identity and comparison history",),
|
|
1154
|
+
)
|
|
1109
1155
|
|
|
1110
1156
|
completion_warning_migration = connection.execute(
|
|
1111
1157
|
"SELECT name FROM schema_migrations WHERE version = 25"
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"""Per-finding severity checkpoints and the selection requested for each scan."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
import sqlite3
|
|
6
|
+
from contextlib import closing
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
9
|
+
from urllib.parse import quote
|
|
10
|
+
|
|
11
|
+
from workbench_finding_index import upsert_finding
|
|
12
|
+
|
|
13
|
+
FIELDS = {
|
|
14
|
+
"findingId": "finding_id",
|
|
15
|
+
"occurrenceId": "occurrence_id",
|
|
16
|
+
"inputSha256": "input_sha256",
|
|
17
|
+
"rubricSha256": "rubric_sha256",
|
|
18
|
+
"knowledgeBaseSha256": "knowledge_base_sha256",
|
|
19
|
+
"assessedAt": "assessed_at",
|
|
20
|
+
"source": "source",
|
|
21
|
+
"decision": "decision",
|
|
22
|
+
"level": "level",
|
|
23
|
+
"rubricLabel": "rubric_label",
|
|
24
|
+
"rationale": "rationale",
|
|
25
|
+
"confidence": "confidence",
|
|
26
|
+
"reviewTrigger": "review_trigger",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def assessments(connection: sqlite3.Connection, finding_ids: list[str]) -> list[dict[str, Any]]:
|
|
31
|
+
rows = connection.execute(
|
|
32
|
+
"""SELECT assessment.* FROM json_each(?) AS selected
|
|
33
|
+
JOIN finding_severity_assessments AS assessment ON assessment.finding_id = selected.value
|
|
34
|
+
ORDER BY selected.key""",
|
|
35
|
+
(json.dumps(finding_ids),),
|
|
36
|
+
)
|
|
37
|
+
return [{key: row[column] for key, column in FIELDS.items()} for row in rows]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def checkpoint(
|
|
41
|
+
connection: sqlite3.Connection, payload: dict[str, Any], timestamp: str
|
|
42
|
+
) -> dict[str, Any]:
|
|
43
|
+
if payload["action"] == "begin":
|
|
44
|
+
with connection:
|
|
45
|
+
connection.execute(
|
|
46
|
+
"""INSERT INTO scan_severity_classifications (
|
|
47
|
+
scan_id, finding_ids_json, assessed_at, rubric_sha256, knowledge_base_sha256
|
|
48
|
+
) VALUES (?, ?, ?, ?, ?)
|
|
49
|
+
ON CONFLICT(scan_id) DO UPDATE SET
|
|
50
|
+
finding_ids_json = excluded.finding_ids_json,
|
|
51
|
+
assessed_at = excluded.assessed_at,
|
|
52
|
+
rubric_sha256 = excluded.rubric_sha256,
|
|
53
|
+
knowledge_base_sha256 = excluded.knowledge_base_sha256""",
|
|
54
|
+
(
|
|
55
|
+
payload["scanId"],
|
|
56
|
+
json.dumps(payload["findingIds"]),
|
|
57
|
+
payload["assessedAt"],
|
|
58
|
+
payload["rubricSha256"],
|
|
59
|
+
payload["knowledgeBaseSha256"],
|
|
60
|
+
),
|
|
61
|
+
)
|
|
62
|
+
return {"assessments": assessments(connection, payload["findingIds"])}
|
|
63
|
+
if payload["action"] != "save":
|
|
64
|
+
raise SystemExit("Unknown severity checkpoint action.")
|
|
65
|
+
finding = payload["finding"]
|
|
66
|
+
assessment = {**payload["assessment"], "assessedAt": timestamp}
|
|
67
|
+
with connection:
|
|
68
|
+
# External scan directories may not have been indexed on this machine.
|
|
69
|
+
if (
|
|
70
|
+
connection.execute(
|
|
71
|
+
"SELECT 1 FROM findings WHERE id = ?", (finding["findingId"],)
|
|
72
|
+
).fetchone()
|
|
73
|
+
is None
|
|
74
|
+
):
|
|
75
|
+
upsert_finding(connection, finding, timestamp)
|
|
76
|
+
columns = ", ".join(FIELDS.values())
|
|
77
|
+
parameters = ", ".join("?" for _ in FIELDS)
|
|
78
|
+
updates = ", ".join(f"{column} = excluded.{column}" for column in FIELDS.values())
|
|
79
|
+
connection.execute(
|
|
80
|
+
f"""INSERT INTO finding_severity_assessments ({columns})
|
|
81
|
+
VALUES ({parameters})
|
|
82
|
+
ON CONFLICT(finding_id) DO UPDATE SET
|
|
83
|
+
{updates}""",
|
|
84
|
+
tuple(assessment[key] for key in FIELDS),
|
|
85
|
+
)
|
|
86
|
+
return {}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def read_classification(database: Path, scan_id: str) -> dict[str, Any]:
|
|
90
|
+
uri = f"file:{quote(str(database), safe='')}?mode=ro"
|
|
91
|
+
with closing(sqlite3.connect(uri, uri=True, timeout=5)) as connection:
|
|
92
|
+
connection.row_factory = sqlite3.Row
|
|
93
|
+
connection.execute("BEGIN")
|
|
94
|
+
if (
|
|
95
|
+
connection.execute(
|
|
96
|
+
"SELECT 1 FROM sqlite_master WHERE type = 'table' "
|
|
97
|
+
"AND name = 'scan_severity_classifications'"
|
|
98
|
+
).fetchone()
|
|
99
|
+
is None
|
|
100
|
+
):
|
|
101
|
+
return {}
|
|
102
|
+
row = connection.execute(
|
|
103
|
+
"SELECT * FROM scan_severity_classifications WHERE scan_id = ?", (scan_id,)
|
|
104
|
+
).fetchone()
|
|
105
|
+
if row is None:
|
|
106
|
+
return {}
|
|
107
|
+
finding_ids = json.loads(row["finding_ids_json"])
|
|
108
|
+
return {
|
|
109
|
+
"scanId": scan_id,
|
|
110
|
+
"findingIds": finding_ids,
|
|
111
|
+
"assessedAt": row["assessed_at"],
|
|
112
|
+
"rubricSha256": row["rubric_sha256"],
|
|
113
|
+
"knowledgeBaseSha256": row["knowledge_base_sha256"],
|
|
114
|
+
"assessments": assessments(connection, finding_ids),
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
if __name__ == "__main__":
|
|
119
|
+
argparse.ArgumentParser(description=__doc__).parse_args()
|
|
@@ -10,8 +10,9 @@ import sqlite3
|
|
|
10
10
|
import stat
|
|
11
11
|
import subprocess
|
|
12
12
|
import sys
|
|
13
|
+
import tempfile
|
|
13
14
|
from pathlib import Path
|
|
14
|
-
from typing import Any
|
|
15
|
+
from typing import Any, BinaryIO
|
|
15
16
|
|
|
16
17
|
# Some plugin hosts launch Python with safe-path isolation enabled.
|
|
17
18
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
@@ -127,6 +128,7 @@ def git_command(
|
|
|
127
128
|
input_data: str | bytes | None = None,
|
|
128
129
|
git_dir: Path | None = None,
|
|
129
130
|
work_tree: Path | None = None,
|
|
131
|
+
stdout_file: BinaryIO | None = None,
|
|
130
132
|
) -> subprocess.CompletedProcess[str] | subprocess.CompletedProcess[bytes]:
|
|
131
133
|
if (git_dir is None) != (work_tree is None):
|
|
132
134
|
raise ValueError("git_dir and work_tree must be provided together")
|
|
@@ -148,15 +150,20 @@ def git_command(
|
|
|
148
150
|
command.extend(["--git-dir", str(git_dir), "--work-tree", str(work_tree)])
|
|
149
151
|
full_command = [*command, *args]
|
|
150
152
|
try:
|
|
153
|
+
output_options = (
|
|
154
|
+
{"capture_output": True}
|
|
155
|
+
if stdout_file is None
|
|
156
|
+
else {"stdout": stdout_file, "stderr": subprocess.PIPE}
|
|
157
|
+
)
|
|
151
158
|
return subprocess.run(
|
|
152
159
|
full_command,
|
|
153
160
|
check=False,
|
|
154
|
-
capture_output=True,
|
|
155
161
|
env=environment,
|
|
156
162
|
text=text,
|
|
157
163
|
encoding="utf-8" if text else None,
|
|
158
164
|
errors="surrogateescape" if text else None,
|
|
159
165
|
input=input_data,
|
|
166
|
+
**output_options,
|
|
160
167
|
)
|
|
161
168
|
except FileNotFoundError:
|
|
162
169
|
# Git is optional for Codebase scans. Treat an unavailable executable like
|
|
@@ -165,13 +172,45 @@ def git_command(
|
|
|
165
172
|
return subprocess.CompletedProcess(full_command, 127, empty_output, empty_output)
|
|
166
173
|
|
|
167
174
|
|
|
168
|
-
def
|
|
175
|
+
def _update_digest_field_header(digest: Any, label: bytes, value_size: int) -> None:
|
|
169
176
|
digest.update(len(label).to_bytes(4, "big"))
|
|
170
177
|
digest.update(label)
|
|
171
|
-
digest.update(
|
|
178
|
+
digest.update(value_size.to_bytes(8, "big"))
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def update_digest_field(digest: Any, label: bytes, value: bytes) -> None:
|
|
182
|
+
_update_digest_field_header(digest, label, len(value))
|
|
172
183
|
digest.update(value)
|
|
173
184
|
|
|
174
185
|
|
|
186
|
+
def _update_digest_field_from_git(
|
|
187
|
+
digest: Any,
|
|
188
|
+
label: bytes,
|
|
189
|
+
target: Path,
|
|
190
|
+
*args: str,
|
|
191
|
+
git_dir: Path | None = None,
|
|
192
|
+
work_tree: Path | None = None,
|
|
193
|
+
) -> bool:
|
|
194
|
+
with tempfile.TemporaryFile() as output:
|
|
195
|
+
completed = git_command(
|
|
196
|
+
target,
|
|
197
|
+
*args,
|
|
198
|
+
text=False,
|
|
199
|
+
git_dir=git_dir,
|
|
200
|
+
work_tree=work_tree,
|
|
201
|
+
stdout_file=output,
|
|
202
|
+
)
|
|
203
|
+
if completed.returncode != 0:
|
|
204
|
+
return False
|
|
205
|
+
output.seek(0, os.SEEK_END)
|
|
206
|
+
value_size = output.tell()
|
|
207
|
+
_update_digest_field_header(digest, label, value_size)
|
|
208
|
+
output.seek(0)
|
|
209
|
+
for chunk in iter(lambda: output.read(1024 * 1024), b""):
|
|
210
|
+
digest.update(chunk)
|
|
211
|
+
return True
|
|
212
|
+
|
|
213
|
+
|
|
175
214
|
def worktree_content_digest(target: Path) -> str:
|
|
176
215
|
require_clean_submodule_worktrees(target)
|
|
177
216
|
repository, pathspec = git_worktree_context(target)
|
|
@@ -203,7 +242,11 @@ def worktree_content_digest_for_context(
|
|
|
203
242
|
git_dir: Path | None = None,
|
|
204
243
|
work_tree: Path | None = None,
|
|
205
244
|
) -> str:
|
|
206
|
-
|
|
245
|
+
digest = hashlib.sha256()
|
|
246
|
+
update_digest_field(digest, b"format", b"codex-security-snapshot/v1")
|
|
247
|
+
tracked_ok = _update_digest_field_from_git(
|
|
248
|
+
digest,
|
|
249
|
+
b"tracked-diff",
|
|
207
250
|
repository,
|
|
208
251
|
"diff",
|
|
209
252
|
"--binary",
|
|
@@ -228,11 +271,8 @@ def worktree_content_digest_for_context(
|
|
|
228
271
|
git_dir=git_dir,
|
|
229
272
|
work_tree=work_tree,
|
|
230
273
|
)
|
|
231
|
-
if
|
|
274
|
+
if not tracked_ok or untracked is None:
|
|
232
275
|
raise SystemExit("Could not snapshot the selected working-tree changes.")
|
|
233
|
-
digest = hashlib.sha256()
|
|
234
|
-
update_digest_field(digest, b"format", b"codex-security-snapshot/v1")
|
|
235
|
-
update_digest_field(digest, b"tracked-diff", tracked)
|
|
236
276
|
for raw_path in sorted(path for path in untracked.split(b"\0") if path):
|
|
237
277
|
relative_path = os.fsdecode(raw_path)
|
|
238
278
|
path = (work_tree or repository) / relative_path
|
|
@@ -374,21 +414,55 @@ def git_directory_snapshot_paths(target: Path) -> list[Path] | None:
|
|
|
374
414
|
if repository_root is None:
|
|
375
415
|
return None
|
|
376
416
|
repository, pathspec = git_worktree_context(target)
|
|
417
|
+
scope = repository / pathspec
|
|
418
|
+
scope_depth = len(Path(pathspec).parts)
|
|
419
|
+
matching_prefixes: dict[str, bool] = {}
|
|
420
|
+
listing_args: list[str] = []
|
|
421
|
+
inventory_pathspec = pathspec
|
|
422
|
+
if scope_depth:
|
|
423
|
+
if any(
|
|
424
|
+
not character.isascii() and character.lower() != character.upper()
|
|
425
|
+
for character in pathspec
|
|
426
|
+
):
|
|
427
|
+
# Git's icase pathspecs do not cover Unicode case aliases.
|
|
428
|
+
inventory_pathspec = "."
|
|
429
|
+
else:
|
|
430
|
+
listing_args.append("--no-literal-pathspecs")
|
|
431
|
+
inventory_pathspec = f":(icase,literal){pathspec}"
|
|
377
432
|
listed = git_bytes(
|
|
378
433
|
repository,
|
|
434
|
+
*listing_args,
|
|
379
435
|
"ls-files",
|
|
380
436
|
"--cached",
|
|
381
437
|
"--others",
|
|
382
438
|
"--exclude-standard",
|
|
383
439
|
"-z",
|
|
384
440
|
"--",
|
|
385
|
-
|
|
441
|
+
inventory_pathspec,
|
|
386
442
|
)
|
|
387
443
|
if listed is None:
|
|
388
444
|
raise SystemExit("Could not inspect files in the selected Git working tree.")
|
|
389
445
|
paths: list[Path] = []
|
|
390
446
|
for raw_path in (raw_path for raw_path in listed.split(b"\0") if raw_path):
|
|
391
|
-
|
|
447
|
+
relative = Path(os.fsdecode(raw_path))
|
|
448
|
+
path = repository / relative
|
|
449
|
+
if scope_depth:
|
|
450
|
+
if len(relative.parts) <= scope_depth:
|
|
451
|
+
continue
|
|
452
|
+
# Git's index spelling can differ after a case-only directory rename.
|
|
453
|
+
# Compare each scope-depth prefix once, without following symlink leaves.
|
|
454
|
+
prefix = repository.joinpath(*relative.parts[:scope_depth])
|
|
455
|
+
key = str(prefix)
|
|
456
|
+
if key not in matching_prefixes:
|
|
457
|
+
try:
|
|
458
|
+
matching_prefixes[key] = prefix.samefile(scope)
|
|
459
|
+
except (FileNotFoundError, NotADirectoryError):
|
|
460
|
+
matching_prefixes[key] = False
|
|
461
|
+
# realpath spelling is not a filesystem identity on case-insensitive
|
|
462
|
+
# POSIX volumes; WindowsPath equality also folds distinct names.
|
|
463
|
+
if not matching_prefixes[key]:
|
|
464
|
+
continue
|
|
465
|
+
path = scope.joinpath(*relative.parts[scope_depth:])
|
|
392
466
|
try:
|
|
393
467
|
metadata = path.lstat()
|
|
394
468
|
except FileNotFoundError:
|
|
@@ -411,7 +485,7 @@ def git_directory_snapshot_paths(target: Path) -> list[Path] | None:
|
|
|
411
485
|
for nested_path in path.rglob("*")
|
|
412
486
|
if ".git" not in nested_path.relative_to(path).parts
|
|
413
487
|
)
|
|
414
|
-
return sorted(
|
|
488
|
+
return sorted({str(path): path for path in paths}.values(), key=str)
|
|
415
489
|
|
|
416
490
|
|
|
417
491
|
def source_directory_snapshot_paths(target: Path) -> list[Path]:
|
|
@@ -5,7 +5,9 @@ description: Use when the user asks for a deep, exhaustive, multi-pass, or varia
|
|
|
5
5
|
|
|
6
6
|
# Deep Security Scan
|
|
7
7
|
|
|
8
|
-
Use `start_codex_security_deep_scan` to run repeated independent workers against the exact requested target and scope. Each worker
|
|
8
|
+
Use `start_codex_security_deep_scan` to run repeated independent workers against the exact requested target and scope. Each worker reads `../../references/core-scan.md` directly and completes the ordinary Standard audit, saving checkpoints as results arrive and a final scan draft when the audit finishes.
|
|
9
|
+
|
|
10
|
+
The coordinator combines the finished findings and writes the parent scan's unsealed `scan-manifest.json`, `findings.json`, and `coverage.json` before returning `{ manifestPath }`. The final report identifies the configured directories and exclusions alongside the findings.
|
|
9
11
|
|
|
10
12
|
## Phase Ownership
|
|
11
13
|
|
|
@@ -35,9 +37,9 @@ Do not repeat this guard after it passes, on later context loads, or after the s
|
|
|
35
37
|
|
|
36
38
|
After preserving any native continuation's scan context and applying its one-time concurrent-scan guard, read `../../references/scan-prologue.md` once. Deep scans do not run a capability helper, inspect runtime tools, request configuration remediation, or publish preflight checks. The coordinator validates its own ownership, target, scope, and sandbox and manages its workers independently of this thread's delegation runtime and subagent allowance.
|
|
37
39
|
|
|
38
|
-
##
|
|
40
|
+
## Daybreak Access Advisory
|
|
39
41
|
|
|
40
|
-
Immediately before the first `start_codex_security_deep_scan` call, the top-level parent
|
|
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.
|
|
41
43
|
|
|
42
44
|
## Run Independent Standard Scans
|
|
43
45
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: verify-fix
|
|
3
|
-
description: Use when the user
|
|
3
|
+
description: Use only when the user explicitly requests verification that a security fix remediates a reported vulnerability. Do not invoke automatically while implementing fixes, reviewing ordinary code changes, or running tests. Do not use for non-security fixes, candidate finding validation, or full repository scans.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Verify Fix
|
|
7
7
|
|
|
8
|
+
## When to Use
|
|
9
|
+
|
|
10
|
+
Invoke this skill only for an explicit request to verify a security fix, including a direct `$verify-fix` invocation. A request to implement a fix or run its tests does not by itself request this skill. For other tasks, follow the user's requested workflow and response format without applying this skill's JSON result contract.
|
|
11
|
+
|
|
8
12
|
## Objective
|
|
9
13
|
|
|
10
14
|
Determine whether each supplied security finding has been fixed in the current checkout. Operate in standalone verification-only mode; do not create, modify, or delete repository files, apply patches, commit changes, write artifacts, or modify issue trackers.
|
package/dist/api.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface DeepScanOptions {
|
|
|
17
17
|
maxTimeHours?: number;
|
|
18
18
|
}
|
|
19
19
|
export interface ScanOptions extends DeepScanOptions {
|
|
20
|
+
/** Save synthetic Standard scan results without calling Codex or a model. */
|
|
21
|
+
mock?: boolean;
|
|
20
22
|
/** Opt into a durable scan -> custom publication -> dedupe workflow. */
|
|
21
23
|
workflowId?: string;
|
|
22
24
|
auth?: ScanAuthMode;
|
|
@@ -34,7 +36,8 @@ export interface ScanOptions extends DeepScanOptions {
|
|
|
34
36
|
expectedPluginVersion?: string;
|
|
35
37
|
failureSeverity?: SeverityLevel;
|
|
36
38
|
maxCostUsd?: number;
|
|
37
|
-
onCost?: (cost: Readonly<ScanCost
|
|
39
|
+
onCost?: (cost: Readonly<ScanCost>, maxCostUsd?: number) => void;
|
|
40
|
+
onBudgetApproaching?: (budget: ScanBudget) => number | undefined | Promise<number | undefined>;
|
|
38
41
|
onOutputArchived?: (archiveDir: string) => void;
|
|
39
42
|
onOutputDirReady?: (scanDir: string) => void;
|
|
40
43
|
onAuthentication?: (authentication: ScanAuthentication) => void;
|
|
@@ -65,6 +68,9 @@ export interface ValidationResult {
|
|
|
65
68
|
export declare const SCAN_AUTH_MODES: readonly ["auto", "chatgpt", "api-key"];
|
|
66
69
|
export type ScanAuthMode = (typeof SCAN_AUTH_MODES)[number];
|
|
67
70
|
export type ScanAuthentication = {
|
|
71
|
+
method: "command";
|
|
72
|
+
verified: false;
|
|
73
|
+
} | {
|
|
68
74
|
method: "api_key";
|
|
69
75
|
source: "OPENAI_API_KEY" | "CODEX_API_KEY" | "OPENROUTER_API_KEY" | "FIREWORKS_API_KEY";
|
|
70
76
|
verified: false;
|
|
@@ -85,6 +91,11 @@ export interface ScanReconnectDetails {
|
|
|
85
91
|
export interface ScanWarningDetails {
|
|
86
92
|
kind: "target_changed";
|
|
87
93
|
}
|
|
94
|
+
export interface ScanBudget {
|
|
95
|
+
maxCostUsd: number;
|
|
96
|
+
cost: Readonly<ScanCost>;
|
|
97
|
+
signal: AbortSignal;
|
|
98
|
+
}
|
|
88
99
|
type ScanObserverName = "onAuthentication" | "onCost" | "onOutputArchived" | "onOutputDirReady" | "onScanStarted" | "onTrustedAccessStatus" | "onReconnect" | "onActivity" | "onSessionEvent" | "onProgress" | "onDeepProgress" | "onWorkerStatus" | "onWarning";
|
|
89
100
|
export interface ScanPreflight extends DeepScanOptions {
|
|
90
101
|
repository: string;
|
|
@@ -129,7 +140,9 @@ export declare function listRepositoryFindings(workbench: (args: readonly string
|
|
|
129
140
|
export declare function createSecurity(config?: CodexSecurityConfig): CodexSecurity;
|
|
130
141
|
export declare function createSecurityInternal(config: CodexSecurityConfig | undefined, runtimeOptions: CodexSecurityRuntimeOptions): CodexSecurity;
|
|
131
142
|
export declare function initialCredentialsAvailable(environment: ProcessEnvironment, ambientHome: string, isolatedHome: string, importer?: typeof importAmbientAuth): Promise<boolean>;
|
|
132
|
-
export declare function scanAuthentication(environment: ProcessEnvironment, auth?: ScanAuthMode, modelProvider?: unknown): ScanAuthentication;
|
|
143
|
+
export declare function scanAuthentication(environment: ProcessEnvironment, auth?: ScanAuthMode, modelProvider?: unknown, commandAuth?: boolean): ScanAuthentication;
|
|
144
|
+
/** Shell-neutral guidance so PowerShell users are not told to run POSIX `unset`. */
|
|
145
|
+
export declare function formatEnvironmentVariableRemovalGuidance(names: readonly string[]): string;
|
|
133
146
|
export declare function classifyConnectionFailure(error: unknown): "rate_limited" | "unauthorized" | "forbidden" | "network_error" | "timeout" | "unknown";
|
|
134
147
|
export declare function scanRuntimeCodexConfig(config: JsonObject, protectedCredentialHome?: string): JsonObject;
|
|
135
148
|
export declare function scanPreflightCodexConfig(config: JsonObject): JsonObject;
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAqCA,OAAO,EAGL,gBAAgB,EAGhB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAMnB,OAAO,EAWL,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;AA+B5B,OAAO,EACL,UAAU,EAIX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKhF,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAYL,iBAAiB,EAkBjB,KAAK,kBAAkB,EAIxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAqDtB,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,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