TMA-ALIBABA-1.10
Ensure RAM password policy require at least one number
Descripción
RAM password policies can be used to ensure password complexity. It is recommended that the password policy require at least one number. Enhancing complexity of a password policy increases account resiliency against brute force logon attempts. Reads RequireNumbers 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.
Cómo se verifica
Método de auditoría: Comando de shell
out=$(aliyun ram GetPasswordPolicy 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/.*"RequireNumbers"[[:space:]]*:[[:space:]]*"\{0,1\}\([^",}]*\)"\{0,1\}.*/\1/p' | head -n 1)
[ "$v" = true ] && echo compliant- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
aliyun ram SetPasswordPolicy --RequireNumbers true (repeat the other current policy parameters, which SetPasswordPolicy resets), or RAM console > Settings > Security Settings > Password Strength Settings.
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- alibabaram
- Referencia
- CIS Alibaba Cloud Foundation Benchmark v2.0.1 - 1.10 Ensure RAM password policy require at least one number
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
tmaegis scan --target alibaba