OAuth & Identity Persistence · T1606.002 / T1484.002

Federated Identity & SAML / Golden SAML Indicators in Entra Audit Logs

Direct Answer (Key Forensic Takeaway)

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.

1. RAW TELEMETRY OAuth & Identity Persistence T1606.002 / T1484.002 2. CLIENT-SIDE PARSE AuditVane Engine Golden SAML Set-MsolDomainAuthenti 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for Golden SAML Set-MsolDomainAuthentication Entra logs (T1606.002 / T1484.002)
AdSense-Ready In-Article Placement

Cloud-Managed Authentication vs. Federated SAML Trust Risks

Authentication ModelWhere Password/Auth HappensPrimary Golden SAML / Federation Defense
Cloud-Only / Password Hash Sync (Managed)Directly in Microsoft Entra IDImpossible to forge via ADFS DKM key theft; monitor domain conversion!
ADFS / Third-Party SAML Federation (SupportsMfa=True)External IdP asserts both Auth & MFARotate ADFS cert if breached; consider enforcing Cloud MFA (`federatedIdpMfaBehavior`)
Hardened Federation (Enforce Cloud MFA)Entra evaluates its own FIDO2/Cloud MFAEven 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 domainChanged SAML IssuerUri or SigningCertificateCritical unless planned annual cert rollover
Set domain authenticationSwitched domain between Managed <-> FederatedCan bypass Entra-native Conditional Access flows
Update domain / Add verified domainModified domain metadata or added new domainCheck for rogue secondary domains created for backdoors
ModifiedProperties -> SigningCertificateNew X.509 cert thumbprint trusted for SAMLVerify thumbprint directly against documented IdP cert
tokenIssuerType = FederatedSign-In validated via external SAML assertionCorrelate timestamp with on-prem ADFS/Okta logs!
federatedAuth / SupportsMfaWhether Entra trusts federated MFA claimsIf 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

  1. Drop Entra Directory Audit JSON and Purview UAL CSV into AuditVane and search for `federation`, `domain`, or `Set domain authentication`.
  2. Run `Get-MgDomain` and `Get-MgDomainFederationConfiguration` to verify every domain’s `AuthenticationType`, `IssuerUri`, `PassiveSignInUri`, and `SigningCertificate`.
  3. 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**!
  4. 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).
  5. 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.

Related Forensics Guides