Skip to content

Nginx Security Baseline Assessment - InSpec Profile - CIS Benchmark verification

License

Notifications You must be signed in to change notification settings

EasyAppSecurity/nginx-baseline

Repository files navigation

DevSec Nginx Baseline

This Compliance Profile ensures, that all hardening projects keep the same quality.

Standalone Usage

This Compliance Profile requires InSpec for execution:

$ git clone https://github.com/EasyAppSecurity/nginx-baseline
$ inspec exec nginx-baseline --input-file nginx-baseline/attributes/nginx-centos7-test.yml --reporter html:/tmp/inspec-nginx.html

You can also execute the profile directly from Github:

$ inspec exec https://github.com/EasyAppSecurity/nginx-baseline

Test remote machine via ssh:

$ inspec exec https://github.com/EasyAppSecurity/nginx-baseline --key-files /path/keys/ssh.key --target ssh://root@192.168.1.12 --input-file nginx-baseline/attributes/nginx-centos7-test.yml --reporter html:/tmp/inspec-nginx.html

Report write to a file:

$ inspec exec https://github.com/EasyAppSecurity/nginx-baseline --input-file nginx-baseline/attributes/nginx-centos7-test.yml --reporter html:/tmp/inspec-nginx.html

License and Author

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.