What the Azure API Management cyberattack teaches us about authentication, authorization and the security of tokens.
In an earlier article, Why OAuth Is Confusingly Called an Authentication (AuthN) Protocol, we explored the fundamental distinction between authentication and authorization.
The recent cyberattacks involving Norwegian energy companies Equinor and Skagerak Energi provide a timely illustration of why that distinction matters.
Q. Was this an OAuth vulnerability?
No. The reported vulnerability was in Azure API Management’s Classic tiers, specifically involving unauthorized access to management functionality and potentially sensitive credentials.
However, the incident exposes a fundamental security dependency of OAuth-based architectures: the protection of the credentials and tokens upon which authorization relies.
Q. Does an attacker need to defeat authentication to gain access?
Not necessarily.
Consider an application that has already been authenticated and authorized to access an enterprise API.
It receives a bearer access token representing that authorization.
If an attacker obtains that token, the attacker may be able to access the same API without authenticating as the original identity, provided the token remains valid and the API accepts it.
MFA may have worked perfectly. The authorization server may have worked perfectly. The IAM policies may have been correctly configured.
The weakness lies in the protection of the authorization credential itself.
Q. How does this relate to our policy-first view of security?
Recall our simplified definition of an authorization policy:
Policy = Identity + Permissions + Resource
An access token represents or references authorization granted within that security model.
Stealing a token does not necessarily require changing any of the underlying IAM policies. Instead, the attacker can potentially exercise permissions that were legitimately granted to someone else.
This is what makes credential theft particularly dangerous: malicious activity can resemble legitimate, authorized activity.
Q. Why isn’t patching the vulnerability sufficient?
Microsoft closed the vulnerable access path on November 19, 2026.
But closing the door through which a credential was stolen does not invalidate that credential.
Organizations must investigate and rotate potentially compromised secrets, revoke tokens where supported, and examine the downstream systems those credentials could access.
Patching fixes the vulnerability. Credential revocation addresses the residual trust. Both are necessary.
Q. What should security architects do differently?
Enterprise API security needs to extend beyond the implementation of OAuth and OpenID Connect.
- Prefer managed identities and short-lived credentials over persistent client secrets.
- Use dedicated secrets management services with narrowly scoped access.
- Restrict access to API management interfaces.
- Consider sender-constrained access tokens, using mechanisms such as mTLS or DPoP where supported.
- Monitor anomalous token usage and machine-to-machine authentication.
- Maintain an inventory of credentials across production, development and test environments.
- Enforce least privilege at downstream services, not merely at the API gateway.
Q. Why is this particularly relevant to Agentic AI?
An AI agent may need to access databases, SaaS applications, enterprise APIs and cloud management services to complete a single task.
Each integration introduces another authorization relationship and potentially another credential.
An overprivileged agent with poorly protected credentials can substantially increase the consequences of a single compromise.
As enterprises transition from human-operated applications to autonomous agents, protecting machine identities and their authorization credentials becomes a foundational architectural requirement.
The takeaway
Authentication establishes identity.
Authorization determines permissions.
Credential security helps ensure those permissions are exercised by the intended party.
These are three distinct security responsibilities. An enterprise architecture that addresses only the first two remains vulnerable.
OAuth is an authorization framework. It is not, by itself, a complete security architecture.
ANUJ.COM
The voice of experience in AI and security.
Behind the Cyber Headlines | AI & Security Newsletter
Sources: