Machine identity: how devices and workloads prove who they are and receive access
Understand machine identity as the combination of a nonhuman principal, its proof, and its authorization, then apply lifecycle and peer-verification checks without confusing it with a service-account object.
Machine identity: how devices and workloads prove who they are and receive access
Machine identity is a broad operational term for identity information that distinguishes and authenticates devices, servers, application processes, or automated workloads instead of people. Identity (who or what it is), proof (such as a key, certificate, or token), and authorization (what it may do) are separate. A machine that holds one certificate does not automatically have permission to access every resource.
“Machine identity” is not one account type with boundaries that are consistent across products and standards. The NIST glossary treats a device or process as an entity in some contexts, and NIST SP 800-162 describes non-person entities (NPEs), such as automated services or applications, as possible access subjects. By contrast, NIST Digital Identity Guidelines SP 800-63-4 explicitly exclude machine-to-machine authentication and API calls from their scope. Do not apply human identity-proofing and authentication requirements to machine identities without considering context; follow the system’s trust model and applicable security standards.
Common kinds of machine identity
| Target | Example identity | What to verify |
|---|---|---|
| Laptop or mobile device | Device enrollment ID, device certificate | Enrollment state, owning organization, and loss or reset handling |
| Server or virtual machine | Cloud instance role, host certificate | Whether the runtime, image, and management plane are trusted |
| Container or service process | Service account, SPIFFE ID, short-lived token | Which workload actually requested the credential |
| CI/CD automation | Pipeline federation subject, deployment role | Whether request context such as repository, environment, and branch meets allowed conditions |
| Network or security appliance | Device certificate, management-plane account | Whether the actor changing configuration can be tied to an accountable operator |
Terminology differs by provider. A service account can mean an account object that grants workload permissions in some clouds, while a certificate can serve as proof of machine identity. Machine identity is a broader concern spanning accounts, certificates, keys, trust relationships, and their lifecycle.
A secure lifecycle for machine identities
**Identify the target and assign an owner.** Record the device or process’s purpose, responsible team, environment, origin, and lifecycle end condition, not just its name.
**Verify the runtime before issuing identity.** Decide what evidence establishes that the requester is the intended process, whether it runs on a cloud instance, in a container, on an operating system, or in a CI pipeline. Isolate processes so that sharing a host does not give unrelated processes the same access.
**Deliver credentials securely and keep them short-lived.** When available, consider managed metadata services, workload federation, or automatic certificate issuance that avoids distributing long-term secrets in code. If a secret is unavoidable, define storage, access, rotation, and leak-response procedures.
**Grant only the least privilege needed for the target and task.** Separate development, test, and production environments and permissions between services. A service identity should not also have administrator privileges on other systems or broad permission to issue tokens.
**Verify the peer’s identity too.** Do not only check the party presenting a certificate or token. Validate the peer service’s proof and issuer, and manage trust anchors. Connect different trust domains or issuers explicitly.
**Automate revocation and replacement.** When a deployment ends, a node is replaced, a container stops, or an owning team changes, confirm that identity, certificates, keys, permissions, and sessions expire together. Changing a user’s password does not resolve a machine credential leak.
**Track usage and anomalies.** Monitor whether an automation identity accesses only expected environments and resources, and look for unexpected locations, times, call volumes, or permission changes. Link workload and deployment or request identifiers in logs.
Example: mutual TLS between services
Suppose a fictional payments API and order service communicate using mutual TLS (mTLS). A certificate authority issues a short-lived certificate to the order service running in a verified runtime. The payments API checks the certificate chain and the order service’s identity, then uses a separate authorization policy to decide which API actions to allow. When the order service is retired, its certificate expires and the payments API policy removes that identity. A valid certificate proves the network peer’s identity; it does not mean the order service may use every payment function. This is an illustrative example, not a deployment that was tested.
Selection and verification checklist
At what level should identities distinguish a person, device, or execution unit?
Where are credentials issued, and what permissions protect them?
Which issuer or attributes establish trust across environments, organizations, or clouds?
Are there logs and a retirement procedure to detect identity cloning, impersonation, or misuse?
Can short-lived credentials and automatic rotation replace long-term keys?
Could a malicious process on the same host access workload metadata or keys?
SPIFFE is one example of an open framework for workload identity. Its concepts document explains that workloads can be identified by a SPIFFE ID and present that identity in a certificate (X.509-SVID) or JWT-SVID. The Workload API can provide short-lived keys and certificates as well as trust bundles. This is a standardized model for a particular ecosystem, not a universal answer for every device identity or cloud authentication system.
References
[NIST glossary: Entity](https://csrc.nist.gov/glossary/term/entity) — entity definitions depend on the context of their source.
[NIST SP 800-162: ABAC definition and considerations](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-162.pdf) — access subjects can include people and non-person entities.
[NIST SP 800-63-4 Digital Identity Guidelines](https://pages.nist.gov/800-63-4/sp800-63.html) — scope of human-focused guidance and its exclusion of M2M.
[SPIFFE concepts](https://spiffe.io/docs/latest/spiffe-about/spiffe-concepts/) — SPIFFE IDs, SVIDs, and the Workload API.