-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan cis-dil-benchmark can't start. CIS level warn #113
Comments
please see all output from command
Profile: tests from /opt/inspec/test/cis-dil-benchmark/controls/5_2_ssh_server_configuration.rb (tests from .opt.inspec.test.cis-dil-benchmark.controls.5_2_ssh_server_configuration.rb) × cis-dil-benchmark-5.2.1: Ensure permissions on /etc/ssh/sshd_config are configured (Scored) (8 failed)
↺ cis-dil-benchmark-5.2.4: Ensure SSH Protocol is set to 2 (Scored) Profile Summary: 0 successful controls, 5 control failures, 16 controls skipped |
upd: i see cis level WARN when i start any test form "Controls" |
I think there a few things going on:
When using a "Local single test" rather than the specifying the_profile directory_ , inputs and custom resources aren't allowed Typically if I'm testing a specific section (i.e. 5.2), I would run the following which respects the default input values for the profile
I can't think of a reason why inspec can't find Would you be able to provide the output from re-running the command like the example above (specifying profile directory, and controls w/ regex)? |
Hi deric4, thank for feedback and help `Profile: CIS Distribution Independent Linux Benchmark Profile (cis-dil-benchmark) × cis-dil-benchmark-5.2.1: Ensure permissions on /etc/ssh/sshd_config are configured (Scored) (8 failed)
↺ cis-dil-benchmark-5.2.4: Ensure SSH Protocol is set to 2 (Scored) Profile Summary: 0 successful controls, 5 control failures, 16 controls skipped |
also i try write simple sshd test, it was skipped maybe cause in what my OS not supported by inspec? |
Describe the bug
I got WARN: Input 'cis_level' does not have a value, when in config cis level exist (see attached screen)
Expected behavior
i got scan my sshd server, but all test are skipped or failed
Actual behavior
Example code
sudo inspec exec /opt/inspec/test/cis-dil-benchmark/controls/5_2_ssh_server_configuration.rb -t ssh://root@xxx --password=
OS / Environment
uname -a
Linux comm99-dev 4.14.98 #1 SMP PREEMPT Wed Mar 17 21:18:09 MSK 2021 armv7l GNU/Linux
Inspec Version
4.37.17
Baseline Version
https://github.com/dev-sec/cis-dil-benchmark
Additional context
please see attached screenshot
The text was updated successfully, but these errors were encountered: