Most organisations have policies for users, service accounts and acceptable use of AI tools. Few have a policy that says how AI agents get access, who is accountable for them and what they may do on their own. This template gives you a starting point. It sets out policy statements for registering, identifying, authorising, overseeing, monitoring and retiring AI agents, written so it can sit alongside your existing identity, access and information security policies. It is for CISOs, IAM and AI governance leads. Adapt the wording, roles and thresholds to your organisation, and have it reviewed by your legal, risk and compliance teams before adoption.
How to use this template
- Replace text in square brackets, such as [Organisation] and [X] days, with your own terms.
- "Must" indicates a mandatory requirement; "should" indicates a recommended practice where exceptions may be justified and recorded under section 6.
- Align defined roles with your existing governance structure, for example the information security, IAM and AI governance functions. Section 4 gives a starting allocation of responsibilities.
- Set the risk tiers in section 5.1 first: most thresholds in the policy (approval, review frequency, testing) depend on the tier.
- Link each statement to the standards that implement it: the policy says what must happen, the standards say how. The AI Agent Deployment Checklist turns section 5 into go-live checks.
1. Purpose
This policy sets the requirements for the secure use of AI agents at [Organisation]. It ensures that every AI agent is known, owned, uniquely identified, given only the access it needs, subject to appropriate human oversight, monitored and retired securely, so that [Organisation] can benefit from AI agents while managing the risks to its data, systems, customers and obligations.
AI agents differ from conventional service accounts because a model decides which tools to call, and the input shaping that decision can come from untrusted emails, web pages, documents and tool results. OWASP describes the resulting risk as Excessive Agency: damaging actions performed "in response to unexpected, ambiguous or manipulated outputs from an LLM". This policy therefore treats each agent as a non-human identity whose permissions, not instructions, limit what it can do.
2. Scope
This policy applies to all AI agents that access [Organisation] systems or data, or act on behalf of [Organisation], its employees or its customers, including:
- Agents developed internally, on any platform or framework.
- Agents built by staff using low-code or no-code agent platforms.
- Agents and AI features provided by third parties that access [Organisation] systems or data, including through OAuth grants or API keys.
- AI coding assistants and agents used in software development.
- Tools, MCP servers, plugins and integrations used by agents, and multi-agent systems in which agents delegate work to other agents.
It applies to all employees, contractors and third parties who create, deploy, own, operate or approve AI agents.
AI assistants without tool access are covered by [Acceptable Use of AI Policy].
3. Definitions
- AI agent: software that uses an AI model to decide on and take actions, such as calling tools or APIs, towards a goal, with or without human approval of each step.
- Agent owner: the named individual accountable for an agent's purpose, access, behaviour and retirement.
- Agent identity: the unique non-human identity under which an agent authenticates.
- Principal: the user or system on whose behalf an agent acts.
- Delegation: the agent keeps its own identity while acting for a principal; RFC 8693 describes this as "A representing B", as distinct from impersonation.
- High-impact action: an action that is irreversible, moves money, changes access rights, deletes or bulk-exports data, communicates externally on behalf of [Organisation], or affects production systems. [Organisation] maintains the detailed list in [procedure reference].
- Least agency: giving an agent only the tools, functions and autonomy its task needs.
- Agent registry: the system of record for AI agents at [Organisation].
- MCP server: a server implementing the Model Context Protocol that exposes tools, resources or prompts to AI agents.
- Kill switch: the tested procedure that stops an agent and revokes all its credentials and grants.
4. Roles and responsibilities
- [AI governance body]: approves this policy, sets risk appetite for AI agents and approves Tier 3 agent deployments.
- [Chief Information Security Officer]: owns this policy, and the security standards and monitoring that implement it.
- [IAM team]: operates the agent registry, issues agent identities and credentials, and runs access reviews.
- Agent owners: register agents, justify access, review access, respond to alerts and retire agents. Owners must name a deputy.
- Developers and builders: build and configure agents in line with this policy and its standards.
- [Security operations]: monitor agent activity, operate the kill switch and respond to agent-related incidents.
- [Procurement and third-party risk]: assess AI vendors, agent platforms and third-party tools.
Starting allocation (R responsible, A accountable, C consulted, I informed); keep one accountable role per activity:
| Activity | Agent owner | [IAM team] | [CISO] | [AI governance body] | [Security operations] |
|---|---|---|---|---|---|
| Register agent and set risk tier | R | C | I | A for Tier 3 | I |
| Issue identity and credentials | C | R, A | I | - | I |
| Access review | R | A | I | I | - |
| Monitoring and alert response | C | I | A | - | R |
| Kill switch test and use | C | R | A | I | R |
| Retirement | R | A | I | - | I |
5. Policy statements
5.1 Registration and ownership
- Every AI agent must be registered in the agent registry before it receives access to any production system or data.
- Each registration must record the agent's purpose, owner and deputy, principal type (itself, users, or both), platform, model and version, tools, data sources, credentials, autonomy level and risk tier.
- Every agent must have a named owner who is a current employee. If an owner leaves or changes role, ownership must be transferred within [X] days or the agent must be suspended.
- Agents that are discovered but not registered must be treated as unauthorised and are subject to suspension.
- Each agent must be assigned a risk tier based on what it can do, using the table below.
| Tier | What the agent can do | Approval to deploy | Access review |
|---|---|---|---|
| Tier 1 | Reads internal data within one user's existing permissions; no write actions; no external communication | Agent owner and [Security team] reviewer | [Annually] |
| Tier 2 | Creates or changes records, files, tickets or code in internal systems, or reads data beyond one user's permissions | Tier 1 plus the data owner of each system written to | [Six-monthly] |
| Tier 3 | Takes high-impact actions, acts autonomously without a user present, or has access to production infrastructure | Tier 2 plus [CISO] and [AI governance body] | [Quarterly] |
For finding agents that were never registered, see the Shadow AI Discovery Guide.
5.2 Identity and authentication
- Each agent must have its own unique identity. Agents must not share identities or credentials with other agents, workloads or people.
- Agents must not authenticate using an individual's personal credentials, including passwords, personal access tokens or session cookies.
- Agent credentials should be short-lived and issued by a platform (for example, workload identity or token services) rather than stored as static secrets.
- Where static credentials cannot be avoided, they must be stored in [approved secrets manager], scoped to least privilege and to one environment, set to expire within [X] days and rotated.
- Credentials must not be placed in prompts, agent memory, source code, configuration files in repositories, notebooks or container images.
Agents use whatever credentials they can reach: in the PocketOS Database Deletion 2026, a coding agent in staging found an account-scoped token in an unrelated file and deleted a production volume. See the Secrets Management Guide.
5.3 Access and authorisation
- Agents must be granted only the access required for their registered purpose (least privilege) and only the tools and functions required (least agency).
- Agents must not hold administrative, owner or wildcard permissions in any production system without [AI governance body] approval.
- Access should be scoped to the task and issued just in time where the platform supports it.
- Controls restricting agent behaviour must be enforced by the platform, gateway or target system. Instructions in prompts are not an acceptable sole control.
- Agent access must be reviewed by the owner at the frequency set for its tier, and whenever the agent's model, instructions, tools or autonomy change.
OWASP calls this "complete mediation": authorisation in downstream systems "rather than relying on an LLM to decide". See the AI Agent Authorisation Guide.
5.4 Acting on behalf of users
- An agent acting on behalf of a user must never exceed that user's access.
- Delegated access must be limited to the scopes needed for the task, and should identify both the user and the agent to downstream systems.
- Agents and tools must not forward a user's access token to other services; each service must receive a token issued for it, with its audience restricted to that service.
- Users must be able to see and revoke the access they have delegated to agents.
See the OAuth Token Exchange and Delegation Guide.
5.5 Human oversight
- High-impact actions must require approval by an authorised person before execution, unless an exception is approved by [AI governance body].
- Approval must be enforced technically, outside the agent, and the approver must be shown the actual action, target and parameters. The approval must be bound to that exact action and expire.
- Each agent's autonomy level, and the actions it may take without approval, must be recorded in the registry.
- People assigned to approve agent actions must have the competence, training and authority to refuse them.
The Replit AI Agent Database Deletion 2025 shows the limit of instructions alone: the agent deleted a live database during a declared code freeze.
5.6 Tools, MCP servers and integrations
- Agents may only use tools, MCP servers, plugins and agent frameworks on the [approved list], recorded with source and version.
- Remote MCP servers must require authorisation and must validate that tokens were issued for them.
- Tool definitions, descriptions and tool results must be treated as untrusted input; changes to approved tools must be reviewed before use.
- Code execution by agents, and local MCP servers, must run in a sandbox with restricted file system and network access.
- Communication between agents must be authenticated and protected in transit.
Tool output can carry instructions: in the Sentry MCP Agentjacking 2026 research, a planted error report led coding agents to run a command with the developer's privileges. See the MCP Security Guide and the Multi-Agent and A2A Security Guide.
5.7 Data protection
- Agents must only access data classified up to [classification] unless approved in their registration.
- Retrieval by agents must respect the access rights of the user on whose behalf they act.
- Agent memory must be isolated per user and per session where agents serve multiple users, and retained for no longer than [period].
- Use of agents to process personal data must comply with [data protection policy], including any required impact assessment.
See the Permission-Aware RAG Guide.
5.8 Logging and monitoring
- Every agent action must be logged with the agent identity, principal, tool or API used, credential identifier, authorisation decision, approvals and outcome.
- Agent logs must be protected against tampering, handled according to the classification of the data they contain, and retained for [period, at least six months where the EU AI Act applies to the agent as a high-risk system].
- [Security operations] must monitor agent activity for anomalous behaviour, including use of new tools or data, unusual volumes, repeated permission errors, credential discovery and destructive actions.
5.9 Incident response
- Every production agent must be capable of being stopped, and all its credentials and grants revoked, within [X] minutes.
- This capability must be tested at least [annually] for Tier 3 agents and after any change to the agent's platform or credentials.
- Agent-related incidents must be handled under [incident response procedure], including assessment of notification obligations.
See the AI Agent Observability and Incident Response Guide.
5.10 Third-party agents and AI services
- Third-party AI services and agent platforms that access [Organisation] data must be assessed under [third-party risk procedure] before use.
- Users must not grant third-party AI applications access to [Organisation] data beyond [low-risk scopes] without approval.
- Contracts must address data use (including use for model training), security of credentials held on [Organisation]'s behalf, logging available to [Organisation], and incident notification.
5.11 Development and testing
- Agents must be threat modelled before receiving production access, and again after significant change.
- Tier 2 and Tier 3 agents must be tested for prompt injection, privilege escalation and data exfiltration before deployment, and retested after a change of model, prompt, tools or memory.
- Development and test agents must not use production credentials or production data without approval.
- AI coding agents must run with scoped credentials and must not have direct access to production deployment credentials.
See the AI Agent Threat Modelling Guide and the AI Coding Agents Security Guide.
5.12 Retirement
- When an agent is no longer needed, the owner must request retirement.
- Retirement must revoke all credentials, tokens and grants, remove the agent from discovery and routing, archive its logs and update the registry.
- Agents with no activity for [X] days must be reviewed and suspended if no longer required.
6. Exceptions
Exceptions to this policy must be requested by the agent owner, risk assessed by [Security team], approved by [approver], recorded with compensating controls and an expiry date, and reviewed before expiry. An expired exception is treated as non-compliance.
7. Compliance
Compliance with this policy will be monitored through the agent registry, access reviews, security monitoring, kill switch tests and internal audit. [CISO] reports compliance to [AI governance body] at least [quarterly], using the measures under "Metrics that show progress". Agents found to be non-compliant may be suspended. Breaches of this policy by staff may be handled under [disciplinary procedure].
8. Related documents
- [Information Security Policy]
- [Identity and Access Management Policy]
- [Non-Human Identity Standard]
- [Acceptable Use of AI Policy]
- [AI Agent Deployment Standard and go-live checklist]
- [Data Protection Policy]
- [Third-Party Risk Management Procedure]
- [Incident Response Procedure]
9. Review
This policy is owned by [policy owner] and will be reviewed at least annually, or sooner following significant changes in technology, regulation or [Organisation]'s use of AI agents, or after a significant agent-related incident.
Framework mapping
The EU AI Act column applies only where an agent is, or is part of, a high-risk AI system; check classification with your legal team.
| Policy section | OWASP Top 10 for Agentic Applications 2026 | NIST AI RMF 1.0 | UK AI Cyber Security Code principle | EU AI Act (high-risk) |
|---|---|---|---|---|
| 4 Roles; 5.1 Registration | ASI10 Rogue Agents | GOVERN 1.6, GOVERN 2.1 | 5 Identify, track and protect assets | Art. 26(2) |
| 5.2 Identity; 5.3 Access; 5.4 On behalf of users | ASI03 Identity and Privilege Abuse; ASI02 Tool Misuse | MEASURE 2.7 | 6 Secure your infrastructure | Art. 15 |
| 5.5 Human oversight | ASI09 Human-Agent Trust Exploitation; ASI01 Agent Goal Hijack | MAP 3.5, GOVERN 3.2 | 4 Enable human responsibility | Art. 14, Art. 26(2) |
| 5.6 Tools and MCP servers | ASI02; ASI04 Agentic Supply Chain; ASI05 Unexpected Code Execution; ASI07 Inter-Agent Communication | MAP 4.1 | 7 Secure your supply chain | Art. 15 |
| 5.7 Data protection | ASI06 Memory and Context Poisoning | GOVERN 1.1 | 8 Document data, models and prompts | Art. 26(9) |
| 5.8 Logging and monitoring | ASI10 | MANAGE 4.1 | 12 Monitor your system's behaviour | Art. 26(5), 26(6) |
| 5.9 Incident response | ASI08 Cascading Failures; ASI10 | MANAGE 2.4 | 11 Maintain security updates and mitigations | Art. 14(4)(e), Art. 26(5) |
| 5.10 Third parties | ASI04 | GOVERN 6.1, MANAGE 3.1 | 7 Secure your supply chain | - |
| 5.11 Development and testing | ASI01 to ASI10 | GOVERN 4.3, MEASURE 2.7 | 3 Evaluate threats and manage risks; 9 Testing and evaluation | Art. 15 |
| 5.12 Retirement; 9 Review | ASI03 (orphaned privileges) | GOVERN 1.7, GOVERN 1.5 | 13 Ensure proper data and model disposal | - |
Article 14(4)(e) asks that people overseeing a high-risk system can interrupt it "through a 'stop' button or a similar procedure that allows the system to come to a halt in a safe state", which section 5.9 implements for agents. Article 26(6) requires logs to be kept for "at least six months". The NCSC guidelines cover secure design, development, deployment, and operation and maintenance. See the NIST AI RMF Guide and the EU AI Act Compliance Guide.
Common failure patterns
- Agents on personal credentials: actions look like the builder's own, and access outlives their departure.
- Approval in the prompt: "ask before deleting" sits in the system prompt; OWASP's cheat sheet advises separating decision-making from execution.
- Token passthrough: an MCP server forwards the user's token downstream; the MCP security best practices warn it breaks the audit trail.
- Kill switch that only stops the process: the agent halts but its tokens and OAuth grants stay valid.
- Standing production access for coding agents: the condition behind both the Replit and PocketOS deletions.
Metrics that show progress
| Metric | What it shows | Target direction |
|---|---|---|
| Production agents in the registry with an owner and deputy | Coverage of section 5.1 | Up, to all |
| Unregistered agents found by discovery each month | Shadow agent creation | Down |
| High-impact actions covered by enforced approval | Strength of section 5.5 | Up, to all Tier 3 actions |
| Median tested time to stop an agent and revoke its credentials | Readiness under section 5.9 | Down, within the [X] minutes target |
| Open exceptions past expiry | Discipline of section 6 | Down, to zero |
Implementation guidance
Adopt the policy in phases, starting with the agents already live.
| Phase | Actions | Policy sections |
|---|---|---|
| First 30 days | Approve the policy and tiers; stand up the registry; inventory live agents, AI app OAuth grants and MCP servers; name owners | 4, 5.1, 5.2 |
| Days 31 to 90 | Move agents to dedicated identities and short-lived credentials; enforce approval for high-impact actions; publish the approved tool list; test the kill switch on Tier 3 agents | 5.2 to 5.6, 5.9 |
| Days 91 to 180 | Complete the first access reviews; connect agent logs to monitoring; add testing gates to the pipeline; report metrics to [AI governance body] | 5.3, 5.8, 5.11, 7 |
Make registration, a dedicated identity and a tool allow list prerequisites for deployment where you can. Supporting guides:
- Registration, identity and retirement: see the Agentic AI Identity Guide.
- Ongoing reviews and certification: see the Identity Governance for AI Agents Guide.
- Regulatory mapping: see the Agentic AI Compliance Guide.
Practitioner checklist
- Agree the risk tiers and high-impact action list first.
- Load every production agent into the registry.
- Remove personal and shared credentials from Tier 3 agents.
- Enforce approval outside the agent, bound to the exact action.
- Check MCP servers validate token audience and do not pass tokens through.
- Test the kill switch, including token and grant revocation, and record the time.
- Set mandatory expiry dates in the exception register.
Standards and references
- NIST: AI 100-1 Artificial Intelligence Risk Management Framework (AI RMF 1.0)
- EUR-Lex: Regulation (EU) 2024/1689 (Artificial Intelligence Act)
- NCSC: Guidelines for secure AI system development
- DSIT: Code of Practice for the Cyber Security of AI
- OWASP GenAI Security Project: OWASP Top 10 for Agentic Applications for 2026
- OWASP: LLM06:2025 Excessive Agency
- OWASP: AI Agent Security Cheat Sheet
- Model Context Protocol: Authorization specification
- Model Context Protocol: Security Best Practices
- IETF: RFC 8693 OAuth 2.0 Token Exchange
- IETF: RFC 8707 Resource Indicators for OAuth 2.0
This template is provided for guidance and must be adapted to your organisation. It is not legal advice. Related NHI Mgmt Group resources: Agentic AI Identity Maturity Model · NHI Lifecycle Management Guide · IAM and IGA Basics · AI Agent Deployment Checklist