Brex Secures AI Agents at the Network Layer

See how Brex protects highly capable AI agents without restricting their code execution.
30-Second TL;DR
What Changed
Brex treats AI agents as virtual employees that may need email, Slack, meetings, and broad task capabilities.
Why It Matters
Brex’s approach could let enterprises preserve the coding flexibility that makes autonomous agents useful while limiting their ability to exfiltrate data or access unauthorized services. It also highlights the operational challenge of relying on an LLM to make real-time security decisions.
What To Do Next
Evaluate CrabTrap in a staging environment by routing an agent’s outbound HTTP traffic through it and testing policy decisions against approved and malicious requests.
Key Points
- •Brex treats AI agents as virtual employees that may need email, Slack, meetings, and broad task capabilities.
- •CrabTrap shifts the security boundary from rapidly changing agent code to observable outbound HTTP traffic.
- •An LLM acts as a judge to assess whether network requests match the agent’s authorized purpose.
- •The design assumes the agent could be compromised, providing a defense layer outside the container.
Deep Insight
AI-generated analysis for this event — not the original article.
Enhanced Key Takeaways
- •CrabTrap is designed to operate as a sidecar proxy within Kubernetes environments, allowing it to intercept traffic without requiring modifications to the agent's application code.
- •The system utilizes a 'deny-by-default' architecture, where all outbound requests are blocked unless explicitly permitted by the LLM-based policy engine.
- •Brex developed this tool to address the 'confused deputy' problem, where an AI agent might be tricked into performing unauthorized actions via prompt injection or malicious input.
- •The evaluation latency introduced by the LLM judge is mitigated through a caching layer that stores decisions for recurring, identical network requests.
- •CrabTrap integrates with existing observability stacks, allowing security teams to audit agent behavior through standard logging and tracing tools.
Competitor Analysis
- CrabTrap (Brex)
- Outbound Agent Traffic
- Traditional WAFs
- Inbound Web Traffic
- AI-Native Security Platforms
- Code/Prompt Security
- CrabTrap (Brex)
- LLM-based Contextual
- Traditional WAFs
- Rule-based/Regex
- AI-Native Security Platforms
- Static/Dynamic Analysis
- CrabTrap (Brex)
- Sidecar Proxy
- Traditional WAFs
- Gateway/Edge
- AI-Native Security Platforms
- SDK/Library Integration
- CrabTrap (Brex)
- Open Source
- Traditional WAFs
- Varies (Subscription)
- AI-Native Security Platforms
- Enterprise Licensing
| Feature | CrabTrap (Brex) | Traditional WAFs | AI-Native Security Platforms |
|---|---|---|---|
| Primary Focus | Outbound Agent Traffic | Inbound Web Traffic | Code/Prompt Security |
| Policy Enforcement | LLM-based Contextual | Rule-based/Regex | Static/Dynamic Analysis |
| Deployment | Sidecar Proxy | Gateway/Edge | SDK/Library Integration |
| Pricing | Open Source | Varies (Subscription) | Enterprise Licensing |
Technical Deep Dive
- Architecture: Implemented as a transparent HTTP proxy that intercepts traffic at the network layer using iptables or similar container networking primitives.
- LLM Judge: Uses a lightweight, fine-tuned model to analyze HTTP request headers, methods, and payloads against a defined 'Agent Persona' document.
- Policy Definition: Policies are defined in YAML, specifying allowed domains, HTTP methods, and data sensitivity levels for specific agent roles.
- Observability: Exports metrics in Prometheus format and logs decision traces to centralized logging systems for forensic analysis.
- Security Model: Operates outside the agent's execution environment (e.g., separate container), ensuring that even a full compromise of the agent's runtime does not grant control over the proxy.
Future ImplicationsAI analysis grounded in cited sources
Timeline
- 2025-03Brex begins internal development of AI agent security frameworks to manage growing agent autonomy.
- 2025-11Brex identifies the need for network-level controls after testing agent susceptibility to prompt injection.
- 2026-05CrabTrap is finalized and deployed across Brex's internal AI agent infrastructure.
- 2026-08Brex open-sources CrabTrap to the developer community.
Weekly AI Recap
Read this week's curated digest of top AI events →
AI-curated news aggregator. All content rights belong to original publishers.
Original source: VentureBeat ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
The weekly digest
One email a week. Unsubscribe anytime.