TMAegis
Plus de règles pour alibaba

TMA-ALIBABA-1.9

Ensure RAM password policy require at least one symbol

ÉlevéeNiveau 1Automatiséealibaba

Description

RAM password policies can be used to ensure password complexity. It is recommended that the password policy require at least one symbol. Enhancing complexity of a password policy increases account resiliency against brute force logon attempts. Reads RequireSymbols 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.

Méthode de vérification

Méthode d'audit: Commande shell

shell
out=$(aliyun ram GetPasswordPolicy 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/.*"RequireSymbols"[[:space:]]*:[[:space:]]*"\{0,1\}\([^",}]*\)"\{0,1\}.*/\1/p' | head -n 1)
[ "$v" = true ] && echo compliant
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
alibabaram
Référence
CIS Alibaba Cloud Foundation Benchmark v2.0.1 - 1.9 Ensure RAM password policy require at least one symbol

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target alibaba