This rule focuses on enforcing strong password policies for IAM users.
Rule | Password policies for IAM users should have strong configurations |
Framework | CISA-cyber-essentials |
Severity | ✔ Critical |
Password Policies for IAM Users - CISA Cyber Essentials
Description:
IAM (Identity and Access Management) is a service offered by cloud providers that enables organizations to manage user access to various resources in the cloud environment. It is important to enforce strong password policies for IAM users to ensure secure authentication and protect sensitive data. CISA (Cybersecurity and Infrastructure Security Agency) Cyber Essentials provides guidelines and best practices for securing systems against cyber threats. This policy focuses on establishing strong password configurations for IAM users, in line with the CISA Cyber Essentials recommendations.
Policy Details:
The following details outline the password policy requirements for IAM users:
Password Complexity:
Password Expiration:
Password History:
Account Lockout:
Multi-Factor Authentication (MFA):
Troubleshooting Steps:
If users encounter issues complying with the password policy, the following troubleshooting steps can be followed:
Invalid Password Error:
Expired Password Error:
Account Lockout:
Code Implementation:
Depending on the cloud provider, the following code snippets can be used to configure the password policy for IAM users.
Amazon Web Services (AWS):
AWS CLI Command to update the password policy:
aws iam update-account-password-policy --minimum-password-length 12 --require-symbols --require-numbers --require-uppercase-characters --require-lowercase-characters --allow-users-to-change-password --max-password-age 90 --password-reuse-prevention 5 --hard-expiry
Microsoft Azure:
Azure CLI Command to update the password policy:
az ad tenant update --password-policy "DisablePasswordExpiration=true, PasswordLifetime=90"
Google Cloud Platform (GCP):
GCP Console steps to update the password policy:
Remediation Steps:
To enforce the password policy for IAM users, follow these steps:
Remember to document any changes made to the password policy for auditing purposes.
Note:
To further enhance security, it is recommended to implement additional measures such as monitoring for unusual account activity, regularly reviewing user access privileges, and providing security awareness training to IAM users.