Giter VIP home page Giter VIP logo

nginx-srg-baseline's Introduction

Web Server SRG InSpec profile for nginx 1.15

InSpec profile testing secure configuration of nginx 1.15

Description

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.

Versioning and State of Development

This project uses the Semantic Versioning Policy.

Branches

The master branch contains the latest version of the software leading up to a new release.

Other branches contain feature-specific updates.

Tags

Tags indicate official releases of the project.

Please note 0.x releases are works in progress (WIP) and may change at any time.

Requirements

  • ruby version 2.4 or greater
  • InSpec version 2.1 or greater
  • Install via ruby gem: gem install inspec

Usage

InSpec makes it easy to run tests wherever you need. More options listed here: InSpec cli

Run with remote profile:

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

Contributors

  • Timothy J. Miller
  • The MITRE InSpec Team

License and Author

Authors

  • Author: Timothy J Miller

License

  • This project is licensed under the terms of the Apache license 2.0 (apache-2.0)

Progress report

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.

NOTICE

© 2019 The MITRE Corporation.

NOTICE

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.

NOTICE

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.

NOTICE

DISA STIGs are published by DISA IASE, see: https://iase.disa.mil/Pages/privacy_policy.aspx

nginx-srg-baseline's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.