What is your identity attack surface, and how do you measure it?
Your identity attack surface is the access your identities hold but never use. This post explains it and shows how to measure and shrink it.
Your identity attack surface is the access that your identities hold but do not use.
An identity is a person or a machine. A user is a person. A service principal, a managed identity, and an agent identity are machines. Each identity holds permissions. Each identity uses only some of them.
The gap between granted access and used access is the attack surface. An attacker who takes over an identity gets all of its access, not only the part the identity uses. So unused access is pure risk. It gives an attacker room to move. It gives the business no value in return.
Four things make the surface grow
- Standing privilege. An identity holds a high role all the time. It does not need the role most of the time.
- Unused permissions. An identity holds permissions it never calls.
- Toxic combinations. Two safe permissions together let an identity raise its own privilege.
- Non-human sprawl. Machines outnumber people. Nobody reviews machine access. Nobody offboards a machine.
How to measure it
Measure three numbers for every identity:
- Granted access. Count the permissions the identity holds.
- Used access. Count the permissions the identity called in a set time, for example 90 days.
- Unused access. Subtract used access from granted access.
Then give each identity one risk score. The score folds in the privilege tier, the unused permission share, the blast radius, the dormancy, and the open findings. You sort by the score. You start at the top of the list.
How to shrink it
- Remove permissions that an identity never uses.
- Change standing privilege to just-in-time access. The identity activates the role only when it needs it.
- Break toxic combinations. Move the two permissions to two identities, or to two roles.
- Review non-human identities on a schedule. Remove access from a machine that no longer runs.
Why it matters
You cannot defend access that you cannot see. When you measure the gap between granted and used access, you find two things: the access an attacker wants, and the access the business does not need. You remove it. Your attack surface gets smaller. Every future intrusion has less room to spread.
