Agent Vault: Secure Sandboxing and Secret Injection for AI Agents

Agent Vault is a security tool by Infisical that sandboxes AI agents and manages their credentials through a specialized MITM proxy. It features a Docker-based execution environment that prevents data exfiltration by restricting network egress to authorized channels. The project provides developers with a CLI, SDK, and dashboard to monitor agent activity and securely inject secrets into agent workflows.
Key Points
- Provides a secure containerized sandbox that uses iptables to restrict AI agent network access to authorized proxies only.
- Employs a MITM proxy to inject credentials into agent requests, ensuring secrets are never directly exposed to the agent's environment.
- Includes a comprehensive auditing system with per-vault logs that capture request metadata, status, and latency.
- Offers multiple management interfaces including a CLI, a web-based dashboard, and a TypeScript SDK for programmatic control.
- Supports enterprise security features such as Google OAuth, invite-only registration, and encrypted TLS-wrapped proxy listeners.
Sentiment
The community is broadly supportive of the credential brokering concept and sees it as a necessary evolution in agent security infrastructure. However, there is healthy skepticism about whether the current implementation fully addresses the security concerns it aims to solve, with several commenters noting it shifts rather than eliminates trust boundaries. The tone is constructive rather than dismissive, with many contributors offering technical feedback and sharing their own related work.
In Agreement
- Credential brokering through an egress proxy is the right architectural pattern for preventing credential exfiltration from AI agents, and the industry is converging on this approach
- The proxy model creates a natural supervision and audit boundary, providing an immutable record of every API call made with each credential rather than just logging intent
- The interface-agnostic MITM approach is superior to vendor-specific solutions because agents interact with services through diverse means (API, CLI, SDK, MCP)
- Multiple developers independently arrived at similar solutions, validating the problem space and the proxy-based approach
- Container isolation combined with credential brokering provides meaningful defense-in-depth for sandboxed agents
Opposed
- The proxy merely shifts the trust boundary rather than eliminating it — if an agent gains access to the proxy, it can still make authenticated requests and exfiltrate data
- OAuth token refresh responses could leak new credentials back to the agent through the response payload, creating a gap in the protection model
- MITM certificate validation is a hard problem to get right, and the proxy increases the attack surface by centralizing credential storage
- Network proximity-based trust feels like repeating VPN security mistakes — location alone should not grant inherent trust
- A simple proxy can be built in under 15 lines of Python, questioning whether the additional complexity is warranted
- Static policy-based credential access is insufficient because agents are unpredictable — runtime approval flows may be needed instead