Start with automated discovery, not spreadsheets or quarterly audits. Build a continuously updated inventory of service accounts, API keys, OAuth grants, machine identities, and AI agent credentials across SaaS, cloud, and internal systems. Prioritise high-risk applications first, then map each identity to an owner, its access scope, and the workloads it serves so governance can begin on real evidence.
Why Continuous Discovery Has to Be Event-Driven, Not Calendar-Driven
Enterprise NHI inventories fail when they are treated as periodic hygiene work instead of a living control. Service accounts, API keys, OAuth grants, machine identities, and agent credentials are created, copied, retired, and repurposed continuously across SaaS, cloud, and internal systems. That means discovery has to keep pace with change, or governance will always lag behind the actual attack surface.
A practical programme starts by targeting the highest-risk applications and identity sources first: cloud consoles, CI/CD pipelines, privileged SaaS integrations, secret stores, and any platform where a credential can reach production workloads. NHIMG’s The State of Non-Human Identity Security reports that 85% of organisations lack full visibility into third-party vendors connected via OAuth apps, which is a strong signal that discovery must include external grants, not just internal accounts. In practice, the inventory is only useful when it can show who owns the identity, where it is used, and what it can reach. In practice, many teams discover their first critical gap only after an app owner has changed, a token has been reused, or an integration has already outlived the system it was meant to support.
How to Build the Discovery Pipeline in Practice
continuous discovery should combine multiple collection paths, because no single source sees every NHI. The best approach is to aggregate cloud APIs, SaaS admin consoles, directory systems, vault telemetry, CI/CD secret scans, and agent runtime logs into one normalised inventory. That inventory should identify the identity type, environment, owning team, linked workload, last-seen activity, and privilege scope, then refresh on change events rather than waiting for a quarterly reconciliation.
- Start with the systems most likely to create hidden blast radius, such as cloud-native permissions, external OAuth grants, shared automation accounts, and secrets embedded in deployment pipelines.
- Normalise records so the same identity is traceable across systems, even when one platform sees it as a token, another as a service principal, and another as a workload credential.
- Attach ownership and business context early, because discovery without accountable ownership creates a catalogue, not governance.
- Use high-risk application tiering to determine rollout order, then expand coverage once the discovery model is stable and the data quality rules are proven.
The inventory also needs a lifecycle signal, not just a presence signal. If a credential is seen in use after its owning service has been decommissioned, or if a grant remains active after the business use case disappears, the discovery pipeline should surface that as an exception requiring action. NHIMG’s Ultimate Guide to NHIs notes that only 5.7% of organisations have full visibility into their service accounts, which is why discovery programmes should be designed to expose unknowns, not merely to document known assets. These controls tend to break down in fragmented SaaS estates where teams can create integrations without central approval, because the source data never converges into one reliable ownership model.
Common Variations and Edge Cases
Tighter discovery often increases operational overhead, so teams have to balance speed of coverage against the burden of false positives and duplicate records. The exact design depends on the environment: cloud-first estates can lean heavily on API-based collection, while older internal platforms may still need directory exports, agent telemetry, or targeted scanning to uncover dormant identities and embedded secrets.
There is no universal standard for how much metadata must be attached at discovery time, but current guidance suggests that ownership, scope, environment, and last-seen usage are the minimum fields that make the inventory actionable. Discovery also gets harder where identities are shared, temporary, or generated automatically by pipelines and agents. In those cases, the discovery process should capture the creation source and renewal path, otherwise teams cannot tell whether an identity is governed, orphaned, or simply invisible. When the environment includes third-party integrations, the risk is usually not the existence of the grant itself, but the absence of a dependable offboarding path when the business relationship changes.
Risk and Threat Considerations
Continuous discovery is a control against hidden privilege, stale access, and credential sprawl. Without it, organisations tend to accumulate dormant service accounts, over-privileged API keys, and OAuth grants that remain active long after the original use case has ended.
Failure mechanism: Attackers and internal misuse both benefit from identities that are undiscovered, unowned, or unmonitored. Once a credential is reused, copied into code, or left connected to a third-party app, the identity can persist outside normal review cycles and become an easy path to production access.
Impact: The result is delayed revocation, weak accountability, and a larger blast radius when a secret is exposed or a supplier integration is abused. NHIMG’s Ultimate Guide to NHIs notes that 79% of organisations have experienced secrets leaks and 97% of NHIs carry excessive privileges, which shows why discovery must feed remediation, not just reporting.
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 CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 — Identity Discovery and Inventory | Continuous discovery and inventory are core to NHI visibility and governance. |
| NHI-02 — Secrets and Credential Management | Discovery must find API keys, tokens and other hidden credentials across systems. | |
| NHI-03 — Ownership and Lifecycle Governance | The question requires mapping each identity to an owner and active use case. | |
| Recommendation — Automate NHI discovery and maintain a continuously refreshed inventory with ownership and scope. Scan SaaS, cloud and CI/CD for exposed NHI credentials and track them centrally. Assign accountable owners and lifecycle state for every discovered NHI. | ||
| CIS Controls v8 | 5.1 — Establish and Maintain an Asset Inventory | Enterprise-scale discovery depends on a complete, continuously updated inventory. |
| 6.3 — Access Control Management | Discovery must reveal who has access and what scope each identity carries. | |
| Recommendation — Maintain a continuously updated inventory of all identities and their owners. Review discovered identities for least privilege and remove unnecessary access paths. | ||
| NIST CSF 2.0 | ID.AM-1 — Physical Devices and Systems Inventoried | Discovery at scale is an inventory problem across the enterprise environment. |
| ID.AM-5 — Assets Prioritized by Business Criticality | The answer prioritises high-risk applications first for rollout. | |
| PR.AC-1 — Identities and Credentials Managed | Discovery supports governance of service accounts, keys, grants and machine identities. | |
| Recommendation — Inventory identity-bearing systems and refresh the catalog continuously. Prioritise discovery coverage for the highest-risk applications and integrations first. Use discovery data to manage identity ownership, scope and credential lifecycle. | ||
Practitioner Guidance
What to prioritise: Build the first discovery wave around the identities most likely to cause enterprise blast radius, namely production-facing cloud credentials, privileged SaaS integrations, CI/CD secrets, and external OAuth grants. If the team cannot explain who owns a high-risk identity and what workload it serves, that identity should move straight into exception handling.
What to verify: Verify that each discovered identity has a unique ownership record, a current access purpose, and a live dependency chain back to the workload or integration that still needs it. A discovery record that lacks one of those three elements is not ready for governance use.
Practitioner takeaway: Continuous discovery works when it produces decisions, not just visibility, so the inventory should be designed to surface orphaned, over-scoped, and externally exposed identities early enough for ownership and revocation to keep up.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 14, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org