Repository navigation
chore(docker): verify tool downloads and pin build inputs - #188
Merged
Merged
Conversation
Stage the recon binaries in a build-platform "tools" stage and verify each release archive against the checksums file of its own GitHub release (exact asset name, sha256), failing the build when the entry is missing or does not match: nuclei v3.11.1, httpx v1.12.0, subfinder v2.17.0, katana v1.8.0, ffuf v2.3.0, dalfox v3.2.4. sqlmap is cloned at tag 1.9.9 and checked against commit cceda39208b5aad478de2c3f731df4239d9881f6 before .git is removed. The runtime stage copies /out/ and /opt/sqlmap from that stage. Install Node v22.23.4 from the official nodejs.org tarball verified against SHASUMS256.txt instead of piping the NodeSource setup script into bash. Pin @playwright/[email protected], @playwright/[email protected] and [email protected] instead of @latest. amd64 and arm64 are mapped explicitly; any other architecture fails the build. dalfox --version no longer ignores failures. Carries over the Dockerfile part of #127 by stevenAthompson.
This was referenced Nov 11, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Carries over the Dockerfile part of #127 by stevenAthompson. Scope is checksums and pins only. The GHCR change from #127 (release.yml and the published-image path in compose and the install scripts) is left out; it is a separate decision. Building from source is already on main via #147 and is unchanged here.
Only
Dockerfilechanges.What changes
toolsstage (--platform=$BUILDPLATFORM, debian:bookworm-slim) stages the recon binaries. Each release archive is checked against the checksums file of its own GitHub release: the exact asset name is looked up, its sha256 compared, and the build fails withno checksum entry for <asset>orchecksum mismatch for <asset>: want ... got ....*_checksums.txt/katana-*-checksums.txt)ffuf_2.3.0_checksums.txt).sha256file; the releasechecksum.txtonly covers the source archives)cceda39208b5aad478de2c3f731df4239d9881f6, then.gitis deleted/out/into/usr/local/bin/and/opt/sqlmap, then runs each tool's version command.dalfox --versionfailures are no longer ignored.SHASUMS256.txt, instead of piping the NodeSource setup script into bash.xz-utilsis added to the runtime apt list to unpack it.@playwright/[email protected],@playwright/[email protected],[email protected](no@latest).PD_ARCH,FFUF_ARCH,DALFOX_ARCH,NODE_ARCH); any other architecture fails the build.The checksums come from the same release channel as the archives, so this catches corrupted or swapped downloads and moved tags, not a compromised publisher.
Verification
Run locally in WSL (Kali, Docker with BuildKit, amd64) on a fresh LF clone of this commit. CI does not build the image.
docker build -t artex:verify-127 .→ exit 0 (image built; tools stage log shows each fetch/verify; Node step printedv22.23.4/ npm10.9.9).docker run --rm --entrypoint sh artex:verify-127 -c 'nuclei -version >/dev/null && httpx -version >/dev/null && subfinder -version >/dev/null && katana -version >/dev/null && ffuf -V >/dev/null && dalfox --version >/dev/null && sqlmap --version >/dev/null && node --version && playwright --version'→ exit 0, stdout:--entrypoint shbecause the image entrypoint is/app/start.sh, which would pass the command to artex.) Versions reported inside the image: nuclei v3.11.1, httpx v1.12.0, subfinder v2.17.0, katana v1.8.0, ffuf 2.3.0, dalfox 3.2.4, sqlmap 1.9.9#stable (no.gitin/opt/sqlmap),@playwright/[email protected],@playwright/[email protected],[email protected], bbot 3.0.2.docker build --target tools .→ exit 1 witharm64 was not built locally; its asset names and checksum entries were checked against the release files.