MariaDB
TMA-MARIADB-2.3
Do Not Specify Passwords in the Command Line
MediaNivel 1Revisión manualmariadb
Descripción
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.
Cómo se verifica
Método de auditoría: Revisión manual
Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --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.
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
Use -p without a value (prompt), an option file with mode 0600 instead of passwords on the command line, and clear exposed history entries.
Propiedades
- Sistemas operativos
- Cualquiera
- Etiquetas
- mariadbdatabasecredentialsmanual
- Referencia
- CIS MariaDB 10.11 Benchmark v1.0.0 - 2.3 Do Not Specify Passwords in the Command Line