Skip to main content

More Info:

The OCI IAM password policy should require at least one special character (symbol). Special characters dramatically increase password complexity and resistance to automated cracking

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 require special characters in the OCI IAM password policy via the OCI Console:
  1. Sign in
    Log in to the OCI Console with a user that has tenancy-level IAM admin permissions.
  2. Go to Identity Domains
    • In the left navigation menu, click Identity & Security.
    • Click Domains (or Identity Domains, depending on your console view).
  3. Select the domain
    • Click your main identity domain (often named Default or similar, where your IAM users reside).
  4. Open the Password Policy
    • In the domain details page, go to Security.
    • Click Password Policy (or similar “Password” / “Authentication” settings option).
  5. Edit the policy
    • Click Edit (or the equivalent action button for modifying the password policy).
    • Locate the setting for special characters, often labeled like:
      • Require special characters or
      • Minimum number of special characters
  6. Enable special characters requirement
    • Check Require special characters (or set the Minimum number of special characters to at least 1).
    • Optionally, review and adjust other password settings if needed (length, numbers, uppercase, etc.).
  7. Save changes
    • Click Save or Update to apply the new password policy.
  8. Confirm application
    • Verify the updated policy is visible in the Password Policy page.
    • New password changes/resets will now require special characters for users in this identity domain.
Below is how to enforce “special characters required” in the OCI IAM password policy using the OCI CLI.

1. Prerequisites

  • OCI CLI installed and configured (oci setup config)
  • You have the tenancy OCID and permissions to modify IAM authentication policy.
Tenancy OCID is usually in your config file as tenancy= or visible in the console under: Profile → Tenancy Information.

2. (Optional) View the current password policy

Look at the passwordPolicy block to see current settings.

3. Update the password policy to require special characters

You must submit the full passwordPolicy object, not just the changed field. Example with strong defaults:
Key field for your finding:
  • "isSpecialCharactersRequired": true
Adjust other fields (length, numeric, etc.) as needed for your environment.

4. Confirm the change

Verify isSpecialCharactersRequired is true.
Below is a minimal, end‑to‑end way to check and remediate the OCI IAM password policy so that special characters are required, using Python and the OCI SDK.

1. Prerequisites

  1. Install the OCI Python SDK:
  2. Ensure you have an OCI config file (usually at ~/.oci/config) with:
    • user
    • fingerprint
    • key_file
    • tenancy
    • region
    And a profile (e.g., DEFAULT).
  3. The user/principal running this must have permission to:
    or equivalent IAM policies, e.g.:

2. Python Script: Monitor & Remediate Special Character Requirement

This script:
  1. Reads the current authentication (password) policy at the tenancy level.
  2. Checks whether is_special_characters_required is True.
  3. If not, updates the policy to set it to True (leaving other settings unchanged).

3. Turn This Into “Monitoring + Auto-Remediation”

To use this as a monitoring/remediation job:
  • Run it on a schedule (e.g., OCI Functions, OCI DevOps Pipeline, or a cron job on a bastion/CI server).
  • Optionally:
    • Log when a remediation is performed.
    • Send notifications (via OCI Notifications/Email) when a change was needed.
This ensures your OCI IAM password policy always enforces special characters.
This updates the IAM password policy so that passwords must include at least one special character; it is an in-place update and does not replace the resource.After you add or modify this resource, terraform plan should show an in-place update to oci_identity_authentication_policy.iam_password_policy with is_special_characters_required changing from false (or unset) to true.