Skip to content

Fixing missing python modules and seclist - #393

Closed
vinbranco wants to merge 2 commits into
BaaRai:mainfrom
vinbranco:patch-1
Closed

vinbranco wants to merge 2 commits into
BaaRai:mainfrom
vinbranco:patch-1

Conversation

@vinbranco

Copy link
Copy Markdown

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

Fixing missing python modules and seclist
@BaaRai

BaaRai commented Nov 20, 2026

Copy link
Copy Markdown
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:

  1. Pin each pip package to an exact version (Dockerfile:115-123), for example requests==<version>, for all eight packages. The image build pins what it downloads, and bbot, the other pip install in the file, is pinned to an exact version. Hashes are preferred but not required here.
  2. Drop the SecLists clone from this PR (Dockerfile:126). It adds about 2 GB and thousands of files to the image, including test web shells and zip bombs, and nothing in the repository uses it. If the need is shown, a separate PR can add it with a specific tag and a commit check.

@5P34R

5P34R commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Review notes

#504 does the same Python preinstall with pinned versions, so this one is superseded. Two issues apply regardless:

  • The pip install packages are unpinned, while everything else in the Dockerfile is pinned by digest or SHA256.
  • git clone --depth 1 https://github.com/danielmiessler/SecLists.git clones whatever is on the default branch at build time (no tag, commit or checksum), and adds well over 1 GB to the image. If SecLists is wanted, pin a release tag or commit and consider making it optional.

The added blank lines inside the Node block are unrelated noise.

@BaaRai

BaaRai commented Nov 26, 2026

Copy link
Copy Markdown
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.

@BaaRai BaaRai closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants