TMA-MYSQL-5.1
Ensure Only Administrative Users Have Full Database Access
Descripción
The mysql.user, mysql.db, and other mysql tables ending in _priv list a variety of privileges that can be granted (or denied) to MySQL users. Some of the privileges of concern include: Select_priv, Insert_priv, Update_priv, Delete_priv, Drop_priv, and so on.
Cómo se verifica
Método de auditoría: Revisión manual
Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --include-manual.
Run SELECT * FROM information_schema.user_privileges WHERE grantee NOT LIKE ('\'mysql.%localhost\''); and ensure all returned users are administrative users with the minimal privileges required.
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
REVOKE unnecessary privileges (e.g. REVOKE ALL PRIVILEGES ON *.* FROM '<user>'@'<host>';) and GRANT only database-level privileges that are needed.
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- mysqldatabaseauthorizationmanual
- Referencia
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.1 Ensure Only Administrative Users Have Full Database Access