Compliance as code: audit and test infrastructure against security and compliance policies
open coreApache-2.0self-hostable
Chef InSpec turns security and compliance rules into executable, version-controlled tests written in a Ruby-based language. It scans Linux, Windows and macOS hosts, containers, and AWS, Azure and GCP accounts, locally, over SSH or WinRM, or in air-gapped environments, and runs prebuilt profiles such as CIS benchmarks and DISA STIGs or your own. Teams run it in CI to fail builds on policy violations. The source is Apache 2.0, but every supported version of the inspec executable (5.0 and later) built by Progress requires accepting the Chef EULA and a Chef licence; the library alone needs no licence acceptance.
Problems it solves
- check every server against the CIS benchmark automatically instead of with spreadsheets
- turn our security policy into tests that run in CI
- fail the build when infrastructure violates a compliance rule
- audit cloud accounts on AWS, Azure and GCP for misconfigurations
- prove to auditors that hosts meet DISA STIG requirements
- scan air-gapped machines for compliance without an agent
- write infrastructure tests that check ports, packages and file permissions on remote hosts
Features
- Ruby-based DSL for compliance and infrastructure tests
- prebuilt profiles for CIS benchmarks, DISA STIGs and Chef-curated guides
- scans Linux, Windows, macOS, containers and AWS, Azure and GCP accounts
- local, SSH and WinRM targets, including air-gapped nodes
- CI integration to fail builds on policy violations
- usable as a Ruby library without the executable
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Chef InSpec does.
- Prowler Open source cloud security platform for posture and compliance
- OpenSCAP Open source security compliance solution
- Lynis Security auditing tool for Linux, macOS and Unix systems
- kube-bench Check a Kubernetes cluster against the CIS Kubernetes Benchmark