Repository navigation
build(docker): preinstall pinned python dependencies for agent scripts - #504
Merged
Merged
Conversation
Contributor
|
Review notes Pinning is the right approach, and this supersedes #393. But several of the pinned versions are old and have published CVEs that were fixed in later releases:
Please bump these to current releases. Since the rest of the Dockerfile verifies everything by digest or SHA256, pip's |
BaaRai
force-pushed
the
docker-pinned-python-deps
branch
from
November 26, 2026 22:24
89dd75d to
484d16a
Compare
BaaRai
added a commit
to Coff0xc/ARTEX-contrib
that referenced
this pull request
Nov 26, 2026
BaaRai
force-pushed
the
docker-pinned-python-deps
branch
from
November 26, 2026 22:40
484d16a to
3df80a2
Compare
BaaRai
added a commit
to Coff0xc/ARTEX-contrib
that referenced
this pull request
Nov 26, 2026
BaaRai
force-pushed
the
docker-pinned-python-deps
branch
from
November 26, 2026 22:56
3df80a2 to
78c2cbc
Compare
BaaRai
added a commit
to Coff0xc/ARTEX-contrib
that referenced
this pull request
Nov 26, 2026
BaaRai
force-pushed
the
docker-pinned-python-deps
branch
from
November 26, 2026 23:13
78c2cbc to
cc28d89
Compare
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.
Problem
Agent workers frequently generate and execute custom Python scripts during assessments (HTTP interaction, parsing, data transformation, etc.). In air-gapped environments or deployments using strict egress restrictions, runtime
pip installcommands fail or trigger unexpected egress alerts. Furthermore, previous review on #393 noted that having common Python modules preinstalled is reasonable as long as packages are pinned to exact versions and avoid large unvetted wordlists.Change
Preinstall common utility packages required by agent-written scripts into the runtime container image:
requests==2.32.3beautifulsoup4==4.12.3lxml==5.3.0urllib3==2.2.3pyyaml==6.0.2jinja2==3.1.4colorama==0.4.6tqdm==4.67.1All selected package versions provide pre-built manylinux wheels for both
amd64andarm64under Python 3.12, ensuring fast deterministic builds without requiring extra C compiler toolchains. SecLists is omitted. Added a corresponding entry toCHANGELOG.md.Verification
git diffagainst currentmainto ensure formatting and existing stages remain untouched.