Skip to content

[Codex Security] Installing Graywolf or GridTracker can execute substituted packages as root - #7

Draft
EmDecay wants to merge 1 commit into
mainfrom
codex-security/arp_a6252fcdbbe10a252355cfafabd707bd
Draft

EmDecay wants to merge 1 commit into
mainfrom
codex-security/arp_a6252fcdbbe10a252355cfafabd707bd

Conversation

@EmDecay

@EmDecay EmDecay commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Mandatory package digests now gate both privileged installation paths.

  • Graywolf and GridTracker reject missing or malformed SHA-256 values before package discovery, downloads, prerequisites, or package installation.
  • Each get_url call receives the validated digest unconditionally, so replaced upstream bytes cannot proceed to apt.
  • Pinned, latest-discovered, and explicit HTTPS package URLs retain support when paired with a reviewed checksum.
  • Setting the role’s install flag to false preserves service, API, and autostart management for separately installed packages.
  • Role defaults, public documentation, generated variable descriptions, and the example inventory now describe the fail-closed contract.

Static Verification Checks

  • Missing checksum rejection (Passed) — Require a verified Graywolf package checksum and GridTracker2 counterpart reject invalid digests before privileged installation becomes reachable.

  • Artifact integrity enforcement (Passed) — Graywolf and GridTracker get_url tasks pass validated SHA-256 values unconditionally, blocking substituted bytes from their apt sinks.

  • Download variant coverage (Passed) — _hamstack_graywolf_download_url and _hamstack_gridtracker_url converge discovered, pinned, latest, and explicit sources on checksum-enforced downloads.

  • Managed behavior preservation (Passed) — hamstack_*_install conditions bypass package operations when false, preserving service, API, and autostart management for externally installed packages.

  • Verified install preservation (Passed) — Both valid-digest branches retain HTTPS selection, package caching, get_url, and apt, preserving approved installation workflows.

  • Runtime behavior observation (Inconclusive) — Static inspection of git diff performed no runtime checks, leaving execution behavior unobserved beyond source-established guarantees.

  • Finding: acf_0d8e72deabf77f4400cadcd4dc8c5723

  • Patch: arp_a6252fcdbbe10a252355cfafabd707bd

  • Base commit: 0ffb68937bc72420999f9d67bc8af90feb1ef617

  • Patch SHA-256: b8802203a20fb88228a28a831b045ef5d27f502273ebc2790607bc25d17a3d87

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