VeriKQL by Kaushik Saha

T1606.002 SAML Tokens

Credential Accesson attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0148 Detection Strategy for Forged SAML Tokens

AN0418 Identity Provider

Forged SAML tokens can be observed as authentication attempts with valid signatures but missing expected preceding Kerberos or authentication events. Defenders may correlate SAML assertions with absent Event IDs 4769, 1200, or 1202, or tokens issued with abnormal lifetimes, issuers, or claims compared to baseline.

MITRE log sourceIn Microsoft Sentinel
azure:signinlogsSAML-based login with anomalous issuer or NotOnOrAfter lifetime
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs
WinEventLog:SecurityEventCode=4769, 1200, 1202
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4769, 1200, 1202)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4769, 1200, 1202)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4769, 1200, 1202)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

AN0419 IaaS

Forged SAML tokens in IaaS environments often manifest as cross-cloud or cross-account authentication without matching STS events. Defenders may see AssumeRole or GetFederationToken API usage without a corresponding SAML assertion log from the trusted IdP.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailAssumeRoleWithSAMLNot mapped to Sentinel yet.
CloudTrail:SigninSAML login without corresponding IdP authentication logNot mapped to Sentinel yet.

AN0420 Windows

Forged SAML tokens may be used on Windows systems to authenticate to federated apps without normal Kerberos activity. Defenders may detect anomalous event correlation, where access to SaaS/O365 via SAML occurs without prior TGT requests or user logons.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4624, 4648
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4624, 4648)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4624, 4648)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4624, 4648)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:ADFSToken issuance events showing anomalous claims or issuersinterpreted
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("AD FS/Admin")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("AD FS/Admin")
  • Microsoft Entra ID → ADFSSignInLogs
    ADFSSignInLogs

On-premises AD FS events, or ADFSSignInLogs through Microsoft Entra Connect Health.

AN0421 SaaS

Forged SAML tokens can appear as SaaS logins where authentication succeeded without MFA, or where tokens contain claims inconsistent with the user profile. Look for concurrent sessions across different geographies with the same SAML assertion ID.

MITRE log sourceIn Microsoft Sentinel
saas:accessSAML token accepted without preceding login challengeNot mapped to Sentinel yet.
m365:unifiedAbnormal user claims or unexpected elevated role assignment in SAML assertioninterpreted
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange", "SharePoint", "OneDrive", "MicrosoftTeams")
  • Microsoft Defender XDR → CloudAppEvents
    CloudAppEvents

The Office 365 connector brings the Exchange, SharePoint and Teams workloads of the unified audit log; Entra sign-ins in it are in SigninLogs; CloudAppEvents carries Microsoft 365 app activity.

AN0422 Office Suite

Forged SAML tokens may be leveraged to access O365 apps such as Outlook or SharePoint. Defenders should monitor for token replay across multiple clients or access attempts to privileged mailboxes without prior interactive login.

MITRE log sourceIn Microsoft Sentinel
m365:exchangeMailbox access using SAML token without corresponding MFA event
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange")
m365:sharepointFile access with forged or anomalous SAML claims
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("SharePoint", "OneDrive")

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.