{"id":30804040,"url":"https://github.com/ansible-lockdown/windows-2022-stig","last_synced_at":"2025-09-05T23:10:18.877Z","repository":{"id":190226759,"uuid":"583403102","full_name":"ansible-lockdown/Windows-2022-STIG","owner":"ansible-lockdown","description":"Automated STIG Benchmark Compliance Remediation for Windows Server 2022 with Ansible","archived":false,"fork":false,"pushed_at":"2025-09-03T17:38:58.000Z","size":303,"stargazers_count":11,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"devel","last_synced_at":"2025-09-03T18:41:04.765Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","automation","cybersecurity","enterprise-hardening","gpo","it-compliance","secure-baseline","secure-configuration","stig","stig-benchmark","stig-compliance","stig-hardening","stig-security","system-hardening","windows-compliance","windows-security","windows-server-2022","windows-server-hardening"],"latest_commit_sha":null,"homepage":"https://www.lockdownenterprise.com","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansible-lockdown.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-29T17:12:37.000Z","updated_at":"2025-09-03T17:14:27.000Z","dependencies_parsed_at":"2024-06-20T08:32:14.551Z","dependency_job_id":"a4437b3f-3959-4d98-ae45-3d1aa06cdaa9","html_url":"https://github.com/ansible-lockdown/Windows-2022-STIG","commit_stats":null,"previous_names":["ansible-lockdown/windows-2022-stig"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-lockdown/Windows-2022-STIG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FWindows-2022-STIG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FWindows-2022-STIG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FWindows-2022-STIG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FWindows-2022-STIG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-lockdown","download_url":"https://codeload.github.com/ansible-lockdown/Windows-2022-STIG/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FWindows-2022-STIG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273833395,"owners_count":25176291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","ansible-role","automation","cybersecurity","enterprise-hardening","gpo","it-compliance","secure-baseline","secure-configuration","stig","stig-benchmark","stig-compliance","stig-hardening","stig-security","system-hardening","windows-compliance","windows-security","windows-server-2022","windows-server-hardening"],"created_at":"2025-09-05T23:10:15.246Z","updated_at":"2025-09-05T23:10:18.869Z","avatar_url":"https://github.com/ansible-lockdown.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows 2022 DISA STIG\n\n## Configure a Windows 2022 system to be [DISA STIG](https://public.cyber.mil/stigs/downloads/) compliant\n\n### Based on [Windows DISA STIG Version 2, Rel 3 released on January 30, 2025](https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MS_Windows_Server_2022_V2R3_STIG.zip)\n\n---\n\n![Org Stars](https://img.shields.io/github/stars/ansible-lockdown?label=Org%20Stars\u0026style=social)\n![Stars](https://img.shields.io/github/stars/ansible-lockdown/Windows-2022-STIG?label=Repo%20Stars\u0026style=social)\n![Forks](https://img.shields.io/github/forks/ansible-lockdown/Windows-2022-STIG?style=social)\n![Followers](https://img.shields.io/github/followers/ansible-lockdown?style=social)\n[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/AnsibleLockdown.svg?style=social\u0026label=Follow%20%40AnsibleLockdown)](https://twitter.com/AnsibleLockdown)\n\n![Ansible Galaxy Quality](https://img.shields.io/ansible/quality/63241?label=Quality\u0026\u0026logo=ansible)\n![Discord Badge](https://img.shields.io/discord/925818806838919229?logo=discord)\n\n![Release Branch](https://img.shields.io/badge/Release%20Branch-Main-brightgreen)\n![Release Tag](https://img.shields.io/github/v/tag/ansible-lockdown/Windows-2022-STIG?label=Release%20Tag\u0026\u0026color=success)\n![Main Release Date](https://img.shields.io/github/release-date/ansible-lockdown/Windows-2022-STIG?label=Release%20Date)\n\n[![Main Pipeline Validation](https://github.com/ansible-lockdown/Windows-2022-STIG/actions/workflows/main_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/Windows-2022-STIG/actions/workflows/main_pipeline_validation.yml)\n\n[![Devel Pipeline Validation](https://github.com/ansible-lockdown/Windows-2022-STIG/actions/workflows/devel_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/Windows-2022-STIG/actions/workflows/devel_pipeline_validation.yml)\n![Devel Commits](https://img.shields.io/github/commit-activity/m/ansible-lockdown/Windows-2022-STIG/devel?color=dark%20green\u0026label=Devel%20Branch%20Commits)\n\n![Issues Open](https://img.shields.io/github/issues-raw/ansible-lockdown/Windows-2022-STIG?label=Open%20Issues)\n![Issues Closed](https://img.shields.io/github/issues-closed-raw/ansible-lockdown/Windows-2022-STIG?label=Closed%20Issues\u0026\u0026color=success)\n![Pull Requests](https://img.shields.io/github/issues-pr/ansible-lockdown/Windows-2022-STIG?label=Pull%20Requests)\n\n![License](https://img.shields.io/github/license/ansible-lockdown/Windows-2022-STIG?label=License)\n\n---\n\n## Looking for support?\n\n[Lockdown Enterprise](https://www.lockdownenterprise.com#GH_AL_WINDOWS_2022_stig)\n\n[Ansible support](https://www.mindpointgroup.com/cybersecurity-products/ansible-counselor#GH_AL_WINDOWS_2022_stig)\n\n### Community\n\nJoin us on our [Discord Server](https://discord.io/ansible-lockdown) to ask questions, discuss features, or just chat with other Ansible-Lockdown users.\n\n---\n\n## Caution(s)\n\nThis role **will make changes to the system** which may have unintended consequences. This is not an auditing tool but a remediation tool to be used after an audit.\n\nCheck Mode is not supported! The role will complete in check mode without errors, but it is not supported and should be used with caution.\n\nThis role was developed against a clean install of the Windows 2022 operating system. If you are implementing an existing system please review this role for any site-specific changes that are needed.\n\nTo use the release version please point to the main branch and relevant release for the STIG benchmark you wish to work with.\n\n---\n\n## Matching a security Level for STIG\n\nIt is possible to only run controls that are based on a particular security level for STIG.\nThis is managed using tags:\n\n- CAT1\n- CAT2\n- CAT3\n\nThe control found in the defaults main also needs to reflect true so as this will allow the controls to run when the playbook is launched.\n\n## Coming from a previous release\n\nSTIG releases always contain changes, so it is highly recommended to review the new references and available variables. This has changed significantly since the initial release of ansible-lockdown.\nThis is now compatible with python3 if it is found to be the default interpreter. This does come with prerequisites that configure the system accordingly.\n\nFurther details can be seen in the [Changelog](./ChangeLog.md)\n\n## Auditing (new)\n\nCurrently, this release does not have an auditing tool.\n\n## Documentation\n\n- [Read The Docs](https://ansible-lockdown.readthedocs.io/en/latest/)\n- [Getting Started](https://www.lockdownenterprise.com/docs/getting-started-with-lockdown#GH_AL_WINDOWS_2022_stig)\n- [Customizing Roles](https://www.lockdownenterprise.com/docs/customizing-lockdown-enterprise#GH_AL_WINDOWS_2022_stig)\n- [Per-Host Configuration](https://www.lockdownenterprise.com/docs/per-host-lockdown-enterprise-configuration#GH_AL_WINDOWS_2022_stig)\n- [Getting the Most Out of the Role](https://www.lockdownenterprise.com/docs/get-the-most-out-of-lockdown-enterprise#GH_AL_WINDOWS_2022_stig)\n\n## Requirements\n\n**General:**\n\n- Basic knowledge of Ansible, below are some links to the Ansible documentation to help get started if you are unfamiliar with Ansible\n\n  - [Main Ansible documentation page](https://docs.ansible.com)\n  - [Ansible Getting Started](https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html)\n  - [Tower User Guide](https://docs.ansible.com/ansible-tower/latest/html/userguide/index.html)\n  - [Ansible Community Info](https://docs.ansible.com/ansible/latest/community/index.html)\n- Functioning Ansible and/or Tower Installed, configured, and running. This includes all of the base Ansible/Tower configurations, needed packages installed, and infrastructure setup.\n- Please read through the tasks in this role to gain an understanding of what each control is doing. Some of the tasks are disruptive and can have unintended consequences in a live production system. Also, familiarize yourself with the variables in the defaults/main.yml file.\n\n**Technical Dependencies:**\n\n- Windows 2022 - Other versions are not supported\n- Running Ansible/Tower setup (this role is tested against Ansible version 2.9.1 and newer)\n- Python3 Ansible run environment\n- passlib (or python2-passlib, if using python2)\n- python-lxml\n- python-xmltodict\n- python-jmespath\n- pywinrm\n\nPackage 'python-xmltodict' is required if you enable the OpenSCAP tool installation and run a report. Packages python(2)-passlib and python-jmespath are required for tasks with custom filters or modules. These are all required on the controller host that executes Ansible.\n\n## Role Variables\n\nThis role is designed so that the end user should not have to edit the tasks themselves. All customizing should be done via the defaults/main.yml file or with extra vars within the project, job, workflow, etc. Non-disruptive CAT I, CAT II, and CAT III findings will be corrected by default. Disruptive finding remediation can be enabled by setting `win22stig_disruption_high` to `true`.\n\n## Tags\n\nBelow is an example of the tag section from control within this role. Using this example if you set your run to skip all controls with the tag CCI-000366, this task will be skipped. The opposite can also happen where you run only controls tagged with CCI-000366.\n\n```sh\ntags:\n      - WN22-00-000010\n      - CAT2\n      - CCI-000366\n      - SRG-OS-000480-GPOS-00227\n      - SV-254238r848530_rule\n      - V-254238\n```\n\n## Community Contribution\n\nWe encourage you (the community) to contribute to this role. Please read the rules below.\n\n- Your work is done in your own individual branch. Make sure to Signed-off and GPG sign all commits you to intend to merge.\n- All community Pull Requests are pulled into the devel branch.\n- Pull Requests into devel will confirm your commits have a GPG signature, Signed-off, and a functional test before being approved.\n- Once your changes are merged and a more detailed review is complete, an authorized member will merge your changes into the main branch for a new release.\n\n## Pipeline Testing\n\nuses:\n\n- ansible-core 2.12\n- ansible collections - pulls in the latest version based on the requirements file\n- runs the audit using the devel branch\n- This is an automated test that occurs on pull requests into devel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fwindows-2022-stig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-lockdown%2Fwindows-2022-stig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fwindows-2022-stig/lists"}