TMAegis베타
mariadb 관련 규칙 더 보기

MariaDB

TMA-MARIADB-2.8

Ensure Socket Peer-Credential Authentication is Used Appropriately

보통레벨 2수동 검토mariadb

설명

The server-side unix_socket authentication plugin authenticates clients that connect to the MariaDB server from the local host through the Unix socket file. Users authenticated using unix_socket need not specify a password when connecting to the server.

점검 방법

감사 방식: 수동 검토

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

Run SELECT PLUGIN_NAME, PLUGIN_STATUS FROM information_schema.PLUGINS WHERE PLUGIN_NAME = 'unix_socket'; and SELECT CONCAT(user,'@',host,' => ',JSON_DETAILED(priv)) FROM mysql.global_priv WHERE JSON_CONTAINS(priv, '{"plugin":"unix_socket"}', '$.auth_or'); Use of the plugin when not allowed, a non-localhost host or an unauthorized user is a fail.

조치 방법

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

Restrict unix_socket to authorized local accounts (ALTER USER ... IDENTIFIED VIA ...), or disable the plugin with unix_socket=OFF under [mariadbd] if your policy forbids it.

속성

운영 체제
모두
태그
mariadbdatabaseauthenticationmanual
참고 자료
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.8 Ensure Socket Peer-Credential Authentication is Used Appropriately