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
+3
View File
@@ -82,6 +82,9 @@ async def stream_claude(
# Docker command
cmd = [
"docker", "run", "--rm",
"--pids-limit=512",
"--security-opt", "no-new-privileges",
"--cap-drop=ALL",
# Resource limits
"--memory=512m",
"--cpus=1",