TMAegis
mariadb のその他のルール

TMA-MARIADB-4.5

Ensure mariadb is Not Started With 'skip-grant-tables'

クリティカルレベル 1自動mariadb

説明

This option causes mariadbd to start without using the privilege system. Counts enabled skip-grant-tables settings in the server option groups and on the running server command line.

チェック方法

監査方法: シェルコマンド

shell
c=$(my_print_defaults --mysqld 2>/dev/null) || exit 1; p=$(ps -eo comm=,args= 2>/dev/null) || exit 1; n=$( { printf '%s\n' "$c"; printf '%s\n' "$p" | awk '$1=="mysqld"||$1=="mariadbd"' | tr ' ' '\n'; } | grep -Eic '^--skip[-_]grant[-_]tables(=(1|on|true|yes))?$' ); echo "$n"
期待される出力
0

修正方法

修正方法: ガイダンスまたは IaC パッチ

Remove skip-grant-tables (and skip_grant_tables) from the option files or set skip-grant-tables = FALSE, remove it from the start-up command line, and restart MariaDB.

プロパティ

オペレーティングシステム
すべて
タグ
mariadbdatabaseauthentication
参照
CIS MariaDB 10.11 Benchmark v1.0.0 - 4.5 Ensure mariadb is Not Started With 'skip-grant-tables'

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target mariadb