More Info:
The OCI IAM password policy should require at least one lowercase character. Passwords without character diversity are significantly easier to crackRisk Level
MediumAddress
Compliance, SecurityCompliance Standards
- APRA CPS 234 (Australia)
- AWS Startup Security Baseline
- AWS Well Architected Framework
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS AWS
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- GDPR
- HIPAA
- HITRUST CSF
- ISO 27001
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIST
- NIST CSF
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- PCI
- Reserve Bank of India (RBI) Cyber Security Framework
- Reserve Bank of India (RBI) Master Direction – Information Technology Framework
- SOC2
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To require lowercase characters in your OCI IAM password policy using the OCI Console:
- Sign in to the OCI Console with a user that has tenancy-level IAM admin privileges (e.g.,
Administratorpolicy). - In the left navigation menu, go to:
Identity & Security → Identity → Domains (or Identity > Password Policy if using older UI). - If using Domains (default in newer tenancies):
- Click on your primary domain (or the domain where the users reside).
- In the left pane, select Security (or Password Policy, depending on UI version).
- Click Edit (or Edit Password Policy).
- Locate the setting for Require lowercase characters.
- Set this to Enabled / Yes (or check the checkbox).
- Review other password policy settings if needed (length, uppercase, numbers, special chars, etc.).
- Click Save changes (or Update).
Using CLI
Using CLI
To enforce lowercase characters in the OCI IAM password policy using the OCI CLI, do the following:
Or copy it from the console as
Look at the field:
Edit (adjust values to match your org’s policy; keep existing values you don’t want changed)Then apply:
You should see:
This will satisfy the “OCI IAM Password Policy Should Require Lowercase Characters” requirement, and any IAM monitoring or compliance tooling querying the tenancy password policy (including via OCI CLI) will now see that lowercase characters are enforced.
1. Prerequisites
- OCI CLI installed and configured (
oci setup config) - You have tenancy-level IAM permissions:
PASSWORD_POLICY_UPDATEPASSWORD_POLICY_READ
- Tenancy OCID (root compartment OCID), usually found in the console under:
- Identity & Security → Tenancy Details
2. Get your tenancy OCID (root compartment)
If you don’t already have it:ocid1.tenancy.oc1..xxxxx.Let’s call it:3. Check the current password policy
isLowercaseCharactersRequired(or similar, depending on CLI version)
4. Update the password policy to require lowercase characters
You can update just this field while leaving others unchanged, or set all explicitly.Option A – Minimal update (only set lowercase requirement)
If your CLI version supports partial updates:Option B – Explicit full policy update (safer/clearer)
First, get existing policy as JSON:password-policy.json and ensure:5. Verify the change
This will satisfy the “OCI IAM Password Policy Should Require Lowercase Characters” requirement, and any IAM monitoring or compliance tooling querying the tenancy password policy (including via OCI CLI) will now see that lowercase characters are enforced.
Using Python
Using Python
To enforce lowercase characters in the OCI IAM password policy using Python, you can use the OCI Python SDK to update the tenancy’s authentication policy.Below are the minimal, concrete steps.
1. Prerequisites
-
Install the OCI Python SDK:
-
Make sure you have a valid OCI config file (usually at
~/.oci/config) with: -
Note your tenancy OCID (from the config as
tenancy=or from the console).
2. Python script to require lowercase characters
This script:- Reads the current authentication policy for the tenancy.
- Sets
is_lowercase_characters_required = True. - Leaves other fields unchanged if they already exist; otherwise, they stay
None.
3. Notes for “monitoring + remediation” scenarios
- Monitoring:
- You can regularly run a script that calls
get_authentication_policyand checks:
- You can regularly run a script that calls
- Integration:
- Wire this into your monitoring stack (OCI Events + OCI Functions, or an external scheduler like cron/GitHub Actions/Jenkins) to automatically remediate when a drift is detected.
Using Terraform
Using Terraform
terraform plan will show no changes related to the IAM password policy, because it is not managed through the provider.
