MFA not enabled on AWS Root Account
ID: iam-root-mfa
Severity: high
Author: princechaddha
Tags: cloud,devops,aws,amazon,iam,aws-cloud-config
Description
Section titled “Description”Checks if Multi-Factor Authentication (MFA) is enabled for the AWS root account
YAML Source
Section titled “YAML Source”id: iam-root-mfainfo: name: MFA not enabled on AWS Root Account author: princechaddha severity: high description: | Checks if Multi-Factor Authentication (MFA) is enabled for the AWS root account reference: - https://docs.aws.amazon.com/cli/latest/reference/iam/get-account-summary.html tags: cloud,devops,aws,amazon,iam,aws-cloud-config
self-contained: truecode: - engine: - sh - bash source: | aws iam get-account-summary | jq -r '.SummaryMap.AccountMFAEnabled'
matchers: - type: word words: - "0"
extractors: - type: dsl dsl: - '"MFA is not enabled on your AWS Root account"'# digest: 4a0a00473045022100d201d32b0da13fa8e03a3a9fef2626d353aa472e1372bd17988dda8bb9ed6c9a022043264b286449598c5863fcf4ebf279221f5e85c142e61fb684bb7b0c6f473565:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "cloud/aws/iam/iam-root-mfa.yaml"