---
title: "Comment by Olivia on \"Why do AI agents need a sandbox?\" | Hashnode"
description: "The leaking-secrets part is what stuck with me — a sandbox that isolates the filesystem but still lets an agent reach stored credentials hasn't really contained"
url: "https://hashnode.com/posts/why-do-ai-agents-need-a-sandbox/6b1134ce1d2bc7cefae1791d/comment/6b118dad765e6f5d2fb1f191"
---

[Discussion](https://hashnode.com/posts/why-do-ai-agents-need-a-sandbox/6b1134ce1d2bc7cefae1791d)

Comment [Why do AI agents need a sandbox?](https://hashnode.com/posts/why-do-ai-agents-need-a-sandbox/6b1134ce1d2bc7cefae1791d)

[Olivia](https://hashnode.com/@oliviacreates)

[23h ago](https://hashnode.com/posts/why-do-ai-agents-need-a-sandbox/6b1134ce1d2bc7cefae1791d/comment/6b118dad765e6f5d2fb1f191)

The leaking-secrets part is what stuck with me — a sandbox that isolates the filesystem but still lets an agent reach stored credentials hasn't really contained the risk. Do you treat network access as part of the sandbox boundary here, or as a separate layer?
