Insufficient Authorization happens when an AI agent can perform actions without proper permission checks. The agent may inherit the user’s full session token, bypass role-based access controls, or escalate privileges by chaining tool calls — all without any authorization layer verifying whether that specific agent should be allowed to act.Most agent frameworks today have zero authorization enforcement at the agent level.
Every action an agent attempts is evaluated against its assigned policy before execution. Policies are explicit rules — not prompt instructions an LLM can ignore.
Each agent gets its own Ed25519 keypair. Actions are signed with the agent’s private key, making it impossible for one agent to impersonate another or act without a verifiable identity.
import { generateAgentIdentity, verifyEvent } from '@mandatez/sdk';const identity = await generateAgentIdentity();// Each agent has a unique keypair — no shared tokensconsole.log(identity.agent_id); // 'ag_V1StGXR8_Z5jdHi6B-myT'console.log(identity.public_key); // Ed25519 public key// Any event can be verified against the agent's public keyconst valid = await verifyEvent(event);console.log(valid); // true — proves this agent authored this action