Subscribe to the Non-Human & AI Identity Journal

What is the first step in building a modern NHI security programme?

Mapping your identity landscape. You cannot govern, monitor, or protect identities you do not know exist. Discovery requires going beyond IAM dashboards to include secrets scanning, pipeline inspection, infrastructure-as-code analysis, and network traffic analysis. The output is an authoritative inventory — the foundation for every subsequent NHI governance capability.

Why This Matters for Security Teams

The first step is discovery because every other control depends on an accurate identity inventory. That matters even more for modern environments, where service accounts, API keys, certificates, CI/CD tokens, and workload identities often sit outside traditional IAM reporting. The practical risk is simple: unknown identities cannot be rotated, reviewed, or revoked. NHI Management Group research shows that only 5.7% of organisations have full visibility into their service accounts, which is why discovery is not a housekeeping task but a security prerequisite. See the broader context in Ultimate Guide to NHIs and the detailed identity model in Ultimate Guide to NHIs — What are Non-Human Identities.

This also aligns with the visibility-first logic in the NIST Cybersecurity Framework 2.0, where asset and identity understanding precede effective protection and detection. In practice, many security teams encounter credential abuse only after an outage, breach, or compliance failure has already exposed the gap.

How It Works in Practice

A workable discovery programme goes beyond an IAM export. Start by combining four sources: secrets scanning in code repositories and artifact stores, pipeline inspection across CI/CD and build agents, infrastructure-as-code analysis for embedded credentials and service bindings, and network traffic analysis to reveal live machine-to-machine authentication paths. That mix is essential because NHIs are often created and used outside formal request flows, then forgotten after deployment.

Discovery should produce an authoritative inventory with enough context to support risk decisions, not just a list of strings. At minimum, record identity type, owner, purpose, environment, last-seen activity, credential source, rotation status, privilege scope, and dependency relationships. Then classify each identity by business criticality and exposure. This is where best practice is still evolving, but current guidance suggests pairing inventory with continuous verification rather than treating discovery as a one-time project.

For practitioners, the useful question is not simply “what exists?” but “what is still active, where is it used, and who can revoke it safely?” That is especially important for automation-heavy estates. The attack patterns documented in Top 10 NHI Issues show why unmanaged credentials and overbroad access become persistent liabilities. The NIST Cybersecurity Framework 2.0 is useful here because it encourages structured identification, protection, and continuous improvement rather than ad hoc cleanup.

  • Scan source control, build logs, container images, and vault exports for secrets.
  • Inspect CI/CD and automation platforms for service accounts and token issuance points.
  • Map workload-to-workload trust using traffic, DNS, and authentication logs.
  • Enrich each identity with owner, scope, expiry, and rotation metadata.

These controls tend to break down in sprawling multi-cloud estates with unmanaged developer tooling because identities are created faster than they can be reconciled.

Common Variations and Edge Cases

Tighter discovery often increases operational overhead, requiring organisations to balance visibility against developer friction and noisy findings. That tradeoff is real, especially in high-churn environments where ephemeral build runners, short-lived containers, and machine-generated credentials appear and disappear quickly. The goal is not perfect completeness on day one, but continuous reduction of blind spots.

One common edge case is federated third-party access. OAuth grants, partner integrations, and vendor-managed service accounts may not appear in internal IAM reports, so discovery needs to include external trust relationships and delegated permissions. Another is legacy infrastructure, where long-lived credentials may be hard-coded into scripts or embedded in maintenance tooling. In those environments, discovery often reveals that the hardest problem is not finding the secret, but finding every place it is used before rotation.

There is no universal standard for discovery depth yet, but the safe minimum is to identify every identity that can authenticate, every system that can mint a credential, and every dependency that would fail if that credential changed. For further context on the attack surface created by hidden identities, see 52 NHI Breaches Analysis and the incident context in Cisco DevHub NHI breach. Discovery succeeds when it is treated as an always-on control, not a one-off audit exercise.

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 and CSA MAESTRO address the attack and risk surface, while 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 is the prerequisite for managing NHI inventory and exposure.
NIST CSF 2.0 ID.AM Asset management aligns with discovering all machine identities and dependencies.
CSA MAESTRO MAESTRO is relevant because agent and workload identities need lifecycle visibility from the start.

Establish governance to discover, classify, and monitor autonomous workloads before granting runtime authority.

Related resources from NHI Mgmt Group