@openai/codex-security 0.1.15 → 0.1.16

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 CHANGED
@@ -251,6 +251,9 @@ npx @openai/codex-security publish scan /path/outside/repository/results --to li
251
251
  npx @openai/codex-security publish scan --to linear --linear-team TEAM_ID
252
252
  npx @openai/codex-security validate /path/outside/repository/findings.json "Possible SQL injection in src/query.ts:42"
253
253
  npx @openai/codex-security validate "Possible SQL injection" --effort high
254
+ npx @openai/codex-security verify-fix --linear-issue SEC-123 --json
255
+ npx @openai/codex-security verify-fix --linear-project "Security backlog" --linear-filter '{"state":{"type":{"eq":"completed"}}}' --json
256
+ npx @openai/codex-security verify-fix --scan SCAN_ID --severity high --json
254
257
  npx @openai/codex-security patch /path/outside/repository/findings.json "Missing authorization check in src/routes.ts:18"
255
258
  npx @openai/codex-security patch "Missing authorization check" --effort high
256
259
  npx @openai/codex-security patch OCCURRENCE_ID
@@ -815,6 +818,23 @@ history. Imported content is always literal, and issue URLs must match the
815
818
  selected workspace. Linear access is read-only, and its credentials are not
816
819
  passed to the patch subprocess.
817
820
 
821
+ Use `verify-fix` to check whether an existing security fix actually closes its
822
+ original vulnerability without modifying the repository. Pass a finding
823
+ description, a saved finding identifier, `--scan SCAN_ID`, `--linear-issue ISSUE`,
824
+ or `--linear-project "PROJECT"`. Linear intake uses the same credentials and
825
+ `--linear-filter` options as `patch`; explicitly filter for completed issues when
826
+ verifying a finished backlog. Verification runs the bundled `verify-fix` skill
827
+ in a read-only Codex sandbox and reports `fixed`, `still_vulnerable`, or
828
+ `inconclusive` with supporting evidence for every finding. Use `--json` for
829
+ structured output. Exit code `0` means every finding is fixed, `1` means at
830
+ least one finding remains vulnerable, and `2` means a result is inconclusive or
831
+ verification could not complete.
832
+
833
+ Interactive verification shows the same live agent-activity dashboard used by
834
+ scans and Linear publication. Reasoning, repository commands, and progress are
835
+ written to stderr; redirected output and CI receive plain progress lines, and
836
+ JSON results on stdout remain machine-readable.
837
+
818
838
  Exit codes are `0` for a completed report-only scan or a passing policy, `1`
819
839
  for a completed policy violation, `2` for invalid input, incomplete coverage, or
820
840
  a runtime/export error, `130` for interruption, and `143` for termination.
@@ -8,12 +8,14 @@ The adapter:
8
8
  - stores SARIF separately from the canonical seal
9
9
  - emits SARIF 2.1.0
10
10
  - uses stable `ruleId` values
11
- - keeps rule descriptors stable across scans
11
+ - derives stable, readable rule names from `ruleId`
12
+ - includes categories, CWE tags, and canonical remediation in rule help and result messages
12
13
  - emits repository-relative POSIX paths
13
14
  - keeps the root-control location first for GitHub annotation when available and emits every distinct affected or code-evidence location in `locations`, so vulnerable sinks remain matchable
14
15
  - preserves the semantic fingerprint under `codexSecurity/v1`
15
16
  - emits GitHub's source-line `primaryLocationLineHash` when it can safely hash a bounded regular non-symlink source file inside the available source root
16
17
  - maps categorical severity to SARIF `level`
18
+ - sets GitHub's rule-level `security-severity` to the highest finding score. Unscored critical, high, medium, low, and informational findings use 9.5, 8.0, 5.0, 2.0, and 0.0. A rule with no positive score omits this field. These defaults are display values, not calculated CVSS scores.
17
19
  - preserves a deep scan's canonical `candidateId` under each child result's properties so consumers can group results without changing the original SARIF result presentation
18
20
 
19
21
  Lifecycle, rich validation evidence, attack-path context, and coverage are lossy or omitted in SARIF. Preserve them in semantic JSON.
@@ -51,6 +51,13 @@ SARIF_LEVELS = {
51
51
  "low": "note",
52
52
  "informational": "note",
53
53
  }
54
+ SARIF_SECURITY_SCORES = {
55
+ "critical": 9.5,
56
+ "high": 8.0,
57
+ "medium": 5.0,
58
+ "low": 2.0,
59
+ "informational": 0.0,
60
+ }
54
61
  SLUG_RE = re.compile(r"^[a-z0-9][a-z0-9._/-]*$")
