Skip to content

[Codex Security] Release verifier executes Python startup hooks before authenticating assets - #401

Merged
abruption merged 1 commit into
mainfrom
codex-security/arp_cf5132552f4b1eeb2db8bcbbcbdf1af7
Nov 16, 2026
Merged

abruption merged 1 commit into
mainfrom
codex-security/arp_cf5132552f4b1eeb2db8bcbbcbdf1af7

Conversation

@abruption

Copy link
Copy Markdown
Owner

The patch starts release verification in an isolated, site-disabled Python interpreter before authenticating or publishing assets.

  • install.sh now invokes the embedded verifier with python3 -I -S - at the shared release-verification boundary.
  • Isolated mode excludes the working directory and PYTHONPATH, while site-disabled mode prevents both startup customization modules from loading.
  • The installer regression replaces startup-hook fixture injection and covers both hook locations while preserving valid publication and existing rejection behavior.
  • Generator and canonical-verifier contracts now require the isolated invocation, preventing regenerated installers from restoring the vulnerable command.

Static Verification Checks

  • Verifier startup isolation (Passed) — Runtime checks were not performed; static inspection of install.sh establishes startup hooks cannot precede release authentication.

  • Site-disabled verifier compatibility (Passed) — install.sh verifier imports only standard-library modules, so -S preserves metadata, attestation, and digest verification.

  • Startup hook regressions (Passed) — test_verified_release.py asserts sitecustomize and usercustomize markers from cwd and PYTHONPATH stay absent, protecting pre-authentication execution.

  • Release behavior preservation (Passed) — test_verified_release.py asserts valid releases publish while digest, attestation, version, execution, and size failures preserve installations.

  • Generator marker consistency (Passed) — generate_session_peer.py and test_standalone_generation.py share the isolated marker, preserving canonical verifier extraction across generated artifacts.

  • Finding: acf_e261a7f8919e1472ab1baec06284895a

  • Patch: arp_cf5132552f4b1eeb2db8bcbbcbdf1af7

  • Base commit: b8d8613b5ba597aedd314488f77f52c3f934916a

  • Patch SHA-256: 3c7f284cd3f8044ed570767056b94e6267bfedfa3f3f830ea088a1524cef938d

@abruption
abruption marked this pull request as ready for review November 16, 2026 10:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T10:44:34.445880Z 397770a Draft marked ready
🔒 Security Review ✅ Completed 2026-11-16T10:45:40.724767Z 397770a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit f133153 into main Nov 16, 2026
56 checks passed
@abruption
abruption deleted the codex-security/arp_cf5132552f4b1eeb2db8bcbbcbdf1af7 branch November 16, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant