RFC: Deterministic execution guardrails for unattended sessions (secrets + shared App tokens in sandbox)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github, typescript
- Área
- security
Línea de trabajo
Start with the README security model and the automations feature, then inspect sandbox-runtime; SECURITY.md describes where sensitive reports belong. The scope is not settled: maintainers must choose between a sandbox-runtime policy layer and sandbox-infrastructure networking. Done would be an accepted optional implementation with tests and documentation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The gap
The README's security model is refreshingly honest, but reading it against the automations feature, there's a gap I'd love maintainer thoughts on:
- Secrets are decrypted and injected as env vars at spawn (encrypted at rest, plaintext in-sandbox).
- The git credential helper brokers short-lived shared GitHub App installation tokens into the sandbox.
- Automations (webhooks, Sentry alerts, cron) start sessions with no human in the loop, and inbound payload content reaches the agent as prompt context.
So a malicious webhook/Sentry/Linear payload = indirect prompt injection into a sandbox holding (a) decrypted org secrets and (b) git credentials valid for every repo the App is installed on — with port tunnels and browser automation as exfil channels.
The single-tenant trust assumption covers users, but not content arriving at users' agents.
Proposal (optional, default-off)
A deterministic pre-execution policy layer in sandbox-runtime:
- Secret denial — block command args/env reads targeting injected secrets + credential helper.
- Egress allowlist — fail-closed, subdomain-aware; curl/wget/tunnels restricted to known infra domains.
- Git remote allowlist — push/fetch only to configured SCM hosts.
- Per-session spend cap — including child-session fan-out.
- Signed block receipts — emitted to the session event stream for audit.
Shadow mode by default, hard blocks via flag. Zero behavior change when off.
Question for maintainers
Interest in this as an optional hardening layer? Happy to contribute the implementation (tests + docs included) if the direction is welcome — or open to pointers if you'd rather solve it at the sandbox-infra network level instead.
(Hardening proposal, not a vuln disclosure — anything sensitive routes via SECURITY.md.)
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.3k
- Forks
- 477
- Merge medio
- 20 h 5 min
- PR fusionados (30 d)
- 290
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ColeMurray/background-agents
-
Known-actor email claim race drops the subject_email_collision warningPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ColeMurray/background-agents#2334 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ColeMurray/background-agents#806 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 45/100
ColeMurray/background-agents#2435 ·
Los mantenedores suelen responder en 1 día
-
Support Opencode v2Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ColeMurray/background-agents#2428 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
ColeMurray/background-agents#2427 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ColeMurray/background-agents
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
endora-commerce/endora-commerce#397 ·
Los mantenedores suelen responder en 1 día
-
level/task
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
wazuh/wazuh-dashboard-plugins#9472 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
xavxyz/bei-shan-lin-shui#57 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opennextjs/opennextjs-cloudflare#1461 ·
Los mantenedores suelen responder en 1 día