Identities for software
People are only part of what signs in to an organization's systems. Backup jobs, interfaces, pipelines and assistants hold accounts and credentials too, and because nobody joins or leaves on their behalf, they need owners, purposes and narrow access as deliberately as people do.
The other accounts
All names and identifiers in these examples are fictional. When Harbor Clinic counted its identities for its first access reviewA scheduled or triggered check in which a responsible person looks at access someone already has and decides whether they should keep it. It is also called certification, and it leaves a record of who decided what., it found about four hundred people: staff, contractors and a few volunteers. Then Jordan Ellis in IT ran the same count over the directory, the cloud platform and the patient records system without filtering out anything that was not a person, and the number passed two thousand.
The rest were software. A nightly backup job signed in as svc-backup. The interface that receives blood test results from the outside laboratory had a client ID and secret of its own, the same kind of client credentials an OAuthA framework that lets a person give an application limited access to their resources at another service, using tokens instead of sharing their password. OAuth is about access; OpenID Connect adds sign-in. client uses to authenticate itself. The appointment reminder service held an APIAn application programming interface: a defined way for software to interact with a service. A web API offers endpoints where other programs send HTTP requests. key, a long secret value sent with each request, for the text message provider. The pipeline that deploys the patient portal used a cloud access tokenA token that a client presents to an API to use access it has been granted, usually limited in what it allows and how long it lasts. It authorizes API calls; it does not tell the client who signed in. that an engineer had created from their own account. A new assistant, an AI agent that drafts discharge letters for clinicians, called the records system on their behalf. Each of these acts on the clinic's systems all day and night, and each needed the same three questions that Identities, accounts, and entitlements asked about people: which account is this, what may it do, and who answers for it?
These are usually called non-human identities, or machine identities, and in most organizations they outnumber people many times over. They are also where governance is weakest, because nobody joins or leaves to remind anyone that they exist.
Kinds of software identity
Jordan sorted the two thousand into a few kinds, each with its own habits:
| Kind | Example at the clinic | How it proves itself | Typical risk |
|---|---|---|---|
| Service account | svc-backup in the directory | A password, like a person's account | Broad rights, a password that never changes, used interactively by people |
| API key or client secret | The results interface's client secret, the reminder service's API key | A shared secret sent with each request | Copied into configuration, chat and code; works from anywhere |
| Pipeline token | The deployment pipeline's cloud token | A token stored in the pipeline's settings | Borrowed from a person, so actions are recorded under their name |
| Workload identity | The portal's programs running on the cloud platform | Short-lived credentials the platform issues because it knows which program is asking | Trust conditions written too broadly |
| Agent | The discharge letter assistant | Tokens a clinician delegated to it, so it acts for that clinician | Doing more than the person asked, with the person's authority |
The first three are the oldest and the most common, and they share one weakness: a secret that proves only that the holder has the secret. The last two are newer designs that try to avoid stored secrets, and they bring questions of their own: what exactly the platform vouches for, and whose authority the software is using.
What makes them different
Software identities follow the same ideas as people's, with four differences that change how they are governed.
Nobody is there to prompt. A person can type a password, answer a challenge or approve a sign-in; a backup job at two in the morning cannot. Software must hold or obtain its credential by itself, so the protections built for people, such as passkeys and checks on unfamiliar sign-ins, mostly do not apply.
No event marks their beginning and end. People are hired and leave, and the HR system says so. A service account is created by whoever needed it that afternoon, and when the system it served is retired, nothing tells anyone to remove it. The clinic found forty-one accounts for applications it no longer ran.
Ownership is not automatic. A person answers for their own account. A service account answers to nobody unless someone is named, and Jordan found that a third of the clinic's had no owner anyone could identify, including svc-backup, which held domain administrator rights: control over every account and group in the directory.
And software is often given a person's access to get something working. The deployment pipeline's tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret. carried the engineer's full rights, and the cloud platform's audit log said the engineer deployed the portal at three every morning. Borrowing a person's account makes the records wrong and the access far too broad, and it breaks the day that person leaves.
Governing them like people
The clinic's fix was to hold software identities to the same lifecycle as people, adapted to the differences. Every one now has an owner, a named person or team who answers for it and is asked about it in each access review. Every one has a recorded purpose and the system it serves, so it can be removed when that system goes. Each gets only the access its job needs, which is usually far less than whoever created it had. And each uses the strongest credential the systems it talks to will accept: short-lived credentials where the platform can vouch for the software, and otherwise keys or secrets kept in a vault, a service that stores secrets and releases each one only to the software allowed to use it.
Jordan's team also stopped two habits. People no longer sign in interactively as service accounts, which is the only way svc-backup had been used for anything other than backups. And automation no longer runs on a person's account: the deployment pipeline received an identity of its own, so the records now name the pipeline and the engineer's departure will not stop the deployments.
Token borrowed from an engineer
- Audit log names
- The engineer
- Access
- All of the engineer's rights
- Owner
- Nobody named
- When the engineer leaves
- Deployments stop
Wrong records, far too much access
An identity of its own
- Audit log names
- The pipeline
- Access
- Only deploying the portal
- Owner
- A named team
- When the engineer leaves
- Deployments continue
Records and access match the job
Borrowing a person's account makes the records wrong and the access far too broad.
These steps decide who answers for each software identity and what it may do. How software authenticates without stored secrets, how agents act for people, and how both are traced and retired are covered in depth in Workload and agent identities. The vaults and rotation that protect the secrets software still holds are in Managing secrets for software.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Find the software in your tenant and retire a job that signs in as a personList the clients and accounts that software uses, get a token as a client acting for itself, see a nightly job sign in through a person-shaped account, then lock that account.