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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user