Supply Chain

Assess Vagrant Box Security with cnspec

Scan Vagrant virtual machines for security misconfigurations and vulnerabilities using cnspec.

Validate Vagrant development environments against the same security policies you enforce in production. cnspec connects to Vagrant boxes over SSH, so you can catch misconfigurations and CVEs in local VMs before promoting images or configurations upstream.

Prerequisites

To scan Vagrant boxes with cnspec, you must have:

Scan a Vagrant box

To scan a running Vagrant box, provide the Vagrant machine name (or ID):

cnspec scan vagrant HOST

For example, to scan the default machine in the current Vagrant project directory:

cnspec scan vagrant default

Explore interactively

To open an interactive cnspec shell connected to a Vagrant box:

cnspec shell vagrant default

Connection options

OptionDescription
HOSTVagrant machine name or ID
--insecure, -kSkip TLS certificate verification

Learn more

On this page