IAM Password Without Uppercase Letter
- Query id: 83957b81-39c1-4191-8e12-671d2ce14354
- Query name: IAM Password Without Uppercase Letter
- Platform: Ansible
- Severity: Medium
- Category: Best Practices
- URL: Github
Description¶
IAM password should have at least one uppercase letter
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Postitive test num. 1 - yaml file
- name: Password policy for AWS account
community.aws.iam_password_policy:
state: present
min_pw_length: 8
require_symbols: false
require_numbers: true
require_uppercase: false
require_lowercase: true
allow_pw_change: true
pw_max_age: 60
pw_reuse_prevent: 5
pw_expire: false
- name: aws_iam_account_password_policy
community.aws.iam_password_policy:
state: present
min_pw_length: 8
require_symbols: false
require_numbers: true
require_lowercase: true
allow_pw_change: true
pw_max_age: 60
pw_reuse_prevent: 5
pw_expire: false
Code samples without security vulnerabilities¶
Negative test num. 1 - yaml file
- name: Ok Password policy for AWS account
community.aws.iam_password_policy:
state: present
min_pw_length: 8
require_symbols: false
require_numbers: true
require_uppercase: true
require_lowercase: true
allow_pw_change: true
pw_max_age: 60
pw_reuse_prevent: 5
pw_expire: false