AWS Signin Single Factor Console Login with Federated User

Last updated a month ago on 2025-07-16
Created a year ago on 2024-08-19

About

Identifies when a federated user logs into the AWS Management Console without using multi-factor authentication (MFA). Federated users are typically given temporary credentials to access AWS services. If a federated user logs into the AWS Management Console without using MFA, it may indicate a security risk, as MFA adds an additional layer of security to the authentication process. This could also indicate the abuse of STS tokens to bypass MFA requirements.
Tags
Domain: CloudData Source: Amazon Web ServicesData Source: AWSData Source: AWS Sign-InUse Case: Threat DetectionTactic: Initial AccessLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Initial Access (TA0001)(opens in a new tab or window)

License
Elastic License v2(opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

aws(opens in a new tab or window)

Query
from logs-aws.cloudtrail-* metadata _id, _version, _index

| where
    event.provider == "signin.amazonaws.com"
    and event.action == "GetSigninToken"
    and aws.cloudtrail.event_type == "AwsConsoleSignIn"
    and aws.cloudtrail.user_identity.type == "FederatedUser"

// Extract mobile version and MFA usage
| dissect aws.cloudtrail.additional_eventdata
    "{%{?mobile_version_key}=%{Esql.aws_cloudtrail_additional_eventdata_device_version}, %{?mfa_used_key}=%{Esql.aws_cloudtrail_additional_eventdata_auth_mfa_used}}"

// Only keep events where MFA was not used
| where Esql.aws_cloudtrail_additional_eventdata_auth_mfa_used == "No"

// keep relevant ECS and dissected fields
| keep
    @timestamp,
    event.action,
    aws.cloudtrail.event_type,
    aws.cloudtrail.user_identity.type,
    Esql.aws_cloudtrail_additional_eventdata_device_version,
    Esql.aws_cloudtrail_additional_eventdata_auth_mfa_used

Install detection rules in Elastic Security

Detect AWS Signin Single Factor Console Login with Federated User in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).