Microsoft Bing Maps Key
Detects Microsoft Bing Maps API key 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: structurally constrained 64-character pattern with Bing Maps context keywords reduces false positive rates significantly. 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)(?:bing[._-]?maps[._-]?key|bingmaps[._-]?key|maps[._-]?api[._-]?key)\s*[:=]\s*"?[A-Za-z0-9_\-\s]{60,74}"?
Corroborative evidence keywords
Bing Maps, bingmaps, maps key, virtualearth, dev.virtualearth.net, map api, geocode, bing, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie (+45 more)
Proximity: 300 characters
Should match
bing_maps_key=AAAA0000BBBB1111CCCC2222DDDD3333EEEE4444FFFF5555GGGG6666HHHH7777— Bing Maps API key (64 chars)bingmaps_key: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678901"— Bing Maps key with mixed charactersmaps_api_key="0000000000000000000000000000000000000000000000000000000000000000"— Maps key with placeholder value
Should not match
bing_maps_key=""— Empty key valuebing_maps_key=short— Too short to be a valid Bing Maps keytemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Bing Maps documentation and sample applications with placeholder API keys. Mitigation: Check for common placeholder patterns and documentation context.
- Other 64-character API keys from non-Bing services. Mitigation: Use Bing Maps specific keywords (virtualearth, bing maps) for differentiation.