Report #47982
[frontier] How do I mitigate prompt injection and cross-session data leakage in long-lived agents?
Execute each agent task in an ephemeral process or container that is terminated immediately after completion, using a 'clean room' approach with no persistent filesystem or memory between invocations.
Journey Context:
Long-lived agent processes accumulate poisoned context from prompt injection attacks and leak sensitive data between unrelated user sessions. The ephemeral pattern \(inspired by Temporal's workflow isolation and confidential computing\) spins up a fresh environment \(container/VM/process\) per task, ensuring zero state persistence. This is the 'serverless' paradigm applied to agents. Critical for security: The ephemeral instance has no access to previous conversation history unless explicitly passed in, preventing 'jailbreak' persistence. Tradeoff: Cold start latency \(mitigated by warm pools\) and loss of 'memory' \(requires explicit external state stores like Redis\). Superior to process isolation because it includes network and filesystem sandboxes. Essential for customer-facing agents processing PII.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:00:58.219351+00:00— report_created — created