By NHI Mgmt Group Editorial TeamBased on SecureAuth: “"Microsoft on Microsoft" Hack: Why Hierarchical Tenancy Wins Over Flat Multi-Tenancy” (January 27, 2026)

TL;DR: A flat multi-tenant trust model can let an attacker with a personal tenant and a valid Microsoft-signed token reach internal apps, according to SecureAuth research, because tenant ID validation was missing and 22 high-value applications were found compromised. The issue is not token signing, but the assumption that issuer trust alone is enough for multi-tenant IAM.


At a glance

What this is: This is an IAM analysis of why flat multi-tenant trust and missing Tenant ID checks let valid Microsoft-signed tokens reach the wrong applications.

Why it matters: It matters because identity teams must treat issuer validation, tenant boundaries, and scoped trust as design controls, not optional coding hygiene, across human, NHI, and autonomous access paths.


Context

Multi-tenant IAM only works when trust boundaries are explicit. In the model described here, an application accepted any Microsoft-signed token without verifying Tenant ID, which turned a global login surface into an authorization shortcut for the wrong tenant.

The governance gap is not cryptography failure but boundary failure: the token was valid, yet the application could not prove that the issuer context matched the intended organization. That is an IAM architecture problem, and it affects how teams design trust for federated access, partner access, and internal application entry points.

The article uses Microsoft's flat tenant model as the cautionary example and frames hierarchical tenancy as the counter-pattern. For IAM programmes, the lesson is that tenant isolation must be enforced by the system, not reconstructed by developers at every integration point.


Key questions

Q: What breaks when an IAM application trusts issuer signatures without tenant validation?

A: The application loses the ability to prove that a valid token belongs to the correct organisational boundary. That turns authentication success into a false authorisation signal, which is how a token from another tenant can be accepted as if it were local. The failure is not cryptography, but context collapse at the trust boundary.

Q: Why does tenant-scoped authorisation matter even when tokens are correctly signed?

A: Because a signed token only proves origin, not eligibility for a specific tenant or workspace. If the application does not verify that the issuer context matches the intended boundary, role claims can be reused across tenants in ways the programme never intended. Tenant scope is what keeps valid identity proof from becoming universal access.

Q: How do security teams detect risky flat multi-tenant trust patterns?

A: Look for applications that rely on shared login endpoints, broad issuer acceptance, or manual code comments reminding developers to 'validate Tenant ID.' Those are signs that tenancy boundaries are being reconstructed in application logic instead of enforced by the identity model. The more places that check is optional, the larger the exposure.

Q: Should organisations use hierarchical tenancy or patch flat multi-tenant trust with code checks?

A: Hierarchical tenancy is the stronger control because it makes isolation structural rather than procedural. Code checks can reduce risk, but they depend on every implementation being correct forever. A hierarchy bakes context into the system, which is far more reliable than asking each application to remember the right trust rules.


Technical breakdown

Why issuer trust alone fails in flat tenant IAM

A flat multi-tenant model treats tokens from a single identity provider as globally acceptable unless the application adds tenant-specific validation. That creates issuer confusion: the cryptographic signature proves the token is genuine, but it does not prove the token belongs to the right tenant or business context. In Microsoft-style federated login flows, the /common endpoint amplifies that risk because the app receives a valid token before it confirms which tenant issued it. Practical implication: trust decisions must bind the token to the tenant context, not just the signing authority.

Practical implication: require tenant-bound validation at the application trust boundary, not only signature verification.

How tenant ID validation changes authorization decisions

Tenant ID validation is the control that turns a valid token into a contextually authorised token. Without it, an attacker can present a token carrying a privileged role claim from a personal tenant and the application may accept that claim at face value. With it, the app checks whether the issuer, tenant, and role are aligned with the expected organizational boundary before authorising access. The distinction matters because RBAC inside one tenant does not automatically translate into authority in another. Practical implication: role claims must be evaluated only after tenant scoping is confirmed.

Practical implication: evaluate role claims only after the tenant boundary has been verified.

Why hierarchical tenancy reduces issuer confusion

Hierarchical tenancy changes the trust model from open-by-default filtering to isolated-by-default inheritance. Instead of one shared endpoint and one broad trust pool, each workspace or realm has its own context, which means trust is assigned within a lineage rather than across the whole tenant universe. That removes the need for every developer to remember bespoke filtering logic at every login path. It also narrows where a mistaken integration can create exposure. Practical implication: identity architecture should encode trust boundaries in the platform, not in per-app code.

Practical implication: prefer hierarchical trust boundaries that enforce context at the platform layer.


Threat narrative

Attacker objective: The attacker wanted to gain unauthorized access to internal enterprise applications by exploiting flat tenant trust and issuer confusion.

  1. Entry occurred when the attacker created a personal tenant and used the global Microsoft login surface to initiate authentication.
  2. Credential abuse followed when the attacker obtained a valid Microsoft-signed token carrying an 'Admin' claim from that tenant context.
  3. Escalation happened when the target application failed to validate Tenant ID and treated the token as sufficient authority.
  4. Impact was unauthorized access to internal applications, with 22 high-value Microsoft applications identified as compromised at Black Hat.

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

