Skip to content

M1: Verify SHA-256 checksums for subfinder and nuclei in Dockerfile #79

Backlog

Description

@h45sh

Context

Dockerfile:46-71 downloads subfinder (v2.6.6) and nuclei (v3.3.7) release .zip archives via curl -fsSL and immediately unpacks and installs them into /usr/local/bin/ without verifying SHA-256 checksums.

By contrast, Dockerfile:2,34,38 pins the base image by @sha256 digest and pins nikto and exploitdb by full git commit SHA. Leaving subfinder and nuclei unverified breaks supply-chain provenance for the published GHCR container image built by .github/workflows/release.yml (docker-release).

Proof

Inspected Dockerfile:46-71 at origin/dev@db5fc07:

nl -ba Dockerfile | sed -n '46,71p'

Lines 53-57 (subfinder) and 67-71 (nuclei) run curl -fsSL ... -o /tmp/*.zip, unzip -q, mv ... /usr/local/bin/, and chmod +x with zero sha256sum or checksum verification steps.

Impact

Affects all container images built from Dockerfile, including official multi-arch GHCR images published by .github/workflows/release.yml. Does not affect GatePolicy.SAFE runtime enforcement directly, but compromises binary integrity in distributed container artifacts.

Acceptance criteria

  • Pin expected amd64 and arm64 SHA-256 checksums for subfinder and nuclei in Dockerfile and verify them with sha256sum -c before extracting
  • Add a CI or packaging check that verifies external binary downloads in Dockerfile have accompanying checksum verification

Out of scope

Changing the subfinder or nuclei versions or replacing them with source builds.

Part of #24


audit:self · run 2026-12-02 · ref origin/dev@db5fc07 · cell signal×supply

Activity

  1. added this to the M1 Truth milestone on Dec 1, 2026
  2. added
    type:task
    area:packaging
    priority:P2
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingpriority:P2type:task

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions