The Problem: God Mode by Default
Modern AI agents operate with unrestricted access to powerful tools. When you grant an LLM access to your GitHub account, database, or cloud infrastructure, you’re not just giving it an API key—you’re granting unbounded intent execution with no policy layer.The Threat Model
API Keys Are for Code. AIP Is for Intent.
Traditional security assumes deterministic code execution. API keys authenticate the application. But LLMs are non-deterministic systems executing user intent through model interpretation.Security Comparison
Why Not Just Use…?
OAuth Scopes?
OAuth scopes are:- Coarse-grained: “repo access” vs “read pull requests from org X”
- Static: Granted at install time, can’t change per-session
- User-facing: Leads to consent fatigue
- Fine-grained: Per-tool, per-argument validation
- Dynamic: Can change without re-authentication
- Developer-controlled: Defined in config files, version-controlled
Service Mesh (Istio)?
Service meshes operate at the service level, not the action level. They can say “Service A can call Service B” but not “Agent can only callrepos.get with org:mycompany/*”.
AIP operates at the tool call level within a service.
Container Sandboxing?
Containers provide process isolation but not semantic authorization. A containerized agent with network access can still exfiltrate data. AIP provides policy-based authorization that understands what the agent is trying to do.Comparison Table
AIP is purpose-built for the unique challenge of non-deterministic AI agents executing user intent.
Architecture Principles
- Defense in Depth: Multiple independent security layers (identity, policy, egress, audit)
- Least Privilege by Default: Agents start with zero capabilities; everything is opt-in
- Fail Closed: Unknown actions are denied; network errors = deny
- Immutable Audit: All decisions logged; logs cannot be modified by agents
- Human Sovereignty: Critical actions require human approval
- Manifest Portability: Same manifest works across runtimes (local, Kubernetes, serverless)
Prior Art & Inspiration
AIP builds on established security patterns:- SPIFFE/SPIRE: Workload identity framework — AIP extends this to agent identity
- Open Policy Agent: Policy-as-code — AIP’s policy engine draws from OPA’s design
- Istio: Service mesh authorization — AIP applies mesh principles to agent traffic
- AWS IAM: Fine-grained permissions — AIP manifests are IAM policies for agents
- OAuth 2.0 / OIDC: Token-based identity — AIP leverages OIDC for federation
Next Steps
- Read the specification: AIP-v1alpha3 Specs
- Try the reference implementation: AIP Go Implementation
- Write your first policy: Policy Reference