AgentSafe offers a specialized environment for AI agents and code execution, utilizing micro-VMs to provide security and performance. With rapid boot times, capability-based policies, and detailed observability, it ensures that untrusted code runs safely and quickly without impacting your infrastructure. This approach enables efficient execution while maintaining isolation and compliance.
AgentSafe: A Secure Micro-VM Platform for AI Agents
AgentSafe is a sophisticated sandbox execution environment meticulously crafted for AI agents and code generation tools. By employing micro-VMs that provide per-request isolation, AgentSafe allows untrusted code to operate securely and efficiently, safeguarding your infrastructure from potential risks associated with executing arbitrary code.
AgentSafe addresses the limitations of traditional containers and virtual machines, offering:
The initial version of AgentSafe includes several integral components designed to work seamlessly together:
agent-run command facilitates the execution of agents while adhering to defined policies.Creating a simple policy can be done easily using YAML:
metadata:
name: "development-policy"
version: "1.0"
resources:
cpu_limit: 1
memory_limit: "512Mi"
timeout: "5m"
network:
allow_egress: true
allowed_domains:
- "httpbin.org"
- "api.github.com"
filesystem:
writable_paths:
- "/tmp"
Agents can be executed using the CLI with defined policies:
# Run a simple command
./bin/agent-run --policy examples/policies/development.yaml \
--cmd "curl -s https://httpbin.org/json"
AgentSafe supports metrics monitoring with Prometheus:
# Start the metrics demo
cd examples/metrics-demo
go run main.go
# Access Grafana at http://localhost:3000
AgentSafe is built on a foundation of security-first principles, ensuring that each execution occurs in a separate micro-VM with its own kernel. The platform employs default-deny policies which necessitate explicit capability grants before allowing operations. All executions are audit-enabled with cryptographic signatures, ensuring robust accountability and preventing abuse.
For further inquiries regarding security matters, please reach out to sarthakdeshwal@duck.com.
No comments yet.
Sign in to be the first to comment.