This page looks best with JavaScript enabled

vRA Hardening Check

 ·  ☕ 2 min read  ·  ✍️ Brett Johnson

vRA Logo
Inspec Logo

VMware does a great job of releasing hardening guides for its products, helping us to improve the security level of our deployments. If you’re in a position where you need to implement the hardened settings, then it’s likely there’s an audit process to follow.

I have been working on a project to make the validation process easier by converting settings stated the hardening guide into a DSL which is used by Chef Inspec to validate the environment. The goal is to provide a fast and repeatable validation tool to reduce the operational overhead.

Project: https://github.com/SDBrett/vra-7-hardening

Using a code based approach to validation enables the process to be run frequently, perhaps as a scheduled task, further improving security as configuration drift can be detected closer to the time it occurred.

In a test environment, the total time to run the test is 18 seconds.

Command time

As part of making this as easy to use as possible, the project has been designed to work with the chef/inspec docker image. This decision was made to remove the need for Ruby environment management and to deal with dependencies on an air-gapped network.

The container uses the inspec command as the entry point, which means standard inspec command options work. For example, the output can be formatted in a more friendly way to your requirements using the –reporters argument.

At the time of writting most appliance settings have been defined, but there is still work to be done.

Also big shout out to JJ for helping me with some of the sticking points throughout.

Share on

Brett Johnson
WRITTEN BY
Brett Johnson
Automator of things