TMAegisベータ
mariadb のその他のルール

MariaDB

TMA-MARIADB-2.3

Do Not Specify Passwords in the Command Line

中レベル 1手動レビューmariadb

説明

When a command is executed on the command line, for example mariadb -u admin -p password, the password may be visible in the user's shell/command history or in the process list.

チェック方法

監査方法: 手動レビュー

この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。

Check the process list (ps -ef) and shell histories for mariadb/mysqldump invocations with -p<password> or --password=<password>. Any visible password is a fail.

修正方法

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

Use -p without a value (prompt), an option file with mode 0600 instead of passwords on the command line, and clear exposed history entries.

プロパティ

オペレーティングシステム
すべて
タグ
mariadbdatabasecredentialsmanual
参照
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line