Giter Site home page Giter Site logo

stigscapwintool's Introduction

Windows STIG & SCAP Toolkit

WHAT IS IT:

A PowerShell script that will take a GPO backup or SCAP XCCDF file and generate STIGs settings Then apply them to a Windows OS using Microsoft's LGPO.exe tool from their Security Compliance Manager Toolkit

HOW TO USE IT:

ApplySTIGAndGPOs.ps1 This is a more dynamic PowerShell script. This will detect roles, and features and even software and install the appropriate GPO backup.

ApplySTIGBySCAPs.ps1 STILL DEVELOPING: This is the most advanced PowerShell script. This script will be a lot like Linux's OpenSCAP, it will parse the XCCDF file from DISA and build a dataset of all STIG components and one by one it will apply the STIG based on the configuration files. Configuration files still need to be created, check out the README.md

RemoveSTIGAndGPOs.ps1 This script just removes the group policy folders and clear the security database.

REQUIREMENTS:

  • Modules need to be downloaded. Follow README.md instructions in modules folder
  • STIG Naming conventions is required for STIG Tools. Follow README.md instructions in GPO folder
  • CCI required for SCAP Tools. Follow README.md instructions in CCI folder
  • SCAP Benchmarks required for SCAP Tools. Follow README.md instructions in SCAP folder
  • LGPO executable required for all tools. Follow README.md instructions in Tools folder
  • Configs files for each STIG ID. Follow README.md instructions in Tools folder

WHAT IT DOES:

ApplySTIGAndGPOs.ps1: The script will read into the GPO's backup.xml inside each GUID and identify the name of the policy. Using that information it will determine if the name matches identified system information, roles, features and install products and apply them locally using Microsoft's Security Compliance Manager tool LGPO. This ultimately read the GPO settings, and builds a file with all the registry and security settings, then applies those settings within the local gpo. These settings can then be viewed using the systems gpedit.msc. All keys and settings are backed up in the temp folder and logged in log folder.

FOLDERS:

CCI\U_CCI_List.xml <-- Used with ApplySTIGBySCAPs.ps1. Control Correlation Identifier (CCI) provides a standard identifier and description for each of the singular, actionable statements that comprise an IA control or IA best practice			
Configs\	   <-- Used with ApplySTIGBySCAPs.ps1. Configuration files for each STIG ID. These are ini like files with commands for validation and remediation steps.			
Extensions\	   <-- Used with ApplySTIGBySCAPs.ps1. PowerShell extension folder provides additional PowerShell functions
Modules\	   <-- Additional PowerShell modules found in PowerShell Gallery and elsewhere
GPO\		   <-- Used with ApplySTIGAndGPOs.ps1. Follow README.md instructions in folder
Logs\		   <-- Output logs for LGPO and advanced logging (Use CMTRACE)
SCAP\		   <-- SCAP Benchmark files. Follow README.md instructions in folder
Temp\		   <-- Store generated LGPO config and pol files
Tools\		   <-- Tools used in scripts, such as LGPO
DSC\		   <-- NEW. The idea is to add dsc configuration files here and and apply them along with STIGS/SCAP

SOURCES:

stigscapwintool's People

Contributors

powershellcrack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.