Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

InSpec profile overlay to automate manual controls of CMS ARS 3.1, for systems categorized as High (includes High and Non-Mandatory controls).

Notifications You must be signed in to change notification settings

CMSgov/cms-ars-3.1-high-manual-controls-overlay

Repository files navigation

cms-ars-3.1-high-manual-controls-overlay

CMS’ ISPG (Information Security and Privacy Group) decided to discontinue funding the customization of MITRE’s Security Automation Framework (SAF) for CMS after September 2023. This repo is now in archive mode, but still accessible. For more information about SAF with current links, see https://security.cms.gov/learn/security-automation-framework-saf

InSpec profile overlay to automate manual controls of CMS ARS 3.1,
for systems categorized as High (includes High and Non-Mandatory controls).

Getting Started

InSpec (CINC-auditor) setup

For maximum flexibility/accessibility, we’re moving to “cinc-auditor”, the open-source packaged binary version of Chef InSpec, compiled by the CINC (CINC Is Not Chef) project in coordination with Chef using Chef’s always-open-source InSpec source code. For more information: https://cinc.sh/

It is intended and recommended that CINC-auditor and this profile overlay be run from a "runner" host (such as a DevOps orchestration server, an administrative management system, or a developer's workstation/laptop). This can be any Unix/Linux/MacOS or Windows runner host, with access to the Internet.

For the best security of the runner, always install on the runner the latest version of CINC-auditor.

The simplest way to install CINC-auditor is to use this command for a UNIX/Linux/MacOS runner platform:

curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -P cinc-auditor

or this command for Windows runner platform (Powershell):

. { iwr -useb https://omnitruck.cinc.sh/install.ps1 } | iex; install -project cinc-auditor

To confirm successful install of cinc-auditor:

cinc-auditor -v

sample output: 4.24.32

Latest versions and other installation options are available at https://cinc.sh/start/auditor/.

After installing InSpec, run this command to support addressing/automating manual controls (discussed below):

"cinc-auditor plugin install inspec-reporter-json-hdf" 

Addressing manual controls

Viewing the HDF json in Heimdall:

image

Exported from Heimdall to CAAT file:

image

Prepare your attestations file content. (See attestation sample template)

By default, controls in this profile require manual review, whereby someone interviews/examines the requirement and confirms (attests as to) whether or not the control requirements have been satisfied. These attestations must be configured in a json ".json" file:

{
    "plugins": {
        "inspec-reporter-json-hdf": {
            "attestations": [
                {
                    "control_id": "2.4",
                    
                    "explanation": "<Attestation text explaining compliance or non-compliance>",
                    
                    "frequency": "<How often this review/attestation needs to be updated>", 
                   
         (frequency value choices: annually, semiannually, quarterly, monthly, every2weeks, weekly, every3days, daily)
             
                    "status": "<assigned value based on review/attestation>",
                    
            (status value choices: passed, failed)

                    "updated": "<last date attestation was performed (in YYYY-MM-DD format)>",
                                        
                    "updated_by": "<Name, Role of person performing attestation for this control>" 
                }
            ]
        }
    },
    "version": "1.2"
}

for example

{
    "plugins": {
        "inspec-reporter-json-hdf": {
            "attestations": [
                {
                    "control_id": "CMS-ARS-3.1-AC-01",
                    "explanation": "Examined ARS 3.1, IS2P2, and HHS parent Access Control policy documents and interviewed staff to confirm that these are still applicable, understood, and applied to our system.",
                    "frequency": "annually",
                    "status": "passed",
                    "updated": "2020-4-1",
                    "updated_by": "John Doe, ISSO"
                }
            ]
        }
    },
    "version": "1.2"
}

Running This Overlay Directly from Github

# How to run
cinc-auditor exec https://github.com/cmsgov/cms-ars-3.1-high-manual-controls-overlay/archive/main.tar.gz --reporter hdf:<path_to_your_output_file/name_of_your_output_file.json> --config <path_to_your_attestation_file/name_of_your_attestation_file.json>

Different Run Options

Full exec options

Running This Overlay from a local Archive copy

If your runner is not always expected to have direct access to GitHub, use the following steps to create an archive bundle of this overlay and all of its dependent tests:

(Git is required to clone the InSpec profile using the instructions below. Git can be downloaded from the Git site.)

When the "runner" host uses this profile overlay for the first time, follow these steps:

mkdir profiles
cd profiles
git clone https://github.com/cmsgov/cms-ars-3.1-high-manual-controls-overlay.git
cinc-auditor archive cms-ars-3.1-high-manual-controls-overlay
cinc-auditor exec <name of generated archive> --reporter hdf:<path_to_your_output_file/name_of_your_output_file.json> --config <path_to_your_attestation_file/name_of_your_attestation_file.json>

For every successive run, follow these steps to always have the latest version of this overlay and dependent profiles:

cd cms-ars-3.1-high-manual-controls-overlay
git pull
cd ..
cinc-auditor archive cms-ars-3.1-high-manual-controls-overlay --overwrite
cinc-auditor exec <name of generated archive> --reporter hdf:<path_to_your_output_file/name_of_your_output_file.json> --config <path_to_your_attestation_file/name_of_your_attestation_file.json>

Using Heimdall for Viewing the JSON Results

The JSON results output file can be loaded into heimdall-lite for a user-interactive, graphical view of the InSpec results.

The JSON InSpec results file may also be loaded into a full heimdall server, allowing for additional functionality such as to store and compare multiple profile runs.

Authors

Contributing and Getting Help

To report a bug or feature request, please open an issue.

NOTICE

© 2018-2021 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 18-3678.

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.

About

InSpec profile overlay to automate manual controls of CMS ARS 3.1, for systems categorized as High (includes High and Non-Mandatory controls).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages