Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

AWS Security Hub - Detect root user lacking MFA

Back
Id6b3b9b1d-0d5d-4d4a-9f0f-8d1e2c7a5f44
RulenameAWS Security Hub - Detect root user lacking MFA
DescriptionThis query detects AWS accounts where the root user does not have multi-factor authentication (MFA) enabled, using AWS Security Hub control IAM.9 findings.

Lack of MFA on the root user increases the risk of unauthorized access and privilege abuse.
SeverityHigh
TacticsPrivilegeEscalation
Persistence
CredentialAccess
DefenseEvasion
TechniquesT1098
T1110
T1556.006
Required data connectorsAWSSecurityHub
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AWS Security Hub/Analytic Rules/IAMRootUserMFADisabled.yaml
Version1.0.0
Arm template6b3b9b1d-0d5d-4d4a-9f0f-8d1e2c7a5f44.json
Deploy To Azure
AWSSecurityHubFindings
| where RecordState == "ACTIVE" and ComplianceStatus == "FAILED"
| where tostring(AwsSecurityFindingGeneratorId) == "security-control/IAM.9"
  or tostring(ComplianceSecurityControlId) == "IAM.9"
| extend RootUserARN = tostring(Resources[0].Id)
| summarize TimeGenerated = max(TimeGenerated)
    by AwsAccountId, AwsRegion, AwsSecurityFindingTitle, AwsSecurityFindingDescription,
       AwsSecurityFindingId, ComplianceSecurityControlId, RootUserARN
relevantTechniques:
- T1098
- T1110
- T1556.006
queryPeriod: 1h
triggerOperator: gt
version: 1.0.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AWS Security Hub/Analytic Rules/IAMRootUserMFADisabled.yaml
description: |
  This query detects AWS accounts where the root user does not have multi-factor authentication (MFA) enabled, using AWS Security Hub control IAM.9 findings.
  Lack of MFA on the root user increases the risk of unauthorized access and privilege abuse.  
tactics:
- PrivilegeEscalation
- Persistence
- CredentialAccess
- DefenseEvasion
severity: High
status: Available
kind: Scheduled
triggerThreshold: 0
queryFrequency: 1h
tags:
- PCI DSS v3.2.1
- NIST 800-53 r5
- CIS AWS Foundations Benchmark v1.4.0
requiredDataConnectors:
- dataTypes:
  - AWSSecurityHubFindings
  connectorId: AWSSecurityHub
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: Name
    columnName: AwsAccountId
  - identifier: CloudAppAccountId
    columnName: RootUserARN
id: 6b3b9b1d-0d5d-4d4a-9f0f-8d1e2c7a5f44
customDetails:
  Region: AwsRegion
  ComplianceControlId: ComplianceSecurityControlId
  RootUserARN: RootUserARN
  FindingId: AwsSecurityFindingId
query: |
  AWSSecurityHubFindings
  | where RecordState == "ACTIVE" and ComplianceStatus == "FAILED"
  | where tostring(AwsSecurityFindingGeneratorId) == "security-control/IAM.9"
    or tostring(ComplianceSecurityControlId) == "IAM.9"
  | extend RootUserARN = tostring(Resources[0].Id)
  | summarize TimeGenerated = max(TimeGenerated)
      by AwsAccountId, AwsRegion, AwsSecurityFindingTitle, AwsSecurityFindingDescription,
         AwsSecurityFindingId, ComplianceSecurityControlId, RootUserARN  
alertDetailsOverride:
  alertDisplayNameFormat: AWS Account {{AwsAccountId}} root user lacks MFA
  alertDescriptionFormat: 'AWS Account {{AwsAccountId}} has root user without MFA (Resource: {{RootUserARN}}).'
name: AWS Security Hub - Detect root user lacking MFA