Non-Human Identity Security: Inventory, Ownership and Expiry

Non-human identity security starts with knowing what each automated account can reach, who answers for it, and when its access should end. Link each identity to its credentials and grants. Track credential expiry, authorization end and review due date separately.

Written by
Harvey Singh
Published
Reading time
5 min
A quarterly finance export needs an accountable owner and a separate end condition for its access

Key points

  • Keep the identity, its credentials and its grants as linked records. Rotating a secret does not answer whether the account still needs access.
  • Name an accountable owner who can explain the workload and arrange a safe change. Reassign ownership when that person leaves.
  • Credential expiry, authorization end and review due date serve different jobs. A review reminder does not stop access.
  • Check the longest expected job cycle before treating an account as dormant. Missing history is an evidence gap.

What does non-human identity security protect?

Non-human identity security protects the accounts that software uses to access your systems and data. A payroll export, deployment pipeline or backup service needs an identity even when nobody signs in at a keyboard.

Start by separating the account from the credential it presents. The Cloud Security Alliance's NHI definition distinguishes the identity subject from its authentication mechanism. One service account can hold several credentials. Replacing one key does not create a new business purpose or remove the account's permissions.

For OAuth, keep the client credential distinct from the access token. RFC 6749 describes tokens that let clients access protected resources. Track refresh tokens where that flow uses them, too. A short access-token lifetime does not prove the client has lost the ability to obtain another token.

Your non-human identity inventory should answer an operational question: can you explain this account's access and safely change it? A list of secret names cannot answer that alone.

What belongs in the inventory?

Keep linked records for the identity, each credential and each access grant. Use stable source-system IDs, because names change and different accounts can share a label.

Record Fields to capture Question it answers
Identity Source, tenant, principal ID, type, workload, environment What runs under this account?
Ownership Accountable person, backup contact, purpose, acceptance date Who can defend and change its access?
Credential Credential ID, mechanism, vault reference, expiry How does it authenticate?
Grant Grant ID, resource, permission, approval, end condition What can it reach, and why?
Evidence Activity window, expected job cycle, review date, change result What supports the decision?

Store references to secrets, never secret values, in the review record. If the provider exposes no stable ID, document a composite key from source fields. Keep production and test identities separate even when the workload name matches.

Export the population from each source you include. Compare its principal and grant IDs with your review queue. Investigate missing records, extra records and duplicates. Equal totals alone cannot establish that you reviewed the right accounts. List excluded systems and collection failures beside the inventory; an inaccessible source is a coverage gap.

One identity links to separate credential and grant records using stable source system IDs
Link the identity to its credential and grant records without copying secret values.

Who should own a service account?

Choose a person who can explain the workload, approve its need and arrange a safe change. Record a backup contact for absences. The creator's name is a lead, not proof of current ownership.

Ask the proposed owner to confirm the workload, resources, required permissions and expected run schedule. Record that acceptance. A team mailbox helps with routing, but the record still needs someone accountable for the decision.

When an owner leaves or changes jobs, send the record to the responsible manager for reassignment. Do not assume the service should stop because its creator left. Equally, do not keep privileged access forever because nobody claims it.

Set a deadline for the ownership decision and an escalation contact. Before any suspension, identify production dependencies and a recovery method. If the business keeps the access temporarily, document who authorized that choice and when they must reconsider it.

Which expiry date matters?

Track credential expiry, authorization end and review due date separately. Each clock answers a different question.

Credential expiry limits how long a specific secret or certificate remains valid. Authorization end marks when the workload's access should stop. Review due date tells a person to reconsider that access. A calendar reminder enforces neither of the other two.

Consider a fictional quarterly finance export. Its credential expires on Oct 20. Its migration-only grant should end on Oct 31. Its next review is due on Nov 30. Renewing the credential must not silently extend the migration grant to the next review.

Credential expiry on October 20, authorization end on October 31 and review due on November 30 are different controls
Renewing a credential does not extend the authorization end date or replace the access review.

Prefer short-lived credentials where the platform supports them, while still reviewing their permissions. RFC 9700 recommends minimum required token privileges and asymmetric client authentication, such as mutual TLS or signed JWTs. Those controls do not establish a business end date. Document which system enforces each end condition and who verifies the result.

How do you retire an apparently dormant integration safely?

Check dependencies and activity coverage before removing access. No observed sign-in is insufficient when the available history excludes the workload's expected run.

Suppose the finance export last ran on Sep 30, and your logs cover only October. An empty October window tells you little about a quarterly job. Ask for the schedule, job history and downstream consumers. If those records are unavailable, mark activity unknown and escalate the evidence gap.

Use this sequence once the owner confirms retirement:

  1. Capture the scope. Save the principal, credential and grant IDs, the decision and the affected resources.
  2. Plan the change. Name the operator, change window, health checks and recovery method. Check for shared credentials before touching them.
  3. Remove access at its source. Follow the provider's controls for credentials and grants. Check its behavior for previously issued tokens.
  4. Test the result. Confirm the retired path fails. Validate required workloads with a controlled run or observe their next expected execution. Keep the record pending until validation finishes. Record failed or partial changes and retry them.
  5. Close the record. Keep the decision and execution evidence together. Delete the identity only after dependency and retention checks permit it.

An OAuth permission audit helps identify grants that need a separate decision. Do not treat a rotated secret, a closed ticket or an approved review row as proof of removal.

Where should you start the next review?

Start with unowned identities that reach sensitive resources or hold broad write permissions. Then check overdue end conditions, unknown activity and access that exceeds the workload's stated purpose.

Compare the retained permissions with the work the owner describes. Read access to one export folder deserves a different decision from write access across a directory. Ask for narrower access when the existing grant exceeds the job. Set the next review around the workload's change rate and risk, and reopen it when ownership or permissions change.

EnscureX's non-human identity governance connects account classification with last sign-in and reach. Non-human accounts sit in the same graph as people, making their reach comparable. Those facts help you choose what to inspect. They do not establish that every external secret rotates or that an expiry date enforces removal.

Use access reviews to record the decision, then verify the change in the system that controls access. Pick one unowned, high-reach account first. Finish its record with an owner, an end condition and evidence of what happened.

Frequently asked questions

Does rotating a secret remove an identity's permissions?

No. Rotation changes a credential. Review the account's grants separately, and verify how the provider handles tokens issued before the change.

How long should you keep activity history?

Choose a window that covers the workload's longest expected cycle and your evidence needs. If retention falls short, record the gap and seek job records before deciding.

Do AI agents need different ownership rules?

Name a person who answers for the agent's purpose and access. Link its identity to its credentials, allowed resources and retirement conditions, as you would for another workload.

Where this work happens in EnscureX

Sources

  1. Cloud Security Alliance, Defining Non-Human Identity (July 2026)
  2. IETF, RFC 6749: The OAuth 2.0 Authorization Framework (October 2012)
  3. IETF, RFC 9700: Best Current Practice for OAuth 2.0 Security (January 2025)
EnscureX

See this on your own tenant.