turbot/steampipe-mod-alicloud-compliance

Control: 1.9 Ensure RAM password policy require at least one symbol

Description

RAM password policies can be used to ensure password complexity. It is recommended that the password policy require at least one symbol.

Remediation

Perform the following to set the password policy as expected:

From Console

  1. Logon to RAM console.
  2. Choose Identities > Settings.
  3. In the Password Strength Settings section, click Edit Password Rule.
  4. In the Required Elements in Password section, select Symbols.
  5. Click OK.

From Command Line

aliyun ram SetPasswordPolicy --RequireSymbols true

Usage

Run the control in your terminal:

powerpipe control run alicloud_compliance.control.cis_v100_1_9

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run alicloud_compliance.control.cis_v100_1_9 --share

SQL

This control uses a named query:

select
'acs:ram::' || a.account_id as resource,
case
when require_symbols then 'ok'
else 'alarm'
end as status,
case
when minimum_password_length is null then 'No password policy set.'
when require_symbols then 'Symbol required.'
else 'Symbol not required.'
end as reason
, a.account_id as account_id
from
alicloud_account as a
left join alicloud_ram_password_policy as pol on a.account_id = pol.account_id;

Tags