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
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
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
Detects Elasticsearch URI with Credentials patterns.
- Type
- regex
- Confidence
- high
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
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
Detects Kubernetes Internal Service URL patterns.
- Type
- regex
- Confidence
- medium
Detects Mongodb patterns.
- Type
- regex
- Confidence
- high
Detects Mysql patterns.
- Type
- regex
- Confidence
- low
Detects Oracle Connection String patterns.
- Type
- regex
- Confidence
- high
Detects Postgresql patterns.
- Type
- regex
- Confidence
- high
Detects Redis patterns.
- Type
- regex
- Confidence
- low
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