control "gdpr-benchmark-windiws-firewall-ensure-on" do
title "Ensure Windows Firewall is set to On"
desc "For GDPR compliance we need Windows Firewall with Advanced Security use the settings for this profile to filter network traffic."
impact 1.0
describe registry_key("HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile") do
it { should have_property "EnableFirewall" }
end
describe registry_key("HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile") do
its("EnableFirewall") { should cmp == 1 }
end
end