aquasecurity/trivy-checks
bundle. The same air-gapped path a customer with no outbound network runs is
the one every deployment runs by default.
Kinds covered, with proof
Every kind below is asserted by a fixture test, offline, alongside a corrected file that must not raise the same rules, because a scanner that flags correct configuration cannot be trusted about the one finding it reports next to it.
The first five kinds share one test. Azure ARM and Ansible each have their
own pair of fixtures, an insecure file and its corrected twin, and a table
test (
TestIaCFormatFixtures in backend/internal/scanner/trivy) that the
insecure file raises every rule listed below and the corrected one raises none
of them.
Which rules run on Azure ARM templates
ARM templates are mapped onto the same Azure model the Terraformazurerm
resources use, so every Azure check in the bundled ruleset applies (73 rule
files, across App Service, authorization, compute, containers, databases,
Data Factory, Data Lake, Key Vault, monitoring, networking, Security Center,
storage and Synapse). The fixture test proves seven of them:
Known limits of this engine version on ARM, stated so an empty or noisy result
is not misread:
- Three storage rules fire on every ARM storage account, even a correct
one:
AZU-0056(blob soft delete),AZU-0057(queue logging) andAZU-0058(geo-redundant replication). The engine reads those settings from places a standard template does not put them (soft delete lives on theblobServiceschild resource, the SKU is a top-levelsku, not a property). Suppress them with a reason, or set a severity override, if your templates set them correctly. - Network security rules are read only as separate resources
(
Microsoft.Network/networkSecurityGroups/securityRules). A rule written inline in a group’ssecurityRulesarray is not evaluated. - Bicep files are not scanned directly; compile them to ARM JSON first
(
az bicep build).
Which rules run on Ansible playbooks
Only one Ansible module is understood:amazon.aws.s3_bucket (also
s3_bucket). Its tasks are mapped onto the AWS S3 model and every S3 check
runs against them (14 rule files). The fixture test proves six:
AWS-0089 (bucket access logging) fires on every s3_bucket task, correct
or not, because this engine version does not read the logging settings from
the task. Every other Ansible module (EC2, IAM, RDS, Azure, GCP, Kubernetes
and so on) produces no findings at all: a clean result on such a playbook
means nothing was checked, not that it is safe.
Not covered
docker-compose is not a supported misconfiguration target. Trivy has no docker-compose config analyzer: there is no rule catalogue that understands adocker-compose.yml’s shape the way it understands a Kubernetes manifest’s.
Scanning a compose file today finds nothing not because your compose file is
clean, but because nothing looked. This is stated here rather than left to
be discovered from an empty findings list.
Remediation, not just a rule id
Every misconfiguration finding carries:- the file and exact line range the rule matched (
location.path,location.start_line,location.end_line), - the resolved resource name where the engine can name one (e.g.
aws_s3_bucket.logs), not merely the file it lives in, - the rule id (e.g.
AVD-AWS-0001), and - a resolution: what to change and why it matters, in prose, not only a link.
Severity overrides: per-organization policy control
A customer who has already compensated for a specific rule elsewhere (a WAF in front of the bucket a rule flags, say) can set what severity their organization treats that rule as, without suppressing the finding and losing visibility into recurrences:iac_severity_override.set /
.removed), with the stated reason kept verbatim, because a severity a
customer disagrees with the engine about is exactly the kind of decision an
auditor needs to see who made and why.
An override never moves a finding’s identity. A misconfiguration’s
fingerprint is built from its rule id and its resolved resource (deliberately
never from severity, a file path once a resource name exists, or a line
number), so a triage decision made under one severity survives the override
being set, changed or removed, and survives the resource moving to a
different file or the file gaining an import above it that shifts every line
number below.
Suppression (silencing a specific finding, with a reason and a bounded
expiry) is a separate, general mechanism that already applies to every
finding kind including misconfigurations; see
Suppression. A severity override changes how severe
a rule IS; suppression changes whether a specific finding is currently being
triaged.
Requires policies:manage to set or remove, policies:read to list.
Surfaces
- API:
GET /api/v1/settings/iac-severity-overrideslists the overrides;PUTandDELETEon/api/v1/settings/iac-severity-overrides/{rule_id}set and remove one (see API reference). - Dashboard: misconfiguration findings appear in the shared findings list and detail view alongside every other finding kind, filterable by kind; severity overrides are managed on the Policies page, beside the remediation targets, where adding one requires a reason.
- This page: the kinds covered, the rule source, and this scanner’s actual limitations.