Non-Human Identity Security Checklist
A 37-item checklist for service accounts, API keys, tokens and AI agents: inventory, ownership, credential type, rotation, least privilege and monitoring.
Non-human identities are the credentials that software uses to talk to other software: cloud service accounts and roles, API keys, OAuth apps, CI/CD tokens, SSH keys, certificates and, increasingly, AI agents. In most organisations they outnumber people, and many have no owner, no expiry and more access than they need.
This checklist is for security engineers, platform teams and IT leads who want to bring them under control. The download is a CSV with columns for Area, Check, Why it matters, Owner, Status, Evidence and Notes.
How to use it
- Start with the inventory section. The other sections depend on knowing what exists.
- Pick one environment, such as production cloud accounts plus source control, rather than everything at once.
- Assign an owner to each row and record evidence: an export, a policy, a screenshot of a setting.
- Turn each failed check into a ticket with a due date.
The OWASP Non-Human Identities Top 10 is a useful companion: it describes the most common NHI risks, including improper offboarding, secret leakage, overprivileged identities and long-lived secrets.
Inventory
- List every identity type you use.
- Pull identities from each source: cloud IAM, identity provider, source control, CI/CD, secrets manager and SaaS admin consoles.
- Record system, purpose, created date and last-used date.
- Flag identities unused for 90 days or your chosen period.
- Re-run the inventory on a schedule and compare.
Ownership
- Assign a named human owner, person or team, to every identity.
- Record the purpose and the workloads that depend on it.
- Reassign ownership when people change role or leave.
Credential type
| Type | Typical examples | Relative risk if leaked |
|---|---|---|
| Static secret | Cloud access keys, API keys, personal access tokens | Highest: works until someone revokes it |
| Short-lived token | Tokens issued for minutes or hours | Lower: expires quickly |
| Federated | OIDC from CI/CD to cloud, Kubernetes workload identity | Lower: no stored secret to leak |
| Certificate | mTLS client certificates | Depends on lifetime and key storage |
- Prefer federated or short-lived credentials where the platform supports them.
- Require an approved exception for new long-lived cloud access keys.
Rotation
- Set a maximum age for each remaining static credential type.
- Automate rotation where possible, and test it for critical identities.
- Track overdue credentials as findings with owners.
Least privilege
- Compare granted permissions with permissions actually used.
- Remove wildcard and admin-level grants from service identities.
- Scope tokens to specific resources, repositories or projects.
- Review third-party OAuth app and GitHub App permissions.
- Run periodic access reviews for high-privilege identities.
Federation
- Use OIDC federation from CI/CD to cloud instead of stored keys. GitHub Actions, for example, can exchange a short-lived OIDC token for cloud credentials (GitHub Docs: OpenID Connect).
- Restrict the trust policy to specific repositories, branches or environments. A broad trust policy lets any workflow assume the role.
- Use workload identity for Kubernetes workloads instead of mounted static keys.
Secrets in code
- Scan source code and full git history.
- Add pre-commit or push-time scanning.
- Scan CI logs, container images and infrastructure-as-code.
- Revoke and rotate any exposed secret before removing it from code.
- Store secrets in a secrets manager and inject them at runtime.
Offboarding
- Include identities owned by a leaving employee in the offboarding checklist.
- Disable identities for decommissioned services and integrations.
- Disable first, then delete after a waiting period.
AI agents
- Register AI agents and MCP servers as non-human identities with owners.
- Give agents their own credentials rather than a person's token.
Monitoring
- Log authentication and API activity for non-human identities.
- Alert on use from unexpected networks or regions, or at unusual volume.
- Alert on new high-privilege grants to service identities.
- Keep a runbook for a leaked credential: revoke, rotate, review activity, notify.
Next steps
- For the background and a prioritised approach, read the Non-human identity security guide.
- If you run AI agents, continue with the AI Agent Security Assessment.