Skip to main content

More Info:

The IAM password policy should enforce strong requirements including minimum 14 characters, uppercase, lowercase, numbers, and special characters. Weak policies allow easily compromised passwords.

Risk Level

Medium

Address

Compliance, Security

Compliance 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

Using Console

To remediate “OCI IAM Password Policy Should Enforce Strong Requirements” using the OCI Console, you need to tighten the password policy on your Identity Domain(s).Follow these steps:
  1. Sign in to OCI Console
    • Log in as a user with permissions to manage identity domains (e.g., tenancy admin).
  2. Open the Identity Domain
    • In the left menu, go to:
      Identity & Security → Domains
    • Click the Identity Domain you are using for your users (for most environments this is the “Default” domain unless you created others).
  3. Go to Password Policy Settings
    • Inside the domain, in the left pane, select:
      Security → Password Policy
  4. Configure Strong Password Requirements
    Adjust settings to meet strong requirements (and typically satisfy OCI Cloud Guard / security checks), for example:
    • Minimum password length: set to at least 12 (or your org standard, often ≥ 12–14).
    • Require character types (enable all):
      • Require uppercase letters
      • Require lowercase letters
      • Require numbers
      • Require special characters
    • Password history: keep users from reusing passwords (e.g., remember last 5–10 passwords).
    • Password expiration: set to expire after a period (e.g., 90 days or as per policy).
    • Account lockout:
      • Lock account after X failed attempts (e.g., 5).
      • Set lockout duration or require admin unlock (per your policy).
    • Disallow username or parts of name in password if that option is available in your tenancy.
  5. Save the Policy
    • Click Save (or Save changes) at the bottom of the page.
  6. Verify Remediation (Optional but Recommended)
    • If you are using Cloud Guard, ensure the relevant Detector Recipe for IAM password policy is enabled.
    • After the policy is updated, allow a few minutes and then:
      • Go to Cloud Guard → Detector Recipes / Problems
      • Confirm that the “IAM Password Policy Should Enforce Strong Requirements” problem is no longer listed (or has been resolved) for that domain.
Repeat the same steps for each Identity Domain where local users are managed, if you have more than one.
Below are the concise steps to remediate “OCI IAM Password Policy Should Enforce Strong Requirements” using the OCI CLI.Assumptions:
  • You’re using OCI IAM (classic), not Identity Domains.
  • You have tenancy OCID and OCI CLI already configured (oci setup config).

1. Get your Tenancy OCID (if you don’t already have it)

If you don’t know it, from CLI:
Or look it up in the Console:
Profile → Tenancy: the OCID is shown there.
Let’s call it:

2. Check the current password policy

Review the output to see existing settings.

3. Define a strong password policy in JSON

Create a file password_policy.json with strong requirements, e.g.:
Adjust values per your policy if needed.

4. Update the password policy using OCI CLI


5. Verify the updated policy

Confirm the returned fields match your strong requirements.
If you share the exact policy standard you must meet (e.g., CIS, internal policy), I can provide a JSON snippet tailored to that.
To enforce a strong OCI IAM password policy and monitor/remediate it using Python, you’ll:
  1. Read the current authentication (password) policy.
  2. Compare it to your required “strong” standards.
  3. If it’s weaker, update it via the OCI Python SDK.
Below is a concise, end‑to‑end example.

1. Prerequisites

  • OCI Python SDK installed:
  • A config file (default: ~/.oci/config) with a profile that has identity:AUTHENTICATION_POLICY_UPDATE permission on the tenancy.
Example policy in IAM:

2. Decide Your “Strong” Password Requirements

Example strong policy (adjust as needed):
  • Minimum length: 14
  • Require lowercase, uppercase, numbers, special characters
  • Disallow username in password
  • Optional: set password hard expiry, etc.

3. Python Script: Monitor and Remediate Password Policy


4. Using This for “Monitoring”

  • Run this script periodically (e.g., via cron, CI pipeline, or an external scheduler).
  • Treat it as a monitor + auto‑remediator:
    • It inspects the current policy.
    • If it’s already strong, it does nothing.
    • If it’s weak, it automatically remediates.
If you want it to only alert and not change anything, you can:
  • Keep is_policy_strong() logic.
  • When policy is weak, just log/send an alert (email, Slack, etc.) instead of calling update_authentication_policy.