You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M1: Verify SHA-256 checksums for subfinder and nuclei in Dockerfile #79
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.
Activity