Azure Redis Cache Connection String
Detects Azure Cache for Redis 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
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: redis.cache.windows.net domain combined with password parameter provides strong structural constraint unique to Azure Redis. Added context gating and exclusion rules improve precision and reduce incidental matches.
- Detection quality
- Verified
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth)
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, PCI-DSS, SOC 2
- Data categories
- credentials, security
- Scope
- specific
- Risk rating
- 10
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Degraded, Netskope: Unsupported
Pattern
(?i)[A-Za-z0-9_-]+\.redis\.cache\.windows\.net\s*[:,]\s*(?:password|ssl)\s*=\s*[A-Za-z0-9+/]{30,60}={0,2}
Corroborative evidence keywords
Redis, redis cache, Azure Redis, redis.cache.windows.net, cache connection, connection string, access key, password, api key, api_key, apikey, access token, auth token, authorization, bearer, conn str, connectionstring, cookie, credential, database (+42 more)
Proximity: 300 characters
Should match
myredis.redis.cache.windows.net,password=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==— Azure Redis connection stringtest-cache.redis.cache.windows.net:6380,password=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef==— Redis connection with portprod.redis.cache.windows.net,ssl=True,password=00000000000000000000000000000000000000==— Redis connection with SSL flag
Should not match
myredis.redis.cache.windows.net— Redis hostname without passwordredis://localhost:6379— Local Redis connection, not Azuretemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Azure Redis documentation with placeholder connection strings. Mitigation: Check for common placeholder values and documentation context.
- Development Redis Cache instances with non-production credentials. Mitigation: Flag for review regardless since connection strings reveal infrastructure details.