Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

Merge pull request #407 from Lusitaniae/pr/nuclei-templates

BaaRaid9fd76abd089
diff --cc Dockerfile
index 34963d7,698e5eb..749e64d
--- a/Dockerfile
+++ b/Dockerfile
@@@ -161,11 -153,24 +185,24 @@@ RUN set -eux;
got="$(sha256sum "/tmp/$asset" | cut -d' ' -f1)"; \
if [ "$want" != "$got" ]; then echo "checksum mismatch for $asset: want $want got $got" >&2; exit 1; fi; \
tar -xJf "/tmp/$asset" -C /usr/local --strip-components=1 --no-same-owner; \
- rm -f "/tmp/$asset" /tmp/SHASUMS256.txt; \
+ rm -f "/tmp/$asset"; \
node --version; npm --version
- # Pinned, checksum-verified recon binaries and the sqlmap checkout from the tools stage.
+ # Pinned, checksum-verified recon binaries and the sqlmap checkout from the tools stage,
+ # plus the baked nuclei template set (see the tools stage for why it is baked).
COPY --from=tools /out/ /usr/local/bin/
COPY --from=tools /opt/sqlmap /opt/sqlmap
+ COPY --from=tools /opt/nuclei-templates /opt/nuclei-templates
+ # Read by nuclei in preference to $HOME/nuclei-templates, so root and the executor
+ # resolve the same set. The directory stays root-owned and world-readable; scans
+ # never need to write to it. The second variable keeps the set frozen: without it a
+ # start with network access runs the routine template update against the public
+ # repository, which rewrites the baked tree (and, on a slow link, adds tens of MB to
+ # the writable layer for a result the bake already provides).
+ ENV NUCLEI_TEMPLATES_DIR=/opt/nuclei-templates \
+ DISABLE_NUCLEI_TEMPLATES_PUBLIC_DOWNLOAD=true
+ # -duc is what keeps this a check rather than an update: `nuclei -tl` runs the
+ # automatic nuclei/templates update check first, so it could replace the pinned set
+ # with the latest release inside the layer we are about to inspect.
RUN set -eux; \
ln -s /opt/sqlmap/sqlmap.py /usr/local/bin/sqlmap; \
nuclei -version >/dev/null; httpx -version; subfinder -version; katana -version; \