Control: 1.6 Ensure IAM password policy prevents password reuse
Description
IAM password policies can prevent the reuse of a given password by the same user. It is recommended the password policy prevent the reuse of passwords.
Enforcing password history ensures that passwords are not reused in for a certain period of time by the same user. If a user is not allowed to use last 24 passwords, that window of time is greater. This helps maintain the effectiveness of password security.
Remediation
OCI IAM without Identity Domains - Identity Cloud Service (IDCS)
- Login to IDCS Admin Console.
 - Expand the Navigation Drawer, click 
Settings, and then clickPassword Policy. - Click on 
Change Your Password Policybutton. - Update the number of remembered passwords in 
Previous passwords rememberedsetting to 24 or greater. 
OCI IAM with Identity Domains
- Go to Identity Domains: https://cloud.oracle.com/identity/domains/.
 - Select the 
Compartmentthe Domain to remediate is in. - Click on the 
Domainto remediate. - Click on 
Settings. - Click on 
Password policyto remediate. - Click Edit password rules.
 - Update the number of remembered passwords in 
Previous passwords rememberedsetting to 24 or greater. 
Usage
Run the control in your terminal:
powerpipe control run oci_compliance.control.cis_v200_1_6Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run oci_compliance.control.cis_v200_1_6 --shareSQL
This control uses a named query:
select  id as resource,  'info' as status,  'Manual verification required.' as reason,  namefrom  oci_identity_tenancy;