Chef InSpec is an open-source framework for expressing and running compliance, security, and policy tests against infrastructure. Tests use a language that is readable by people and machines.
Overview
Chef InSpec lets teams codify compliance, security, and policy requirements as automated tests. You write profiles and controls that describe the desired state of systems and services, then run them locally or against remote targets to see what passes, fails, or is skipped.
The tool includes a command-line interface for executing profiles and inspecting results. It supports many operating systems and can target resources on the host or over remote channels such as SSH and WinRM. Documentation and examples cover files, services, cloud provider settings, and similar infrastructure checks.
Packaged builds are offered for common desktop and server platforms, and a container image can wrap the executable for portable runs with mounted test directories. Profiles can be shared through the Chef Supermarket, and the ecosystem ties into broader Chef and Progress tooling for compliance workflows.
InSpec was influenced by earlier server testing projects and positions compliance as something you encode early in the delivery cycle rather than only at release time. Premium Chef Compliance offerings build on similar concepts for managed auditing and remediation, while the open-source framework remains runnable on your own machines and infrastructure.
Key features
- Compliance and security controls as code
- Command-line test execution
- Local and remote target scanning
- Broad OS and platform support
- Shareable InSpec profiles
- Cloud configuration resource tests
- Human-readable policy language
- Docker-based distribution option
Use cases
- Infrastructure compliance auditing
- Security baseline verification
- Continuous policy testing in CI
- SSH and WinRM remote assessments
- AWS and Azure configuration checks