TMAegisБета
Другие правила для mysql

MySQL

TMA-MYSQL-4.5

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

КритическийУровень 1Автоматическаяmysql

Описание

This option causes mysqld 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

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

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 MySQL.

Свойства

Операционные системы
Любая
Теги
mysqldatabaseauthentication
Источник
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 4.5 Ensure 'mysqld' is Not Started With '--skip-grant-tables'

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target mysql