Skip to content
TrustHappens
Cybersecurity & Identity

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

  1. Start with the inventory section. The other sections depend on knowing what exists.
  2. Pick one environment, such as production cloud accounts plus source control, rather than everything at once.
  3. Assign an owner to each row and record evidence: an export, a policy, a screenshot of a setting.
  4. 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

TypeTypical examplesRelative risk if leaked
Static secretCloud access keys, API keys, personal access tokensHighest: works until someone revokes it
Short-lived tokenTokens issued for minutes or hoursLower: expires quickly
FederatedOIDC from CI/CD to cloud, Kubernetes workload identityLower: no stored secret to leak
CertificatemTLS client certificatesDepends 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