InSpec profile testing secure configuration of nginx 1.15
This InSpec compliance profile is a collection of automated tests for secure configuration of nginx 1.15.
InSpec is an open-source run-time framework and rule language used to specify compliance, security, and policy requirements for testing any node in your infrastructure.
This project uses the Semantic Versioning Policy.
The master branch contains the latest version of the software leading up to a new release.
Other branches contain feature-specific updates.
Tags indicate official releases of the project.
Please note 0.x releases are works in progress (WIP) and may change at any time.
InSpec makes it easy to run tests wherever you need. More options listed here: InSpec cli
You may choose to run the profile via a remote url, this has the advantage of always being up to date. The disadvantage is you may wish to modify controls, which is only possible when downloaded. Also, the remote profile is unintuitive for passing in attributes, which modify the default values of the profile.
inspec exec https://github.com/mitre/nginx-srg-baseline/archive/master.tar.gz
Another option is to download the profile then run it, this allows you to edit specific instructions and view the profile code.
# Clone Inspec Profile
$ git clone https://github.com/mitre/nginx-srg-baseline.git
# Run profile locally (assuming you have not changed directories since cloning)
# This will display compliance level at the prompt, and generate a JSON file
# for export called output.json
$ inspec exec nginx-srg-baseline --reporter cli json:output.json
# Run profile with custom settings defined in attributes.yml against the target
# server example.com.
$ inspec exec nginx-srg-baseline -t example.com --user root --password=Pa55w0rd --attrs attributes.yml --reporter cli json:output.json
# Run profile with: custom attributes, ssh keyed into a custom target, and sudo.
$ inspec exec nginx-srg-baseline -t ssh://user@hostname -i /path/to/key --sudo --attrs attributes.yml --reporter cli json:output.json
- Timothy J. Miller
- The MITRE InSpec Team
- Author: Timothy J Miller
- This project is licensed under the terms of the Apache license 2.0 (apache-2.0)
Control | Auto/Manual | Describe | in-progress | Review-RDY | Reviewed | Tested | Automated | Unit Tests |
---|---|---|---|---|---|---|---|---|
V-40791 | auto | yes | yes | no |
Legend
- Describe: Control has been evaluated and categorized as candidate for automated tests. Describe block has been written.
- Auto/Manual: Control has been evaluated and categorized as candidate for type that needs a manual review. Describe block has been written.
- Awaiting Review: Control is ready for peer review.
- in-progress: Initial evaluation has been completed, describe statements are being worked on.
- Reviewed: Control has been peer reviewed.
- Tested: Control has been peer reviewed and improved ( if needed ) and the improvements have been peer-tested.
- Automated Unit Tested: Automation of unit testing has been developed to the final point where creation, destruction and configuration of the resources has been automated fully.
© 2019 The MITRE Corporation.
MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.
DISA STIGs are published by DISA IASE, see: https://iase.disa.mil/Pages/privacy_policy.aspx