By NHI Mgmt Group Editorial TeamBased on Semperis: “The Taxonomy of Workload Identities in Entra ID: Service Principals, Enterprise Applications, and Other Forms of Organized Confusion” (June 27, 2026)

TL;DR: Microsoft Entra ID workload identities, including agent identities, ultimately resolve to service principals, which makes the runtime object the real control point for credentials, consent, role scope, and token issuance, according to Semperis. That inheritance model creates scope-overreach risk when roles or blueprint controls are not tightly bounded to the intended identity surface.


At a glance

What this is: This guide explains how Entra ID workload identities map to service principals and where that architecture creates governance and attack-surface boundaries that are easy to miss.

Why it matters: IAM and NHI teams need to treat service principal scoping, ownership, and runtime permissions as one control plane because blurred boundaries can turn delegated administration into tenant-wide exposure.


Context

Entra ID workload identity management breaks down when teams treat the registration object and the runtime identity as interchangeable. In practice, the service principal is the object that carries permissions, credentials, sign-in behaviour, and policy enforcement, so governance has to start there rather than at the application label alone.

The article also shows that new agent identity types inherit the same underlying service principal model, which means agent governance is not separate from NHI governance. When the control plane reuses the same base object for applications, managed identities, and agents, scope boundaries must be explicit or privilege expands beyond intent. Non-Human Identities


Key questions

Q: What breaks when an agent identity role can affect non-agent service principals?

A: The boundary between agent governance and application governance breaks, and ownership becomes a takeover primitive. When a role intended for one object class can modify another, the organisation loses assurance that scope statements match real enforcement. That turns a delegated admin role into a privilege escalation path rather than a constrained control plane.

Q: Why do service principals create hidden privilege risk in Entra ID?

A: Service principals can carry powerful directory permissions even when they are not treated like human admins. If ownership, consent, or API rights are weakly governed, they become a route to broader access and persistence. That is why machine identities need the same lifecycle and privilege scrutiny as people.

Q: How should teams govern agent identities that inherit from existing NHI objects?

A: They should govern them as subtype-aware NHIs, not as a separate exception class. The key is to manage ownership, blueprint authority, credential insertion, and retirement in a way that preserves the same lifecycle discipline used for other non-human identities. If the subtype boundary is blurred, the governance model will over-grant by design.

Q: What is the difference between an application object and a service principal?

A: An application object is the global definition or registration, while the service principal is the local runtime identity Entra ID uses to enforce access in a tenant. The service principal holds the permissions, sign-in settings, and credential links that make the application usable. In practice, that means the service principal is the object that must be controlled most tightly.


Technical breakdown

Why the service principal is the runtime attack surface

The service principal is the Entra ID object that actually holds credentials, OAuth grants, app role assignments, group membership links, and sign-in behaviour. The application object defines the registration, but the service principal is what Entra ID evaluates at runtime when authentication and authorisation happen. That is why changes to ownership, credentials, or consent on the service principal can immediately alter access paths, even when the application definition looks unchanged. In identity terms, this is the difference between configuration and enforcement. Practical implication: review service principal permissions and credential-bearing properties as the live attack surface, not as secondary metadata. See the Cloud Workload Identity Guide.

Practical implication: Treat the service principal as the enforcement object for access scope, credential control, and runtime monitoring.

How agent identity inheritance changes the Entra ID trust boundary

The article describes agent identities as specialised service principal types that inherit the existing Entra ID object model. That inheritance gives compatibility with current APIs and controls, but it also means the platform must distinguish agent-backed objects from ordinary service principals with perfect precision. If that distinction is weak, delegated authority intended for the agent control plane can spill into unrelated principals. This is an object-class boundary problem, not just a role-design problem. Practical implication: validate whether every privileged operation is actually constrained to the intended subtype before relying on a new identity control plane. See the Active Directory and Entra ID Hardening Guide.

Practical implication: Verify that new role scopes cannot be applied across the broader service principal base type.

Why blueprint-based authentication widens impersonation risk

Agent identities do not hold their own credentials in the same way a user account does. Instead, the blueprint authenticates and exchanges tokens on behalf of the agent identity, which means control over the blueprint can become control over every agent instance tied to it. That model is efficient for scaling, but it also concentrates authority in the template and its credential path. If an attacker can add credentials to the blueprint, they can potentially impersonate downstream agent identities across tenants. Practical implication: treat blueprint credential rights as equivalent to high-impact identity authority, not as routine application administration. See the NHI Authentication Guide.

Practical implication: Separate blueprint credential administration from ordinary agent lifecycle tasks and monitor for credential insertion paths.


Threat narrative

Attacker objective: The attacker aims to turn scoped administrative rights into persistent impersonation of workload identities and the resources they can reach.

  1. Entry occurs when a privileged directory role or delegated control plane permission is assigned more broadly than intended within Entra ID.
  2. Credential access follows when the actor adds ownership or credentials to a service principal or agent blueprint.
  3. Escalation occurs when that authority is used to authenticate as the target principal and extend control beyond the original scope.
  4. Impact is tenant-level impersonation of workload identities, including access to resources, tokens, and identity-linked operations that should have remained isolated.
  • Commvault Metallic breach 2025: A nation-state actor exploited a Commvault zero-day in Azure and may have taken app secrets that open customers' Microsoft 365 tenants.
  • Storm-1283 OAuth apps abuse 2023: Storm-1283 added secrets to new and existing OAuth apps in Entra ID and used them to run Azure cryptomining VMs, costing victims up to $1.5 million.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Service principal inheritance is the real governance boundary in Entra ID: once applications, managed identities, and agents all resolve to the same base object, policy must distinguish object subtype with surgical precision. The article shows that role scoping alone is not enough if the underlying authorization layer cannot consistently separate agent-backed principals from ordinary service principals. The practitioner takeaway is that object inheritance, not just role naming, defines the attack surface.

