Infrastructure-as-code templates

Identifies infrastructure-as-code files (Terraform, CloudFormation, ARM/Bicep, Ansible) with populated resource, provider, task or network definitions. IaC wording alone is discovery-only.

Type
regex
Engine
boost_regex
Confidence
medium
Confidence justification
Medium confidence: topic wording is discovery-only; enforcement requires IaC structure, and 85 adds a second structure and cloud security context.
Detection quality
Topic verified
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: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Degraded, Netskope: Unsupported

Pattern

(?i)\b(?:infrastructure[\s-]as[\s-]code|IaC\s+(?:templates?|modules?|repository|repo|code)|ARM\s+templates?|Bicep\s+(?:templates?|modules?|files?)|Terraform\s+(?:configuration|modules?|plan|state|code|files?)|CloudFormation\s+(?:templates?|stacks?)|Ansible\s+playbooks?|Pulumi\s+(?:program|stack)|main\.tf|terraform\.tfvars)\b

Corroborative evidence keywords

production, VPC, subnet, security group, IAM role, key vault

Proximity: 300 characters

Should match

Should not match

Known false positives

References