Add Windows CIS policies (#7959)

- Add 7 policies to fleetdm.com/queries and the Fleet product
This commit is contained in:
Josh Brower 2022-10-06 12:43:34 -04:00 committed by GitHub
parent 9970ac668b
commit b7daa3d0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 162 additions and 0 deletions

View file

@ -942,3 +942,88 @@ spec:
purpose: Informational
tags: compliance, hunting
contributors: nabilschear
---
apiVersion: v1
kind: policy
spec:
name: Firewall enabled, domain profile (Windows)
query: SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\DomainProfile\EnableFirewall' AND CAST(data as integer) = 1;
description: "Checks if a Group Policy configures the computer to enable the domain profile for Windows Firewall. The domain profile applies to networks where the host system can authenticate to a domain controller. Some auditors requires that this setting is configured by a Group Policy."
resolution: "Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the domain profile for Windows Firewall."
platforms: Windows
tags: compliance, CIS, CIS9.1.1
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: Firewall enabled, private profile (Windows)
query: SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\PrivateProfile\EnableFirewall' AND CAST(data as integer) = 1;
description: "Checks if a Group Policy configures the computer to enable the private profile for Windows Firewall. The private profile applies to networks where the host system is connected to a private or home network. Some auditors requires that this setting is configured by a Group Policy."
resolution: "Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the private profile for Windows Firewall."
platforms: Windows
tags: compliance, CIS, CIS9.2.1
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: Firewall enabled, public profile (Windows)
query: SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\PublicProfile\EnableFirewall' AND CAST(data as integer) = 1;
description: "Checks if a Group Policy configures the computer to enable the public profile for Windows Firewall. The public profile applies to networks where the host system is connected to public networks such as Wi-Fi hotspots at coffee shops and airports. Some auditors requires that this setting is configured by a Group Policy."
resolution: "Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the public profile for Windows Firewall."
platforms: Windows
tags: compliance, CIS, CIS9.3.1
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: SMBv1 client driver disabled (Windows)
query: SELECT 1 FROM windows_optional_features WHERE name = 'SMB1Protocol-Client' AND state != 1;
description: "Checks that the SMBv1 client is disabled."
resolution: "Contact your IT administrator to discuss disabling SMBv1 on your system."
platforms: Windows
tags: compliance, CIS, CIS18.3.2, built-in
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: SMBv1 server disabled (Windows)
query: SELECT 1 FROM windows_optional_features WHERE name = 'SMB1Protocol-Server' AND state != 1
description: "Checks that the SMBv1 server is disabled."
resolution: "Contact your IT administrator to discuss disabling SMBv1 on your system."
platforms: Windows
tags: compliance, CIS, CIS18.3.3, built-in
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: Link-Local Multicast Name Resolution (LLMNR) disabled (Windows)
query: SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\EnableMulticast' AND CAST(data as integer) = 0;
description: "Checks if a Group Policy configures the computer to disable LLMNR. Disabling LLMNR can prevent malicious actors from gaining access to the computer's credentials. Some auditors require that this setting is configured by a Group Policy."
resolution: "Contact your IT administrator to ensure your computer is receiving a Group Policy that disables LLMNR on your system."
platforms: Windows
tags: compliance, CIS, CIS18.5.4.2
platform: windows
contributors: defensivedepth
---
apiVersion: v1
kind: policy
spec:
name: Automatic updates enabled (Windows)
query: SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate' AND CAST(data as integer) = 0;
description: "Checks if a Group Policy configures the computer to enable Automatic Updates. When enabled, the computer downloads and installs security and other important updates automatically. Some auditors require that this setting is configured by a Group Policy."
resolution: "Contact your IT administrator to ensure your computer is receiving a Group policy that enables Automatic Updates."
platforms: Windows
tags: compliance, CIS, CIS18.9.108.2.1
platform: windows
contributors: defensivedepth

View file

@ -337,6 +337,83 @@ export const DEFAULT_POLICIES = [
"Contact your IT administrator to ensure your Mac is receiving a profile that prevents guest access to shared folders.",
platform: "darwin",
},
{
key: 31,
query:
"SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\DomainProfile\EnableFirewall' AND CAST(data as integer) = 1;",
name: "Windows Firewall, Domain Profile enabled (Windows)",
description:
"Checks if a Group Policy configures the computer to enable the domain profile for Windows Firewall. The domain profile applies to networks where the host system can authenticate to a domain controller. Some auditors require that this setting is configured by a Group Policy.",
resolution:
"Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the domain profile for Windows Firewall.",
platform: "windows",
},
{
key: 32,
query:
"SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\PrivateProfile\EnableFirewall' AND CAST(data as integer) = 1;",
name: "Windows Firewall, Private Profile enabled (Windows)",
description:
"Checks if a Group Policy configures the computer to enable the private profile for Windows Firewall. The private profile applies to networks where the host system is connected to a private or home network. Some auditors require that this setting is configured by a Group Policy.",
resolution:
"Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the private profile for Windows Firewall.",
platform: "windows",
},
{
key: 33,
query:
"SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\PublicProfile\EnableFirewall' AND CAST(data as integer) = 1;",
name: "Windows Firewall, Public Profile enabled (Windows)",
description:
"Checks if a Group Policy configures the computer to enable the public profile for Windows Firewall. The public profile applies to networks where the host system is connected to public networks such as Wi-Fi hotspots at coffee shops and airports. Some auditors require that this setting is configured by a Group Policy.",
resolution:
"Contact your IT administrator to ensure your computer is receiving a Group Policy that enables the public profile for Windows Firewall.",
platform: "windows",
},
{
key: 34,
query:
"SELECT 1 FROM windows_optional_features WHERE name = 'SMB1Protocol-Client' AND state != 1;",
name: "SMBv1 client driver disabled (Windows)",
description:
"Checks that the SMBv1 client is disabled.",
resolution:
"Contact your IT administrator to discuss disabling SMBv1 on your system.",
platform: "windows",
},
{
key: 35,
query:
"SELECT 1 FROM windows_optional_features WHERE name = 'SMB1Protocol-Server' AND state != 1",
name: "SMBv1 server disabled (Windows)",
description:
"Checks that the SMBv1 server is disabled.",
resolution:
"Contact your IT administrator to discuss disabling SMBv1 on your system.",
platform: "windows",
},
{
key: 36,
query:
"SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\EnableMulticast' AND CAST(data as integer) = 0;",
name: "LLMNR disabled (Windows)",
description:
"Checks if a Group Policy configures the computer to disable LLMNR. Some auditors requires that this setting is configured by a Group Policy.",
resolution:
"Contact your IT administrator to ensure your computer is receiving a Group Policy that disables LLMNR on your system.",
platform: "windows",
},
{
key: 37,
query:
"SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate' AND CAST(data as integer) = 0;",
name: "Automatic updates enabled (Windows)",
description:
"Checks if a Group Policy configures the computer to enable Automatic Updates. When enabled, the computer downloads and installs security and other important updates automatically. Some auditors requires that this setting is configured by a Group Policy.",
resolution:
"Contact your IT administrator to ensure your computer is receiving a Group policy that enables Automatic Updates.",
platform: "windows",
},
] as IPolicyNew[];
export const FREQUENCY_DROPDOWN_OPTIONS = [