Agent identity administration is an NHI governance problem before it is an AI problem: the new agent types sit on top of familiar workload identity mechanics, so the same lifecycle, ownership, and credential controls still apply. The difference is that the control plane now has to govern both static NHI patterns and emerging agent identity patterns without collapsing them into one undifferentiated principal class. That makes subtype-aware governance the deciding design choice.

Blueprint authority creates an identity blast radius: when one blueprint can spawn many agent identities, credential control at the blueprint level becomes a multiplier for tenant-wide exposure. This is why the named concept here is template-to-tenant impersonation risk, the condition where controlling the template lets an actor impersonate every identity derived from it. Practitioners should read that as a governance boundary failure, not merely a misconfiguration.

Least privilege fails when the platform exposes hidden privilege inheritance: the article’s point is not just that privileged roles exist, but that some effective rights appear to live deeper in the API layer than the visible RBAC vocabulary suggests. That means access reviews based only on role labels can miss what a principal can actually do. The practical conclusion is that effective authority must be validated against runtime behaviour, not directory labels alone.

The agent model makes NHI governance more explicit, not less: Microsoft’s move to formalise agent identities confirms that identity programmes need a common control language for service principals, blueprints, and agent-specific principals. NHI governance becomes the common discipline here because the organisation still has to answer the same questions: who owns it, who can change it, who can authenticate as it, and what happens when it is retired. Practitioners should extend NHI governance to the agent layer rather than inventing a separate exception model.

What this signals

The emerging governance problem is not whether organisations have an app registration model, but whether they can enforce object-type boundaries when the same identity primitive is reused across applications, managed identities, and agents. When that boundary is weak, delegated administration stops being scoped administration and becomes implicit tenant-wide authority.

Template-to-tenant impersonation risk: when one blueprint can mint many agent identities, the credential authority attached to the template becomes the highest-value control point in the model. That shifts programme focus toward who can alter the template, who can authenticate through it, and how tightly tenant-local principals inherit from it.

Identity teams should expect agent governance to converge with existing NHI lifecycle practice rather than create a separate control stack. The operational question will increasingly be whether a role can change an object, create a credential path, or assume control of a derived principal without passing through subtype-specific checks.


For practitioners

  • Audit service principal subtype boundaries Map which directory roles can modify applications, service principals, managed identities, and agent-related objects, then verify that each action stays inside the intended subtype boundary.
  • Restrict blueprint credential authority Separate blueprint ownership and credential updates from routine agent administration so that no single role can both define an agent template and add the credentials that make it authenticatable.
  • Review effective permissions, not just role names Test what a privileged principal can actually do through Graph and the portal, including ownership changes, credential insertion, and token-bearing operations on related objects.
  • Classify agent identities as governed NHIs Bring agent identities, blueprints, and their tenant-local principals into the same inventory, ownership, and offboarding process used for other non-human identities.

Key takeaways

  • Service principals are the runtime identity objects that carry permissions, credentials, and enforcement logic in Entra ID, so they are the true control surface.
  • The article shows that inherited object models can blur the boundary between agent-specific administration and broader service principal takeover.
  • Practitioners need subtype-aware governance, tighter blueprint credential controls, and runtime validation of effective permissions rather than relying on role labels alone.

Related NHI Mgmt Group resources: Cloud Workload Identity Guide · Active Directory and Entra ID Hardening Guide · NHI Authentication Guide · Ultimate Guide to NHIs


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 SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe article centres on scope overreach and excessive authority across service principals and agents.
NHI-10 — Human Use of NHIThe article shows human-assigned directory roles steering non-human identities and their credentials.
Recommendation — Constrain service principal and agent permissions to the smallest subtype-specific scope possible. Review where human administrators can alter non-human identity ownership or credentials.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeRole overreach and object takeover indicate least privilege is not being enforced at the authorization layer.
Recommendation — Apply least privilege to directory roles that manage agent and service principal objects.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article focuses on entitlements, role scope, and effective authorization over workload identities.
Recommendation — Validate that entitlements for service principals and agents match intended authorizations.
MITRE ATT&CKTA0006; TA0004 — Credential Access; Privilege EscalationThe described abuse path uses ownership changes and credential insertion to gain stronger access.
Recommendation — Map takeover paths to credential access and privilege escalation when hunting for abuse.

Key terms

  • Service Principal: An application identity object in Microsoft Entra ID and Microsoft 365 that represents a specific app inside a tenant. It holds permissions, ownership, and configuration data that define what the application can do. In NHI governance, it is a high-value identity that should be reviewed like any other privileged account.
  • Workload Identity: The identity assigned to a software workload, such as a containerised application, serverless function, or microservice, enabling it to authenticate to other services without storing static credentials.
  • Agent Identity: An agent identity is the set of attributes, credentials and permissions assigned to an autonomous software entity. It is treated as a non-human identity because it can authenticate, act on systems and accumulate access over time, which creates governance, audit and lifecycle obligations similar to other production identities.
  • Blueprint Principal: The blueprint principal is the service principal instance created from the blueprint and used for execution and authentication. It matters because it is the operative identity in the chain, which means its permissions, logs, and lifecycle state must be reviewed separately from the blueprint object.

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 October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org