TL;DR: StrongDM’s IAM best-practices guide argues for Zero Trust, least privilege, JIT access, RBAC and ABAC, auditing, and centralized logging as the baseline for reducing access risk, and it cites a study showing 85% of credentials were unused in the last 90 days. The broader lesson is that IAM hygiene now has to extend to non-human identities, not just workforce access.
At a glance
What this is: This is an IAM best-practices guide that frames Zero Trust, least privilege, JIT access, RBAC, ABAC, auditing, and logging as core controls for reducing access risk.
Why it matters: For IAM and NHI practitioners, the post matters because the same control stack used for human users increasingly has to govern service accounts, tokens, and other non-human identities.
By the numbers:
- A StrongDM study showed that, on average, 85% of credentials had not been used in the last 90 days.
- Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them.
- Only 5.7% of organisations have full visibility into their service accounts.
- 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools.
👉 Read StrongDM's IAM best practices guide for access control, JIT, and audit workflows
Context
IAM best practices are often written for people, but the real control gap now extends to non-human identities such as service accounts, API keys, tokens, and workload credentials. In that environment, the question is not whether access exists, but whether it is continuously verified, limited, and audited across the full identity lifecycle.
The article’s core position is that Zero Trust, least privilege, JIT access, RBAC, ABAC, logging, and automation should be treated as one operating model rather than separate checkboxes. That maps directly to NHI governance, where identity sprawl and standing privilege are usually the conditions that create exposure. For a deeper baseline on the identity types involved, see the Ultimate Guide to NHIs.
The starting position in the article is typical of enterprise IAM guidance: broad, control-oriented, and focused on access reduction. What is atypical is the explicit acknowledgement that traditional PAM deployments can leave gaps when access needs are temporary, distributed, and increasingly machine-driven.
Key questions
Q: How should security teams govern non-human identities with IAM controls?
A: Treat non-human identities as first-class principals. Apply least privilege, time-bounded access, rotation, owner assignment, and recurring review. The key is to control the full lifecycle of service accounts, API keys, tokens, and certificates, not just their initial authentication. For a baseline reference, use the Ultimate Guide to NHIs.
Q: When does just-in-time access reduce risk for machine identities?
A: JIT access reduces risk when the privilege is genuinely temporary, the request is policy-checked, and revocation is automatic. It works best for admin tasks, troubleshooting, and scoped automation. If the underlying account still has broad standing permissions, JIT only shortens exposure without fixing the governance problem.
Q: What is the difference between RBAC and ABAC for NHI authorization?
A: RBAC grants access by role, while ABAC adds policy rules based on attributes such as environment, workload, time, or request context. RBAC is simpler for stable access patterns. ABAC is better when machine identities need narrower, more dynamic permissions. Most teams need both, plus lifecycle controls, to avoid over-provisioning.
Q: Why do non-human identities create more IAM risk than many teams expect?
A: Because they are numerous, long-lived, and often poorly owned. Credentials can be embedded in code, reused across systems, or left active after the original purpose ends. That creates hidden trust paths that traditional user-centric IAM processes do not fully see or retire.
Technical breakdown
Zero Trust and JIT access for ephemeral identity requests
Zero Trust assumes breach and forces continuous verification before access is granted. In NHI environments, that matters because service accounts and agents often reuse credentials far longer than a human session would last. Just-in-time access reduces exposure by issuing privilege only when needed, then removing it after the task completes. The mechanism works best when identity, device, workload context, and policy are checked at request time rather than inherited from a prior trust decision. That shifts security from static permission management to time-bounded authorization.
Practical implication: Practitioners should replace standing access with time-limited issuance and revoke automatically at task completion.
RBAC and ABAC as complementary controls for NHI authorization
RBAC assigns permissions by role, while ABAC evaluates attributes such as department, environment, time, or workload context. RBAC is efficient for stable identity groups, but it becomes coarse when NHIs need narrow, task-specific access. ABAC adds precision, yet it can become hard to maintain if teams over-model every condition. Used together, the two models let teams establish a stable baseline with roles and then tighten access through attributes and policy rules. That combination is often the practical middle ground for machine identities that change scope faster than human users.
Practical implication: Use RBAC for baseline entitlements and ABAC for contextual narrowing, especially where machine access changes by environment or task.
Audit logs, orphaned accounts, and the access-review problem
Regular auditing is the control that exposes drift between intended access and actual use. In practice, organizations accumulate orphaned accounts, stale permissions, and unused credentials because identity creation is easier than identity retirement. Centralized logs help by making access events searchable across systems, which improves review quality and supports deprovisioning. For NHIs, audit depth matters more than volume because a single forgotten token can outlive the system that created it. The architecture is only secure if review and revocation keep pace with provisioning.
Practical implication: Build recurring access reviews around real usage data, not just entitlement lists, and tie findings to automatic revocation.
Threat narrative
Attacker objective: The objective is to convert stale identity trust into durable access that can be reused across systems without triggering immediate detection.
- Entry begins when an attacker finds a remembered credential, unused token, or long-lived access path that bypasses repeated verification.
- Escalation follows when over-privileged access or weak role boundaries let the attacker move from a low-value account to broader systems.
- Impact occurs when the attacker uses that standing trust to reach sensitive data, alter configurations, or persist through hidden non-human identities.
Breaches seen in the wild
- IOS app secrets leakage report — iOS apps leaking hardcoded secrets and credentials endangering user privacy.
- Cisco DevHub NHI breach — IntelBroker exploited exposed Cisco credentials, API tokens and keys in DevHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Identity governance is becoming NHI governance. The article is framed as a human IAM best-practices guide, but the same controls now have to govern workloads, tokens, and autonomous agents. Static access reviews and periodic password discipline are no longer sufficient when machine identities outnumber people and can act continuously. Practitioners should treat identity programs as cross-domain controls that cover every principal, not just employees.
Standing privilege is the real design flaw, not lack of tooling. The guide correctly points toward least privilege and JIT access, but the deeper issue is persistent access that remains valid after the original business need has passed. That is where NHI risk compounds fastest. A control model that cannot retire access cleanly will always lag behind machine sprawl, so teams should prioritize revocation, TTLs, and time-bound trust.
Ephemeral credential trust debt is now a governance concept worth naming. Temporary access sounds safer, but each short-lived credential still creates a trust assumption that must be issued, observed, and revoked correctly. If teams add JIT without lifecycle controls, they only shorten the attack window instead of reducing the blast radius. Practitioners should measure whether their controls reduce standing trust or merely reshuffle it.
Logging without identity lifecycle control only improves hindsight. Centralized logs help detect abuse, but they do not prevent stale NHIs from remaining active long after owners have moved on or systems have changed. That is why auditing must be paired with automated deprovisioning and credential rotation. The right question is not whether access was logged, but whether it was still supposed to exist.
RBAC and ABAC are necessary, but neither solves non-human overreach alone. The article’s control mix reflects modern IAM practice, yet machine identities need tighter contextual policy than human roles usually deliver. That means environment-aware rules, scoped permissions, and explicit lifecycle ownership. Practitioners should use RBAC and ABAC as enforcement layers, not as substitutes for NHI governance.
From our research:
- Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them, according to the Ultimate Guide to NHIs.
- 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
- For a lifecycle-focused follow-on, NHI Lifecycle Management Guide explains how provisioning, rotation, and offboarding should work together.
What this signals
Ephemeral credential trust debt: short-lived access reduces exposure only if issuance, observation, and revocation all work at machine speed. That means teams should stop treating JIT as a standalone control and start treating it as part of a broader lifecycle discipline that includes ownership, expiry, and automated cleanup.
With 97% of NHIs carrying excessive privileges, according to our research, the governance gap is structural rather than procedural. Security teams should expect machine identities to expose privilege creep faster than human users and should design for continuous entitlement reduction.
Enterprises that already centralize logs should now connect those logs to revocation workflows and ownership records. The next maturity step is not better visibility alone, but the ability to prove that a credential was both used correctly and retired correctly.
For practitioners
- Implement continuous rotation policies for all NHI secrets Set rotation by credential class and system criticality, then verify that service accounts, API keys, and tokens are rotated on schedule and revoked when no longer needed.
- Replace standing access with JIT entitlements for privileged tasks Use time-bounded elevation for admin, troubleshooting, and automation workflows, and require policy checks at issuance so access expires automatically after the task completes.
- Create a monthly NHI access review process Review active non-human identities against owner, purpose, last-used date, and privilege scope, then remove orphaned credentials and unused entitlements before they accumulate.
- Centralize logs for identity decisions and credential events Stream authentication, authorization, and revocation events into one reviewable system so you can tie access grants to actual usage and prove when credentials were retired.
- Map machine identities to lifecycle owners Assign each NHI a business owner, technical owner, and retirement trigger so no credential persists simply because no one feels accountable for it.
Key takeaways
- IAM best practices only reduce NHI risk when they extend beyond human users to service accounts, tokens, and machine credentials.
- The most durable exposure comes from standing privilege, stale secrets, and weak offboarding rather than from one-off authentication failures.
- Practitioners should pair Zero Trust, JIT access, and access reviews with rotation and lifecycle ownership to shrink the attack surface.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Rotation and offboarding are central to the article's access-reduction advice. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege and access review align directly with controlled authorisation. |
| NIST Zero Trust (SP 800-207) | Zero Trust and continuous verification are the article's main operating model. |
Audit NHI rotation and revocation workflows, then eliminate any credential with no expiry or owner.
Key terms
- Non-Human Identity: A non-human identity is a machine or workload credential used by software instead of a person. It includes service accounts, API keys, tokens, certificates, bots, and AI agents. These identities often outnumber users and require explicit ownership, lifecycle control, and revocation processes.
- Just-in-Time Access: Just-in-time access is a temporary privilege model that grants permissions only when they are needed and removes them after the task ends. In NHI governance, it reduces standing access but only works well when issuance, policy checks, and automatic expiry are enforced consistently.
- Role-Based Access Control: Role-based access control assigns permissions according to a predefined role, such as administrator or analyst. It is useful for stable access patterns, but it can become too coarse for machine identities that need narrower, task-specific permissions across changing environments.
- Attribute-Based Access Control: Attribute-based access control makes access decisions using attributes such as environment, time, department, or workload context. It gives security teams more precision than roles alone, but it must be governed carefully to avoid policy sprawl and brittle entitlement design.
Deepen your knowledge
Identity lifecycle, least privilege, and just-in-time access are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are adapting IAM controls for service accounts and machine identities, it is worth exploring.
This post draws on content published by StrongDM: 11 Identity and Access Management (IAM) Best Practices in 2026. Read the original.
Published by the NHIMG editorial team on 2025-10-17.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org