Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Win_Regedit Module Aliases, Discord Links, Readme Update, Win_Skip_For_Test #25

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ skip_list:
- 'schema'
- 'no-changed-when'
- 'experimental'
- 'fqcn-builtins'
- 'fqcn[action]'
- 'name[casing]'
- 'name[template]'
- 'name[play]'
- 'jinja[spacing]'
- 'yaml[line-length]'
- 'key-order[task]'
- 'var-naming' # Older playbook no new release
- 'var-spacing'
- '204'
- '208'
- '305'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devel_pipeline_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |-
Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
Please join in the conversation happening on the [Discord Server](https://discord.io/ansible-lockdown) as well.
Please join in the conversation happening on the [Discord Server](https://www.lockdownenterprise.com/discord) as well.

# This workflow will run terraform to load a instance in azure to test the playbook against a live cloud based instance.
playbook-test:
Expand Down
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Release 3.0.0

September 2023 Updates
- Added Updated Discord Links
- Updated Galaxy Score Links
- Updated Readme
- Fixed Module Parameters For Win_Regedit aliases


August 2023 Update
- Updated Readme.md file.
- Updated all linting files and updated linting across playbook.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
![followers](https://img.shields.io/github/followers/ansible-lockdown?style=social)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/AnsibleLockdown.svg?style=social&label=Follow%20%40AnsibleLockdown)](https://twitter.com/AnsibleLockdown)

![Ansible Galaxy Quality](https://img.shields.io/ansible/quality/61461?label=Quality&&logo=ansible)
![Ansible Galaxy Quality](https://img.shields.io/ansible/quality/63003?label=Quality&&logo=ansible)
![Discord Badge](https://img.shields.io/discord/925818806838919229?logo=discord)

![Release Branch](https://img.shields.io/badge/Release%20Branch-Main-brightgreen)
Expand All @@ -36,11 +36,11 @@

[Lockdown Enterprise](https://www.lockdownenterprise.com#GH_AL_WINDOWS_2016_stig)

[Ansible support](https://www.mindpointgroup.com/cybersecurity-products/ansible-counselor#GH_AL_WINDOWS_2016_stig)
[Ansible Support](https://www.mindpointgroup.com/cybersecurity-products/ansible-counselor#GH_AL_WINDOWS_2016_stig)

### Community

Join us on our [Discord Server](https://discord.io/ansible-lockdown) to ask questions, discuss features, or just chat with other Ansible-Lockdown users.
Join us on our [Discord Server](https://www.lockdownenterprise.com/discord) to ask questions, discuss features, or just chat with other Ansible-Lockdown users.

---

Expand Down
62 changes: 25 additions & 37 deletions tasks/cat1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@
- name: "HIGH | WN16-CC-000250 | PATCH | AutoPlay must be turned off for non-volume devices."
ansible.windows.win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\Explorer
state: present
value: NoAutoplayfornonVolume
name: NoAutoplayfornonVolume
data: 1
datatype: dword
type: dword
when:
- wn16_cc_000250
tags:
Expand All @@ -189,10 +188,9 @@
- name: "HIGH | WN16-CC-000260 | PATCH | The default AutoRun behavior must be configured to prevent AutoRun commands."
ansible.windows.win_regedit:
path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
state: present
value: NoAutorun
name: NoAutorun
data: 1
datatype: dword
type: dword
when:
- wn16_cc_000260
tags:
Expand All @@ -206,10 +204,9 @@
- name: "HIGH | WN16-CC-000270 | PATCH | AutoPlay must be disabled for all drives."
ansible.windows.win_regedit:
path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
state: present
name: NoDriveTypeAutoRun
data: 255
datatype: dword
type: dword
when:
- wn16_cc_000270
tags:
Expand All @@ -223,10 +220,9 @@
- name: "HIGH | WN16-CC-000460 | PATCH | The Windows Installer Always install with elevated privileges option must be disabled."
ansible.windows.win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\Installer
state: present
value: AlwaysInstallElevated
name: AlwaysInstallElevated
data: 0
datatype: dword
type: dword
when:
- wn16_cc_000460
tags:
Expand All @@ -240,10 +236,9 @@
- name: "HIGH | WN16-CC-000500 | PATCH | The Windows Remote Management (WinRM) client must not use Basic authentication."
ansible.windows.win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\WinRM\Client
state: present
value: AllowBasic
name: AllowBasic
data: 0
datatype: dword
type: dword
when:
- wn16_cc_000500
- not win_skip_for_test
Expand All @@ -259,10 +254,9 @@
- name: "HIGH | WN16-CC-000530 | PATCH | The Windows Remote Management (WinRM) service must not use Basic authentication."
ansible.windows.win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service
state: present
value: AllowBasic
name: AllowBasic
data: 0
datatype: dword
type: dword
when:
- wn16_cc_000530
- not win_skip_for_test
Expand Down Expand Up @@ -506,10 +500,9 @@
- name: "HIGH | WN16-MS-000120 | PATCH | Windows Server 2016 must be running Credential Guard on domain-joined member servers."
ansible.windows.win_regedit:
path: HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard
state: present
value: "{{ item }}"
name: "{{ item }}"
data: 1
datatype: dword
type: dword
loop:
- EnableVirtualizationBasedSecurity
- RequirePlatformSecurityFeatures
Expand All @@ -530,9 +523,9 @@
- name: "HIGH | WN16-SO-000020 | PATCH | Local accounts with blank passwords must be restricted to prevent access from the network."
ansible.windows.win_regedit:
key: HKLM:\System\CurrentControlSet\Control\Lsa
value: LimitBlankPasswordUse
name: LimitBlankPasswordUse
data: 1
datatype: dword
type: dword
when:
- wn16_so_000020
tags:
Expand Down Expand Up @@ -562,10 +555,9 @@
- name: "HIGH | WN16-SO-000260 | PATCH | Anonymous enumeration of Security Account Manager (SAM) accounts must not be allowed."
ansible.windows.win_regedit:
path: HKLM:\SYSTEM\CurrentControlSet\Control\Lsa
state: present
value: RestrictAnonymousSAM
name: RestrictAnonymousSAM
data: 1
datatype: dword
type: dword
when:
- wn16_so_000260
- ansible_windows_domain_role != "Primary domain controller"
Expand All @@ -581,10 +573,9 @@
- name: "HIGH | WN16-SO-000270 | PATCH | Anonymous enumeration of shares must not be allowed."
ansible.windows.win_regedit:
path: HKLM:\SYSTEM\CurrentControlSet\Control\Lsa
state: present
value: RestrictAnonymous
name: RestrictAnonymous
data: 1
datatype: dword
type: dword
when:
- wn16_so_000270
tags:
Expand All @@ -599,10 +590,9 @@
- name: "HIGH | WN16-SO-000300 | PATCH | Anonymous access to Named Pipes and Shares must be restricted."
ansible.windows.win_regedit:
path: HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters
state: present
value: restrictnullsessaccess
name: restrictnullsessaccess
data: 1
datatype: dword
type: dword
when:
- wn16_so_000300
tags:
Expand All @@ -616,10 +606,9 @@
- name: "HIGH | WN16-SO-000360 | PATCH | Windows Server 2016 must be configured to prevent the storage of the LAN Manager hash of passwords."
ansible.windows.win_regedit:
path: HKLM:\SYSTEM\CurrentControlSet\Control\Lsa
state: present
value: NoLMHash
name: NoLMHash
data: 1
datatype: dword
type: dword
when:
- wn16_so_000360
tags:
Expand All @@ -634,10 +623,9 @@
- name: "HIGH | WN16-SO-000380 | PATCH | The LAN Manager authentication level must be set to send NTLMv2 response only and to refuse LM and NTLM."
ansible.windows.win_regedit:
path: HKLM:\System\CurrentControlSet\Control\Lsa
state: present
value: LmCompatibilityLevel
name: LmCompatibilityLevel
data: 5
datatype: dword
type: dword
when:
- wn16_so_000380
tags:
Expand Down
Loading