TMAegisBêta
Plus de règles pour mariadb

MariaDB

TMA-MARIADB-2.3

Do Not Specify Passwords in the Command Line

MoyenneNiveau 1Revue manuellemariadb

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --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.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
mariadbdatabasecredentialsmanual
Référence
CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line