TMAegis
Thêm quy tắc cho mysql

TMA-MYSQL-5.1

Ensure Only Administrative Users Have Full Database Access

CaoCấp 1Xem xét thủ côngmysql

Mô tả

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ách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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ách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

REVOKE unnecessary privileges (e.g. REVOKE ALL PRIVILEGES ON *.* FROM '<user>'@'<host>';) and GRANT only database-level privileges that are needed.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
mysqldatabaseauthorizationmanual
Tham chiếu
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.1 Ensure Only Administrative Users Have Full Database Access