Skip to content

IaC scan

IaC scan is in the sidebar under Infra › IaC scan (shortcut g then i). It shows the result of checking your infrastructure templates before they are applied: the untrust iacscan gate's verdict for every run, the rules it ran and your organization's custom rules. The header asks Will the infrastructure you are about to deploy hold the boundary? The findings themselves are triaged on the Findings page under the Infra phase.

What the IaC scan reads

untrust iacscan reads one template file as data. It never runs Terraform, calls a cloud API or resolves remote modules. The format is detected automatically:

Input Shown as Rules
Terraform plan JSON (terraform show -json) Terraform 30
AWS CloudFormation template, JSON or YAML CloudFormation 8
Azure Resource Manager template ARM 9
Azure Bicep source Bicep The 9 ARM rules
GCP Deployment Manager configuration (YAML) GCP Deployment Manager 8
Kubernetes manifest Kubernetes 10

A receipt whose format the console does not recognise reads IaC template.

Limits and behaviour:

  • The input is a regular UTF-8 file of at most 2 MB.
  • YAML anchors and aliases are refused.
  • Bicep is not evaluated. Literals are kept; parameters, variables, function calls and other expressions are not, so a rule that depends on one reads SKIP. An existing resource, a for loop or a module is reported as not assessed. Anything the scanner cannot parse with confidence makes the run ERROR, never a pass.
  • A resource a rule cannot resolve from the template, such as a security group from a module output, reads SKIP, never PASS.
  • With --source-dir, each Terraform finding gets a best-effort file:line, found by a text search of your configuration directory. It is a pointer for a person, not a fact.

CI gates has the command and its options.

What the rules check

The 69 built-in IaC rules look for the settings that keep a confidential workload's boundary intact. The Class column on the Rules tab groups them:

Class Examples
key release KMS keys with a public principal, attestation-gated KMS operations without RecipientAttestation, KMS grants on an enclave key, Azure Secure Key Release policies that pin no measurement, Key Vault purge protection and network deny
workload identity Confidential Space Workload Identity Federation conditions that do not pin an image digest or bind to a code measurement
bootstrap write scope Public bucket access or public write, uniform bucket-level access, HTTPS-only storage
audit trail CloudTrail log file validation
network exposure Security groups that allow public egress from an enclave host
workload isolation Confidential pods that run privileged, mount host paths, share host namespaces, skip the confidential runtime class or bind no attestation policy; Confidential GKE nodes
host hygiene IMDSv2, Secure Boot, vTPM, integrity monitoring, confidential computing on, serial console and boot diagnostics off, encrypted disks, Nitro Enclaves and SEV-SNP enabled where declared, no automatic public IPv4, outbound internet denied for confidential VMs
debug-mode The Confidential Space debug image

An IaC rule evaluates the template itself, so a failing rule is a confirmed match and can block the gate.

How results arrive

Today IaC scan is filled by your CI. The pipeline runs untrust iacscan on the plan or template, keeps the JSON receipt and sends it to the console with its own OpenID Connect identity through a registered CI binding. A new binding accepts iac receipts. Scan code and IaC in CI covers the binding and the upload.

When a receipt is ingested, the service recomputes the gate against your organization's armed custom rules and rule levels, and stores the verdict with the receipt.

The empty state reads No IaC scans yet and offers Connect GitHub. Connecting repositories so untrust scans them itself is not available yet on the hosted service; use the CI upload.

Scans tab

The default tab. One row per IaC receipt, newest first, plus any scan a CI run reported as started that has no receipt yet.

Column Shows
Scan A short ID such as iac-1a2b3c and the time the receipt was received (UTC).
Repository The repository and the template file, with the format under it.
Revision The branch or pull request and the short commit.
Trigger CI · push, CI · pull request, CI · tag, CI · merge queue, CI · release, Scheduled or Manual, as reported by the CI run.
Rules How many rules ran.
Result Failed checks by severity, worst first, or no findings; not assessed when the gate errored.
Prevents How many runtime checks this run's findings map to, and how many of those are already failing in a deployed workload (· N live).
Time The run's duration, when CI reported start and finish times.
Status PASSED, FAILED, ERROR, WARN or NO GATE. WARN means the gate passed but the run lists findings that did not block.