Flat tenant trust is a governance defect, not a cloud convenience. When an IAM programme accepts any valid issuer token without binding it to tenant context, it has outsourced authorisation logic to the assumption that the signature is enough. That assumption fails in federated and multi-tenant environments because a valid token can still belong to the wrong organisational boundary. The practical implication is that tenant scoping must be part of the trust contract, not a developer afterthought.

Issuer confusion is the operational symptom of boundaryless IAM design. The Black Hat example shows that role claims become dangerous when applications accept them without proving which tenant issued them. That is why a 'global' login surface creates more than convenience: it erases the context that authorisation depends on. Practitioners should treat issuer and tenant as a paired control plane, because one without the other creates cross-tenant trust bleed.

Hierarchical tenancy restores least privilege by design. A structured workspace or realm model makes authority local to the branch, which is materially different from filtering a flat pool after the fact. That shift matters for enterprise IAM because it turns tenant separation into an architectural property rather than a coding discipline. Teams that still rely on manual issuer checks are carrying avoidable control debt.

Tenant-aware authorisation needs to be part of the identity control baseline. This case shows that multi-tenant IAM can be secure only when issuance, tenancy, and role scope are evaluated together. Otherwise, organisations are measuring authentication success while leaving authorisation context unresolved. For practitioners, that means trust boundaries, not just login success, should define the programme's control maturity.

Flat tenant trust creates identity blast radius. Once a shared issuer path is treated as universal authority, one missed validation step can open multiple internal applications at once. The lesson for identity architects is that boundary failure scales faster than credential failure, so the architecture must constrain the blast radius before application code is written.

What this signals

Identity context has to be part of the authorisation model. The practical lesson here is that trust decisions cannot stop at token validation when applications are federated across multiple tenants. Teams should map every shared login path, then decide where tenant context must be enforced before access is even considered.

Flat trust multiplies developer error into platform exposure. When a single missed Tenant ID check can expose multiple internal applications, IAM architecture becomes a control against human inconsistency. That is why the boundary belongs in the platform design, not in repeated application fixes.

Tenant-aware boundaries are the new baseline for enterprise federation. IAM programmes that still depend on issuer trust alone are carrying hidden blast radius across partner, employee, and admin access paths. The programme signal to watch is whether authorisation is evaluated with tenant lineage, not just token provenance.


For practitioners

  • Enforce Tenant ID validation at every federation entry point Make tenant context a required decision input before accepting any signed token, especially where a shared /common endpoint or equivalent global trust surface exists.
  • Separate issuer trust from authorisation logic Treat signature validation as authentication only, then apply tenant-bound checks and role evaluation before authorising access to internal applications.
  • Review multi-tenant application registrations for flat trust assumptions Inventory applications that accept broadly scoped identity provider tokens and identify where one oversight could expose multiple high-value internal tools.
  • Prefer hierarchical tenancy for new identity designs Use workspace or realm boundaries to encode trust lineage so applications inherit isolation rather than depending on every developer to filter access manually.

Key takeaways

  • A valid signed token is not enough if the application cannot prove the correct tenant context before authorising access.
  • Flat multi-tenant trust turns one missed validation step into a broad enterprise exposure path, especially around shared login endpoints.
  • Hierarchical tenancy and tenant-bound validation shift isolation into the identity architecture instead of relying on repeated developer discipline.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementTenant-bound token handling depends on rigorous authenticator and token lifecycle control.
Recommendation — Apply IA-5 to enforce token validation, scoping, and revocation rules for federated access.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about authorisation scope and tenant-bound access decisions.
Recommendation — Use PR.AA-05 to ensure permissions are evaluated against tenant context before access is granted.
NIST Zero Trust (SP 800-207)Identity and Access Management — Identity and Access ManagementTenant scoping and context-aware trust are core Zero Trust identity concerns here.
Recommendation — Design identity flows so trust is verified per tenant and not inherited from a shared login surface.
OWASP API Security Top 10API2 — Broken AuthenticationThe login and token-handling flow accepted identity context that was not sufficiently bound to the target tenant.
Recommendation — Treat cross-tenant token acceptance as broken authentication and bind auth decisions to tenant context.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationTokens were accepted as authentic without enough context to prove they were valid for the target tenant.
Recommendation — Harden non-human authentication flows so issuer trust is paired with tenant-scoped validation.

Key terms

  • Tenant-bound Authorization: An authorization model that checks the tenant context before allowing access to a resource or identity state. In multi-tenant environments, the tenant identifier must be treated as a binding control, not just a label, so shared services do not cross isolation boundaries.
  • Issuer Confusion: Issuer confusion happens when an application accepts a token from a legitimate identity provider but misapplies it to the wrong trust boundary. The token is authentic, yet the access decision is incorrect because the application cannot distinguish who issued the assertion for which tenant or workspace.
  • Hierarchical tenancy: An identity architecture that groups organisations, workspaces, or realms into explicit parent-child trust boundaries rather than one flat shared pool. It reduces reliance on developer-side filtering because isolation is enforced by structure.
  • Flat multi-tenant trust: A design in which a shared identity provider or endpoint treats multiple tenants as peers and relies on application logic to separate them. It scales access efficiently, but it also increases the risk of cross-tenant authorisation errors when validation is incomplete.

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