55
62
  RFC3339_RE = re.compile(
56
63
  r"^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})$"
@@ -1701,15 +1708,67 @@ def _validate_contract_refs(scan: dict[str, Any]) -> None:
1701
1708
  raise ContractError(f"manifest.scan.{field}: expected {expected!r}")
1702
1709
 
1703
1710
 
1704
- def _sarif_rule(rule_id: str) -> dict[str, Any]:
1711
+ def _sarif_label(value: str) -> str:
1712
+ words = re.sub(r"[-_./]+", " ", value).split()
1713
+ acronyms = {"api", "csrf", "html", "http", "id", "rce", "sql", "ssrf", "url", "xml", "xss"}
1714
+ label = " ".join(word.upper() if word.lower() in acronyms else word for word in words)
1715
+ return label[:1].upper() + label[1:]
1716
+
1717
+
1718
+ def _sarif_rule(rule_id: str, findings: list[dict[str, Any]]) -> dict[str, Any]:
1719
+ name = ": ".join(_sarif_label(part) for part in rule_id.split("."))
1720
+ categories = sorted({finding["taxonomy"]["category"] for finding in findings})
1721
+ cwes = sorted({cwe for finding in findings for cwe in finding["taxonomy"]["cwe"]})
1722
+ tags = {"security", *categories}
1723
+ for cwe in cwes:
1724
+ match = re.fullmatch(r"CWE-([0-9]+)", cwe, re.IGNORECASE)
1725
+ if match and int(match[1]) > 0:
1726
+ tags.add(f"external/cwe/cwe-{int(match[1]):03d}")
1727
+ description = f"{name}. Categories: {', '.join(map(_sarif_label, categories))}."
1728
+ if cwes:
1729
+ description += f" Weaknesses: {', '.join(cwes)}."
1730
+ remediation = "\n\n".join(sorted({finding["remediation"] for finding in findings}))
1731
+ properties: dict[str, Any] = {"tags": sorted(tags)}
1732
+ # GitHub assigns security severity to the shared rule, not each result.
1733
+ score = max(
1734
+ finding["severity"].get("score", SARIF_SECURITY_SCORES[finding["severity"]["level"]])
1735
+ for finding in findings
1736
+ )
1737
+ if score > 0:
1738
+ properties["security-severity"] = str(score)
1705
1739
  return {
1706
1740
  "id": rule_id,
1707
- "name": rule_id,
1708
- "shortDescription": {"text": rule_id},
1709
- "properties": {"tags": ["security"]},
1741
+ "name": name,
1742
+ "shortDescription": {"text": name},
1743
+ "fullDescription": {"text": description},
1744
+ "help": {
1745
+ "text": f"{description}\n\nRemediation:\n\n{remediation}",
1746
+ "markdown": f"{description}\n\n## Remediation\n\n{remediation}",
1747
+ },
1748
+ "properties": properties,
1710
1749
  }
1711
1750
 
1712
1751
 
1752
+ def _sarif_finding_message(finding: dict[str, Any]) -> str:
1753
+ taxonomy = finding["taxonomy"]
1754
+ details = [
1755
+ finding["title"],
1756
+ finding["summary"],
1757
+ f"Severity: {finding['severity']['level']}",
1758
+ f"Category: {_sarif_label(taxonomy['category'])}",
1759
+ ]
1760
+ if taxonomy["cwe"]:
1761
+ details.append(f"Weaknesses: {', '.join(taxonomy['cwe'])}")
1762
+ details.append(f"Remediation:\n{finding['remediation']}")
1763
+ for key, label in (
1764
+ ("remediationTests", "Remediation tests"),
1765
+ ("preventiveControls", "Preventive controls"),
1766
+ ):
1767
+ if finding.get(key):
1768
+ details.append(f"{label}:\n" + "\n".join(f"- {item}" for item in finding[key]))
1769
+ return "\n\n".join(details)
1770
+
1771
+
1713
1772
  def _utf16_code_units(value: str) -> Iterator[int]:
1714
1773
  encoded = value.encode("utf-16-le")
1715
1774
  for index in range(0, len(encoded), 2):
@@ -2013,7 +2072,7 @@ def _sarif_result(
2013
2072
  "ruleId": finding["ruleId"],
2014
2073
  "ruleIndex": rule_index,
2015
2074
  "level": SARIF_LEVELS[finding["severity"]["level"]],
2016
- "message": {"text": finding["summary"]},
2075
+ "message": {"text": _sarif_finding_message(finding)},
2017
2076
  "locations": [_sarif_location(location) for location in _sarif_locations(finding)],
2018
2077
  "partialFingerprints": partial_fingerprints,
2019
2078
  "properties": properties,
@@ -2038,7 +2097,9 @@ def build_sarif(
2038
2097
  "driver": {
2039
2098
  "name": "Codex Security",
2040
2099
  "version": scan["producer"]["version"],
2041
- "rules": [_sarif_rule(rule_id) for rule_id in ordered_rule_ids],
2100
+ "rules": [
2101
+ _sarif_rule(rule_id, findings_by_rule[rule_id]) for rule_id in ordered_rule_ids
2102
+ ],
2042
2103
  }
2043
2104
  },
2044
2105
  "automationDetails": {"id": scan["id"]},
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: verify-fix
3
+ description: Use when the user asks whether an existing security fix, patch, finding, or completed issue actually remediates the original vulnerability without modifying the repository. Do not use to validate candidate findings, implement patches, or run full repository scans.
4
+ ---
5
+
6
+ # Verify Fix
7
+
8
+ ## Objective
9
+
10
+ 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.
11
+
12
+ ## Assessment Method
13
+
14
+ Use `../../references/static-finding-assessment.md` to identify the original attacker-controlled source, security control, sensitive sink, reachable path, trust boundary, counterevidence, and proof gaps. If the caller already supplied that reference in the prompt, use the supplied contents without reading it again.
15
+
16
+ ## Verification Workflow
17
+
18
+ 1. Establish the original vulnerability, its preconditions, affected security boundary, and legitimate behavior that must continue to work.
19
+ 2. Confirm the current checkout contains the affected component. Follow moved or refactored code rather than treating a missing file, removed line, or changed function name as proof of remediation.
20
+ 3. Trace the original exploit path through the current implementation and check the nearest relevant control, equivalent paths, and plausible bypasses.
21
+ 4. Run the original reproducer, focused regression checks, or legitimate-behavior checks only when they can run without modifying the repository. Preserve exact static evidence when runtime checks are unavailable.
22
+ 5. Return one result per supplied finding, in the requested order. Treat closed tickets, unrelated passing tests, and the absence of a new scan finding as insufficient proof.
23
+
24
+ ## Result Contract
25
+
26
+ Return exactly one JSON object:
27
+
28
+ ```json
29
+ {
30
+ "results": [
31
+ {
32
+ "id": "finding-or-issue-id",
33
+ "status": "fixed|still_vulnerable|inconclusive",
34
+ "evidence": "specific current source, exploit, test, or proof-gap evidence"
35
+ }
36
+ ]
37
+ }
38
+ ```
39
+
40
+ - Use `fixed` only when evidence proves the original security boundary is closed and legitimate behavior remains intact.
41
+ - Use `still_vulnerable` only when evidence proves the original vulnerable path remains reachable.
42
+ - Use `inconclusive` for a repository mismatch, missing original context, unavailable relevant checks, an unproven legitimate control, or another material proof gap.
43
+
44
+ Never infer a stronger verdict by weakening the read-only boundary, substituting a different vulnerability, or hiding missing evidence.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Verify Fix"
3
+ short_description: "Verify security fixes without changing code"
4
+ default_prompt: "Use $verify-fix to verify that a reported security vulnerability is fixed without modifying the repository."
package/dist/cli.d.ts CHANGED
@@ -33,12 +33,14 @@ interface ExportArguments {
33
33
  pythonPath?: string;
34
34
  }
35
35
  interface SkillCommandOutput {
36
- readonly command: "validate" | "patch";
36
+ readonly command: "validate" | "patch" | "verify-fix";
37
37
  readonly stdout: Writable;
38
38
  readonly stderr: Writable;
39
39
  readonly appServer?: {
40
40
  readonly directory: string;
41
41
  readonly prompt: string;
42
+ readonly sandbox?: "read-only" | "workspace-write";
43
+ readonly onEvent?: (event: Readonly<Record<string, unknown>>) => void;
42
44
  };
43
45
  }
44
46
  interface CliDependencies {
@@ -72,15 +74,18 @@ export declare function runCodexSkillCommand(args: readonly string[], output?: S
72
74
  export declare function exportEnvironment(environment?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
73
75
  export declare function main(argv?: readonly string[], output?: Writable, errorOutput?: Writable, dependencies?: CliDependencies): Promise<number>;
74
76
  export declare function readSkillCommandOutput(stream: AsyncIterable<Buffer | string>, appServer?: {
77
+ readonly directory?: string;
75
78
  readonly prompt: string;
76
79
  readonly input: NodeJS.WritableStream;
80
+ readonly sandbox?: "read-only" | "workspace-write";
81
+ readonly onEvent?: (event: Readonly<Record<string, unknown>>) => void;
77
82
  }): Promise<{
78
83
  message?: string;
79
84
  error?: string;
80
85
  malformed: boolean;
81
86
  completed?: boolean;
82
87
  }>;
83
- export declare function skillCommandFailure(command: "validate" | "patch", status: number, detail: string): string;
88
+ export declare function skillCommandFailure(command: "validate" | "patch" | "verify-fix", status: number, detail: string): string;
84
89
  export declare function parseCodexOverrides(values: readonly string[], model?: string, effort?: ScanReasoningEffort, provider?: "openai" | "amazon-bedrock" | ExternalModelProvider): JsonObject;
85
90
  export declare class Progress {
86
91
  #private;
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"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