CloudBooster Guard vs Trivy (formerly tfsec): what each one checks, and when to run both
If your team used tfsec, it now uses Trivy, or has been asked to. tfsec's README says that "our engineering attention will be directed at Trivy going forward", and that Trivy has supported Terraform scanning natively for a long time (tfsec README). So this page compares CloudBooster Guard with Trivy.
The two overlap in one place: both look at Terraform before it merges. Past that, they answer different questions. Trivy asks: does this code, image or repository have a known security issue? Guard asks: does this change expose production in the AWS account it lands in? And it asks the same of a change someone just made in the console.
This page covers what each tool does, a side-by-side table, when Trivy is the better pick, and how to run both. Every claim about Trivy links to Trivy's own docs. Every claim about Guard links to ours. We checked both on 23 November 2026, against Trivy v0.76 and Guard v0.13.0.
What Trivy does
Trivy is Aqua Security's open-source scanner. Its README calls it "a comprehensive and versatile security scanner". It is licensed under Apache 2.0.
- One scanner, many targets. It scans container images, filesystems, remote Git repositories, virtual machine images and Kubernetes. It looks for vulnerable packages (CVEs), infrastructure misconfigurations, secrets and software licenses, and it builds SBOMs (README).
- Many infrastructure formats. Its misconfiguration scanning covers Terraform, Terraform plans, CloudFormation, Azure ARM templates, Helm, Kubernetes, Dockerfiles and Ansible (Supported configurations).
- Reads Terraform closely. It "evaluates variables, imports, and other elements within Terraform files", downloads remote modules, and scans a plan file or plan JSON with
trivy config tfplan.json(Terraform). - A large check library that works offline. Trivy has "an extensive library of misconfiguration checks", and the bundle is embedded in the binary, so it works without a network connection (Built-in checks). The checks repository has checks for AWS, Azure, Google Cloud and other providers.
- Your own rules. "You can write custom checks in Rego" (Custom checks).
- Fine-grained ignores. An inline
#trivy:ignore:comment can carry an expiry date (Expiration date). A.trivyignorefile works too (Filtering). - Built for pipelines. Output as a table, JSON, SARIF, JUnit and more (Reporting). There is an official GitHub Action and Azure DevOps task (CI/CD), IDE plugins, and the Trivy Operator for Kubernetes clusters (Production).
Two things to know. By default "Trivy exits with code 0 even when security issues are detected"; you add --exit-code to fail a job (Exit code). And Trivy "does not execute provider calls and therefore cannot resolve values that depend on external or cloud state" (Data sources and computed attributes).
Live account scanning moved out of core Trivy in v0.53: "Trivy (v0.53+ onwards) will no longer include live cloud scanning as part of the core Trivy experience" (announcement). The separate trivy-aws plugin scans "an AWS account for misconfigurations". Aqua sells a commercial platform that "builds on top of Trivy" (Trivy vs Aqua).
What CloudBooster Guard does
CloudBooster Guard is a hosted service. It checks AWS infrastructure changes in two places (What Guard detects):
- Before merge. It reviews the Terraform plan of each pull request on GitHub or merge request on GitLab. Guard plans the Terraform itself, offline and without your credentials. For a root it can't plan that way, your CI runs
terraform planand uploads the plan (Where the plan comes from). - Live. It reads the account's CloudTrail and judges changes made in the console, with the AWS CLI or by a CI job, within about 15 minutes (When Guard checks).
Before it grades a change, Guard resolves it against your live account. Can the internet reach the resource? Is the account production? (Resolved-effect) That is the context a file scanner can't have. A finding is Critical only when Guard confirms every fact it needs. When a fact is missing, the finding stays at Watch and names the missing fact (Watch). What was already exposed when you connected goes into a baseline and stays quiet. Guard alerts on what is new or worse (Baseline).
Today Guard runs 26 AWS checks: 25 before merge and 7 live. What Guard detects lists each one. PR review also plans Azure, Google Cloud and Kubernetes Terraform.
You don't write rules for Guard. It runs its own catalog, with "no rule DSL to maintain" (Guard overview), and each rule has a fixed severity (Tiers). Guard reads your account through one read-only IAM role that you create (Access and data).
Side by side
| Trivy | CloudBooster Guard | |
|---|---|---|
| What it is | Open-source CLI, Apache 2.0 | Hosted service |
| What it reads | Code, plan files, container and VM images, repositories, Kubernetes clusters | Terraform plans of pull requests, plus your live AWS account |
| Infrastructure code it checks | Terraform, CloudFormation, ARM, Helm, Kubernetes, Dockerfile, Ansible | Terraform |
| Changes made outside code (console, CLI) | Not in core Trivy since v0.53. The trivy-aws plugin scans an AWS account for misconfigurations | 7 checks run live, from CloudTrail |
| Cloud state in a Terraform check | Not resolved: Trivy does not call providers | Each change Guard checks is resolved against your AWS account: reachability and production |
| Built-in rules | An extensive library, for AWS, Azure, Google Cloud and more | 26 AWS checks, plus provider-neutral rules for Azure, Google Cloud and Kubernetes Terraform |
| Your own rules | Rego | Not supported |
| Accepting a risk | #trivy:ignore: comment with an optional expiry, or .trivyignore | .cbxguard/suppressions.yaml on the default branch, with a reason and an optional expiry |
| Blocking | Exits 0 by default. --exit-code fails the job | Reports only by default. Arm the gate, then make the check required |
| Where results go | Table, JSON, SARIF, JUnit and more | A check and a comment on the pull request. Slack and email for live findings |
| Other scanning | Vulnerabilities, secrets, licenses, SBOM | None. One rule flags a secret in plaintext environment config |
| Plans and prices | Open source. Aqua's platform is the commercial product | See pricing |
Sources for each row are listed at the end of this page.
When Trivy is the better pick
- You want one scanner for everything. Images, dependencies, secrets, licenses and infrastructure code in one open-source tool. Guard checks infrastructure changes only.
- Your infrastructure is not only Terraform. Trivy covers CloudFormation, ARM, Helm, Kubernetes manifests, Dockerfiles and Ansible. Guard reviews Terraform.
- Your production is not on AWS. Trivy's checks cover AWS, Azure, Google Cloud and more. Guard is AWS-first: its live checks are AWS only, and it reviews Azure and Google Cloud Terraform with a smaller set of provider-neutral rules.
- You want to write your own rules. Trivy takes custom checks in Rego. Guard does not take rules you write.
- You want broad hygiene, not only exposure. A large check library catches many best-practice gaps that are outside Guard's catalog.
- You need to scan with no network and no vendor account. Trivy's checks ship inside the binary. Guard needs a connected AWS account and a watched repository.
When Guard is the better pick
- Changes skip the pull request. A console edit during an incident, a CLI call, a CI script. Guard reads them from CloudTrail and runs its 7 live checks on them.
- The answer depends on the account. Trivy can't resolve values that depend on cloud state. Guard resolves each change it checks against the account: what is attached to the security group, whether the internet can reach it, whether the account is production (Reachability, Production).
- You want fewer alerts. Guard stays quiet on what was there before you connected. A finding it can't confirm goes to the daily digest at Watch and never pages (What reaches Slack).
How to use them together
They work at different points, so running both is simple.
- Trivy early, on everything. Run it in CI on your images, dependencies and infrastructure code, and in the IDE. It catches known issues while the author still has the code open.
- Guard at merge, on AWS Terraform. Watch the repositories in Guard. Its
cbxguard/reviewcheck grades each pull request against your accounts. Start with reports only, then arm the gate on Critical once you trust it (Choose what blocks). - Guard live, on the account. Connect each account with live changes on, so Guard runs its 7 live checks on console and CLI changes.
One plan, two tools. In GitLab CI, one job can write the plan JSON once. Trivy scans it with trivy config tfplan.json (Terraform). Guard's CI job reads the same file through CBX_GUARD_PLAN (Variables). The CI plan upload needs the Pro plan or above. Guard plans most roots itself, so you need the upload only for the roots it can't plan offline (Known limits).
Decide who blocks what. Both tools may flag the same open security group. Pick one to block on it, so a developer doesn't fix one finding twice. For example, run Trivy's infrastructure checks with --exit-code 1 for the hygiene rules your team agreed on, and let Guard's gate block on Critical exposure. When you accept a risk, record it in both places: a #trivy:ignore: comment and an entry in .cbxguard/suppressions.yaml (Accept a known risk). Both can expire, so set the same date.
Frequently asked questions
Is tfsec still maintained? tfsec's README says it "will continue to remain available for the time being", and that Aqua's engineering attention goes to Trivy (tfsec README). The README has a guide for moving from tfsec to Trivy.
Does Guard replace Trivy? No. Trivy scans images, dependencies and many more file types. Guard covers AWS changes that need account context, and changes that never reach a pull request.
Can Trivy scan my live AWS account? Not in core Trivy since v0.53. The trivy-aws plugin scans an AWS account for misconfigurations (trivy-aws).
Does Guard need my Terraform state or cloud credentials to review a pull request? No. It plans offline and swaps your backend for an empty local one, so it never reads your state (Known limits). It judges the plan against what it reads through the read-only role.
Which AWS changes does Guard check live today? Security-group ingress opened to the public internet on a sensitive port; CloudTrail stopped or deleted; CloudTrail trail narrowed to one region or stripped of global-service events (IAM, STS); IAM grant of a wildcard action on a wildcard resource; AdministratorAccess managed policy attached to a principal; S3 bucket ACL opened to the * (everyone) grantee; S3 bucket policy opened to the * principal. What Guard detects shows where each rule runs.
Sources
Checked on 23 November 2026.
Trivy (docs v0.76) and tfsec:
- tfsec README: the move to Trivy
- Trivy README: description, targets, scanners
- License
- Supported configurations
- Terraform: variables, modules, plan scanning, provider calls
- Built-in checks and the trivy-checks repository
- Custom checks
- Inline ignores and expiry, Filtering
- Exit code, Reporting
- CI/CD, IDE, Trivy Operator
- Live cloud scanning moved to a plugin, trivy-aws
- Trivy vs Aqua
CloudBooster Guard (v0.13.0):
- What Guard detects
- How Guard decides
- Concepts
- Set up pull-request review
- Set up the CI plan upload
- Access and data
Where to go from here
If you want one open-source scanner across images, dependencies and many infrastructure formats, Trivy is a strong choice. If your production runs on AWS and you need to know when a change, from a pull request or from the console, actually exposes it, add Guard next to it.
What Guard detects lists every rule. How Guard decides explains the tiers. Plans are on our pricing section.