TMA-TDSQL-4.8
Ensure High-Risk Parameters Cannot Be Arbitrarily Modified via `SET GLOBAL`
Description
Users with the SUPER or SYSTEM_VARIABLES_ADMIN privilege can modify system variables online via SET GLOBAL, including security-related parameters (such as sql_mode, read_only).
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.
Run SELECT User, Host FROM mysql.user WHERE Super_priv = 'Y' AND User NOT LIKE 'tdsqlsys%'; and check SYSTEM_VARIABLES_ADMIN grants (SELECT * FROM mysql.global_grants WHERE PRIV = 'SYSTEM_VARIABLES_ADMIN'). Only TDSQL system accounts may hold them; with audit logging enabled, review the audit trail for unexpected SET GLOBAL statements.
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
1. Allow only TDSQL system accounts (tdsqlsys_*) to hold the SUPER privilege. 2. Have business accounts modify parameters uniformly through the OSS management interface. 3. Enable audit logging of SET GLOBAL operations.
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- tdsqlprivileges
- Référence
- CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 4.8 Ensure High-Risk Parameters Cannot Be Arbitrarily Modified via `SET GLOBAL`