![]()
As an identity administrator, you might not have had a good day last Monday. On March 15th, 2021, Azure AD suffered an outage.
As Azure AD acts as the identity platform for all Microsoft 365 services and for Microsoft’s Azure platform, organizations in North, Central and South America suffered from unavailability of Microsoft Cloud services for a considerable amount of time. People were unable to sign in, and therefore couldn’t access services.
Timing
Just like in Active Directory, Microsoft reports all times for Azure AD UTC. Between March 15, 2021 21:25 and March 16, 2021 00:23, the outage reached its peak. It started around 19:00 on March 15, 2021 and was ultimately solved at 09:25 on March 16, 2021.
For European organizations, there was not much going on, unless you were migrating, still patching Windows Servers, still patching Exchange Servers, or working late. However, the outage hit right when organizations in the Americas started their shifts after the weekend.
We know this because Microsoft doesn’t blame interns for outages or breaches. Instead, Microsoft apologizes and promises complete transparency in its communications on the outage, dubbed LN01-P8Z.
The role of cryptography
As you may be aware, the Azure AD Authentication service only supports open protocols, like SAML, OAuth2, OpenID Connect and SCIM. All these protocols rely on cryptography to secure the exchange of authentication requests and responses. Through cryptography;
- traffic between your device, Azure AD and the service, app or system you are trying to authenticate to, is encrypted using transport layer security (TLS) version 1.2.
- Azure AD signs and (optionally) encrypts the contents of authentication responses. This way the identity of the other side of the line is verifiable. This method also ensures that the contents of the responses are not altered in transit.
Cryptography relies on key pairs. The lifecycle of cryptographic key pairs in the above protocols consists of the following steps:
- creating the cryptographic key pair;
- announcing the availability of either the public or private key through metadata;
- limiting the availability period of the previous key to drain its usage;
- deleting the key pair, but only after it is verified that all key usage has stopped.
To reach a high level of information security, cryptographic keys are rotated often. It makes perfect sense to me. Even in the unlikely scenario that a key pair is compromised, an attacker wouldn’t be able to benefit from a private key for a long time. This also discourages collision attacks, because working through the possible permutations of a key takes longer than the lifetime of the key.
The role of processes
If you want to manage platforms for millions of organizations in a cost-effective way, then you’ll need solid processes; every action needs to have roll-out steps, roll-back steps, and monitoring of telemetry to make sure you’re doing the right things and doing things right.
Microsoft has embraced many industry-first processes to secure its cloud services from inadvertent actions. For instance, there are very few admin privileges in use in Microsoft’s datacenters. If a person wants to perform an action that requires admin privileges, these privileges need to be requested. The minimally required privileges are provided only after approval by a select set of individuals, only for a limited period of time and they are provided in an automated manner. After the allotted time, privileges are automatically taken away.
It all helps to reduce attack surface and protect from unpredictable outcomes.
The role of automation
The Azure AD authentication service is a service that spans hundreds of thousands of CPUs in Microsoft’s datacenters. Many processes are highly automated. This way, processes achieve a high level of maturity and predictability.
Additionally, cleanup processes are automated. This ensures that the platform operates with the least amount of clutter and doesn’t accumulate litter, lumber and legacy over time.
To make all these automated processes work seamlessly to address the entirety of the platform, periods of time are built in between the steps to cycle certificates. When looking specifically at rotating cryptographic keys, these periods of time prevent outages typically caused by delays in publishing the metadata, certificate validity caches and time-outs.
How it all went wrong
Azure AD is an evergreen solution. The platform is constantly migrating to take advantage of new capabilities in both hardware and scale, even beyond the numerous changes in Azure AD every month.
For a migration, Microsoft needed a cryptographic key to be available for a longer period of time than is usually provided for keys. In the automation process, a provision was created for keys to exist longer through a retain flag. The flag’s intent is to stop the entire process of rotating keys.
Alas, the automated process failed. A discrepancy was introduced between the actual availability of the key pair to the platform and the metadata that signals the valid public keys. Through this discrepancy, requests that reached Azure AD were signed with the wrong public key, as seen from the point of view of the authentication service.
All of a sudden, cryptography was in the way of verifying integrity and confidentiality of the exchanged information. This resulted in the authentication requests being discarded.
Through its telemetry, Microsoft noticed the sudden drop in successful authentications due to the failing automation. After about two hours, on March 15th 21:05 UTC, the discrepancy between the availability of the key and the metadata was resolved.
However, the same delays, caches and time-outs that ensure smooth transitions between key pairs were now in the way of solving issues for people using Azure AD quickly.
Going forward
In the preliminary information shared about the incident, Microsoft states that the maturity of the key removal process is currently insufficient. The Azure AD team expects to provide additional protections to the key rotation automation in the second half of 2021 as part of improvements to its Safe Deployment Process (SDP) system.
As Azure AD currently offers a 99,9 percent financially-backed uptime service level agreement (SLA), Microsoft doesn’t meet the promises it made this calendar month. This outage lasted longer than 45 minutes. Organizations with Azure AD Premium subscriptions now have two months to issue their financial claims to get service credits. As the availability this month – so far – is between 99% and 99,9%, you can claim a 25% service credit for your Azure AD Premium subscription fees.
In comparison, on-premises Active Directory Domain Services (AD DS) deployments usually don’t offer 100% uptime either, but these outages don’t usually make headlines, nor does the IT department offer a service credit to the business side of the organization…
I know what I’ll choose as my authentication service next time I need to choose.






Login