By NHI Mgmt Group Editorial TeamDomain: Best PracticesSource: Orchid SecurityPublished April 20, 2026

TL;DR: Application sprawl, hardcoded credentials, weak authorization visibility, and ungoverned AI agents leave identity teams blind to where real enforcement happens, according to Orchid Security. The practical problem is not directory coverage but application-level identity behaviour that conventional IAM, IGA, and SSO reporting still cannot reliably prove or control.


At a glance

What this is: The article argues that the real identity gap sits inside applications, where hidden accounts, embedded secrets, and dynamic AI agent permissions escape conventional IAM visibility.

Why it matters: This matters because IAM teams, IGA leads, PAM teams, and identity architects must govern what actually enforces access, not just what is declared in directories and dashboards.

By the numbers:

👉 Read Orchid Security's analysis of application identity dark matter and hidden enforcement paths


Context

Application identity dark matter is the collection of identities, credentials, and access paths that exist inside applications but never appear cleanly in directory, IGA, or IdP reporting. In practice, that includes local accounts, embedded secrets, legacy auth paths, and application-side authorization rules that determine real access.

The governance gap is not just discovery. Identity teams need to know how each application authenticates, what credentials it trusts, where authorization decisions are made, and whether non-human identities such as service accounts and AI agents are actually constrained at runtime. That is where conventional identity programmes typically lose control.

Orchid Security uses the article to argue that visibility alone is not enough. The operational challenge is to understand enforcement inside the application estate, which is why the discussion belongs in NHI governance, application access control, and emerging AI agent oversight.


Key questions

Q: How should security teams govern hidden identities inside application estates?

A: Start by inventorying every application that issues or consumes identity, then map where authentication and authorisation actually occur. The key is to govern runtime enforcement, not just directory records. That means local accounts, embedded secrets, fallback login paths, and application-side roles all belong in the control scope.

Q: Why do application-side authorization paths undermine least privilege?

A: Because least privilege can only be proven where access is actually enforced. If the application uses local roles, fallback accounts, or custom permission logic that differs from the IdP and IGA layers, then reviews can certify a policy that the system does not really follow.

Q: What breaks when machine credentials are not rotated?

A: When machine credentials are not rotated, stale access accumulates and the organisation loses confidence that the secret still reflects the intended scope. Old credentials can survive after personnel, vendors, or applications change. That turns a small administrative miss into a broad exposure problem.

Q: Who should be accountable when an AI agent or service account causes access drift?

A: The accountable party should be the human or team that authorised the identity and owns the business process behind it. The agent cannot own its own lifecycle in a governance sense. Accountability must stay with a human owner who can approve, revoke, or re-scope access when usage changes.


Technical breakdown

Application identity dark matter and hidden enforcement paths

Identity dark matter describes the gap between what central IAM can see and what applications actually enforce. A directory may know about users and an IdP may know about SSO, but neither fully captures local accounts, custom permission logic, embedded credentials, or fallback authentication paths inside legacy and bespoke apps. That creates a control plane split: governance exists at the front door, while access decisions happen deeper in the application. The result is that identity reviews can certify a model that is not the one really in force. Practical mapping therefore has to include application-specific authentication and authorization flows, not just enterprise policy statements.

Practical implication: map where each application makes access decisions and treat that as part of the control surface, not an implementation detail.

Hardcoded credentials and runtime secret exposure

Hardcoded credentials remain dangerous because they decouple authentication from lifecycle control. Once a password, API key, or service account secret is embedded in code, scripts, or binaries, central IAM may lose sight of where it is used, who can extract it, and whether it has been rotated. Static scanning helps, but it misses runtime behaviour, compiled artefacts, and operational drift in long-lived applications. That means the real issue is not just secret storage, but secret governability across the application estate. Continuous credential hygiene needs runtime confirmation, because a secret that still works in production is still an identity with standing value.

Practical implication: extend secret discovery into runtime validation and rotation tracking across code, deployment artefacts, and live application behaviour.

Authorization behaviour after authentication

Many identity programmes stop at successful login, but risk often emerges after the session is established. Applications may contain local roles, session persistence, custom entitlement checks, or legacy fallback paths that diverge from the policy the IdP enforces. This is why a clean SSO dashboard can coexist with excessive access inside the application. The real control question is whether authorisation behaviour matches declared policy, not whether the policy exists on paper. For NHI governance, that matters even more because service accounts and AI agents often exercise permissions without a human present to spot abnormal paths.

Practical implication: instrument entitlement use and permission invocation, not just authentication events, so mismatches between policy and runtime access become visible.


Threat narrative

Attacker objective: The objective is to exploit ungoverned application-level identity paths to reach sensitive systems while remaining outside normal IAM visibility.

  1. Entry occurs through hidden application paths such as hardcoded credentials, fallback auth, or unmanaged local accounts that bypass central identity controls.
  2. Escalation follows when the attacker or ungoverned actor uses permissive application-side authorization logic to reach resources that the IdP and IGA layers do not fully govern.
  3. Impact is achieved through data access, privilege expansion, or sustained hidden access inside applications that continue to trust the exposed identity path.

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 dark matter is now an enterprise control problem, not just a discovery problem. Directory completeness does not equal application governance, because real access decisions often happen inside the application layer. That means IAM programmes that stop at SSO, IGA, or provisioning coverage are measuring the wrong surface. The practitioner conclusion is that identity estate mapping must include enforcement paths, not just assigned entitlements.

Embedded credentials create trust that central identity tooling cannot continuously justify. Hardcoded passwords, API keys, and service account secrets turn authentication into a static artefact rather than a governed lifecycle. Once those secrets live in code, scripts, or binaries, the assurance model depends on discovery, rotation, and runtime verification, not on directory records. The practitioner conclusion is that secret governability is as important as secret storage.

Authorization blind spots are the point where least privilege stops being provable. If an application can bypass the IdP through fallback paths or local roles, then access reviews certify a policy layer rather than the enforcement layer. That failure mode explains why many access programmes look clean on paper but still leave broad runtime privilege in place. The practitioner conclusion is that application-side authorization behaviour must be observable if least privilege is to mean anything.

AI agents turn the hidden-application problem into an active identity governance issue. A software actor with application permissions does not just consume access, it can execute at runtime with context and changing conditions. That means the same hidden enforcement gaps that affect service accounts can also affect agentic workflows, but with less predictability and more blast-radius uncertainty. The practitioner conclusion is that AI agent identity must be governed as part of the same application estate view.

Application identity dark matter is the right named concept for this category of failure. It captures the mass of identities, secrets, and access logic that exist outside directory visibility but still shape enterprise risk. The insight is not simply that these assets are missing, but that they are operationally decisive while remaining administratively invisible. The practitioner conclusion is to treat this as a standing governance domain, not an audit surprise.

From our research:

  • Only 5.7% of organisations have full visibility into their service accounts, according to the Ultimate Guide to NHIs.
  • Only 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to the same guide.
  • For a broader lifecycle view, the Ultimate Guide to NHIs ties visibility gaps to rotation, offboarding, and privilege control.

What this signals

Application-level visibility will become the deciding control boundary for identity teams. Directory coverage will continue to improve, but that will not close the gap if applications still enforce access through hidden roles, local accounts, and fallback paths. Teams should expect more pressure to prove enforcement, not just configuration, across the application estate.

Identity dark matter will increasingly include machine actors, not just forgotten human paths. As service accounts and AI agents take on more application permissions, the same hidden enforcement problems will expand into NHI governance. Programmes that cannot trace runtime access back to a governed identity chain will struggle to defend their least-privilege claims.

With 79% of organisations reporting secrets leaks and 77% of those incidents causing tangible damage, per the Ultimate Guide to NHIs, secret hygiene has to move from periodic review into continuous operational control.


For practitioners

  • Build an application identity inventory Document every application that authenticates users or workloads, including custom apps, legacy tools, and disconnected systems. Record whether it uses SSO, local accounts, legacy protocols, embedded secrets, or external identity integrations that were never fully configured.
  • Find and eliminate embedded credentials Scan code repositories, deployment scripts, configuration files, and binaries for hardcoded passwords, API keys, and service account secrets. Pair discovery with scheduled rotation and revocation so a found secret cannot remain valid indefinitely.
  • Test enforcement at the application layer Validate whether applications actually honour MFA, SSO, and role restrictions by exercising fallback paths, local admin accounts, and legacy authentication routes in controlled testing.
  • Instrument authorization behaviour Capture which entitlements are used, which permissions are invoked, and which resources are reached after authentication. Use that evidence to identify application-side privilege that is invisible in IGA reports.
  • Extend governance to service accounts and AI agents Treat machine identities as application actors with their own lifecycle, runtime permissions, and audit requirements. Require traceability for every machine-to-machine or agent-driven action back to a governed identity chain.

Key takeaways

  • The core problem is not directory blindness but application blindness, where real access decisions happen outside conventional IAM control points.
  • Hidden credentials, fallback authentication, and custom authorization logic create persistent risk that static reports do not reveal.
  • Identity teams need to govern runtime enforcement across users, service accounts, and AI agents if they want least privilege to be provable.

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 MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Hidden application identities and embedded secrets are the core risk in this article.
NIST CSF 2.0PR.AC-4The article focuses on access enforcement and least privilege inside applications.
NIST SP 800-53 Rev 5IA-5Embedded credentials and rotation gaps map directly to authenticator management.
NIST Zero Trust (SP 800-207)The post challenges trust decisions that occur only at the perimeter.
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral MovementHardcoded credentials and hidden paths enable credential access and later movement across systems.

Map exposed secrets to credential access tactics and test whether application paths enable lateral movement.


Key terms

  • Identity Dark Matter: Identity dark matter is the hidden mass of old grants, unused credentials, and inherited access that exists in an environment but is not actively understood. In NHI programmes it becomes dangerous because autonomous systems can discover and reuse it at machine speed.
  • Server-side authorization: The practice of deciding access on the backend where an action actually executes. It prevents direct endpoint calls from bypassing UI checks and is the only place where an application can reliably stop an unauthorised mutation or data read before it happens.
  • Embedded Credential: A credential embedded in software, firmware, or automation that can be reused outside its intended context. In practice, it becomes a silent trust bridge between systems. For agents and connected devices, the risk is not the secret alone but the reach it grants if runtime controls are weak.
  • Runtime Observability Gap: The disconnect between what identity systems think was granted and what access systems show was actually used. This gap weakens governance because teams cannot confidently decide whether access is still necessary, especially in hybrid and distributed environments.

What's in the full article

Orchid Security's full blog covers the operational detail this post intentionally leaves for the source:

  • How to map application-side authentication paths, including local accounts and legacy fallback routes
  • How to find embedded credentials in code, scripts, binaries, and deployment artefacts
  • How to validate whether MFA, SSO, and authorization policies are actually enforced inside the application
  • How to build audit evidence from application behaviour rather than directory exports

👉 Orchid Security's full blog covers the hidden access paths, runtime enforcement gaps, and audit evidence model in more detail.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 15, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org