AI security starts with identity: measure your estate before you manage it
In this blog
- Why AI agents make identity security harder
- Three steps to govern non-human identities and AI agents
- Discover: measure your identity estate first
- Prioritize: turn your identity inventory into risk
- Remediate: one fix doesn't fit every persona
- When to converge and when to diverge
- Before you write requirements
- Download
You can't secure the agents you can't see
Picture a finance team that stood up an artifical intelligence (AI) agent six months ago to read invoices, match them to purchase orders and approve payments under a set threshold. It works well enough that the team has stopped thinking about it, and nobody in security has ever heard of it, even though it runs on credentials inherited from the person who built it, acts faster than any human reviewer could follow and, if it ever misbehaves, can't easily be found, traced to an owner or switched off.
The details will differ from one company to the next, but the pattern holds: AI adoption is outpacing identity governance, which is why we see AI security as an identity problem first.
Why AI agents make identity security harder
Security teams have spent two decades learning to govern two kinds of identity. Human accounts come with joiner-mover-leaver processes, access reviews and multifactor authentication, while machine accounts get vaulted secrets and rotation schedules, at least on a good day. AI agents fit neither model, and what makes them hard to govern is that they inherit the riskiest traits of both. Like people, they move across applications and workflows without being tied to a single system or context; like machines, they operate at machine speed and never pause to wonder whether something looks wrong. Broad reach at that speed is what turns an over-permissioned agent into a serious problem.
Agents also join a crowd that is already large. Non-human identities (NHIs), meaning the service accounts, application programming interface (API) keys, bots and workloads behind every application, dominate most enterprises: the Cloud Security Alliance's 2026 whitepaper on non-human identity and agentic AI governance puts the average at 45 NHIs for every human identity and as high as 144 to 1 in cloud-native environments. A separate Ivanti survey found that 85% of IT professionals say every AI agent has a named owner, but only 42% say that ownership is actually clear. That distance between what leaders believe and what they can prove is, in many ways, the whole problem.
Our position is that agents and NHIs should be treated as first-class identities, with owners, lifecycle management and governance just like people, and with one thing people rarely get: remediation fast enough to act at runtime, when a credential is exposed or an agent starts working outside its purpose. Our colleagues explore what that bar looks like in practice in the four tests for first-class agent identity.
Three steps to govern non-human identities and AI agents
We think about this problem in three steps: discover what you have, prioritize what matters most and remediate in a way you can prove. The order matters, and so does knowing where programs tend to stall. Finding things is the easiest part to buy, and it keeps getting cheaper as AI makes finding problems of every kind faster, which pushes the hard work downstream to deciding what matters and getting teams to act. Many programs pour their budget into the first step and run out of steam on the other two.
Discover: measure your identity estate first
You can't manage what you can't measure, and that principle shapes how we recommend leaders begin. Before choosing tools or writing policy, find out what you actually have, which means broad discovery across cloud platforms, software as a service (SaaS) applications, continuous integration and continuous delivery (CI/CD) pipelines, code repositories, directories and the business itself, including whatever shadow IT has already put into production. The agents that business teams built without involving security are precisely the ones you most need to find.
Discovery on its own doesn't change much, though, and what matters is what you do with the results. Start by cataloging everything in a single inventory that records each identity's type, purpose and where it operates. Then give every entry a named human owner who answers for it, and sort what you have found into four capability areas: discovery, ownership and lifecycle, secrets and rotation and runtime authorization.
Agents raise a few extra questions on top of those basics: who is this agent, what can it reach, what context is it operating in and what is it actually trying to do. A credential can answer the first two, but it says very little about the last two, and that is where much of the new risk lives.
Prioritize: turn your identity inventory into risk
A list of identities is a start, but a list ranked by risk is a program. Once the inventory exists, score each entry on the factors that matter, such as how much privilege it holds, how exposed it is, how old its credentials are, whether anyone owns it, what data it touches and how autonomously it acts. That gives you a baseline to report against and a way to show the board real progress over time.
Secrets illustrate why the ranking matters. GitGuardian counted 28.65 million new hardcoded secrets in public GitHub commits in 2025, up 34% from the year before, and commits assisted by AI coding tools leaked secrets at roughly twice the baseline rate. When the same researchers retested secrets first found in 2022, more than 64% were still valid, a reminder that finding a secret is only the beginning and that rotating it is what counts.
Risk alone tells you what is most exposed but not who will fix it, so we recommend prioritizing through two lenses at once. The first is cyber risk. The second is persona, meaning the groups inside your company that create and run these identities and what each of them cares about. A finding that is both high risk and owned by a team ready to act should move first, while a high-risk finding owned by a team that isn't ready needs security to help before anything gets fixed.
Remediate: one fix doesn't fit every persona
Three personas tend to matter most, and each needs a different kind of help.
Developers build with coding agents and pipelines, and over time secrets end up in code, config and commit history. Fixing them means changing code, which competes directly with the roadmap, so what helps is a paved road: vaulted or short-lived credentials by default, scanning at commit and a time-boxed cleanup campaign that counts a secret as fixed only once it has been rotated or revoked.
Platform and infrastructure owners inherit service accounts, bots and API keys that nobody owns, and they understandably hesitate to touch anything for fear of breaking production. What helps them is ownership, expiry dates and safe retirement on a schedule, with dependencies mapped before anything is switched off.
The business digital workforce is the newest and the least visible group. Teams across the enterprise are adopting autonomous agents on their own, whether that is finance reconciling invoices and approving payments, HR screening candidates and answering benefits questions, procurement flagging contract risk, customer support issuing refunds or supply chain planners rebalancing inventory. Each of those agents acts on sensitive data or money with delegated access, which makes this shadow IT again, only with higher stakes. What helps here is a light intake process with risk tiers, so that low-risk agents move quickly and high-risk agents get a real review, together with the ability to pause or revoke any agent fast.
When to converge and when to diverge
There is a useful idea from design thinking that applies here: diverge to explore the options, then converge to decide. In this problem, it means being deliberate about which parts of the work every team should share and which parts each team should do differently.
Converge on the foundation: one inventory, one ownership model, one method for scoring risk and one policy layer that plugs into the identity and access management (IAM) tools you already run, such as identity governance and administration (IGA), privileged access management (PAM) and access management, rather than replacing them. If each team builds its own list, you are back to guessing. Diverge on the fix, because developers, platform teams and business owners don't need the same remediation, and a secrets campaign that works for engineers will not work for a procurement team. Then converge again at the end, so that runtime governance, audit evidence and a single view for security leadership sit on the same foundation however each persona got there.
Before you write requirements
This is the strategy step that comes before detailed requirements and vendor evaluation. Start by measuring the estate, and keep the first pass time-boxed: give discovery weeks rather than quarters, accept that the first inventory will be imperfect and run a quick win in parallel, such as blocking new hardcoded secrets at commit or requiring new agents to register before they go live. Then report a baseline to leadership, agree how you will prioritize and decide where to converge, because requirements get far sharper once you know what you are actually trying to govern.
When you reach evaluation, our non-human identity security platform assessment is a useful next read. And if you want to work through the strategy step with a team that has done it across industries, we would be glad to talk.