Subscribe to the Non-Human & AI Identity Journal

Who is accountable when an attacker uses a legitimate Microsoft URL to steal tokens?

Accountability sits with identity governance, application owners, and security teams together, because the failure spans consent policy, app scope, and monitoring. The relevant question is not only who clicked, but which apps were allowed to exchange a legitimate browser event for durable access.

Why This Matters for Security Teams

When an attacker uses a legitimate Microsoft URL to steal tokens, the problem is not a fake website alone. It is a trust failure across consent, session handling, and identity controls. The browser event may be legitimate, but the resulting token can become durable access if the application, tenant policy, or monitoring stack treats it as normal. NHIMG’s Salesloft OAuth token breach is a useful reminder that valid tokens can still produce high-impact compromise when governance is too permissive.

This is why accountability is shared. Identity governance owns consent and token policy. Application owners define what scopes and callback paths are actually necessary. Security teams are responsible for detection, conditional access, and revocation workflows. CISA’s cyber threat advisories repeatedly show that abuse of trusted services is operationally different from simple phishing, because the attacker is not breaking the URL, they are abusing trust in the workflow.

In practice, many security teams encounter token theft only after the legitimate browser flow has already been converted into persistent access and lateral movement.

How It Works in Practice

The core failure is that a legitimate Microsoft URL can still be part of a malicious authorization journey. An attacker may rely on consent grants, token interception, device-code abuse, or redirected browser sessions to obtain tokens that appear valid to downstream services. Once issued, those tokens can inherit the privileges of the application and user session, which is why scope design matters as much as the phishing lure itself.

Security teams should break the problem into four control planes:

  • Consent governance, so users cannot authorize risky scopes without review.
  • Application registration review, so only approved redirect URIs, scopes, and grants are allowed.
  • Token lifecycle controls, including short TTLs, revocation hooks, and continuous validation.
  • Detection for impossible travel, anomalous consent, and unusual token use from new tenants or devices.

Best practice is evolving toward tighter app approval and token visibility, but there is no universal standard for every Microsoft workload. NHIMG’s Guide to the Secret Sprawl Challenge helps explain why token sprawl becomes a governance problem once secrets and access artifacts are duplicated across tools, tickets, and endpoints. For threat modeling, the Anthropic report on AI-orchestrated cyber espionage also illustrates how attackers chain legitimate services and automation to blend into normal activity.

These controls tend to break down when legacy apps require broad delegated permissions because administrators accept convenience over least privilege.

Common Variations and Edge Cases

Tighter consent and token controls often increase friction, requiring organisations to balance user productivity against reduced blast radius. That tradeoff becomes sharper in large Microsoft 365 estates, where legacy integrations, service principals, and third-party SaaS connectors all rely on OAuth or browser-mediated flows.

Current guidance suggests treating some scenarios differently rather than applying one policy to all apps:

  • High-risk apps should require admin consent, narrow scopes, and shorter token lifetimes.
  • Low-risk internal apps may use lighter review, but still need logging and periodic access recertification.
  • Privileged users need stricter conditional access because a stolen token from an admin account changes the impact entirely.
  • Machine-to-machine integrations should be separated from human browser flows whenever possible.

NHIMG’s 52 NHI Breaches Analysis shows that exposed or overused identities rarely fail in isolation, they fail when governance assumes the credential will only be used the way it was intended. That is also why attackers abusing a legitimate Microsoft URL can still be the security team’s problem, the application owner’s problem, and the identity team’s problem at the same time. The key question is not just who clicked, but whether the environment allowed that click to become durable access.

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 OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 Addresses overprivileged and mismanaged non-human access that enables token abuse.
OWASP Agentic AI Top 10 A-03 Trusted workflow abuse mirrors agentic-style misuse of legitimate execution paths.
NIST AI RMF Accountability and monitoring are central to governing misuse of trusted AI-enabled workflows.

Review app scopes, rotate tokens quickly, and remove standing access that is not strictly required.