On April 30, 2020, two critical security vulnerabilities were identified with the SaltStack open source project (github.com/saltstack/salt). These vulnerabilities are critical and must be patched to avoid potential take over of your systems.
This vulnerability has been assigned the highest severity rating, 10.0, according to the Common Vulnerability Scoring System, an open framework for communicating risk. Chef InSpec is extremely effective at inspecting a system, including identifying vulnerable versions of software, so we wrote a quick profile to test your systems. We recommend running this on every Salt Master in your environment to identify vulnerabilities and verify they have been remediated once patches are applied.
It accomplishes this by checking the following:
salt
command line utility available in the path of the user running InSpec, we’ll run salt --version
and check the output of the command for a patched version of Salt.The profile is located on GitHub: github.com/chef-cft/salt-vulnerabilities
We’ll keep a list of operating systems we’ve explicitly tested in the repository.
If there’s anything Chef can do to help you please don’t hesitate to reach out.
salt
command line is not installed using the package manager of your operating system, not in the path of the user running InSpec, but is installed, we won’t find it. salt
binaries you find. choco install chef-workstation
.inspec exec {path_to_profile} --target ssh://{user}@{salt_master_url}
Example Failure:
× Ensure salt is version 2019.2.4 or 3000.2 or newer: Ensure salt is up-to-date (9 failed)
✔ System Package salt-api is expected not to be installed
✔ System Package salt-cloud is expected not to be installed
× System Package salt-master version is expected to be >= 3000.2
expected: >= "3000.2"
got: "2016.3.0-1.el7"
...
Profile Summary: 0 successful controls, 1 control failure, 0 controls skipped
Example pass:
✔ Ensure salt is version 2019.2.4 or 3000.2 or newer: Ensure salt is up-to-date
✔ System Package salt-api is expected not to be installed
✔ System Package salt-cloud is expected not to be installed
✔ System Package salt-master version is expected to be >= 3000.2
✔ System Package salt-minion version is expected to be >= 3000.2
✔ System Package salt-ssh is expected not to be installed
✔ System Package salt-syndic is expected not to be installed
✔ System Package salt version is expected to be >= 3000.2
✔ Command: `salt --version | cut -d ' ' -f2` stdout.strip is expected to be >= 3000.2
✔ Command: `salt --version` stdout.strip is expected to be >= 3000.2
Profile Summary: 1 successful control, 0 control failures, 0 controls skipped