TMAegisBeta
更多 tdsql 規則

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