Environment configuration files

Identifies environment and application configuration files (.env, appsettings.json, application.properties/yml, web.config) with populated configuration: environment variable assignments, connection/host values or config sections. Secret values themselves are handled by the credential classifiers.

Type
regex
Engine
boost_regex
Confidence
medium
Confidence justification
Medium confidence: file-name wording is discovery-only; enforcement requires populated assignments, hosts or sections, and 85 adds a second structure and environment context.
Detection quality
Topic false positive
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth)
Frameworks
ISO 27001, NIST CSF, CIS Controls
Data categories
security, technology
Scope
wide
Risk rating
7
Platform compatibility
Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported

Pattern

(?i)(?:(?<![\w.])\.env(?:\.(?:local|production|prod|staging|development|dev|test))?\b|\bappsettings(?:\.[A-Za-z]{2,20})?\.json\b|\bapplication(?:-[a-z]{2,20})?\.(?:properties|ya?ml)\b|\bweb\.config\b|\bdotenv\s+file\b|\benvironment\s+(?:configuration|variables?)\s+(?:file|for\s+(?:production|staging|prod))\b)

Corroborative evidence keywords

production, staging, do not commit, secrets manager, key vault

Proximity: 300 characters

Should match

Should not match

Known false positives

References