TMAegis베타
mariadb 관련 규칙 더 보기

MariaDB

TMA-MARIADB-2.7

Lock Out Accounts if Not Currently in Use

보통레벨 2수동 검토mariadb

설명

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.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --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.

조치 방법

조치 방식: 가이드 또는 인프라 패치

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

속성

운영 체제
모두
태그
mariadbdatabaseauthenticationmanual
참고 자료
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.7 Lock Out Accounts if Not Currently in Use