Join our Newsletter — 33% off our NHI Course

Who is exposed when agent sandboxes keep secrets mounted?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: Agent sandboxes fail when they let requests leave and keep credentials mounted, Agentic Fabriq reports, so escape resistance alone does not contain misuse. Sandboxes need tighter egress, narrower filesystem scope, and shorter session lifetime to keep the blast radius small.

Editorial analysis by NHI Mgmt Group, based on content published by Agentic Fabriq: “Sandboxing Agents: What Each Isolation Boundary Actually Contains”.

Key questions

Q: Why do agent sandboxes become high risk when credentials are mounted inside them?

A: Because the sandbox then inherits the full authority of those credentials.

Q: What breaks when browser agents inherit authenticated sessions?

A: The main failure is that the agent inherits the user's reach without inheriting the user's judgment.

Q: What should security teams do first when an agent sandbox can reach the network?

A: Start by denying outbound access and allowlisting only the destinations the task truly needs.

Practitioner guidance

  • Set egress to deny by default Allow only the specific destinations the task needs, and route any live data access through a brokered proxy rather than direct outbound access.
  • Remove reusable credentials from the guest Keep API keys, tokens, and cloud credentials out of the sandbox and inject authority only at call time through a controlled service boundary.
  • Copy inputs in and results out Avoid mounting live repositories, home directories, or shared volumes unless the task genuinely requires them, and destroy the environment after the run.

Bottom line: Agent sandboxing fails when it protects the host but leaves the agent free to exfiltrate data or act with mounted credentials.

Glossary terms: Identity Blast Radius, Confused Deputy, Brokered Credential, Default-Deny Egress

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 7 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

Sandboxing is an identity governance problem disguised as infrastructure design. The article shows that the decisive failure mode is not only runtime escape but authority that survives inside the box. Once a sandbox can hold credentials, reach the network, and persist long enough to reuse state, the control plane has already ceded too much. The implication is that sandboxing must be governed as a scoped identity boundary, not treated as a packaging choice.

A question worth separating out:

Q: How should teams decide between containers, microVMs, and kernel-enforced controls for agent sandboxes?

A: Start with the asset at risk, the input source, and the blast radius you can tolerate. Containers are faster but weaker against kernel compromise, microVMs isolate more strongly but add overhead, and kernel-enforced controls are strongest locally but less suitable for multi-tenant platforms.

👉 Read our full editorial: Sandboxing agents: egress and secrets matter more than escapes


This post was modified 7 days ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.