Repository navigation
Conversation
Fixing missing python modules and seclist
Owner
|
Thanks for the contribution. Preinstalling a few Python modules for agent-written scripts is reasonable. Two changes are needed before this can go in:
|
Contributor
|
Review notes #504 does the same Python preinstall with pinned versions, so this one is superseded. Two issues apply regardless:
The added blank lines inside the Node block are unrelated noise. |
Owner
|
Closing this, thanks @vinbranco for the work. The build installs unpinned pip packages and clones the whole SecLists tree (1 GB+) at build time, with no version or checksum, so the image stops being reproducible and gets much larger. The missing Python modules are covered by a pinned subset separately. Not planned as-is. |
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.
Fixing missing python modules and seclist:
FROM python:3.12-slim-bookworm
ARG TARGETARCH
Common tools
RUN apt-get update && apt-get install -y --no-install-recommends
ca-certificates ripgrep curl wget vim git jq unzip xz-utils
dnsutils iputils-ping netcat-openbsd inetutils-telnet whois nmap
&& rm -rf /var/lib/apt/lists/*
Python packages needed by agent-generated scripts
RUN pip install --no-cache-dir --break-system-packages
requests
beautifulsoup4
lxml
urllib3
pyyaml
jinja2
colorama
tqdm
SecLists (wordlists)
RUN git clone --depth 1 https://github.com/danielmiessler/SecLists.git /usr/share/seclists