Cross-source coverage

T1606 / ATT&CK

Forge Web Credentials

12 rules across 3 sources.

From MITRE ATT&CK 19.2

Adversaries may forge credential materials that can be used to gain access to web applications or Internet services. Web applications and services (hosted in cloud SaaS environments or on-premise servers) often use session cookies, tokens, or other materials to authenticate and authorize user access.

Adversaries may generate these credential materials in order to gain access to web resources. This differs from Steal Web Session Cookie, Steal Application Access Token, and other similar behaviors in that the credentials are new and forged by the adversary, rather than stolen or intercepted from legitimate users.

The generation of web credentials often requires secret values, such as passwords, Private Keys, or other cryptographic seed values. Adversaries may also forge tokens by taking advantage of features such as the AssumeRole and GetFederationToken APIs in AWS, which allow users to request temporary security credentials (i.e., Temporary Elevated Cloud Access), or the zmprov gdpak command in Zimbra, which generates a pre-authentication key that can be used to generate tokens for any user in the domain.

Once forged, adversaries may use these web credentials to access resources (ex: Use Alternate Authentication Material), which may bypass multi-factor and other authentication protection mechanisms.

Platforms
SaaS · Windows · macOS · Linux · IaaS · Office Suite · Identity Provider
Telemetry
AWS:CloudTrailazure:signinlogsNSM:ConnectionsWinEventLog:SysmonWinEventLog:Securityauditd:SYSCALLmacos:unifiedlogm365:unifiedsaas:authm365:oauthm365:signinlogs

How MITRE says to detect it DET0260

Detection Strategy for Forged Web Credentials

IaaS Analytic 0717

Defenders may detect adversaries forging web credentials in IaaS environments by monitoring for anomalous API activity such as AssumeRole or GetFederationToken being executed by unusual principals. These events often correlate with sudden logon sessions from unfamiliar IP addresses or regions. The chain is usually secret material misuse (stolen private key or password) → API request generating a new token → access to high-value resources.

  • AWS:CloudTrail AssumeRole, GetFederationToken API calls by unusual or new entities
  • AWS:CloudTrail Temporary security credentials used to authenticate into management console or APIs

Identity Provider Analytic 0718

Forged web credentials may manifest as anomalous SAML token issuance, OpenID Connect token minting, or Zimbra pre-auth key usage. Defenders may see tokens issued without normal authentication events, multiple valid tokens generated simultaneously, or signing anomalies in IdP logs.

  • azure:signinlogs SAML/OIDC tokens issued without corresponding MFA or password validation
  • NSM:Connections Pre-authentication keys generated or token signing anomalies

Windows Analytic 0719

Forged web credentials on Windows endpoints may be detected by anomalous browser cookie files, local token cache manipulations, or tools injecting tokens into sessions. Defenders may observe processes accessing LSASS or browser credential stores unexpectedly, followed by unusual logon sessions.

  • WinEventLog:Sysmon EventCode=10
  • WinEventLog:Security EventCode=4624, 4648

Linux Analytic 0720

On Linux systems, forged credentials may be injected into browser session files, curl/wget headers, or token caches in memory. Detection can leverage auditd to track processes accessing sensitive files (~/.mozilla, ~/.config/chromium, ~/.aws/credentials) and correlate with suspicious outbound connections.

  • auditd:SYSCALL Processes reading credential or token cache files
  • WinEventLog:Sysmon Outbound requests with forged tokens/cookies in headers

macOS Analytic 0721

Forged credentials on macOS may be visible through Unified Logs showing abnormal access to Keychain or browser session files. Correlated with anomalous web session usage from Safari or Chrome processes outside typical user context.

  • macos:unifiedlog Access to Keychain items or browser credential stores
  • macos:unifiedlog Web sessions initiated with newly forged tokens

SaaS Analytic 0722

SaaS platforms may show forged credentials as unusual API keys, tokens, or session cookies being used without corresponding authentication. Correlated patterns include simultaneous valid sessions from multiple geographies, unusual API calls with new tokens, or bypass of expected MFA enforcement.

  • m365:unified Session creation without MFA or login event
  • saas:auth API requests made with tokens not associated with expected user logins

Office Suite Analytic 0723

Forged web credentials in Office Suite contexts may appear as abnormal authentication headers in Outlook or Teams traffic, or unexplained OAuth grants in M365/Azure logs. Defenders should correlate token usage events with missing authentication flows and mismatched device/user context.

  • m365:oauth OAuth grants or tokens issued without expected user consent
  • m365:signinlogs Token usage events with device/user mismatch

Sub-techniques with coverage

Counted in the 12 above — a rule tagged a sub-technique covers this technique too.


socfortress/Wazuh-Rules

9 rules
Detection Severity Format
operation. · office_365.LogonError = DeviceIsDisabled High Wazuh XML
operation. · office_365.LogonError = SsoArtifactRevoked High Wazuh XML
operation. · office_365.LogonError = UserDisabled High Wazuh XML
operation. · office_365.LogonError = BrokerAppNotInstalledDeviceAuthenticationFailed Low Wazuh XML
operation. · office_365.LogonError = DeviceAuthenticationRequired Low Wazuh XML
operation. · office_365.LogonError = IdsLocked Low Wazuh XML
operation. · office_365.LogonError = PasswordResetRegistrationRequiredInterrupt Low Wazuh XML
operation. · office_365.LogonError = SsoArtifactExpiredDueToConditionalAccess Low Wazuh XML
operation. · office_365.LogonError = UserStrongAuthClientAuthNRequiredInterrupt Low Wazuh XML

elastic/detection-rules

2 rules
Detection Severity Format
FortiGate FortiCloud SSO Login from Unusual Source Medium Elastic TOML
M365 Identity Unusual SSO Authentication Errors for User Medium Elastic TOML

SigmaHQ/sigma

1 rule
Detection Severity Format
SAML Token Issuer Anomaly High Sigma

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.