TMAegis
Другие правила для alibaba

TMA-ALIBABA-1.11

Ensure RAM password policy requires minimum length of 14 or greater

ВысокийУровень 1Автоматическаяalibaba

Описание

RAM password policies can be used to ensure password complexity. It is recommended that the password policy require a minimum of 14 or greater characters for any password. Enhancing complexity of a password policy increases account resiliency against brute force logon attempts. Reads MinimumPasswordLength from aliyun ram GetPasswordPolicy. Read-only aliyun CLI calls; credentials and default region come from the CLI's normal profile (aliyun configure, ~/.aliyun/config.json or ALIBABA_CLOUD_* environment variables). JSON output is parsed with sed/awk. A missing CLI or credential fails the check.

Как проверяется

Метод проверки: Команда оболочки

shell
out=$(aliyun ram GetPasswordPolicy 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/.*"MinimumPasswordLength"[[:space:]]*:[[:space:]]*"\{0,1\}\([^",}]*\)"\{0,1\}.*/\1/p' | head -n 1)
[ "$v" -ge 14 ] 2>/dev/null && echo compliant
Ожидаемый вывод
compliant

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

aliyun ram SetPasswordPolicy --MinimumPasswordLength 14 (repeat the other current policy parameters, which SetPasswordPolicy resets), or RAM console > Settings > Security Settings > Password Strength Settings.

Свойства

Операционные системы
Любая
Теги
alibabaram
Источник
CIS Alibaba Cloud Foundation Benchmark v2.0.1 - 1.11 Ensure RAM password policy requires minimum length of 14 or greater

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target alibaba