AWS IAM Password Policy Recon by Rare User

Last updated 10 days ago on 2026-11-11
Created 10 days ago on 2026-11-11

About

Identifies the first time, within a lookback window, an identity retrieves the AWS account password policy via the IAM "GetAccountPasswordPolicy" API. Adversaries with compromised credentials enumerate the password policy to understand credential requirements and plan password spraying, brute force, or new-access-key persistence. This is a New Terms rule detecting a rare occurrence of the "cloud.account.id", "user.name", and "source.as.organization.name" tuple for this action.
Tags
Domain: CloudData Source: AWSData Source: Amazon Web ServicesDomain: IdentityPlatform: AWSData Source: AWS CloudTrailService: AWS IAMTactic: DiscoveryRule Type: New TermsLanguage: kuery
Severity
low
Risk Score
21
MITRE ATT&CK™

Discovery (TA0007)(external, opens in a new tab or window)

False Positive Examples
IAM, security, and compliance administrators, CSPM tooling, and landing-zone automation may read the account password policy legitimately. Interactive or one-off use from unusual principals, networks, or tooling warrants review.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
New Terms Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-aws.cloudtrail-*
Related Integrations

aws(external, opens in a new tab or window)

Query
text code block:
data_stream.dataset: "aws.cloudtrail" and event.provider: "iam.amazonaws.com" and event.action: "GetAccountPasswordPolicy" and event.outcome: "success" and source.ip: * and cloud.account.id: * and user.name: * and source.as.organization.name: ( * and not ( "Google LLC" or "Amazon.com, Inc." or "Microsoft Corporation" or "GOOGLE-CLOUD-PLATFORM" or "MICROSOFT-CORP-MSN-AS-BLOCK" or "AMAZON-AES" or "AMAZON-02" ) ) and not aws.cloudtrail.user_identity.invoked_by: ("config.amazonaws.com" or "trustedadvisor.amazonaws.com")

Install detection rules in Elastic Security

Detect AWS IAM Password Policy Recon by Rare 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(external, opens in a new tab or window).