Skip to content

[Codex Security] Booting from HamStack netboot lets an on-path LAN attacker replace client code - #9

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

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

Conversation

@EmDecay

@EmDecay EmDecay commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

The patch makes HamStack netboot TLS-only and requires trusted signatures before iPXE executes boot content.

  • The role now serves the menu on container port 443 with operator-provided certificate and key material.
  • Entry validation rejects plaintext, unsigned, or incomplete chain, kernel, and initrd configurations before deployment.
  • Permanent iPXE image trust and detached signature checks close the on-path substitution path before pre-OS execution.
  • Signed chain and kernel/initrd workflows, kernel arguments, menus, and the existing host-port override remain supported.

Static Verification Checks

  • TLS publication boundary (Passed) — roles/infrastructure/netboot/tasks/main.yml maps the host listener only to TLS port 443, eliminating the plaintext network entrypoint.

  • TLS server authentication (Passed) — roles/infrastructure/netboot/templates/nginx.conf.j2 configures certificate-backed TLS without HTTP, establishing authenticated initial menu delivery.

  • Chain signature gate (Passed) — roles/infrastructure/netboot/templates/boot.ipxe.j2 fetches, verifies, then executes chain images, closing substituted-script execution.

  • Boot image signature gate (Passed) — roles/infrastructure/netboot/templates/boot.ipxe.j2 verifies named kernels and optional initrds before boot, closing altered-image execution.

  • Unsafe entry rejection (Passed) — roles/infrastructure/netboot/tasks/main.yml requires HTTPS artifacts and signatures for both schemas, preventing unsigned configuration bypasses.

  • Legitimate workflow preservation (Passed) — roles/infrastructure/netboot/templates/boot.ipxe.j2 retains chain, kernel, initrd, arguments, and menus, establishing preserved boot workflows.

  • Port override compatibility (Passed) — roles/infrastructure/netboot/defaults/main.yml aliases HTTPS to the legacy port variable, establishing existing overrides remain effective.

  • Static evidence scope (Passed) — The final source and diff inspection supplied evidence; runtime checks were not performed in static mode.

  • Finding: acf_2a2f856ef1a2100c1a173904b0327384

  • Patch: arp_c141f38de9bec711cf4ac941a2488aad

  • Base commit: 0ffb68937bc72420999f9d67bc8af90feb1ef617

  • Patch SHA-256: be0a4805f7ba3951acdafdfda39bf411314cb2c1ce8fc6c2b82e98641950f5f2

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