The header's platform filter does not narrow this table: a template is checked by its format, not tied to one platform, and the page says so. The same receipt notes as on Source analysis appear when not every receipt was read.

Running scans work as on Source analysis: RUNNING, STALE after two hours without an update, FINISHED or FAILED until the receipt arrives. The steps are Read, Start analysis, Parse, Built-in rules, Custom rules and Gate.

Run drawer

Click a row to open its drawer (the URL keeps ?run=<id>). It has the same layout as the Source analysis run drawer: the Release gate card with the blocking findings, Not blocking · N, Rule levels applied, the rules line with Each rule's result, the facts and the command. For an ERROR gate the card gives the reasons the receipt recorded.

What differs for IaC:

  • Each rule's result is failed, passed or not assessed (every result was SKIP), with its fail, pass and skip counts. A rule that was not assessed is never counted as passed.
  • Coverage reads, for example, 12 resources · 2 fail · 9 pass · 1 skip.
  • Engine names the analyzer, such as untrust iacscan · terraform-plan-1.
  • The new and on main pills compare with the newest push run on the base branch for the same template file and format.

Each finding shows the rule, the resource address and its file:line when recorded, and:

  • Prevents at runtime: the runtime checks that catch the same misconfiguration once deployed, each tagged live (failing now; click it to open the live finding), pass or not scanned, and the detections that watch the setting. no runtime check when none maps to the rule.
  • Fix: the rule's remediation.
  • Suggested fix: for some Terraform rules (IAC-AWS-01 to IAC-AWS-03 and IAC-GCP-01 to IAC-GCP-03), the attribute to set on the resource, at its source location when recorded, and a terraform plan -target=… command to check it. untrust never applies it. The fix is withheld when the receipt's resource type or expected value does not match the rule.

Click a finding to open it in Findings. An older run's drawer notes that Findings lists the newest receipt's findings.

Rules tab

The full IaC rule catalog plus your organization's custom IaC rules, with the same columns, search, profile selector and administrator controls as the Source analysis Rules tab. For IaC:

  • Class is the boundary the rule guards (see What the rules check).
  • Scope is the cloud: AWS, GCP, Azure or Kubernetes.
  • Policy is the governance policy that maps the rule directly or through the runtime check the rule prevents.

The note under the table explains Hits (matches in the last 30 days) and that a level change applies to future scans. Profiles, floor rules and levels work as described in Rule profiles and levels.

Custom rules tab

Your organization's own IaC rules (CUS-I-…). An IaC rule matches a Resource type and an Attribute with an Operator (equals, not_equals, present, absent or contains) and, where needed, a Value of type text or number, compared strictly. States (draft, shadow, armed) and roles are the same as for build custom rules. Custom rules covers limits and dry runs.

Who can do what

Action Role
View scans, run drawers, rules and custom rules Everyone
Create draft and shadow custom rules analyst or administrator
Edit, arm, disarm and delete custom rules administrator
Change the profile, disable a rule, set a rule's level administrator

Scope

With a project scope, the Scans tab shows runs from the scope's pipelines. Custom rules and rule levels are organization-wide. The header's figures (scans in 30 days, last scan, gate pass rate and rules ran in the newest scan) are organization-wide and are hidden while a project or environment scope is on.

Where the data comes from

Data Source
Scans, findings, gate verdicts iac receipts your CI uploads through a CI binding
Running scans Progress events the same pipeline sends before its receipt
Prevents at runtime status The newest results of those runtime checks from your connected accounts' scans
Rule catalog The scanner's built-in rule list, served by the console
Rule levels, profile and custom rules Your organization's settings