Avistar logoAvistar
All insights
GuidesAvistar Team5 min read

Machine Identity and AI Agent Security: 2026 Best Practices for CISOs

Ten vendor-neutral practices for securing machine identities and AI agents across AWS, Azure and Google Cloud, with a cloud comparison and a 90 day plan.

Share

Key takeaways

  • Machine identities, including AI agents, outnumber human identities 109 to 1.
  • Most AI incidents turn out to be access control failures.
  • Guidance from OWASP, CISA and allied agencies exists, but there is no finished standard for agent identity yet.
  • AWS, Microsoft and Google Cloud now each offer a dedicated identity service for AI agents, but only for new agents.
  • Every practice in this guide depends on one thing: a complete, current inventory.

The best practice for 2026 fits in one sentence: treat every machine identity and AI agent as a first-class identity. List it, give it its own identity and a named owner, issue it short-lived credentials, limit it to the access its task needs, and review that access on a schedule. The cloud providers now ship identities built for agents, and existing rules already cover the accounts software uses. What remains is applying both to an inventory that is complete and current.

Why this is on every CISO's list

The numbers explain it. Machine identities, including AI agents, outnumber human identities 109 to 1 according to a 2026 Palo Alto Networks survey of more than 2,900 security decision-makers 1. In IBM's 2026 breach research, 92% of organizations that suffered attacks on their AI models lacked proper AI access controls, and the share of incidents involving shadow AI more than doubled in a year to 43% 2 3.

Attackers are moving faster too. The FBI reported that the ARTEX attack framework automatically mapped the permissions of stolen cloud credentials, and some intrusions reached privileged access in under three hours 4.

Guidance is catching up, though it is not finished. OWASP has published a Top 10 for non-human identities and another for agentic applications 5 6. CISA, the NSA and four allied agencies issued joint guidance on agentic AI on May 1, 2026 7. NIST is still at the concept paper stage on agent identity 8.

Ten practices that cover most of the risk

  1. Keep a current inventory of every machine and agent identity. The joint agency guidance recommends a trusted registry of authorized agents, regularly reconciled with what is actually running 9.
  2. Give each workload and each agent its own identity. Google recommends single-purpose service accounts 10, and OWASP lists identity reuse as a top risk 5.
  3. Name a human owner for each identity. When the creator leaves, the account stays; OWASP ranks improper offboarding first on its list 5.
  4. Replace long-lived secrets with short-lived credentials. AWS asks workloads to use temporary credentials through IAM roles 11, Google recommends avoiding service account keys 10, and Microsoft recommends managed identities or certificates over client secrets for production agents 12.
  5. Enforce least privilege and remove paths to admin. Microsoft's Entra recommendations include keeping privileged roles off workload identities 13.
  6. Limit and review third-party and cross-account access. The FBI's ARTEX alert recommends least privilege for multi-tenant app permissions and consent grants 4.
  7. Require human approval for high-impact agent actions, as the joint agency guidance recommends 9.
  8. Log every action to one identity. For agents, record both the agent and the person it acted for, as Google's agent identity design does 14.
  9. Review access on a schedule and retire what is unused. Google suggests disabling an unused service account first and deleting it after a waiting period 10.
  10. Watch for change: new credentials, new privilege assignments and unusual app-only activity 4.

The first practice comes first for a reason. The other nine all assume you know which identities exist.

How it looks on AWS, Azure and Google Cloud

Use the identity the platform attaches to the workload, avoid stored keys, and use the provider's agent identity service where you run agents.

AWSAzure and Microsoft EntraGoogle Cloud
WorkloadsIAM roles with temporary credentials 11Managed identities 12Attached service accounts and Workload Identity Federation 10
AI agentsAmazon Bedrock AgentCore Identity 15Microsoft Entra Agent ID, generally available 16Agent Identity, one principal per agent 14
AvoidLong-lived access keys for workloads 11Client secrets for production agents 12Service account keys and default service accounts 10
Limit reachPermissions boundaries and organization guardrails 11No privileged roles on workload identities 13Principal Access Boundary policies and VPC Service Controls 14

Two cautions apply everywhere. Native tools each cover one cloud, so a team on two or three clouds still needs one combined view. And the new agent identity services only cover new agents; the service accounts, keys and app registrations created before them are still there, and many agents still run on them.

Securing agent orchestration

Think of an agent as an identity with delegated authority, and control the points where it picks up access. Keep the agent's own authority separate from authority delegated by a user. Don't let agents inherit credentials from a user or an earlier task, which OWASP lists as identity and privilege abuse 6. Connect agents to tools with narrow, short-lived tokens; the Model Context Protocol bases its authorization on OAuth 2.1 17. When one agent directs others, give each sub-agent its own identity rather than handing down the orchestrator's privileges. And put a person in front of anything irreversible, such as payments, record changes, permission grants and deletions.

A 90 day plan

Days 1 to 30, see. Build the inventory across every cloud account, subscription and project. Record an owner for each identity, and flag the ones that can reach admin or sensitive data.

Days 31 to 60, fix the top of the list. Remove paths to admin, disable unused identities, replace the oldest long-lived keys and cut back third-party access nobody needs.

Days 61 to 90, make it routine. Set a review cadence, move new agents onto the provider's agent identity service, add approval steps for high-impact actions, and start keeping evidence.

Where Avistar fits, and where it doesn't

Avistar covers the first practice and supplies the evidence for the rest. It discovers machine identities, including AI agent credentials, across AWS, Azure and Google Cloud through read-only, agentless roles 18. It records an owner and last activity for each identity, ranks risk by reachability, staleness, privilege and ownership with the blast radius of each identity, and maps findings to ISO 27001, SOC 2, NIST SP 800-53, FedRAMP and HIPAA Security Rule controls 19. It does not enforce changes, issue credentials, act as an agent identity service or approve agent actions at runtime, and it does not replace your assessor's judgment.

Read next: Fintech cloud security in 2026, how PCI DSS, NYDFS, the FTC Safeguards Rule and FINRA apply to machine identities and AI agents.

Share

Frequently asked questions

Is there a standard for AI agent identity?
Not a finished one. NIST's NCCoE is still at the concept paper stage. Today's practice comes from OWASP, the joint CISA and NSA guidance, and the cloud providers' agent identity services.
Are AI agents just service accounts?
Many run on service accounts today. The newer agent identity services differ in useful ways. Google's, for example, gives each agent its own principal, does not allow long-lived keys, and records the delegating user alongside the agent.
Do MFA rules apply to service accounts and AI agents?
Most rules require MFA for individuals. A machine identity cannot answer an MFA prompt, so the equivalent protection is short-lived credentials, least privilege, restricted use and monitoring.
Where should a CISO start?
With the inventory. Every other practice depends on knowing which identities exist and what each can reach.

Sources

Bring machine identities under governance

Build a living inventory of machine identities with read only, agentless discovery.