TMAegisBêta
Plus de règles pour mariadb

MariaDB

TMA-MARIADB-2.7

Lock Out Accounts if Not Currently in Use

MoyenneNiveau 2Revue manuellemariadb

Description

If users with accounts will not be using their account for some time, to reduce the risk of attacks or inappropriate account usage or if suspicions exist that an account might be under attack, disabling the account will secure it and once it's ready to resume use it can easily be re-enabled.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --include-manual.

Review lock status: SELECT CONCAT(user, '@', host, ' => ', JSON_DETAILED(priv)) FROM mysql.global_priv; Accounts not in use and reserved accounts must show account_locked:true.

Méthode de correction

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

ALTER USER '<user>'@'<host>' ACCOUNT LOCK; for each unused account (ACCOUNT UNLOCK when needed again).

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
mariadbdatabaseauthenticationmanual
Référence
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.7 Lock Out Accounts if Not Currently in Use