Check catalogue

Infrastructure-as-code rules

TrustIvan scans infrastructure-as-code with Trivy's misconfiguration engine and its upstream rule bundle. TrustIvan runs those rules but does not own them, so they have no pages in this catalogue.

How it works

A repository scan runs one misconfiguration scanner: Trivy, an open-source scanner developed by Aqua Security under the Apache License 2.0, embedded as a library and run offline against the aquasecurity/trivy-checks bundle shipped with TrustIvan. It makes no network call, so a deployment with no outbound access scans the same way.

Dockerfiles, Terraform, Kubernetes manifests, Helm charts and CloudFormation are each proved by a fixture test that asserts a specific finding, beside a clean file that must produce nothing. Azure ARM templates and Ansible playbooks each have their own test with an insecure and a fixed fixture: for ARM, a storage account accepting plain HTTP and TLS 1.0 and SSH open to the internet; for Ansible, a public-read S3 bucket with versioning off. Rules the engine maps onto those formats beyond the tested ones are claimed by the upstream engine, not verified by TrustIvan. docker-compose files are not scanned for misconfigurations: the engine has no analyzer for them.

What a finding carries

The file and line range the rule matched, the resource it names where the engine can name one, the upstream rule ID, and a resolution in prose. IaC findings then go through the same lifecycle, SLA, risk and policy as every other finding. An organization can set the severity it treats a rule as, with a reason that is kept on the audit trail, instead of suppressing the finding.

Why the rules are not listed here

Infrastructure-as-code misconfiguration rules (Terraform, CloudFormation, Azure ARM, Ansible, Kubernetes manifests, Dockerfiles, Helm) come from Trivy and are maintained upstream; TrustIvan runs them but does not own the list. Copying that list into these pages would make TrustIvan a second, stale source for rules it does not maintain. The upstream bundle is the authority for what each rule checks; this catalogue lists the checks TrustIvan writes and keeps.

IaC scanning in the docs · What IaC scanning is · Open source TrustIvan uses · The check catalogue

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.