fix(security): изоляция агент-контейнера Фаза-0 (пентест AGENT-EXFIL)

--cap-drop=ALL + --security-opt no-new-privileges + --pids-limit=512 (+memory-swap)
во всех 4 точках docker-run (claude_bridge/sonnet/sandbox/canary, лок-степ). Worker
уже non-root → кэпы не нужны; режет пост-эксплуатацию + fork-bomb. Сеть/креды —
следующими фазами (главный фикс exfil). Проверка канарейкой на dev.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-07-19 13:52:34 +10:00
co-authored by Claude Opus 4.8
parent 8b9cc93315
commit a9f4523e69
5 changed files with 15 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@ if [ -n "${CANARY_PROBE_OVERRIDE:-}" ]; then
OUT="$(eval "$CANARY_PROBE_OVERRIDE" 2>&1)"; RC=$?
else
OUT="$(timeout "$CANARY_TIMEOUT" docker run --rm --network=host \
--pids-limit=512 --security-opt no-new-privileges --cap-drop=ALL \
-e HOME=/home/worker \
-e "HTTPS_PROXY=http://${DOCKER_HOST_GW}:${XRAY_PORT}" \
-e "HTTP_PROXY=http://${DOCKER_HOST_GW}:${XRAY_PORT}" \