Skip to content
InfoNews

Enforce least-privilege authorization in multi-agent AI chains using Cedar

Published
Record updated
View JSON

Summary

This post presents a reference implementation that enforces least-privilege authorization in multi-agent AI chains using Cedar, an open source authorization policy language, deployed on AWS. It addresses the risk classified as ASI03: Identity & Privilege Abuse in the OWASP Top 10 for Agentic Applications, where authorization scope can silently expand across multi-hop delegation even when RBAC policies are in place. Cedar evaluates three policy layers after an OAuth 2.0 and OIDC identity provider authenticates the originating user and issues a signed JWT.

Mitigation

The reference implementation uses a three-layer Cedar policy model: L1 checks agent-to-tool trust score, namespace and lifecycle stage; L2 enforces a delegation hop count limit of five and capability subset checks; L3 verifies the originating user's role, MFA completion and allowed delegation depth. Verified JWT claims are mapped to Cedar context attributes, and the MCP adapter signs the user context with HMAC-SHA256 to prevent downstream tampering.