Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

chore(image): drop sidecar/Playwright legacy + plug NO_PROXY hole

0xallam346cc477a778
diff --git a/containers/Dockerfile b/containers/Dockerfile
index 18aeea34..45c3bf77 100644
--- a/containers/Dockerfile
+++ b/containers/Dockerfile
@@ -12,14 +12,7 @@ RUN useradd -m -s /bin/bash pentester && \
echo "pentester ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
touch /home/pentester/.hushlogin
-RUN mkdir -p /home/pentester/configs \
- /home/pentester/wordlists \
- /home/pentester/output \
- /home/pentester/scripts \
- /home/pentester/tools \
- /app/runtime \
- /app/tools \
- /app/certs && \
+RUN mkdir -p /home/pentester/tools /app/certs && \
chown -R pentester:pentester /app/certs /home/pentester/tools
RUN apt-get update && \
@@ -39,9 +32,6 @@ RUN apt-get update && \
nodejs npm pipx \
libcap2-bin \
gdb \
- libnss3 libnspr4 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libatspi2.0-0 \
- libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libcairo2 libasound2t64 \
- fonts-unifont fonts-noto-color-emoji fonts-freefont-ttf fonts-dejavu-core ttf-bitstream-vera \
libnss3-tools
diff --git a/strix/runtime/session_manager.py b/strix/runtime/session_manager.py
index 277092ae..c4c48de5 100644
--- a/strix/runtime/session_manager.py
+++ b/strix/runtime/session_manager.py
@@ -68,7 +68,9 @@ async def create_or_reuse(
# Caido runs as an in-container sidecar; HTTP(S) traffic from any
# process started via ``session.exec`` (the SDK's Shell tool, etc.)
- # picks up these env vars automatically.
+ # picks up these env vars automatically. ``NO_PROXY`` keeps the
+ # agent-browser CDP daemon's localhost traffic from looping back
+ # through Caido.
container_caido_url = f"http://127.0.0.1:{_CONTAINER_CAIDO_PORT}"
manifest = Manifest(
entries={"sources": LocalDir(src=sources_path)},
@@ -79,6 +81,7 @@ async def create_or_reuse(
"http_proxy": container_caido_url,
"https_proxy": container_caido_url,
"ALL_PROXY": container_caido_url,
+ "NO_PROXY": "localhost,127.0.0.1",
},
),
)