Detection rules › Sigma

AWS Identity Center Identity Provider Change

Status
test
Severity
high
Log source
product aws, service cloudtrail
Author
Michael McIntyre @wtfender
Source
github.com/SigmaHQ/sigma

Detects a change in the AWS Identity Center (FKA AWS SSO) identity provider. A change in identity provider allows an attacker to establish persistent access or escalate privileges via user impersonation.

MITRE ATT&CK coverage

Rule body yaml

title: AWS Identity Center Identity Provider Change
id: d3adb3ef-b7e7-4003-9092-1924c797db35
status: test
description: |
    Detects a change in the AWS Identity Center (FKA AWS SSO) identity provider.
    A change in identity provider allows an attacker to establish persistent access or escalate privileges via user impersonation.
references:
    - https://docs.aws.amazon.com/singlesignon/latest/userguide/app-enablement.html
    - https://docs.aws.amazon.com/singlesignon/latest/userguide/sso-info-in-cloudtrail.html
    - https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiamidentitycentersuccessortoawssinglesign-on.html
author: Michael McIntyre @wtfender
date: 2023-09-27
tags:
    - attack.persistence
    - attack.credential-access
    - attack.defense-impairment
    - attack.t1556
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource:
            - 'sso-directory.amazonaws.com'
            - 'sso.amazonaws.com'
        eventName:
            - 'AssociateDirectory'
            - 'DisableExternalIdPConfigurationForDirectory'
            - 'DisassociateDirectory'
            - 'EnableExternalIdPConfigurationForDirectory'
    condition: selection
falsepositives:
    - Authorized changes to the AWS account's identity provider
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource:
        - 'sso-directory.amazonaws.com'
        - 'sso.amazonaws.com'
    eventName:
        - 'AssociateDirectory'
        - 'DisableExternalIdPConfigurationForDirectory'
        - 'DisassociateDirectory'
        - 'EnableExternalIdPConfigurationForDirectory'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
eventNameeq
  • AssociateDirectory
  • DisableExternalIdPConfigurationForDirectory
  • DisassociateDirectory
  • EnableExternalIdPConfigurationForDirectory
eventSourceeq
  • sso-directory.amazonaws.com
  • sso.amazonaws.com