1. Resources
  2. Detection rules
  3. IAM Account Password Policy Weakened or Deleted

IAM Account Password Policy Weakened or Deleted detection rules

An attacker with IAM write access changes or deletes the account password policy, so that IAM user passwords set from then on can be short, simple, reused or without expiry.

Platform
AWS
Severity
Low
Log source
AWS CloudTrail
Last updated
Rule formats
Sigmaand queries for: SplunkMicrosoft SentinelIBM QRadar
What an attacker needs
Credentials for a principal allowed to call iam:UpdateAccountPasswordPolicy or iam:DeleteAccountPasswordPolicy in the account.
Impact
Weaker rules for every IAM user password set afterwards, which makes password guessing easier and lets compromised passwords live longer.
Response
Set the approved password policy again with all of its parameters, then require a reset of the passwords that were set while the weaker policy applied.
Mitigation
Restrict the two password policy actions to identity administrators, deny them with an SCP outside approved roles, and check the policy continuously.
CloudTrail events
DeleteAccountPasswordPolicyUpdateAccountPasswordPolicy
Threat groups
FIN13Salt Typhoon

How the attack works

The account password policy sets the rules for IAM user passwords: minimum length, required character types, expiry, reuse prevention and whether users may change their own password. UpdateAccountPasswordPolicy creates or changes the custom policy. The call does not support partial updates, so every parameter that is left out reverts to its default value. DeleteAccountPasswordPolicy removes the custom policy, and IAM falls back to the default policy of at least eight characters, three of four character types and no expiry. The policy does not apply to the root user password or to access keys.

An attacker weakens the policy to prepare other steps: a simple password on a user they create or take over, an expiry removed so that a stolen password stays valid, or reuse allowed so that an old password comes back. The change does not weaken passwords that already exist, because length and character rules are enforced the next time a user changes the password. CloudTrail records both calls under iam.amazonaws.com with the caller in userIdentity. UpdateAccountPasswordPolicy carries the new settings in requestParameters, and DeleteAccountPasswordPolicy has no parameters.

What an attacker needs

  • Credentials for a principal allowed to call iam:UpdateAccountPasswordPolicy or iam:DeleteAccountPasswordPolicy.

Impact

Weaker rules for every IAM user password that is set or changed afterwards, which makes password guessing easier and lets compromised passwords live longer. The change gives no access by itself. It matters as preparation, and as a sign that someone with IAM write access is loosening controls.

Detection rules

IAM Account Password Policy Deleted

Detects DeleteAccountPasswordPolicy calls, which delete the custom password policy of the account. IAM then applies the default AWS password policy: a minimum length of 8 characters, three of four character types and no expiry. Any stronger requirement of the custom policy ends with this call. It also matches attempts that failed (errorCode present): check errorCode, because an unauthorized attempt is worth seeing.

LevelLowStatusExperimentalLog sourceAWS CloudTrail
title: IAM Account Password Policy Deleted
id: 1a51c051-f78e-4c32-897d-28082b42a1da
status: experimental
description: >-
  Detects DeleteAccountPasswordPolicy calls, which delete the custom password
  policy of the account. IAM then applies the default AWS password policy: a
  minimum length of 8 characters, three of four character types and no
  expiry. Any stronger requirement of the custom policy ends with this call.
  It also matches attempts that failed (errorCode present): check errorCode,
  because an unauthorized attempt is worth seeing.
references:
  - https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteAccountPasswordPolicy.html
  - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_account-policy.html
author: Forestall
date: 2026-11-16
tags:
  - attack.defense-impairment
  - attack.credential-access
  - attack.t1556
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    eventSource: iam.amazonaws.com
    eventName: DeleteAccountPasswordPolicy
  condition: selection
falsepositives:
  - Accounts that are moved to federated access only and no longer keep IAM user passwords, and automation that deletes and recreates the policy; confirm the change record.
level: low

False positives

  • Accounts that are moved to federated access only and no longer keep IAM user passwords, and automation that deletes and recreates the policy; confirm the change record.

IAM Account Password Policy Updated

Detects UpdateAccountPasswordPolicy calls, which create or change the custom password policy of the account. The rule cannot tell whether the new policy is weaker: compare requestParameters with the previous policy. The call does not support partial updates, so a parameter that is missing from the request was reset to its default value. It also matches attempts that failed (errorCode present): check errorCode, because an unauthorized attempt is worth seeing.

LevelLowStatusExperimentalLog sourceAWS CloudTrail
title: IAM Account Password Policy Updated
id: af516340-126d-42c6-85cd-29dfff539f0c
status: experimental
description: >-
  Detects UpdateAccountPasswordPolicy calls, which create or change the custom
  password policy of the account. The rule cannot tell whether the new policy
  is weaker: compare requestParameters with the previous policy. The call does
  not support partial updates, so a parameter that is missing from the request
  was reset to its default value.
  It also matches attempts that failed (errorCode present): check errorCode,
  because an unauthorized attempt is worth seeing.
references:
  - https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAccountPasswordPolicy.html
  - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_account-policy.html
author: Forestall
date: 2026-11-16
tags:
  - attack.defense-impairment
  - attack.credential-access
  - attack.t1556
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    eventSource: iam.amazonaws.com
    eventName: UpdateAccountPasswordPolicy
  condition: selection
falsepositives:
  - Policy changes by identity administrators and account baselines applied by infrastructure-as-code or landing zone automation, which often set the policy again on every run; allow-list those roles after confirming the settings they apply.
level: low

False positives

  • Policy changes by identity administrators and account baselines applied by infrastructure-as-code or landing zone automation, which often set the policy again on every run; allow-list those roles after confirming the settings they apply.

Triage

  • Identify the caller (userIdentity.arn) and check for an approved change.
  • For an update, compare requestParameters with the previous policy, and remember that a parameter missing from the call was reset to its default.
  • Look for CreateLoginProfile, UpdateLoginProfile and ChangePassword events after the change. They show passwords that were set under the weaker rules.
  • Check errorCode. A failed attempt shows that someone tested the permission.

Response

Once the attack is confirmed:

  1. Set the approved password policy again with all of its parameters, because a partial update resets the parameters it leaves out.
  2. List the passwords that were created or changed while the weaker policy was in force, and require a reset for each of them.
  3. Contain the principal that changed the policy by deactivating its access keys or revoking its role sessions, and review its other IAM calls in the same period.
  4. Confirm with a configuration check that the policy in the account matches the approved one.

Mitigation

  • Restrict iam:UpdateAccountPasswordPolicy and iam:DeleteAccountPasswordPolicy to identity administrators, and deny both with a service control policy outside approved roles.
  • Manage the password policy as code and check it continuously, for example with the AWS Config managed rule iam-password-policy, so that a drift is reported even when the API call is missed.
  • Require MFA for every IAM user with a console password, so that the strength of the password is not the only barrier.
  • Give people access through IAM Identity Center or federation, so that few IAM user passwords depend on this policy.

Frequently asked questions

Does a weaker password policy make the existing IAM user passwords weaker?

No. AWS documents that changes to the minimum length and the character type requirements are enforced the next time users change their passwords, and that users are not forced to change existing passwords. The risk is in the passwords that are set after the change. An expiration period is different. It is enforced immediately when it is set.

Why can a small update weaken the whole policy?

UpdateAccountPasswordPolicy does not support partial updates. AWS documents that no parameter is required and that a parameter you do not specify reverts to its default value. A call that sets only one value therefore resets all the others, which can remove the expiry, the reuse prevention or the required character types without naming them.

What applies after the password policy is deleted?

The default AWS password policy. It requires a minimum length of 8 characters and at least three of the four character types, forbids a password identical to the account name or email address, and never expires passwords. A custom policy that asked for more than this is gone after the call.

Does this policy protect the root user?

No. AWS documents that the IAM password policy does not apply to the root user password or to IAM user access keys. A change to the policy affects the console passwords of IAM users only.

References

We respect your privacy

We use cookies to keep this site secure and working properly. With your permission, we also use optional cookies to understand usage and improve the experience. Cookie Policy

You can change your choice at any time.