Skip to content

Instantly share code, notes, and snippets.

@smford22
Last active July 10, 2019 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smford22/4ca229bb56bda14a1492994152281d23 to your computer and use it in GitHub Desktop.
Save smford22/4ca229bb56bda14a1492994152281d23 to your computer and use it in GitHub Desktop.
quick cve control
# Simple Inspec control
control 'cve-blah-blah-blah' do
impact 1.0
title 'Ensure our systems are not vulnerable to the blah blah blah cve'
desc 'Blah Blah Blah VVE is dangerous'
describe file('/tmp/blahblahblah') do
it { should_not exist }
end
end
# Simple chef recipe
file '/tmp/blahblahblah' do
action :delete
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment