Detection rules › Sigma

AWS Root Credentials

Status
test
Severity
medium
Log source
product aws, service cloudtrail
Author
vitaliy0x1
Source
github.com/SigmaHQ/sigma

Detects AWS root account usage

MITRE ATT&CK coverage

Rule body yaml

title: AWS Root Credentials
id: 8ad1600d-e9dc-4251-b0ee-a65268f29add
status: test
description: Detects AWS root account usage
references:
    - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html
author: vitaliy0x1
date: 2020-01-21
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.initial-access
    - attack.persistence
    - attack.stealth
    - attack.t1078.004
logsource:
    product: aws
    service: cloudtrail
detection:
    selection_usertype:
        userIdentity.type: Root
    selection_eventtype:
        eventType: AwsServiceEvent
    condition: selection_usertype and not selection_eventtype
falsepositives:
    - AWS Tasks That Require AWS Account Root User Credentials https://docs.aws.amazon.com/general/latest/gr/aws_tasks-that-require-root.html
level: medium

Stages and Predicates

Stage 0: condition

selection_usertype and not selection_eventtype

Stage 1: selection_usertype

selection_usertype:
    userIdentity.type: Root

Stage 2: not selection_eventtype

selection_eventtype:
    eventType: AwsServiceEvent

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
eventTypeeqAwsServiceEvent

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
userIdentity.typeeq
  • Root