MySQL Credentials CLI

ID

mysql_cli

Severity

high

Vendor

MySQL

Family

Data Storage Secret

Description

MySQL is an open-source relational database management system.

Security

Any hardcoded MySQL Connection String or Credential is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your MySQL resource.

Examples

mysql --user=root --password=p@assworF --host=db-mysql-ams3-.a.db.ondigitalocean.com

Mitigation / Fix

  1. Remove the password from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s).

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.