Database Connection Strings

Detects database connection strings and embedded credentials across SQL Server, MySQL, PostgreSQL, MongoDB, Redis, Azure, Oracle, Elasticsearch, and Kubernetes.

Jurisdictions
global
Regulations
general-data-protection
Patterns
12

Patterns in this collection

Azure Service Bus Connection String

Detects Azure Service Bus Connection String patterns. This pattern is based on a Microsoft Purview built-in sensitive information type. Users already running Purview may prefer to enable the built-in SIT directly, or use this version as a starting point for customisation.

Type
regex
Confidence
high

Azure Storage Connection String

Detects Azure Storage Connection String patterns. This pattern is based on a Microsoft Purview built-in sensitive information type. Users already running Purview may prefer to enable the built-in SIT directly, or use this version as a starting point for customisation.

Type
regex
Confidence
high

Elasticsearch URI with Credentials

Detects Elasticsearch URI with Credentials patterns.

Type
regex
Confidence
high

GCP Service Account JSON Key

Detects GCP service-account JSON key files, distinguishing bare type=service_account record markers (discovery only) from complete keys whose object also carries an escaped PEM private_key and a .iam.gserviceaccount.com client_email (enforcing), with project_id/private_key_id as additional high-confidence evidence.

Type
regex
Confidence
low

Generic Database Credentials in URL

Detects database connection URLs with embedded user:password@host credentials, restricted to database schemes (mongodb/mongodb+srv, postgres/postgresql, mysql, redis/rediss, mssql/sqlserver, oracle, jdbc). Placeholder passwords and localhost/example hosts are rejected; non-database credential URLs (AMQP, LDAP, FTP) belong to a separate service-URL credential classifier.

Type
regex
Confidence
low

Kubernetes Internal Service URL

Detects Kubernetes Internal Service URL patterns.

Type
regex
Confidence
medium

Mongodb

Detects Mongodb patterns.

Type
regex
Confidence
high

Mysql

Detects Mysql patterns.

Type
regex
Confidence
low

Oracle Connection String

Detects Oracle Connection String patterns.

Type
regex
Confidence
high

Postgresql

Detects Postgresql patterns.

Type
regex
Confidence
high

Redis

Detects Redis patterns.

Type
regex
Confidence
low

SQL Server

Detects SQL Server patterns. This pattern is based on a Microsoft Purview built-in sensitive information type. Users already running Purview may prefer to enable the built-in SIT directly, or use this version as a starting point for customisation.

Type
regex
Confidence
high