TMAegis
tdsql 관련 규칙 더 보기

TMA-TDSQL-5.2

Ensure the `root` Account Is Disabled or Hardened

높음레벨 1수동 검토tdsql

설명

MySQL's root superuser account holds all privileges. In the TDSQL architecture, instance management is performed by system accounts (tdsqlsys_*), and root should not be used for daily operations.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

1. Check whether TDSQL has forbidden root user operations: # Check whether root is forbidden in the OSS configuration grep "forbidden" <oss_config> | grep "root" 2. Check the root account status in the MySQL instance: SELECT User, Host, account_locked FROM mysql.user WHERE User = 'root';

조치 방법

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

1. Ensure the OSS configuration db_user_root.forbidden = true (the TDSQL default). 2. If a root account exists, lock it: ALTER USER 'root'@'localhost' ACCOUNT LOCK; 3. Or change the root password to a strong random value and store it only in a secure password management system.

속성

운영 체제
모두
태그
tdsqlauthentication
참고 자료
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 5.2 Ensure the `root` Account Is Disabled or Hardened