opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Detect compliance and security violations across Infrastructure as Code to mitig...
GitHub RepoImpressions265

Project Description

View on GitHub

Terrascan: Catch Cloud Security Risks Before They Go Live

Infrastructure as Code (IaC) is a game-changer for cloud deployments, but misconfigurations can lead to security nightmares. What if you could scan your Terraform, Kubernetes, or ARM templates before they hit production? That’s where Terrascan comes in.

Developed by Tenable, this open-source tool acts like a spellchecker for your cloud infrastructure—except instead of catching typos, it flags compliance violations, security gaps, and risky configurations. With over 5k GitHub stars and counting, it’s clearly solving a real problem.

What It Does

Terrascan scans IaC files (Terraform, Kubernetes manifests, CloudFormation, etc.) against built-in policies based on CIS benchmarks, AWS/GCP/Azure best practices, and custom rules. It catches issues like:

  • Overly permissive IAM roles
  • Unencrypted storage buckets
  • Exposed container ports

Think of it as a pre-flight checklist for your cloud infrastructure—except automated and packed with 750+ policies out of the box.

Why It’s Cool

  • Shift-Left Security: Catch issues in your CI/CD pipeline or even locally before deployment.
  • Extensible: Add custom policies using Rego (Open Policy Agent) or JSON.
  • Multi-Cloud: Works across AWS, Azure, GCP, and Kubernetes.
  • GitOps-Friendly: Integrates with ArgoCD and other GitOps tools.

Unlike some security tools that feel bolted on, Terrascan is designed for developers. The CLI output is clean, and it can even generate JUnit reports for pipeline integration.

How to Try It

  1. Install:

    brew install terrascan  # macOS/Linux
    

    Or grab a binary from the releases page.

  2. Scan a Terraform file:

    terrascan scan -i terraform -f my_infra.tf
    

For a zero-install preview, check out the web demo.

Final Thoughts

Terrascan isn’t a silver bullet, but it’s a pragmatic tool for teams tired of retrofitting security. If you’re already linting your code, why not lint your infrastructure too? The fact that it’s open-source (Apache 2.0) and actively maintained makes it easy to recommend.

Next time you terraform apply, consider running Terrascan first—it might save you from a midnight incident call.


Follow @githubprojects for more dev tools worth your time.

Back to Projects
Project ID: 1947228800497926450Last updated: July 21, 2025 at 09:34 AM