Federated Identity & SAML / Golden SAML Indicators in Entra Audit Logs
Federation tampering and Golden SAML persistence appear in Entra Audit Logs as "Set federation settings on domain", "Set domain authentication", or "Add/Update verified domain"—allowing an intruder who steals an ADFS token-signing certificate or adds a rogue federated IdP URL to mint valid SAML assertions for any cloud user without passwords or MFA.
Architecture & Telemetry Context
In hybrid Microsoft 365 tenants federated with Active Directory Federation Services (ADFS), PingFederate, or Okta, trust between your on-premises identity provider and Entra ID hinges on an X.509 Token-Signing Certificate and a registered Issuer URI.
If an adversary compromises an on-premises ADFS server (extracting the token-signing certificate for a classic Golden SAML attack) OR compromises a cloud Global/Hybrid Identity Admin to modify domain federation settings directly in Entra, they gain the ability to forge authentication tokens for any federated user—completely bypassing passwords and on-prem MFA.
Even in pure cloud-only tenants with no ADFS server, an attacker holding Global Administrator or Domain Name Administrator can convert an unused secondary verified domain from `Managed` to `Federated` pointing at an attacker-hosted SAML endpoint—instantly hijacking logins for any UPN suffixed with that domain.
Watch Entra Audit Logs and Purview UAL RecordType 8 closely for `Set federation settings on domain`, `Set domain authentication`, `Update domain`, and `Add unverified/verified domain`. Additionally, compare `tokenIssuerType` (`Federated` vs. `AzureAD`) and `federatedAuth` claims inside Entra Sign-In logs against expected corporate IdP login patterns.
Cloud-Managed Authentication vs. Federated SAML Trust Risks
| Authentication Model | Where Password/Auth Happens | Primary Golden SAML / Federation Defense |
|---|---|---|
| Cloud-Only / Password Hash Sync (Managed) | Directly in Microsoft Entra ID | Impossible to forge via ADFS DKM key theft; monitor domain conversion! |
| ADFS / Third-Party SAML Federation (SupportsMfa=True) | External IdP asserts both Auth & MFA | Rotate ADFS cert if breached; consider enforcing Cloud MFA (`federatedIdpMfaBehavior`) |
| Hardened Federation (Enforce Cloud MFA) | Entra evaluates its own FIDO2/Cloud MFA | Even a forged SAML assertion still hits Entra phishing-resistant MFA! |
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
Set federation settings on domain | Changed SAML IssuerUri or SigningCertificate | Critical unless planned annual cert rollover |
Set domain authentication | Switched domain between Managed <-> Federated | Can bypass Entra-native Conditional Access flows |
Update domain / Add verified domain | Modified domain metadata or added new domain | Check for rogue secondary domains created for backdoors |
ModifiedProperties -> SigningCertificate | New X.509 cert thumbprint trusted for SAML | Verify thumbprint directly against documented IdP cert |
tokenIssuerType = Federated | Sign-In validated via external SAML assertion | Correlate timestamp with on-prem ADFS/Okta logs! |
federatedAuth / SupportsMfa | Whether Entra trusts federated MFA claims | If SupportsMfa=True, forged SAML bypasses cloud MFA! |
Federation Setting Mutation in Entra Directory Audit Logs
{
"activityDateTime": "2026-12-03T02:14:55Z",
"activityDisplayName": "Set federation settings on domain",
"category": "DirectoryManagement",
"initiatedBy": { "user": { "userPrincipalName": "hybrid.admin@contoso-demo.invalid", "ipAddress": "185.220.101.45" } },
"targetResources": [{
"displayName": "contoso-demo.invalid",
"modifiedProperties": [{ "displayName": "FederationSettings.PassiveSignInUri", "newValue": "https://idp-auth-sync.invalid/adfs/ls/" }]
}]
}
Look at `PassiveSignInUri` pointing to an unrecognized domain (`idp-auth-sync.invalid`)—a textbook cloud federation hijack converting a legitimate domain to trust an attacker-controlled IdP.
Inspect Active Domain Federation Config & Certificate Thumbprints via Graph
Connect-MgGraph -Scopes "Domain.Read.All"
Get-MgDomain | Format-Table Id, AuthenticationType, IsDefault, IsVerified
Get-MgDomain -All | Where-Object { $_.AuthenticationType -eq "Federated" } | ForEach-Object {
Get-MgDomainFederationConfiguration -DomainId $_.Id | Format-List Id, IssuerUri, PassiveSignInUri, FederatedIdpMfaBehavior, SigningCertificate
}
Sample Domain Federation Verification Output
Id AuthenticationType IsDefault IsVerified
-- ------------------ --------- ----------
contoso.com Federated True True
subsidiary.net Managed False True
Real-World Incident Walkthrough
During a ransomware-precursor breach on-premises, threat actors dump the ADFS Token-Signing Certificate (`ADFS DKM` key in Active Directory) and begin forging SAML assertions from a VPS directly to Entra ID for an executive account.
While ADFS logs on-premises show zero matching SAML token issuance for that timestamp, Entra Sign-In JSON logs a `Federated` authentication from `185.220.101.45` (`riskLevelDuringSignIn: high`), while historical Entra Audit checks ensure `Set federation settings on domain` wasn’t silently altered to inject a rogue secondary certificate.
Step-by-Step Triage, Containment & Verification
- Drop Entra Directory Audit JSON and Purview UAL CSV into AuditVane and search for `federation`, `domain`, or `Set domain authentication`.
- Run `Get-MgDomain` and `Get-MgDomainFederationConfiguration` to verify every domain’s `AuthenticationType`, `IssuerUri`, `PassiveSignInUri`, and `SigningCertificate`.
- For any `Federated` domain, compare Entra Sign-In timestamps for `tokenIssuerType = Federated` against your on-premises ADFS/Okta/Ping logs—a login existing in Entra without a matching assertion in your IdP proves **Golden SAML key theft**!
- If ADFS compromise is suspected, immediately rotate ADFS Token-Signing Certificates twice (and convert to Entra Cloud Sync / Password Hash Sync if migrating off ADFS).
- Verify `FederatedIdpMfaBehavior` so forged or compromised IdP assertions cannot bypass Entra Conditional Access MFA.
How to Verify Containment Completed Cleanly
- All verified domains show expected AuthenticationType (Managed vs. Federated) and valid IssuerUri.
- SigningCertificate thumbprints verified 100% against authorized on-prem/IdP certificate store.
- Conditional Access / FederatedIdpMfaBehavior configured so Entra enforces cloud MFA independently.
Analyst Blind Spots, Licensing Quirks & False Positives
Don’t assume a tenant using Okta or ADFS only needs to check `contoso.com`—check EVERY verified domain in `Get-MgDomain`! Attackers can federate an unused legacy domain (`contoso-old.com`) to create stealth accounts while leaving the main domain untouched.
If `SupportsMfa` / `acceptsMfaClaim` is enabled for federation, a forged SAML assertion from a stolen ADFS certificate bypasses MFA too—use `federatedIdpMfaBehavior = enforceMfaByFederatedIdp` or cloud FIDO2 strengths carefully.
Frequently Asked Questions
Does Entra MFA stop Golden SAML automatically?
Only if Entra requires its own cloud MFA (FIDO2/Authenticator) rather than trusting the federated IdP’s MFA claim (`FederatedIdpMfaBehavior`).
How do you prove Golden SAML occurred in Entra logs?
Cross-reference Entra Sign-Ins showing tokenIssuerType=Federated against your on-prem ADFS/Okta issuance logs—forged Golden SAML logins appear in Entra with NO matching assertion generated by ADFS.
How often should federation certificates change?
Only during planned annual/semi-annual rollovers; any unscheduled `Set federation settings on domain` event is Critical.
Can AuditVane parse ModifiedProperties on domain federation changes?
Yes, AuditVane flattens all ModifiedProperties keys inside the Event Inspector modal.