π AWS IAM User has more than one active access key π’
- Contextual name: π User has more than one active access key π’
- ID:
/ce/ca/aws/iam/user-has-more-than-one-active-access-key
- Located in: π AWS IAM
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-30795016
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-30795016 | 1 |
Logicβ
- π§ prod.logic.yaml π’
- π AWS IAM User
- π AWS IAM User - credReport.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
Access keys are long-term credentials for an IAM user or the AWS account root user. You can use access keys to sign programmatic requests to the AWS CLI or AWS API (directly or using the AWS SDK)
Rationaleβ
One of the best ways to protect your account is to not allow users to have multiple access keys.
Auditβ
From Consoleβ
Sign in to the AWS Management Console and navigate to IAM dashboard at https://console.aws.amazon.com/iam/.
In the left navigation panel, choose
Users
.Click on the IAM user name that you want to examine.
On the IAM user configuration page, select
Security Credentials
tab.Under
Access Keys
section, in the Status column, check the current status for each access key associated with the IAM user. If the selected IAM user has more than one access key activated then the users access configuration does not adhere to security best practices and the risk of accidental exposures increases.
- Repeat steps no. 3 β 5 for each IAM user in your AWS account.
From Command Lineβ
... see more
Remediationβ
Remediationβ
From Consoleβ
- Sign in to the AWS Management Console and navigate to IAM dashboard at https://console.aws.amazon.com/iam/.
- In the left navigation panel, choose
Users
.- Click on the IAM user name that you want to examine.
- On the IAM user configuration page, select
Security Credentials
tab.- In
Access Keys
section, choose one access key that is less than 90 days old. This should be the only active key used by this IAM user to access AWS resources programmatically. Test your application(s) to make sure that the chosen access key is working.- In the same
Access Keys
section, identify your non-operational access keys (other than the chosen one) and deactivate it by clicking theMake Inactive
link.- If you receive the
Change Key Status
confirmation box, clickDeactivate
to switch off the selected key.- Repeat steps no. 3 β 7 for each IAM user in your AWS account.
From Command Lineβ
- Using the IAM user and access key information provided in the
Audit CLI
, choose one access key that is less than 90 days old. This should be the only active key used by this IAM user to access AWS resources programmatically. Test your application(s) to make sure that the chosen access key is working.... see more