diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 0d6f091979..7f5c007a9f 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -29,5 +29,5 @@ N/A - + diff --git a/.github/ISSUE_TEMPLATE/story.md b/.github/ISSUE_TEMPLATE/story.md index cb782b4663..e862668006 100644 --- a/.github/ISSUE_TEMPLATE/story.md +++ b/.github/ISSUE_TEMPLATE/story.md @@ -7,9 +7,9 @@ assignees: '' --- -> **This issue's remaining effort can be completed in ≀1 sprint. It will be valuable even if nothing else ships.** -> -> It is [planned and ready](https://fleetdm.com/handbook/company/development-groups#making-changes) to implement. It is on the proper kanban board. + + ## Goal diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d1d02dad41..6de7068ccf 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -62,3 +62,7 @@ jobs: # version changes go install github.com/golangci/golangci-lint/cmd/golangci-lint@411e0bbbd3096aa0ee2b924160629bdf2bc81d40 # v1.54.2 make lint-go + + - name: Run cloner-check tool + run: | + go run ./tools/cloner-check/main.go -check diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fbe4360a8..23a8e387b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Fleet 4.41.1 (Dec 7, 2023) + +### Bug fix + +* Fixed logging of results for scheduled queries configured outside of Fleet when `server_settings.query_reports_disabled` is set to `true`. + ## Fleet 4.41.0 (Nov 28, 2023) ### Changes diff --git a/Makefile b/Makefile index f7828496bd..366dcf0627 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build clean clean-assets e2e-reset-db e2e-serve e2e-setup changelog db-reset db-backup db-restore +.PHONY: build clean clean-assets e2e-reset-db e2e-serve e2e-setup changelog db-reset db-backup db-restore check-go-cloner update-go-cloner export GO111MODULE=on @@ -188,6 +188,16 @@ deps-js: deps-go: go mod download +# check that the generated files in tools/cloner-check/generated_files match +# the current version of the cloneable structures. +check-go-cloner: + go run ./tools/cloner-check/main.go --check + +# update the files in tools/cloner-check/generated_files with the current +# version of the cloneable structures. +update-go-cloner: + go run ./tools/cloner-check/main.go --update + migration: go run github.com/fleetdm/goose/cmd/goose -dir server/datastore/mysql/migrations/tables create $(name) gofmt -w server/datastore/mysql/migrations/tables/*_$(name)*.go diff --git a/articles/expeditioners-podcast-with-marcus-ransom.md b/articles/expeditioners-podcast-with-marcus-ransom.md new file mode 100644 index 0000000000..bcaaaa2293 --- /dev/null +++ b/articles/expeditioners-podcast-with-marcus-ransom.md @@ -0,0 +1,41 @@ +# ExpedITioners Podcast +## Marcus Ransom: The positive future of collaboration between vendors and Apple for enterprise + + + +Listen to the episode on [Apple](https://podcasts.apple.com/us/podcast/marcus-ransom-the-positive-future-of/id1641183838?i=1000638225150), [Spotify](https://open.spotify.com/episode/1DcqQhWvrrBTgGVJINvm0T?si=c0tw9fzCTxywp-6WpbZHJA), or [PodBean](https://expeditioners.podbean.com/e/marcus-ransom-the-positive-future-of-collaboration-between-vendors-and-apple-for-enterprise/). + +### Show notes:Β  + +We're joined by Marcus Ransom Sales Engineer at Jamf and one of the hosts of the Mac Admins podcast. In this episode, Zach and Marcus talk about the exciting future of Apple for enterprise and the MacAdmin community that supports it. + +### Topics discussed: + +- Marcus’ introduction to the Mac admin/IT world. +- Opportunities with the future of Apple products +- Changes throughout the history of the MacAdmin community. +- Integrating MacOS devices across every ecosystem. +- Frequent challenges and opportunities seen across the industry. +- Enabling developers to build the tools your company needs for its customers. +- Thoughts on the future of Mac IT. +- Apple instituting actionable and useful feedback from vendors. +- The importance of sharing information across the industry and community. + + +### Resources mentioned: + +- [Xworld Australia ](https://auc.edu.au/xworld/about/) +- [MacAdmins Slack](https://www.macadmins.org/) +- [MacAdmins podcast](https://podcast.macadmins.org/) +- [MacAdmins Foundation](https://www.macadmins.org/about-the-mac-admins-foundation) + +### Where to get in touch: + +- [LinkedIn](https://www.linkedin.com/in/marcusransom/) + + + + + + + diff --git a/changes/13034-host-mdm-idp-email b/changes/13034-host-mdm-idp-email new file mode 100644 index 0000000000..6accb1dcf4 --- /dev/null +++ b/changes/13034-host-mdm-idp-email @@ -0,0 +1 @@ +- Added capability to look up hosts based on IdP email. \ No newline at end of file diff --git a/changes/14778-agent-option b/changes/14778-agent-option new file mode 100644 index 0000000000..d4de9ec944 --- /dev/null +++ b/changes/14778-agent-option @@ -0,0 +1 @@ +- Fixes a validation bug that allowed the agent options `overrides.platform` field to be set to `null`. \ No newline at end of file diff --git a/changes/14779-fix-software-deadlock b/changes/14779-fix-software-deadlock new file mode 100644 index 0000000000..a5ebd308d4 --- /dev/null +++ b/changes/14779-fix-software-deadlock @@ -0,0 +1 @@ +* Fix possible deadlocks when deleting `software` during data ingestion (found during load test). diff --git a/changes/14920-device-health b/changes/14920-device-health new file mode 100644 index 0000000000..b930750f2e --- /dev/null +++ b/changes/14920-device-health @@ -0,0 +1,2 @@ +- Adds a `GET /hosts/{id}/health` endpoint which reports back some key data about host health such + as vulnerable software and failing policies. \ No newline at end of file diff --git a/changes/15146-filter-query-reports-by-user b/changes/15146-filter-query-reports-by-user new file mode 100644 index 0000000000..d612101f63 --- /dev/null +++ b/changes/15146-filter-query-reports-by-user @@ -0,0 +1 @@ +- query reports now only show results for hosts the user has permission to \ No newline at end of file diff --git a/changes/15168-scheduled-outside-fleet b/changes/15168-scheduled-outside-fleet deleted file mode 100644 index 4b469ab252..0000000000 --- a/changes/15168-scheduled-outside-fleet +++ /dev/null @@ -1 +0,0 @@ -* Fixed logging of results for scheduled queries configured outside of Fleet, when `server_settings.query_reports_disabled` is set to `true`. diff --git a/changes/15229-list-software-versions b/changes/15229-list-software-versions new file mode 100644 index 0000000000..bec06e2f8e --- /dev/null +++ b/changes/15229-list-software-versions @@ -0,0 +1,4 @@ +- Added `GET software/versions` endpoint to list and filter software versions. +- Added `GET software/versions/{id}` endpoint to get a specific software version. +- Deprecated `GET software` endpoint. +- Deprecated `GET software/{id}` endpoint. diff --git a/changes/15430-change-script-timeout-error-code-to-408 b/changes/15430-change-script-timeout-error-code-to-408 new file mode 100644 index 0000000000..87509228e8 --- /dev/null +++ b/changes/15430-change-script-timeout-error-code-to-408 @@ -0,0 +1 @@ +- POST /api/v1/fleet/scripts/run/sync timeout (longer than 60 seconds) will now return error code: 408 instead of 504 diff --git a/changes/15472-performance-stat-types b/changes/15472-performance-stat-types new file mode 100644 index 0000000000..8550697ce5 --- /dev/null +++ b/changes/15472-performance-stat-types @@ -0,0 +1 @@ +Changed query performance statistics to uint64 to match osquery reports. \ No newline at end of file diff --git a/changes/issue-14959-remove-feature-flag b/changes/issue-14959-remove-feature-flag new file mode 100644 index 0000000000..b781f6eda3 --- /dev/null +++ b/changes/issue-14959-remove-feature-flag @@ -0,0 +1,2 @@ +* Removed the `FLEET_DEV_MDM_ENABLED` feature flag that allowed enabling Windows MDM. The feature flag is not used anymore, and Windows MDM can be enabled without it. + diff --git a/changes/issue-14979-improve-safety-checks-for-cached-items b/changes/issue-14979-improve-safety-checks-for-cached-items new file mode 100644 index 0000000000..9f17e7f17c --- /dev/null +++ b/changes/issue-14979-improve-safety-checks-for-cached-items @@ -0,0 +1 @@ +* Improved safety and efficiency of implementation of cacheable data. diff --git a/changes/issue-15345-filter-hosts-by-software b/changes/issue-15345-filter-hosts-by-software new file mode 100644 index 0000000000..57b8f0651d --- /dev/null +++ b/changes/issue-15345-filter-hosts-by-software @@ -0,0 +1 @@ +* Added ability to filter hosts by `software_version_id` and `software_title_id` for the "list hosts", "count hosts" and "get hosts report in CSV" endpoints. diff --git a/changes/issue-15406-fleetctl-get-software b/changes/issue-15406-fleetctl-get-software new file mode 100644 index 0000000000..207a78e8d2 --- /dev/null +++ b/changes/issue-15406-fleetctl-get-software @@ -0,0 +1 @@ +* Updated `fleetctl get software` to list software titles, and add optional `--versions` flag to list software versions. diff --git a/changes/issue-15438-firehose-addon b/changes/issue-15438-firehose-addon new file mode 100644 index 0000000000..aa628074d8 --- /dev/null +++ b/changes/issue-15438-firehose-addon @@ -0,0 +1 @@ +* Update firehose delivery addon to use latest module version, this includes breaking changes to previous configurations as the default prefixes have been changed to natively support time-partitioned Athena table creation \ No newline at end of file diff --git a/charts/fleet/Chart.yaml b/charts/fleet/Chart.yaml index 4ce9052fe6..8f5b10b66c 100644 --- a/charts/fleet/Chart.yaml +++ b/charts/fleet/Chart.yaml @@ -8,7 +8,7 @@ version: v6.0.1 home: https://github.com/fleetdm/fleet sources: - https://github.com/fleetdm/fleet.git -appVersion: v4.41.0 +appVersion: v4.41.1 dependencies: - name: mysql condition: mysql.enabled diff --git a/charts/fleet/values.yaml b/charts/fleet/values.yaml index 8cfefb76a9..c576838973 100644 --- a/charts/fleet/values.yaml +++ b/charts/fleet/values.yaml @@ -2,7 +2,7 @@ # All settings related to how Fleet is deployed in Kubernetes hostName: fleet.localhost replicas: 3 # The number of Fleet instances to deploy -imageTag: v4.41.0 # Version of Fleet to deploy +imageTag: v4.41.1 # Version of Fleet to deploy podAnnotations: {} # Additional annotations to add to the Fleet pod serviceAccountAnnotations: {} # Additional annotations to add to the Fleet service account resources: diff --git a/cmd/fleet/serve.go b/cmd/fleet/serve.go index 2fd6af9c74..4d547a1abc 100644 --- a/cmd/fleet/serve.go +++ b/cmd/fleet/serve.go @@ -553,8 +553,8 @@ the way that the Fleet server works. wstepCertManager microsoft_mdm.CertManager ) - // Configuring WSTEP certs if Windows MDM feature flag is enabled - if configpkg.IsMDMFeatureFlagEnabled() && config.MDM.IsMicrosoftWSTEPSet() { + // Configuring WSTEP certs + if config.MDM.IsMicrosoftWSTEPSet() { _, crtPEM, keyPEM, err := config.MDM.MicrosoftWSTEP() if err != nil { initFatal(err, "validate Microsoft WSTEP certificate and key") diff --git a/cmd/fleetctl/apply_test.go b/cmd/fleetctl/apply_test.go index 24324cc22e..1f47b69e69 100644 --- a/cmd/fleetctl/apply_test.go +++ b/cmd/fleetctl/apply_test.go @@ -14,7 +14,6 @@ import ( "path/filepath" "sort" "strconv" - "strings" "sync" "testing" "time" @@ -902,8 +901,6 @@ func mobileconfigForTest(name, identifier string) []byte { } func TestApplyAsGitOps(t *testing.T) { - t.Setenv("FLEET_DEV_MDM_ENABLED", "1") - enqueuer := new(nanomdm_mock.Storage) license := &fleet.LicenseInfo{Tier: fleet.TierPremium, Expiration: time.Now().Add(24 * time.Hour)} @@ -3338,17 +3335,6 @@ spec: `, macSetupFile), wantErr: `macOS MDM isn't turned on.`, }, - { - desc: "app config enable windows mdm without feature flag", - spec: ` -apiVersion: v1 -kind: config -spec: - mdm: - windows_enabled_and_configured: true -`, - wantErr: `422 Validation Failed: cannot enable Windows MDM without the feature flag explicitly enabled`, - }, { desc: "app config enable windows mdm without WSTEP", spec: ` @@ -3370,12 +3356,6 @@ spec: license := &fleet.LicenseInfo{Tier: fleet.TierPremium, Expiration: time.Now().Add(24 * time.Hour)} for _, c := range cases { t.Run(c.desc, func(t *testing.T) { - // bit hacky, but since the env var is temporary while Windows MDM is in beta, - // didn't want to add a field to the test cases just for this. - if strings.Contains(c.desc, "WSTEP") { - t.Setenv("FLEET_DEV_MDM_ENABLED", "1") - } - _, ds := runServerWithMockedDS(t, &service.TestServerOpts{License: license}) setupDS(ds) filename := writeTmpYml(t, c.spec) diff --git a/cmd/fleetctl/get.go b/cmd/fleetctl/get.go index d0f30c1e6e..1a748aacb5 100644 --- a/cmd/fleetctl/get.go +++ b/cmd/fleetctl/get.go @@ -1213,12 +1213,16 @@ func getSoftwareCommand() *cli.Command { return &cli.Command{ Name: "software", Aliases: []string{"s"}, - Usage: "List software", + Usage: "List software titles", Flags: []cli.Flag{ &cli.UintFlag{ Name: teamFlagName, Usage: "Only list software of hosts that belong to the specified team", }, + &cli.BoolFlag{ + Name: "versions", + Usage: "List all software versions", + }, jsonFlag(), yamlFlag(), configFlag(), @@ -1242,49 +1246,104 @@ func getSoftwareCommand() *cli.Command { query.Set("team_id", strconv.FormatUint(uint64(teamID), 10)) } - software, err := client.ListSoftware(query.Encode()) - if err != nil { - return fmt.Errorf("could not list software: %w", err) + if c.Bool("versions") { + return printSoftwareVersions(c, client, query) } - - if len(software) == 0 { - log(c, "No software found") - return nil - } - - if c.Bool(jsonFlagName) || c.Bool(yamlFlagName) { - spec := specGeneric{ - Kind: "software", - Version: "1", - Spec: software, - } - err = printSpec(c, spec) - if err != nil { - return err - } - return nil - } - - // Default to printing as table - data := [][]string{} - - for _, s := range software { - data = append(data, []string{ - s.Name, - s.Version, - s.Source, - s.GenerateCPE, - fmt.Sprint(len(s.Vulnerabilities)), - }) - } - columns := []string{"Name", "Version", "Source", "CPE", "# of CVEs"} - printTable(c, columns, data) - - return nil + return printSoftwareTitles(c, client, query) }, } } +func printSoftwareVersions(c *cli.Context, client *service.Client, query url.Values) error { + software, err := client.ListSoftwareVersions(query.Encode()) + if err != nil { + return fmt.Errorf("could not list software versions: %w", err) + } + + if len(software) == 0 { + log(c, "No software versions found") + return nil + } + + if c.Bool(jsonFlagName) || c.Bool(yamlFlagName) { + spec := specGeneric{ + Kind: "software", + Version: "1", + Spec: software, + } + err = printSpec(c, spec) + if err != nil { + return err + } + return nil + } + + // Default to printing as table + data := [][]string{} + + for _, s := range software { + data = append(data, []string{ + s.Name, + s.Version, + s.Source, + fmt.Sprintf("%d vulnerabilities", len(s.Vulnerabilities)), + fmt.Sprint(s.HostsCount), + }) + } + columns := []string{"Name", "Version", "Type", "Vulnerabilities", "Hosts"} + printTable(c, columns, data) + return nil +} + +func printSoftwareTitles(c *cli.Context, client *service.Client, query url.Values) error { + software, err := client.ListSoftwareTitles(query.Encode()) + if err != nil { + return fmt.Errorf("could not list software titles: %w", err) + } + + if len(software) == 0 { + log(c, "No software titles found") + return nil + } + + if c.Bool(jsonFlagName) || c.Bool(yamlFlagName) { + spec := specGeneric{ + Kind: "software_title", + Version: "1", + Spec: software, + } + err = printSpec(c, spec) + if err != nil { + return err + } + return nil + } + + // Default to printing as table + data := [][]string{} + + for _, s := range software { + vulns := make(map[string]bool) + for _, ver := range s.Versions { + if ver.Vulnerabilities != nil { + for _, vuln := range *ver.Vulnerabilities { + vulns[vuln] = true + } + } + } + data = append(data, []string{ + s.Name, + fmt.Sprintf("%d versions", s.VersionsCount), + s.Source, + fmt.Sprintf("%d vulnerabilities", len(vulns)), + fmt.Sprint(s.HostsCount), + }) + } + columns := []string{"Name", "Versions", "Type", "Vulnerabilities", "Hosts"} + printTable(c, columns, data) + return nil +} + func getMDMAppleCommand() *cli.Command { return &cli.Command{ Name: "mdm-apple", diff --git a/cmd/fleetctl/get_test.go b/cmd/fleetctl/get_test.go index dbbe953bb3..5f300cbcb4 100644 --- a/cmd/fleetctl/get_test.go +++ b/cmd/fleetctl/get_test.go @@ -602,7 +602,163 @@ func TestGetConfig(t *testing.T) { }) } -func TestGetSoftware(t *testing.T) { +func TestGetSoftwareTitles(t *testing.T) { + _, ds := runServerWithMockedDS(t, &service.TestServerOpts{ + License: &fleet.LicenseInfo{ + Tier: fleet.TierPremium, + Expiration: time.Now().Add(24 * time.Hour), + }, + }) + + var gotTeamID *uint + + ds.ListSoftwareTitlesFunc = func(ctx context.Context, opt fleet.SoftwareTitleListOptions) ([]fleet.SoftwareTitle, int, *fleet.PaginationMetadata, error) { + gotTeamID = opt.TeamID + return []fleet.SoftwareTitle{ + { + Name: "foo", + Source: "chrome_extensions", + HostsCount: 2, + VersionsCount: 3, + Versions: []fleet.SoftwareVersion{ + { + Version: "0.0.1", + Vulnerabilities: &fleet.SliceString{"cve-123-456-001", "cve-123-456-002"}, + }, + { + Version: "0.0.2", + Vulnerabilities: &fleet.SliceString{"cve-123-456-001"}, + }, + { + Version: "0.0.3", + Vulnerabilities: &fleet.SliceString{"cve-123-456-003"}, + }, + }, + }, + { + Name: "bar", + Source: "deb_packages", + HostsCount: 0, + VersionsCount: 1, + Versions: []fleet.SoftwareVersion{ + { + Version: "0.0.3", + Vulnerabilities: nil, + }, + }, + }, + }, 0, nil, nil + } + + expected := `+------+------------+-------------------+-------------------+-------+ +| NAME | VERSIONS | TYPE | VULNERABILITIES | HOSTS | ++------+------------+-------------------+-------------------+-------+ +| foo | 3 versions | chrome_extensions | 3 vulnerabilities | 2 | ++------+------------+-------------------+-------------------+-------+ +| bar | 1 versions | deb_packages | 0 vulnerabilities | 0 | ++------+------------+-------------------+-------------------+-------+ +` + + expectedYaml := `--- +apiVersion: "1" +kind: software_title +spec: +- hosts_count: 2 + id: 0 + name: foo + source: chrome_extensions + browser: "" + versions: + - id: 0 + version: 0.0.1 + vulnerabilities: + - cve-123-456-001 + - cve-123-456-002 + - id: 0 + version: 0.0.2 + vulnerabilities: + - cve-123-456-001 + - id: 0 + version: 0.0.3 + vulnerabilities: + - cve-123-456-003 + versions_count: 3 +- hosts_count: 0 + id: 0 + name: bar + source: deb_packages + browser: "" + versions: + - id: 0 + version: 0.0.3 + versions_count: 1 +` + + expectedJson := ` +{ + "kind": "software_title", + "apiVersion": "1", + "spec": [ + { + "id": 0, + "name": "foo", + "source": "chrome_extensions", + "browser": "", + "hosts_count": 2, + "versions_count": 3, + "versions": [ + { + "id": 0, + "version": "0.0.1", + "vulnerabilities": [ + "cve-123-456-001", + "cve-123-456-002" + ] + }, + { + "id": 0, + "version": "0.0.2", + "vulnerabilities": [ + "cve-123-456-001" + ] + }, + { + "id": 0, + "version": "0.0.3", + "vulnerabilities": [ + "cve-123-456-003" + ] + } + ] + }, + { + "id": 0, + "name": "bar", + "source": "deb_packages", + "browser": "", + "hosts_count": 0, + "versions_count": 1, + "versions": [ + { + "id": 0, + "version": "0.0.3" + } + ] + } + ] +} +` + + assert.Equal(t, expected, runAppForTest(t, []string{"get", "software"})) + assert.YAMLEq(t, expectedYaml, runAppForTest(t, []string{"get", "software", "--yaml"})) + assert.JSONEq(t, expectedJson, runAppForTest(t, []string{"get", "software", "--json"})) + + runAppForTest(t, []string{"get", "software", "--json", "--team", "999"}) + require.NotNil(t, gotTeamID) + assert.Equal(t, uint(999), *gotTeamID) +} + +func TestGetSoftwareVersions(t *testing.T) { _, ds := runServerWithMockedDS(t) foo001 := fleet.Software{ @@ -623,17 +779,21 @@ func TestGetSoftware(t *testing.T) { return []fleet.Software{foo001, foo002, foo003, bar003}, nil } - expected := `+------+---------+-------------------+--------------------------+-----------+ -| NAME | VERSION | SOURCE | CPE | # OF CVES | -+------+---------+-------------------+--------------------------+-----------+ -| foo | 0.0.1 | chrome_extensions | somecpe | 2 | -+------+---------+-------------------+--------------------------+-----------+ -| foo | 0.0.2 | chrome_extensions | | 0 | -+------+---------+-------------------+--------------------------+-----------+ -| foo | 0.0.3 | chrome_extensions | someothercpewithoutvulns | 0 | -+------+---------+-------------------+--------------------------+-----------+ -| bar | 0.0.3 | deb_packages | | 0 | -+------+---------+-------------------+--------------------------+-----------+ + ds.CountSoftwareFunc = func(ctx context.Context, opt fleet.SoftwareListOptions) (int, error) { + return 4, nil + } + + expected := `+------+---------+-------------------+-------------------+-------+ +| NAME | VERSION | TYPE | VULNERABILITIES | HOSTS | ++------+---------+-------------------+-------------------+-------+ +| foo | 0.0.1 | chrome_extensions | 2 vulnerabilities | 0 | ++------+---------+-------------------+-------------------+-------+ +| foo | 0.0.2 | chrome_extensions | 0 vulnerabilities | 0 | ++------+---------+-------------------+-------------------+-------+ +| foo | 0.0.3 | chrome_extensions | 0 vulnerabilities | 0 | ++------+---------+-------------------+-------------------+-------+ +| bar | 0.0.3 | deb_packages | 0 vulnerabilities | 0 | ++------+---------+-------------------+-------------------+-------+ ` expectedYaml := `--- @@ -644,6 +804,7 @@ spec: id: 0 name: foo source: chrome_extensions + browser: "" version: 0.0.1 vulnerabilities: - cve: cve-321-432-543 @@ -662,6 +823,7 @@ spec: id: 0 name: foo source: chrome_extensions + browser: "" version: 0.0.3 vulnerabilities: null - bundle_identifier: bundle @@ -669,6 +831,7 @@ spec: id: 0 name: bar source: deb_packages + browser: "" version: 0.0.3 vulnerabilities: null ` @@ -683,6 +846,7 @@ spec: "name": "foo", "version": "0.0.1", "source": "chrome_extensions", + "browser": "", "generated_cpe": "somecpe", "vulnerabilities": [ { @@ -710,6 +874,7 @@ spec: "name": "foo", "version": "0.0.3", "source": "chrome_extensions", + "browser": "", "generated_cpe": "someothercpewithoutvulns", "vulnerabilities": null }, @@ -719,6 +884,7 @@ spec: "version": "0.0.3", "bundle_identifier": "bundle", "source": "deb_packages", + "browser": "", "generated_cpe": "", "vulnerabilities": null } @@ -726,11 +892,11 @@ spec: } ` - assert.Equal(t, expected, runAppForTest(t, []string{"get", "software"})) - assert.YAMLEq(t, expectedYaml, runAppForTest(t, []string{"get", "software", "--yaml"})) - assert.JSONEq(t, expectedJson, runAppForTest(t, []string{"get", "software", "--json"})) + assert.Equal(t, expected, runAppForTest(t, []string{"get", "software", "--versions"})) + assert.YAMLEq(t, expectedYaml, runAppForTest(t, []string{"get", "software", "--versions", "--yaml"})) + assert.JSONEq(t, expectedJson, runAppForTest(t, []string{"get", "software", "--versions", "--json"})) - runAppForTest(t, []string{"get", "software", "--json", "--team", "999"}) + runAppForTest(t, []string{"get", "software", "--versions", "--json", "--team", "999"}) require.NotNil(t, gotTeamID) assert.Equal(t, uint(999), *gotTeamID) } diff --git a/codecov.yml b/codecov.yml index d0a398457d..3b3049e2e4 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,16 +1,22 @@ coverage: status: - project: false - patch: false + project: + default: + target: auto # aim for the same coverage as the base of the PR + threshold: 1% # allow a decrease of up to 1% + patch: + default: + target: auto # aim for the same coverage as the base of the PR + threshold: 1% # allow a decrease of up to 1% flag_management: default_rules: carryforward: true statuses: - type: project - informational: true + informational: false # change this to true if you do not want to enforce covergae requirement - type: patch - informational: true + informational: false # change this to true if you do not want to enforce covergae requirement individual_flags: - name: backend paths: @@ -21,4 +27,4 @@ flag_management: - orbit/ - name: frontend paths: - - frontend/ + - frontend/ \ No newline at end of file diff --git a/docs/Configuration/agent-configuration.md b/docs/Configuration/agent-configuration.md index bad3fa37f3..80b6abe07f 100644 --- a/docs/Configuration/agent-configuration.md +++ b/docs/Configuration/agent-configuration.md @@ -445,20 +445,6 @@ overrides: - "last_modified" ``` -## Command line flags - -> Requires Fleet v4.22.0 or later and Orbit v1.3.0 or later** - -In the `command_line_flags` key, you can update the osquery flags of your Orbit enrolled agents. - -```yaml -agent_options: - config: - overrides: - command_line_flags: - enable_file_events: true -``` - ## Update agent options in Fleet UI diff --git a/docs/Contributing/API-for-contributors.md b/docs/Contributing/API-for-contributors.md index 6cef6ff8c9..9dbc45e563 100644 --- a/docs/Contributing/API-for-contributors.md +++ b/docs/Contributing/API-for-contributors.md @@ -2708,6 +2708,39 @@ If the Fleet instance is provided required parameters to complete setup. ## Scripts +### Run script asynchronously + +_Available in Fleet Premium_ + +Creates a script execution request and returns the execution identifier to retrieve results at a later time. + +`POST /api/v1/fleet/scripts/run` + +#### Parameters + +| Name | Type | In | Description | +| ---- | ------- | ---- | -------------------------------------------- | +| host_id | integer | body | **Required**. The ID of the host to run the script on. | +| script_id | integer | body | The ID of the existing saved script to run. Only one of either `script_id` or `script_contents` can be included in the request; omit this parameter if using `script_contents`. | +| script_contents | string | body | The contents of the script to run. Only one of either `script_id` or `script_contents` can be included in the request; omit this parameter if using `script_id`. | + +> Note that if both `script_id` and `script_contents` are included in the request, this endpoint will respond with an error. + +#### Example + +`POST /api/v1/fleet/scripts/run` + +##### Default response + +`Status: 202` + +```json +{ + "host_id": 1227, + "execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002" +} +``` + ### Batch-apply scripts _Available in Fleet Premium_ diff --git a/docs/Contributing/Releasing-Fleet.md b/docs/Contributing/Releasing-Fleet.md index 74f604a66b..477279afc4 100644 --- a/docs/Contributing/Releasing-Fleet.md +++ b/docs/Contributing/Releasing-Fleet.md @@ -1,162 +1,168 @@ # Releasing Fleet -## Release process +This section outlines the release process at Fleet. The current release cadence is once every three weeks. Patch versions are released as needed. -This section outlines the release process at Fleet after all EMs have certified that they are ready for release. - -The current release cadence is once every three weeks. Patch versions are released as needed. -#### Release candidate process - -Major, minor, and patch releases go through the same release candidate and smoke testing process prior to release. - -1. The release ritual or patch release DRI creates a release candidate branch. If this is a major or minor version, they prepend the branch name with `prepare-v`. If it is a patch version, they prepend the branch name with `patch-v`. For example, `prepare-v4.0.0` or `patch-v4.0.1`. - -> When a `prepare-*` or `patch-*` branch is pushed, the [Docker publish Action](https://github.com/fleetdm/fleet/actions/workflows/goreleaser-snapshot-fleet.yaml) will be invoked to push a container image for smoke testing with `fleetctl preview` (eg. `fleetctl preview --tag patch-fleet-v4.3.1`). - -2. The release DRI pushes the branch to github.com/fleetdm/fleet: - ``` - git push origin prepare-fleet-v4.0.0 - ``` - -3. The release DRI checks in the GitHub UI that Actions ran successfully for this branch. - -4. The release DRI adds a comment to the related smoke testing issue [created during the freeze ritual](https://fleetdm.com/handbook/engineering#create-release-qa-issue) confirming that the release candidate is ready for testing. - -5. QA is conducted on the release candidate following the steps in the smoke testing issue. If smoke testing passes successfully, the EM for each relevant product group adds a comment to the issue certifying that their product group has completed smoke testing. - -6. When the smoke testing issue has been certified, the release DRI publishes the release. - - - -### Preparing a minor or major release +### Prepare a new version of Fleet Note: Please prefix versions with `fleet-v` (e.g., `fleet-v4.0.0`) in git tags, Helm charts, and NPM configs. -1. Update the [CHANGELOG](https://github.com/fleetdm/fleet/blob/main/CHANGELOG.md) with the changes you made since the last - Fleet release. Use `make changelog` to pull the changes files into `CHANGELOG.md`, then manually - edit. When editing, order the most relevant/important changes at the time and try to make the - tone and syntax of the written language match throughout the document. `make changelog` will stage all changes - file entries for deletion with the commit. +1. Update the [CHANGELOG](https://github.com/fleetdm/fleet/blob/main/CHANGELOG.md) with the changes you made since the last Fleet release. Use `make changelog` to pull the change files into `CHANGELOG.md`, then manually edit. When editing, order the most relevant/important changes at the top and make sure each line is in the past tense. `make changelog` will stage all change file entries for deletion with the commit. - Add a "Performance" section below the list of changes. This section should summarize the number of - hosts that the Fleet server can handle, call out if this number has - changed since the last release, and list the infrastructure used in the load testing environment. +2. Update version numbers in the relevant files: - Update version numbers in the relevant files: +- [fleetctl package.json](https://github.com/fleetdm/fleet/blob/main/tools/fleetctl-npm/package.json) (do not yet `npm publish`) +- [Helm chart.yaml](https://github.com/fleetdm/fleet/blob/main/charts/fleet/Chart.yaml) and [values file](https://github.com/fleetdm/fleet/blob/main/charts/fleet/values.yaml) +- Terraform variables ([AWS](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/variables.tf)/[GCP](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/gcp/variables.tf)) +- [Kubernetes `deployment.yml` example file](https://github.com/fleetdm/fleet/blob/main/docs/Deploy/Deploying-Fleet-on-Kubernetes.md) +- All Terraform (*.tf) files referencing the previous version of Fleet. - - [fleetctl package.json](https://github.com/fleetdm/fleet/blob/main/tools/fleetctl-npm/package.json) (do not yet `npm publish`) - - [Helm chart.yaml](https://github.com/fleetdm/fleet/blob/main/charts/fleet/Chart.yaml) and [values file](https://github.com/fleetdm/fleet/blob/main/charts/fleet/values.yaml) - - Terraform variables ([AWS](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/variables.tf)/[GCP](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/gcp/variables.tf)) - - [Kubernetes `deployment.yml` example file](https://github.com/fleetdm/fleet/blob/main/docs/Deploy/Deploying-Fleet-on-Kubernetes.md) +Commit these changes via Pull Request and pull the changes on the `main` branch locally. - Commit these changes via Pull Request and pull the changes on the `main` branch locally. Check that - `HEAD` of the `main` branch points to the commit with these changes. +### Prepare a minor or major release -2. Create release candidate branch and conduct smoke testing as documented above. +1. Complete the steps above to [prepare a new version of Fleet](#prepare-a-new-version-of-fleet). -3. Tag and push the new release in Git: - ```sh - git tag fleet-v - git push origin fleet-v - ``` +2. Create a new branch. Minor or major release branches should be prefixed with `prepare-`. In this example we are creating `v4.3.0`: - Note that `origin` may be `upstream` depending on your `git remote` configuration. The intent here - is to push the new tag to the `github.com/fleetdm/fleet` repository. +```sh +git checkout main +git checkout --branch prepare-fleet-v4.3.0 +``` - After the tag is pushed, GitHub Actions will automatically begin building the new release. +3. [Create release candidate](#create-release-candidate). - *** +4. [Complete release QA](#complete-release-qa). - Wait while GitHub Actions creates and uploads the artifacts. +5. Tag and push the new release: - *** +```sh +git tag fleet-v +git push origin fleet-v +``` - When the Actions Workflow has been completed: +Note that `origin` may be `upstream` depending on your `git remote` configuration. The intent here +is to push the new tag to the `github.com/fleetdm/fleet` repository. -4. Edit the draft release on the [GitHub releases page](https://github.com/fleetdm/fleet/releases). - Use the version number as the release title. Use the below template for the release description - (replace items in <> with the appropriate values): - ```md - ### Changes +After the tag is pushed, GitHub Actions will automatically begin building the new release. - +*** - ### Upgrading +Wait while GitHub Actions creates and uploads the artifacts. - Please visit our [update guide](https://fleetdm.com/docs/deploying/upgrading-fleet) for upgrade instructions. +*** - ### Documentation +When the Actions Workflow has been completed, [publish the new version of Fleet](#publish-a-new-version-of-fleet). - Documentation for Fleet is available at [fleetdm.com/docs](https://fleetdm.com/docs). - - ### Binary Checksum - - **SHA256** - - - ``` - - When editing is complete, publish the release. - -5. Publish the new version of `fleetctl` on NPM. Run `npm publish` in the - [fleetctl-npm](https://github.com/fleetdm/fleet/tree/main/tools/fleetctl-npm) directory. Note that NPM does not allow replacing a - package without creating a new version number. Take care to get things correct before running - `npm publish`! - -> If releasing a "prerelease" of Fleet, run `npm publish --tag prerelease`. This way, you can -> publish a prerelease of fleetctl while the most recent fleetctl npm package, available for public -> download, is still the latest _official_ release. - -6. Deploy the new version to Fleet's internal dogfood instance: https://fleetdm.com/handbook/engineering#deploying-to-dogfood. - -7. In the #g-infra Slack channel, notify the @infrastructure-oncall of the release. This way, the @infrastructure-oncall individual can deploy the new version. - -8. Announce the release in the #general channel. - -9. Announce the release in the #fleet channel of [osquery - Slack](https://fleetdm.com/slack) and - update the channel's topic with the link to this release. Using `@here` requires admin - permissions, so typically this announcement will be done by `@zwass`. - - Announce the release via blog post (on Medium) and Twitter (linking to blog post). - -### Preparing a patch release +### Prepare a patch release A patch release is required when a critical bug is found. Critical bugs are defined in [our handbook](https://fleetdm.com/handbook/quality#critical-bugs). -#### Process +1. Complete the steps above to [prepare a new version of Fleet](#prepare-a-new-version-of-fleet). -1. The DRI for release testing/QA notifies the [directly responsible individual (DRI) for creating the patch release branch](https://fleetdm.com/handbook/engineering#rituals) to create the new branch, starting from the git tag of the prior release. Patch branches should be prefixed with `patch-`. In this example we are creating `4.3.1`: - ```sh - git checkout fleet-v4.3.0 - git checkout --branch patch-fleet-v4.3.1 - ``` +2. Create a new branch, starting from the git tag of the prior release. Patch branches should be prefixed with `patch-`. In this example we are creating `v4.3.1`: + +```sh +git checkout fleet-v4.3.0 +git checkout --branch patch-fleet-v4.3.1 +``` -2. The DRI for creating the patch release branch cherry picks the necessary commits into the new branch: - ```sh - git cherry-pick d34db33f - ``` +3. Cherry picks the necessary commits from `main` into the new branch: + +```sh +git cherry-pick d34db33f +``` -3. The DRI for creating the patch release branch pushes the branch to github.com/fleetdm/fleet: +> Make sure to cherry-pick the commit containing changelog and version number updates. + +4. **Important!** Any migrations that are not cherry-picked in a patch must have a _later_ timestamp than migrations that were cherry-picked. If there are new migrations that were not cherry-picked, verify that those migrations have later timestamps. If they do not, submit a new Pull Request to increase the timestamps and ensure that migrations are run in the appropriate order. + +5. [Create release candidate](#create-release-candidate). + +6. [Complete release QA](#complete-release-qa). + +7. Tag and push the new release in Git: + +```sh +git tag fleet-v-v4.3.1 +git push origin fleet-v-4.3.1 +``` + +Note that `origin` may be `upstream` depending on your `git remote` configuration. The intent here +is to push the new tag to the `github.com/fleetdm/fleet` repository. + +After the tag is pushed, GitHub Actions will automatically begin building the new release. + +*** + +Wait while GitHub Actions creates and uploads the artifacts. + +*** + +When the Actions Workflow has been completed, [publish the new version of Fleet](#publish-a-new-version-of-fleet). + +### Create release candidate + +1. Push a branch containing new commits to [fleetdm/fleet](https://github.com/fleetdm/fleet) that begins with `prepare-*` or `patch-*`. ```sh git push origin patch-fleet-v4.3.1 ``` - When a `patch-*` branch is pushed, the [Docker publish - Action](https://github.com/fleetdm/fleet/actions/workflows/goreleaser-snapshot-fleet.yaml) will - be invoked to push a container image for QA with `fleetctl preview` (eg. `fleetctl preview --tag patch-fleet-v4.3.1`). + > When a `prepare-*` or `patch-*` branch is pushed, the [Docker publish Action](https://github.com/fleetdm/fleet/actions/workflows/goreleaser-snapshot-fleet.yaml) will run and create a container image for QA with `fleetctl preview` (eg. `fleetctl preview --tag patch-fleet-v4.3.1`). -4. The patch release DRI checks in the GitHub UI that Actions ran successfully for this branch. +2. Check the [Docker Publish GitHub action](https://github.com/fleetdm/fleet/actions/workflows/goreleaser-snapshot-fleet.yaml) to confirm it completes successfully for this branch. -5. The patch release DRI notifies the [DRI for release testing/QA](https://fleetdm.com/handbook/product#rituals) that the branch is available for completing [smoke tests](https://github.com/fleetdm/fleet/blob/main/.github/ISSUE_TEMPLATE/smoke-tests.md). +3. Create a [Release QA](https://github.com/fleetdm/fleet/blob/main/.github/ISSUE_TEMPLATE/smoke-tests.md) issue. Populate the version and browsers, and assign to the QA person leading the release. Add the appropriate [product group label](https://fleetdm.com/handbook/company/product-groups), and `:release` label, so that it appears on the product group's release board. -6. The DRI for release testing/QA makes sure the standard release instructions at the top of this document are followed. Be sure that modifications to the changelog and config files are commited _on the `patch-*` branch_. +4. Notify QA that the release candidate is ready for (release QA)[#complete-release-qa]. -7. The DRI for release testing/QA notifies the [DRI for the release ritual](https://fleetdm.com/handbook/engineering#rituals) that the patch release is ready. The DRI for the release ritual releases the patch. +### Complete release QA -8. The DRI for creating the patch release branch cherry-picks the commit containing the changelog updates into a new branch, and merges that commit into `main` through a Pull Request. +1. Move the release QA issue into the "In progress" column on the release board. -9. **Important!** The DRI for creating the patch release branch manually checks the database migrations. Any migrations that are not cherry-picked in a patch must have a _later_ timestamp than migrations that were cherry-picked. If there are new migrations that were not cherry-picked, verify that those migrations have later timestamps. If they do not, submit a new Pull Request to increase the timestamps and ensure that migrations are run in the appropriate order. +2. Complete each item listed in the release QA issue. + +3. If bugs are found, file bug tickets and notify your EM. + +4. When all items are completed with no bugs remaining, move the issue to the "Ready for release" column on the release board and notify your EM. + +### Publish a new version of Fleet + +1. Edit the draft release on the [GitHub releases page](https://github.com/fleetdm/fleet/releases).Use the version number as the release title. Use the below template for the release description +(replace items in <> with the appropriate values): + +```md +### Changes + + + +### Upgrading + +Please visit our [update guide](https://fleetdm.com/docs/deploying/upgrading-fleet) for upgrade instructions. + +### Documentation + +Documentation for Fleet is available at [fleetdm.com/docs](https://fleetdm.com/docs). + +### Binary Checksum + +**SHA256** + + +``` + +When editing is complete, publish the release. + +2. Publish the new version of `fleetctl` on NPM. Run `npm publish` in the [fleetctl-npm](https://github.com/fleetdm/fleet/tree/main/tools/fleetctl-npm) directory. Note that NPM does not allow replacing a package without creating a new version number. Take care to get things correct before running `npm publish`! + +> If releasing a "prerelease" of Fleet, run `npm publish --tag prerelease`. This way, you can publish a prerelease of fleetctl while the most recent fleetctl npm package, available for public download, is still the latest _official_ release. + +3. Deploy the new version to Fleet's internal dogfood instance: https://fleetdm.com/handbook/engineering#deploying-to-dogfood. + +4. In the #help-infrastructure Slack channel, notify the @infrastructure-oncall of the release. The @infrastructure-oncall will schedule time to upgrade our managed cloud to the new version. + +5. Announce the release in the #fleet channel of [osquery Slack](https://fleetdm.com/slack) by updating the channel topic with the link to this release. + +6. Announce the release in the #general channel by copying and pasting the osquery Slack channel topic. - + diff --git a/docs/REST API/rest-api.md b/docs/REST API/rest-api.md index 282be6eafa..8a7fcf68b4 100644 --- a/docs/REST API/rest-api.md +++ b/docs/REST API/rest-api.md @@ -699,7 +699,7 @@ Retrieves a list of the non expired carves. Carve contents remain available for Retrieves the specified carve. -`GET /api/v1/fleet/carves/{id}` +`GET /api/v1/fleet/carves/:id` #### Parameters @@ -738,7 +738,7 @@ Retrieves the specified carve. Retrieves the specified carve block. This endpoint retrieves the data that was carved. -`GET /api/v1/fleet/carves/{id}/block/{block_id}` +`GET /api/v1/fleet/carves/:id/block/:block_id` #### Parameters @@ -1394,7 +1394,7 @@ Delete all global enroll secrets. Returns the valid team enroll secrets. -`GET /api/v1/fleet/teams/{id}/secrets` +`GET /api/v1/fleet/teams/:id/secrets` #### Parameters @@ -1425,7 +1425,7 @@ None. Replaces all existing team enroll secrets. -`PATCH /api/v1/fleet/teams/{id}/secrets` +`PATCH /api/v1/fleet/teams/:id/secrets` #### Parameters @@ -1623,7 +1623,7 @@ Returns a list of the active invitations in Fleet. Delete the specified invite from Fleet. -`DELETE /api/v1/fleet/invites/{id}` +`DELETE /api/v1/fleet/invites/:id` #### Parameters @@ -1633,7 +1633,7 @@ Delete the specified invite from Fleet. #### Example -`DELETE /api/v1/fleet/invites/{id}` +`DELETE /api/v1/fleet/invites/123` ##### Default response @@ -1644,7 +1644,7 @@ Delete the specified invite from Fleet. Verify the specified invite. -`GET /api/v1/fleet/invites/{token}` +`GET /api/v1/fleet/invites/:token` #### Parameters @@ -1654,7 +1654,7 @@ Verify the specified invite. #### Example -`GET /api/v1/fleet/invites/{token}` +`GET /api/v1/fleet/invites/abcdef012456789` ##### Default response @@ -1693,7 +1693,7 @@ Verify the specified invite. ### Update invite -`PATCH /api/v1/fleet/invites/{id}` +`PATCH /api/v1/fleet/invites/:id` #### Parameters @@ -2180,7 +2180,7 @@ Returns the count of all hosts organized by status. `online_count` includes all Returns the information of the specified host. -`GET /api/v1/fleet/hosts/{id}` +`GET /api/v1/fleet/hosts/:id` #### Parameters @@ -2421,7 +2421,7 @@ Returns the information of the specified host. Returns the information of the host specified using the `uuid`, `osquery_host_id`, `hostname`, or `node_key` as an identifier -`GET /api/v1/fleet/hosts/identifier/{identifier}` +`GET /api/v1/fleet/hosts/identifier/:identifier` #### Parameters @@ -2628,7 +2628,7 @@ Returns a subset of information about the host specified by `token`. To get all This is the API route used by the **My device** page in Fleet desktop to display information about the host to the end user. -`GET /api/v1/fleet/device/{token}` +`GET /api/v1/fleet/device/:token` ##### Parameters @@ -2826,7 +2826,7 @@ This is the API route used by the **My device** page in Fleet desktop to display Deletes the specified host from Fleet. Note that a deleted host will fail authentication with the previous node key, and in most osquery configurations will attempt to re-enroll automatically. If the host still has a valid enroll secret, it will re-enroll successfully. -`DELETE /api/v1/fleet/hosts/{id}` +`DELETE /api/v1/fleet/hosts/:id` #### Parameters @@ -2847,7 +2847,7 @@ Deletes the specified host from Fleet. Note that a deleted host will fail authen Flags the host details, labels and policies to be refetched the next time the host checks in for distributed queries. Note that we cannot be certain when the host will actually check in and update the query results. Further requests to the host APIs will indicate that the refetch has been requested through the `refetch_requested` field on the host object. -`POST /api/v1/fleet/hosts/{id}/refetch` +`POST /api/v1/fleet/hosts/:id/refetch` #### Parameters @@ -2992,7 +2992,7 @@ Retrieves a host's Google Chrome profile information which can be used to link a Requires [Fleetd](https://fleetdm.com/docs/using-fleet/fleetd), the osquery manager from Fleet. Fleetd can be built with [fleetctl](https://fleetdm.com/docs/using-fleet/adding-hosts#osquery-installer). -`GET /api/v1/fleet/hosts/{id}/device_mapping` +`GET /api/v1/fleet/hosts/:id/device_mapping` #### Parameters @@ -3032,7 +3032,7 @@ Retrieves a host's MDM enrollment status and MDM server URL. If the host exists but is not enrolled to an MDM server, then this API returns `null`. -`GET /api/v1/fleet/hosts/{id}/mdm` +`GET /api/v1/fleet/hosts/:id/mdm` #### Parameters @@ -3124,7 +3124,7 @@ Currently supported only on macOS. Retrieves a host's MDM enrollment status, MDM server URL, and Munki version. -`GET /api/v1/fleet/hosts/{id}/macadmins` +`GET /api/v1/fleet/hosts/:id/macadmins` #### Parameters @@ -3536,7 +3536,7 @@ Creates a dynamic label. Modifies the specified label. Note: Label queries and platforms are immutable. To change these, you must delete the label and create a new label. -`PATCH /api/v1/fleet/labels/{id}` +`PATCH /api/v1/fleet/labels/:id` #### Parameters @@ -3587,7 +3587,7 @@ Modifies the specified label. Note: Label queries and platforms are immutable. T Returns the specified label. -`GET /api/v1/fleet/labels/{id}` +`GET /api/v1/fleet/labels/:id` #### Parameters @@ -3776,7 +3776,7 @@ Returns a list of all the labels in Fleet. Returns a list of the hosts that belong to the specified label. -`GET /api/v1/fleet/labels/{id}/hosts` +`GET /api/v1/fleet/labels/:id/hosts` #### Parameters @@ -3872,7 +3872,7 @@ If `mdm_id`, `mdm_name`, `mdm_enrollment_status`, `os_settings`, or `os_settings Deletes the label specified by name. -`DELETE /api/v1/fleet/labels/{name}` +`DELETE /api/v1/fleet/labels/:name` #### Parameters @@ -3893,7 +3893,7 @@ Deletes the label specified by name. Deletes the label specified by ID. -`DELETE /api/v1/fleet/labels/id/{id}` +`DELETE /api/v1/fleet/labels/id/:id` #### Parameters @@ -4061,7 +4061,7 @@ List all configuration profiles for macOS hosts enrolled to Fleet's MDM that are ### Download custom macOS setting (configuration profile) -`GET /api/v1/fleet/mdm/apple/profiles/{profile_id}` +`GET /api/v1/fleet/mdm/apple/profiles/:profile_id` #### Parameters @@ -4113,7 +4113,7 @@ solely on the response status code returned by this endpoint. ### Delete custom macOS setting (configuration profile) -`DELETE /api/v1/fleet/mdm/apple/profiles/{profile_id}` +`DELETE /api/v1/fleet/mdm/apple/profiles/:profile_id` #### Parameters @@ -4292,6 +4292,8 @@ This endpoint returns the results for a specific custom MDM command. } ``` +> Note: If the server has not yet received a result for a command, it will return an empty object (`{}`). + ### List custom MDM commands > `GET /api/v1/fleet/mdm/apple/commands` API endpoint is deprecated as of Fleet 4.40. It is maintained for backward compatibility. Please use the new API endpoint below. See old API endpoint docs [here](https://github.com/fleetdm/fleet/blob/ee02782eaf84c121256d73abc20b949d31bf2e57/docs/REST%20API/rest-api.md#list-custom-mdm-commands). @@ -4487,7 +4489,7 @@ None. ### Turn off MDM for a host -`PATCH /api/v1/fleet/mdm/hosts/{id}/unenroll` +`PATCH /api/v1/fleet/mdm/hosts/:id/unenroll` #### Parameters @@ -4557,7 +4559,7 @@ _Available in Fleet Premium_ Get information about a bootstrap package that was uploaded to Fleet. -`GET /api/v1/fleet/mdm/apple/bootstrap/{team_id}/metadata` +`GET /api/v1/fleet/mdm/apple/bootstrap/:team_id/metadata` #### Parameters @@ -4595,7 +4597,7 @@ _Available in Fleet Premium_ Delete a team's bootstrap package. -`DELETE /api/v1/fleet/mdm/apple/bootstrap/{team_id}` +`DELETE /api/v1/fleet/mdm/apple/bootstrap/:team_id` #### Parameters @@ -4779,7 +4781,7 @@ _Available in Fleet Premium_ Delete an EULA file. -`DELETE /api/v1/fleet/mdm/apple/setup/eula/{token}` +`DELETE /api/v1/fleet/mdm/apple/setup/eula/:token` #### Parameters @@ -4801,7 +4803,7 @@ _Available in Fleet Premium_ Download an EULA file -`GET /api/v1/fleet/mdm/apple/setup/eula/{token}` +`GET /api/v1/fleet/mdm/apple/setup/eula/:token` #### Parameters @@ -4937,7 +4939,7 @@ For example, a policy might ask β€œIs Gatekeeper enabled on macOS devices?β€œ Th ### Get policy by ID -`GET /api/v1/fleet/global/policies/{id}` +`GET /api/v1/fleet/global/policies/:id` #### Parameters @@ -5117,7 +5119,7 @@ Where `query_id` references an existing `query`. ### Edit policy -`PATCH /api/v1/fleet/global/policies/{policy_id}` +`PATCH /api/v1/fleet/global/policies/:id` #### Parameters @@ -5226,13 +5228,13 @@ Team policies work the same as policies, but at the team level. ### List team policies -`GET /api/v1/fleet/teams/{id}/policies` +`GET /api/v1/fleet/teams/:id/policies` #### Parameters | Name | Type | In | Description | | ------------------ | ------- | ---- | ------------------------------------------------------------------------------------------------------------- | -| id | integer | url | Required. Defines what team ID to operate on | +| id | integer | path | **Required.** Defines what team ID to operate on | | page | integer | query | Page number of the results to fetch. | | per_page | integer | query | Results per page. | #### Example @@ -5305,11 +5307,12 @@ Team policies work the same as policies, but at the team level. ### Count team policies -`GET /api/v1/fleet/team/{team_id}/policies/count` +`GET /api/v1/fleet/team/:team_id/policies/count` #### Parameters | Name | Type | In | Description | | ------------------ | ------- | ---- | ------------------------------------------------------------------------------------------------------------- | +| team_id | integer | path | **Required.** Defines what team ID to operate on | query | string | query | Search query keywords. Searchable fields include `name`. | #### Example @@ -5330,14 +5333,14 @@ Team policies work the same as policies, but at the team level. ### Get team policy by ID -`GET /api/v1/fleet/teams/{team_id}/policies/{id}` +`GET /api/v1/fleet/teams/:team_id/policies/:policy_id` #### Parameters | Name | Type | In | Description | | ------------------ | ------- | ---- | ------------------------------------------------------------------------------------------------------------- | -| team_id | integer | url | Defines what team ID to operate on | -| id | integer | path | **Required.** The policy's ID. | +| team_id | integer | path | **Required.** Defines what team ID to operate on | +| policy_id | integer | path | **Required.** The policy's ID. | #### Example @@ -5373,13 +5376,13 @@ Team policies work the same as policies, but at the team level. The semantics for creating a team policy are the same as for global policies, see [Add policy](#add-policy). -`POST /api/v1/fleet/teams/{team_id}/policies` +`POST /api/v1/fleet/teams/:id/policies` #### Parameters | Name | Type | In | Description | | ---------- | ------- | ---- | ------------------------------------ | -| team_id | integer | url | Defines what team ID to operate on. | +| id | integer | path | Defines what team ID to operate on. | | name | string | body | The query's name. | | query | string | body | The query in SQL. | | description | string | body | The query's description. | @@ -5435,13 +5438,13 @@ Either `query` or `query_id` must be provided. ### Remove team policies -`POST /api/v1/fleet/teams/{team_id}/policies/delete` +`POST /api/v1/fleet/teams/:team_id/policies/delete` #### Parameters | Name | Type | In | Description | | -------- | ------- | ---- | ------------------------------------------------- | -| team_id | integer | url | Defines what team ID to operate on | +| team_id | integer | path | **Required.** Defines what team ID to operate on | | ids | list | body | **Required.** The IDs of the policies to delete. | #### Example @@ -5468,7 +5471,7 @@ Either `query` or `query_id` must be provided. ### Edit team policy -`PATCH /api/v1/fleet/teams/{team_id}/policies/{policy_id}` +`PATCH /api/v1/fleet/teams/:team_id/policies/:policy_id` #### Parameters @@ -5651,7 +5654,7 @@ Returns a list of global queries or team queries. Returns the query specified by ID. -`GET /api/v1/fleet/queries/{id}` +`GET /api/v1/fleet/queries/:id` #### Parameters @@ -5714,7 +5717,7 @@ Returns the query specified by ID. Returns the query report specified by ID. -`GET /api/v1/fleet/queries/{id}/report` +`GET /api/v1/fleet/queries/:id/report` #### Parameters @@ -5871,7 +5874,7 @@ Creates a global query or team query. Modifies the query specified by ID. -`PATCH /api/v1/fleet/queries/{id}` +`PATCH /api/v1/fleet/queries/:id` #### Parameters @@ -5944,7 +5947,7 @@ Modifies the query specified by ID. Deletes the query specified by name. -`DELETE /api/v1/fleet/queries/{name}` +`DELETE /api/v1/fleet/queries/:name` #### Parameters @@ -5955,7 +5958,7 @@ Deletes the query specified by name. #### Example -`DELETE /api/v1/fleet/queries/{name}` +`DELETE /api/v1/fleet/queries/foo` ##### Default response @@ -5966,7 +5969,7 @@ Deletes the query specified by name. Deletes the query specified by ID. -`DELETE /api/v1/fleet/queries/id/{id}` +`DELETE /api/v1/fleet/queries/id/:id` #### Parameters @@ -6257,7 +6260,7 @@ None. > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`PATCH /api/v1/fleet/global/schedule/{id}` +`PATCH /api/v1/fleet/global/schedule/:id` #### Parameters @@ -6313,7 +6316,7 @@ None. > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`DELETE /api/v1/fleet/global/schedule/{id}` +`DELETE /api/v1/fleet/global/schedule/:id` #### Parameters @@ -6347,7 +6350,7 @@ This allows you to easily configure scheduled queries that will impact a whole t > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`GET /api/v1/fleet/teams/{id}/schedule` +`GET /api/v1/fleet/teams/:id/schedule` #### Parameters @@ -6427,7 +6430,7 @@ This allows you to easily configure scheduled queries that will impact a whole t > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`POST /api/v1/fleet/teams/{id}/schedule` +`POST /api/v1/fleet/teams/:id/schedule` #### Parameters @@ -6485,7 +6488,7 @@ This allows you to easily configure scheduled queries that will impact a whole t > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`PATCH /api/v1/fleet/teams/{team_id}/schedule/{scheduled_query_id}` +`PATCH /api/v1/fleet/teams/:team_id/schedule/:scheduled_query_id` #### Parameters @@ -6542,7 +6545,7 @@ This allows you to easily configure scheduled queries that will impact a whole t > The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility. > Please use the [queries](#queries) endpoints, which as of 4.35 have attributes such as `interval` and `platform` that enable scheduling. -`DELETE /api/v1/fleet/teams/{team_id}/schedule/{scheduled_query_id}` +`DELETE /api/v1/fleet/teams/:team_id/schedule/:scheduled_query_id` #### Parameters @@ -6563,8 +6566,7 @@ This allows you to easily configure scheduled queries that will impact a whole t ## Scripts -- [Run script asynchronously](#run-script-asynchronously) -- [Run script synchronously](#run-script-synchronously) +- [Run script](#run-script) - [Get script result](#get-script-result) - [Upload a script](#upload-a-script) - [Delete a script](#delete-a-script) @@ -6572,44 +6574,11 @@ This allows you to easily configure scheduled queries that will impact a whole t - [Get or download a script](#get-or-download-a-script) - [Get script details by host](#get-script-details-by-host) -### Run script asynchronously +### Run script _Available in Fleet Premium_ -Creates a script execution request and returns the execution identifier to retrieve results at a later time. - -`POST /api/v1/fleet/scripts/run` - -#### Parameters - -| Name | Type | In | Description | -| ---- | ------- | ---- | -------------------------------------------- | -| host_id | integer | body | **Required**. The ID of the host to run the script on. | -| script_id | integer | body | The ID of the existing saved script to run. Only one of either `script_id` or `script_contents` can be included in the request; omit this parameter if using `script_contents`. | -| script_contents | string | body | The contents of the script to run. Only one of either `script_id` or `script_contents` can be included in the request; omit this parameter if using `script_id`. | - -> Note that if both `script_id` and `script_contents` are included in the request, this endpoint will respond with an error. - -#### Example - -`POST /api/v1/fleet/scripts/run` - -##### Default response - -`Status: 202` - -```json -{ - "host_id": 1227, - "execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002" -} -``` - -### Run script synchronously - -_Available in Fleet Premium_ - -Creates a script execution request and waits for a result to return (up to a 1 minute timeout). +Execute a script and see script results (1 minute timeout). `POST /api/v1/fleet/scripts/run/sync` @@ -6658,7 +6627,7 @@ Gets the result of a script that was executed. #### Example -`GET /api/v1/fleet/scripts/results/{execution_id}` +`GET /api/v1/fleet/scripts/results/:execution_id` ##### Default Response @@ -6738,7 +6707,7 @@ _Available in Fleet Premium_ Deletes an existing script. -`DELETE /api/v1/fleet/scripts/{id}` +`DELETE /api/v1/fleet/scripts/:id` #### Parameters @@ -6805,7 +6774,7 @@ _Available in Fleet Premium_ _Available in Fleet Premium_ -`GET /api/v1/fleet/scripts/{id}` +`GET /api/v1/fleet/scripts/:id` #### Parameters @@ -6857,7 +6826,7 @@ echo "hello" _Available in Fleet Premium_ -`GET /api/v1/fleet/hosts/{id}/scripts` +`GET /api/v1/fleet/hosts/:id/scripts` #### Parameters @@ -6868,7 +6837,7 @@ _Available in Fleet Premium_ #### Example -`GET /api/v1/fleet/hosts/{id}/scripts` +`GET /api/v1/fleet/hosts/123/scripts` ##### Default response @@ -6924,7 +6893,7 @@ _Available in Fleet Premium_ Returns the session information for the session specified by ID. -`GET /api/v1/fleet/sessions/{id}` +`GET /api/v1/fleet/sessions/:id` #### Parameters @@ -6952,7 +6921,7 @@ Returns the session information for the session specified by ID. Deletes the session specified by ID. When the user associated with the session next attempts to access Fleet, they will be asked to log in. -`DELETE /api/v1/fleet/sessions/{id}` +`DELETE /api/v1/fleet/sessions/:id` #### Parameters @@ -7026,6 +6995,17 @@ Deletes the session specified by ID. When the user associated with the session n } ], "hosts_count": 1 + }, + { + "id": 2, + "name": "1Password – Password Manager", + "version": "2.3.7", + "source": "chrome_extensions", + "extension_id": "aeblfdkhhhdcdjpifhhbdiojplfjncoa", + "browser": "chrome", + "generated_cpe": "cpe:2.3:a:1password:1password:2.3.7:*:*:*:*:chrome:*:*", + "vulnerabilities": null, + "hosts_count": 2 } ] } @@ -7338,7 +7318,7 @@ _Available in Fleet Premium_ _Available in Fleet Premium_ -`GET /api/v1/fleet/teams/{id}` +`GET /api/v1/fleet/teams/:id` #### Parameters @@ -7490,7 +7470,7 @@ _Available in Fleet Premium_ _Available in Fleet Premium_ -`PATCH /api/v1/fleet/teams/{id}` +`PATCH /api/v1/fleet/teams/:id` #### Parameters @@ -7669,7 +7649,7 @@ _Available in Fleet Premium_ _Available in Fleet Premium_ -`POST /api/v1/fleet/teams/{id}/agent_options` +`POST /api/v1/fleet/teams/:id/agent_options` #### Parameters @@ -7758,7 +7738,7 @@ _Available in Fleet Premium_ _Available in Fleet Premium_ -`DELETE /api/v1/fleet/teams/{id}` +`DELETE /api/v1/fleet/teams/:id` #### Parameters @@ -8169,7 +8149,7 @@ By default, the user will be forced to reset its password upon first login. Returns all information about a specific user. -`GET /api/v1/fleet/users/{id}` +`GET /api/v1/fleet/users/:id` #### Parameters @@ -8229,7 +8209,7 @@ Returns all information about a specific user. ### Modify user -`PATCH /api/v1/fleet/users/{id}` +`PATCH /api/v1/fleet/users/:id` #### Parameters @@ -8337,7 +8317,7 @@ Returns all information about a specific user. Delete the specified user from Fleet. -`DELETE /api/v1/fleet/users/{id}` +`DELETE /api/v1/fleet/users/:id` #### Parameters @@ -8358,7 +8338,7 @@ Delete the specified user from Fleet. The selected user is logged out of Fleet and required to reset their password during the next attempt to log in. This also revokes all active Fleet API tokens for this user. Returns the user object. -`POST /api/v1/fleet/users/{id}/require_password_reset` +`POST /api/v1/fleet/users/:id/require_password_reset` #### Parameters @@ -8369,7 +8349,7 @@ The selected user is logged out of Fleet and required to reset their password du #### Example -`POST /api/v1/fleet/users/{id}/require_password_reset` +`POST /api/v1/fleet/users/123/require_password_reset` ##### Request body @@ -8404,7 +8384,7 @@ The selected user is logged out of Fleet and required to reset their password du Returns a list of the user's sessions in Fleet. -`GET /api/v1/fleet/users/{id}/sessions` +`GET /api/v1/fleet/users/:id/sessions` #### Parameters @@ -8444,7 +8424,7 @@ None. Deletes the selected user's sessions in Fleet. Also deletes the user's API token. -`DELETE /api/v1/fleet/users/{id}/sessions` +`DELETE /api/v1/fleet/users/:id/sessions` #### Parameters @@ -8522,7 +8502,7 @@ Returns information about the current state of the database; valid keys are: - `innodb-status`: returns InnoDB status information. - `process-list`: returns running processes (queries, etc). -`GET /debug/db/{key}` +`GET /debug/db/:key` #### Parameters @@ -8534,7 +8514,7 @@ Returns runtime profiling data of the server in the format expected by `go tools Valid keys are: `cmdline`, `profile`, `symbol` and `trace`. -`GET /debug/pprof/{key}` +`GET /debug/pprof/:key` #### Parameters None. diff --git a/docs/Using Fleet/MDM-commands.md b/docs/Using Fleet/MDM-commands.md index 73e96323c1..8cf7928748 100644 --- a/docs/Using Fleet/MDM-commands.md +++ b/docs/Using Fleet/MDM-commands.md @@ -1,28 +1,27 @@ # Commands -In Fleet you can run MDM commands to take some action on your macOS hosts, like restart the host, remotely. - -If a host is offline when you run a command, the host will run the command the next time it comes online. +In Fleet you can run MDM commands to take action on your macOS and Windows hosts, like restarting the host, remotely. ## Custom commands You can run custom commands and view a specific command's results using the `fleetctl` command-line interface. To run a custom command, we will do the following steps: + 1. Create a `.xml` with the request payload 2. Choose a target host 3. Run the command using `fleetctl` 4. View our command's results using `fleetctl` -### Step 1: create a `.xml` file +### Step 1: Create an XML file -You can run any command supported by Apple's MDM protocol as a custom command in Fleet. To see the list of possible commands, head to [Apple's Commands and Queries documentation](https://developer.apple.com/documentation/devicemanagement/commands_and_queries). +You can run any command supported by [Apple's MDM protocol](https://developer.apple.com/documentation/devicemanagement/commands_and_queries) or [Microsoft's MDM protocol](https://learn.microsoft.com/en-us/windows/client-management/mdm/). -> The "Erase a device" and "Lock a device" commands are only available in Fleet Premium +> The lock and wipe commands are only available in Fleet Premium -Each command has example request payloads in XML format. For example, if we want to restart a host, we'll use the "Restart a Device" request payload documented by Apple [here](https://developer.apple.com/documentation/devicemanagement/restart_a_device#3384428). +For example, to restart a macOS host, we'll use the "Restart a Device" command documented by Apple [here](https://developer.apple.com/documentation/devicemanagement/restart_a_device#3384428). -To run the "Restart a device" command, we'll need to create a `restart-device.xml` file locally and copy and paste the request payload into this `.xml` file: +First, we'll need to create a `restart-device.xml` file locally with this payload: ```xml @@ -34,90 +33,69 @@ To run the "Restart a device" command, we'll need to create a `restart-device.xm RequestType RestartDevice - CommandUUID - 0001_RestartDevice ``` -### Step 2: choose a target host +To restart a Windows host, we'll use the "Reboot" command documented by Microsoft [here](https://learn.microsoft.com/en-us/windows/client-management/mdm/reboot-csp). -To run a command, we need to specify a target host by hostname. Commands can only be run on a single host in Fleet. +The `restart-device.xml` file will have this payload instead: -To find a host's hostname, choose the "Fleet UI" or "fleetctl" method and follow the steps below. +```xml + + + + ./Device/Vendor/MSFT/Reboot/RebootNow + + + null + text/plain + + + + +``` -Fleet UI: +### Step 2: Choose a target host -1. Head to the **Hosts** page in Fleet and find your target host. -2. Make sure the **Hostname** column is visible (select **Edit columns** if not) and find your host's hostname. You'll need this hostname to run the command. - -> A host must be enrolled to Fleet and have MDM turned on to run a command against it. - -`fleetctl` CLI: +To run a command, we need to specify a target host by hostname. 1. Run the `fleetctl get hosts --mdm` command to get a list of hosts that are enrolled to Fleet and have MDM turned on. -2. Find your host's hostname. You'll need this hostname to run the command. +2. Find your target host's hostname. You'll need this hostname to run the command. -### Step 3: run the command +### Step 3: Run the command 1. Run the `fleetctl mdm run-command --payload=restart-device.xml --host=hostname ` command. -> Replace the --payload and --host flags with your `.xml` file and hostname respectively. -2. Look at the on-screen information. In the output you'll see the command required to see results. Be sure to copy this command. If you don't, it will be difficult to view command results later. +> Replace the --payload and --host flags with your XML file and hostname respectively. + +2. Look at the on-screen information. In the output you'll see the command to see results. ### Step 4: View the command's results 1. Run the `fleetctl get mdm-command-results --id=` - 2. Look at the on-screen information. -Example output: - -```sh -$ fleetctl get mdm-command-results -id 333af7f8-b9a4-4f62-bfb2-f7488fbade21 -+--------------------------------------+----------------------+----------------+--------------+---------------------+---------------------------------------------------------+ -| ID | TIME | TYPE | STATUS | HOSTNAME | RESULTS | -+--------------------------------------+----------------------+----------------+--------------+---------------------+---------------------------------------------------------+ -| 333af7f8-b9a4-4f62-bfb2-f7488fbade21 | 2023-04-04T21:29:29Z | RestartDevice | Acknowledged | xyz-macbook-air.lan | | -| | | | | | CommandUUID | -| | | | | | 333af7f8-b9a4-4f62-bfb2-f7488fbade21 | -| | | | | | Status | -| | | | | | Acknowledged UDID | -| | | | | | 3A529CD6-2154-55EA-9AB7-EB13A43D9F5E | -| | | | | | | -+--------------------------------------+----------------------+----------------+--------------+---------------------+---------------------------------------------------------+ -``` - ## List recent commands -You can view the list of the 1,000 latest commands using "fleetctl": +You can view a list of the 1,000 latest commands: 1. Run `fleetctl get mdm-commands` 2. View the list of latest commands, most recent first, along with the timestamp, targeted hostname, command type, execution status and command ID. -Example output: +The command ID can be used to view command results as documented in [step 4 of the previous section](#step-4-view-the-commands-results). -```sh -$ fleetctl get mdm-commands -+--------------------------------------+----------------------+--------------------------+--------------+------------------------+ -| ID | TIME | TYPE | STATUS | HOSTNAME | -+--------------------------------------+----------------------+--------------------------+--------------+------------------------+ -| 024fb3b9-cd8a-40a6-8dd7-6c155f488fd1 | 2023-04-12T18:19:10Z | RestartDevice | Acknowledged | iMac-Pro.local | -+--------------------------------------+----------------------+--------------------------+--------------+------------------------+ -| 87dc6325-8bc0-4fc8-9a2f-3901c535456e | 2023-04-12T18:15:01Z | DeviceLock | Acknowledged | iMac-Pro.local | -+--------------------------------------+----------------------+--------------------------+--------------+------------------------+ -``` +The possible statuses for macOS hosts are the following: -The command ID can be used to view command results as documented in [step 4 of the previous section](#step-4-view-the-commands-results). The possible status values are: * Pending: the command has yet to run on the host. The host will run the command the next time it comes online. * NotNow: the host responded with "NotNow" status via the MDM protocol: the host received the command, but couldn’t execute it. The host will try to run the command the next time it comes online. * Acknowledged: the host responded with "Acknowledged" status via the MDM protocol: the host processed the command successfully. * Error: the host responded with "Error" status via the MDM protocol: an error occurred. Run the `fleetctl get mdm-command-results --id= - + diff --git a/docs/Using Fleet/MDM-macOS-setup.md b/docs/Using Fleet/MDM-macOS-setup.md index 62732d83e1..dd2e31700d 100644 --- a/docs/Using Fleet/MDM-macOS-setup.md +++ b/docs/Using Fleet/MDM-macOS-setup.md @@ -225,8 +225,8 @@ Set Fleet to be the MDM for all future Macs purchased via Apple or an authorized 1. Log in to [Apple Business Manager](https://business.apple.com) 2. Click your profile icon in the bottom left 3. Click **Preferences** -4. Click **MDM Server Assignment** -5. Switch Macs to the new Fleet instance. +4. Click **MDM Server Assignment** and click **Edit** next to **Default Server Assignment**. +5. Switch **Mac** to Fleet. ### Step 6: set the default team for hosts enrolled via ABM diff --git a/docs/Using Fleet/Scripts.md b/docs/Using Fleet/Scripts.md index ebf8991602..c80fa4f48b 100644 --- a/docs/Using Fleet/Scripts.md +++ b/docs/Using Fleet/Scripts.md @@ -10,16 +10,7 @@ PowerShell scripts are supported on Windows. Other types of scripts are not supp Script execution is disabled by default. Continue reading to learn how to enable scripts. -## Execute a script - -You can execute a script using the `fleetctl` command-line interface. - -To execute a script, we will do the following steps: -1. Enable script execution -2. Write a script -3. Run the script - -### Step 1: Enable script execution +## Enable scripts If you use Fleet's macOS MDM features, scripts are automatically enabled for macOS hosts that have MDM turned on. You're set! @@ -31,39 +22,28 @@ If you don't use MDM features, to enable scripts, we'll deploy a fleetd agent wi Learn more about generating a fleetd agent and deploying it [here](./enroll-hosts.md). -### Step 2: Write a script +## Execute a script -As an example, we'll write a shell script for a macOS host that downloads a Fleet wallpaper and set the host's wallpaper to it. +You can execute a script in the Fleet UI, with Fleet API, or with the fleetctl command-line interface (CLI). -To run the script, we'll need to create a `set-wallpaper-to-fleet.sh` file locally and copy and paste this script into this `.sh` file: +Fleet UI: + +1. In Fleet, head to the **Controls > Scripts** tab and upload your script. + +2. Head to the **Hosts** page and select the host you want to run the script on. + +3. On your target host's host details page, select the **Scripts** tab and select **Actions** to run the script. + +> Currently, you can only run scripts on macOS and Windows hosts in the Fleet UI. To run a script on a Linux host, use the Fleet API or fleetctl CLI. + +Fleet API: API documentation is [here](https://fleetdm.com/docs/rest-api/rest-api#run-script) + +fleetctl CLI: ```sh -wallpaper="/tmp/wallpaper.png" - -curl --fail https://fleetdm.com/images/wallpaper-cloud-city-1920x1080.png -o $wallpaper - -osascript -e 'tell application "Finder" to set desktop picture to POSIX file "'"$wallpaper"'"' +fleetctl run-script --script-path=/path/to/script --host=hostname ``` -### Step 3: Run the script - -1. Run this fleetctl command: -```sh -fleetctl run-script --script-path=set-wallpaper-to-fleet.sh --host=hostname -``` - -> Replace --host flag with your target host's hostname. - -2. Look at the on-screen information. In the output you'll see the script's exit code and output. - -Each time a Fleet user runs a script an entry is created in [Fleet's activity feed](./Audit-logs.md#type-code-ran-script-code). - -## Security considerations - -Script execution can only be enabled by someone with root access to the host. - -Turning MDM on for a macOS host or pushing a new fleetd agent qualify as root access. - diff --git a/docs/Using Fleet/enroll-hosts.md b/docs/Using Fleet/enroll-hosts.md index cc79ef3441..613947d18c 100644 --- a/docs/Using Fleet/enroll-hosts.md +++ b/docs/Using Fleet/enroll-hosts.md @@ -108,7 +108,6 @@ In the Google Admin console: - [Signing fleetd installer](#signing-fleetd-installer) - [Generating Windows installers using local WiX toolset](#generating-windows-installers-using-local-wix-toolset) - [fleetd configuration options](#fleetd-configuration-options) -- [Enroll hosts with plain osquery](#enroll-hosts-with-plain-osquery) ### Grant full disk access to osquery on macOS diff --git a/ee/cis/win-11/cis-policy-queries.yml b/ee/cis/win-11/cis-policy-queries.yml new file mode 100644 index 0000000000..bdabd5e7c4 --- /dev/null +++ b/ee/cis/win-11/cis-policy-queries.yml @@ -0,0 +1,10403 @@ +--- +# The latest version of CIS Benchmarks for Windows 11 Enterprise is version v2.0.0 - 03-07-2023 +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Enforce password history' is set to '24' or more passwords + platforms: win11 + platform: windows + description: | + This policy check determines the number of renewed, unique passwords that have to be associated with a user account before you can reuse an old password. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 24 or more passwords: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Enforce password history' + query: | + SELECT 1 FROM security_profile_info WHERE password_history_size >= 24; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Maximum password age' is set to '365 or fewer days, but not 0' + platforms: win11 + platform: windows + description: | + This policy setting defines how long a user can use their password before it expires. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 365 or fewer days, but not 0: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Maximum password age' + query: | + SELECT 1 FROM security_profile_info WHERE (maximum_password_age <= 365 AND maximum_password_age != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Minimum password age' is set to '1 or more days' + platforms: win11 + platform: windows + description: | + This policy setting determines the number of days that you must use a password before you can + change it. The range of values for this policy setting is between 1 and 999 days. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 1 or more days: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Minimum password age' + query: | + SELECT 1 FROM security_profile_info WHERE minimum_password_age >= 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Minimum password length' is set to '14 or more characters' + platforms: win11 + platform: windows + description: | + This policy setting determines the least number of characters that make up a password for a user account. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 14 or more characters + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Minimum password length' + query: | + SELECT 1 FROM security_profile_info WHERE minimum_password_length >= 14; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Password must meet complexity requirements' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting checks all new passwords to ensure that they meet basic requirements for + strong passwords. Passwords that contain only alphanumeric characters are extremely easy to + discover with several publicly available tools. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Password must meet complexity requirements' + query: | + SELECT 1 FROM security_profile_info WHERE password_complexity = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Relax minimum password length limits' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the minimum password length setting can be increased beyond the legacy limit of 14 characters. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Relax minimum password length limits' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SAM\\RelaxMinimumPasswordLengthLimits' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Store passwords using reversible encryption' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the operating system stores passwords in a way that uses + reversible encryption, which provides support for application protocols that require knowledge + of the user's password for authentication purposes. Passwords that are stored with reversible + encryption are essentially the same as plaintext versions of the passwords. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Store passwords using reversible encryption' + query: | + SELECT 1 FROM security_profile_info WHERE clear_text_password = 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Account lockout duration' is set to '15 or more minute(s)' + platforms: win11 + platform: windows + description: | + This policy setting determines the length of time that must pass before a locked account is unlocked and a user can try to log on again. The setting does this by specifying the number of minutes a locked out account will remain unavailable. If the value for this policy setting is configured to 0, locked out accounts will remain locked out until an administrator manually unlocks them. + Although it might seem like a good idea to configure the value for this policy setting to a high value, such a configuration will likely increase the number of calls that the help desk receives to unlock accounts locked by mistake. Users should be aware of the length of time a lock remains in place, so that they realize they only need to call the help desk if they have an extremely urgent need to regain access to their computer. + The recommended state for this setting is: 15 or more minute(s). + Note: Password Policy settings (section 1.1) and Account Lockout Policy settings (section 1.2) must be applied via the Default Domain Policy GPO in order to be globally in effect on domain user accounts as their default behavior. If these settings are configured in another GPO, they will only affect local user accounts on the computers that receive the GPO. However, custom exceptions to the default password policy and account lockout policy rules for specific domain users and/or groups can be defined using Password Settings Objects (PSOs), which are completely separate from Group Policy and most easily configured using Active Directory Administrative Center. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to '15 or more minute(s)': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Account Lockout Policy\Account lockout duration' + query: | + SELECT 1 FROM cis_audit where item = "1.2.1" and CAST(value as integer) >= 15; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Account lockout threshold' is set to '5 or fewer invalid logon attempt(s), but not 0' + platforms: win11 + platform: windows + description: | + This policy setting determines the number of failed logon attempts before the account is locked. Setting this policy to 0 does not conform to the benchmark as doing so disables the account lockout threshold. + The recommended state for this setting is: 5 or fewer invalid logon attempt(s), but not 0. + Note: Password Policy settings (section 1.1) and Account Lockout Policy settings (section 1.2) must be applied via the Default Domain Policy GPO in order to be globally in effect on domain user accounts as their default behavior. If these settings are configured in another GPO, they will only affect local user accounts on the computers that receive the GPO. However, custom exceptions to the default password policy and account lockout policy rules for specific domain users and/or groups can be defined using Password Settings Objects (PSOs), which are completely separate from Group Policy and most easily configured using Active Directory Administrative Center. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to '5 or fewer invalid login attempt(s), but not 0': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Account Lockout Policy\Account lockout threshold' + query: | + SELECT 1 FROM cis_audit where item = "1.2.2" and CAST(value as integer) <= 5 and CAST(value as integer) > 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Reset account lockout counter after' is set to '15 or more minute(s)' + platforms: win11 + platform: windows + description: | + This policy setting determines the length of time before the Account lockout threshold resets to zero. The default value for this policy setting is Not Defined. If the Account lockout threshold is defined, this reset time must be less than or equal to the value for the Account lockout duration setting. + If you leave this policy setting at its default value or configure the value to an interval that is too long, your environment could be vulnerable to a DoS attack. An attacker could maliciously perform a number of failed logon attempts on all users in the organization, which will lock out their accounts. If no policy were determined to reset the account lockout, it would be a manual task for administrators. Conversely, if a reasonable time value is configured for this policy setting, users would be locked out for a set period until all of the accounts are unlocked automatically. + The recommended state for this setting is: 15 or more minute(s). + Note: Password Policy settings (section 1.1) and Account Lockout Policy settings (section 1.2) must be applied via the Default Domain Policy GPO in order to be globally in effect on domain user accounts as their default behavior. If these settings are configured in another GPO, they will only affect local user accounts on the computers that receive the GPO. However, custom exceptions to the default password policy and account lockout policy rules for specific domain users and/or groups can be defined using Password Settings Objects (PSOs), which are completely separate from Group Policy and most easily configured using Active Directory Administrative Center. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to '15 or more minute(s)': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Account Lockout Policy\Reset account lockout counter after' + query: | + SELECT 1 FROM cis_audit where item = "1.2.3" and CAST(value as integer) >= 15; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Access Credential Manager as a trusted caller' is set to 'No One' + platforms: win11 + platform: windows + description: | + This security setting is used by Credential Manager during Backup and Restore. No accounts should have this user right, as it is only assigned to Winlogon. Users' saved credentials might be compromised if this user right is assigned to other entities. + The recommended state for this setting is: No One. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to an empty list of users: + 'Computer Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Access Credential Manager as a trusted caller' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/AccessCredentialManagerAsTrustedCaller" + AND mdm_command_output = ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Access this computer from the network' is set to 'Administrators, Remote Desktop Users' + platforms: win11 + platform: windows + description: | + This policy setting allows other users on the network to connect to the computer and is required by various network protocols that include Server Message Block (SMB)-based protocols, NetBIOS, Common Internet File System (CIFS), and Component Object Model Plus (COM+). + The recommended state for this setting is: Administrators, Remote Desktop Users. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a list containing only 'Administrators' and 'Remote Desktop Users': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Access this computer from the network' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/AccessFromNetwork" + AND mdm_command_output LIKE "Administrators_REMOTE INTERACTIVE LOGON"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Act as part of the operating system' is set to 'No One' + platforms: win11 + platform: windows + description: | + This policy setting allows a process to assume the identity of any user and thus gain access to the resources that the user is authorized to access. + The recommended state for this setting is: No One. + Note: This user right is considered a "sensitive privilege" for the purposes of auditing. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to an empty list of users: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Act as part of the operating system' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Config/UserRights/ActAsPartOfTheOperatingSystem" AND mdm_command_output = ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Adjust memory quotas for a process' is set to 'Administrators, LOCAL SERVICE, NETWORK SERVICE' + platforms: win11 + platform: windows + description: | + This policy setting allows a user to adjust the maximum amount of memory that is available to a process. The ability to adjust memory quotas is useful for system tuning, but it can be abused. In the wrong hands, it could be used to launch a denial of service (DoS) attack. + The recommended state for this setting is: Administrators, LOCAL SERVICE, NETWORK SERVICE. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a list of only 'Administrators', 'LOCAL SERVICE' and 'NETWORK SERVICE': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Adjust memory quotas for a process' + query: | + SELECT 1 FROM cis_audit where item = "2.2.4" AND (regex_match(value,".*(?=.*Administrators)(?=.*LOCAL SERVICE)(?=.*NETWORK SERVICE).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Allow log on locally' is set to 'Administrators, Users' + platforms: win11 + platform: windows + description: | + This policy setting determines which users can interactively log on to computers in your environment. Logons that are initiated by pressing the CTRL+ALT+DEL key sequence on the client computer keyboard require this user right. Users who attempt to log on through Terminal Services / Remote Desktop Services or IIS also require this user right. + The recommended state for this setting is: Administrators, Users. + Note: The Guest account is also assigned this user right by default. Although this account is disabled by default, it's recommended that you configure this setting through Group Policy. However, this user right should generally be restricted to the Administrators and Users groups. Assign this user right to the Backup Operators group if your organization requires that they have this capability. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a list containing only 'Administrators' and 'Users': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow log on locally' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/AllowLocalLogOn" + AND + ( + mdm_command_output LIKE "Administrators_Users" + OR + mdm_command_output LIKE "Users_Administrators" + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Allow log on through Remote Desktop Services' is set to 'Administrators, Remote Desktop Users' + platforms: win11 + platform: windows + description: | + This policy setting determines which users or groups have the right to log on as a Remote Desktop Services client. If your organization uses Remote Assistance as part of its help desk strategy, create a group and assign it this user right through Group Policy. If the help desk in your organization does not use Remote Assistance, assign this user right only to the Administrators group or use the Restricted Groups feature to ensure that no user accounts are part of the Remote Desktop Users group. + Restrict this user right to the Administrators group, and possibly the Remote Desktop Users group, to prevent unwanted users from gaining access to computers on your network by means of the Remote Assistance feature. + The recommended state for this setting is: Administrators, Remote Desktop Users. Note: The above list is to be treated as a whitelist, which implies that the above + principals need not be present for assessment of this recommendation to pass. + Note #2: In all versions of Windows prior to Windows 7, Remote Desktop Services was known as Terminal Services, so you should substitute the older term if comparing against an older OS. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators, Remote Desktop Users': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow log on through Remote Desktop Services' + query: | + SELECT 1 FROM cis_audit where item = "2.2.6" AND (regex_match(value,".*(?=.*Administrators)(?=.*Remote Desktop Users).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Back up files and directories' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to circumvent file and directory permissions to back up the system. This user right is enabled only when an application (such as NTBACKUP) attempts to access a file or directory through the NTFS file system backup application programming interface (API). Otherwise, the assigned file and directory permissions apply. + The recommended state for this setting is: Administrators. + Note: This user right is considered a "sensitive privilege" for the purposes of auditing. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a list containing only 'Administrators': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Back up files and directories' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/BackupFilesAndDirectories" AND mdm_command_output = "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Change the system time' is set to 'Administrators, LOCAL SERVICE' + platforms: win11 + platform: windows + description: | + This policy setting determines which users and groups can change the time and date on the + internal clock of the computers in your environment. Users who are assigned this user right can + affect the appearance of event logs. When a computer's time setting is changed, logged events + reflect the new time, not the actual time that the events occurred. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators, LOCAL SERVICE': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Change the system time' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ChangeSystemTime" AND mdm_command_output LIKE "Administrators%" AND mdm_command_output LIKE "%LOCAL SERVICE"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Change the time zone' is set to 'Administrators, LOCAL SERVICE, Users' + platforms: win11 + platform: windows + description: | + This setting determines which users can change the time zone of the computer. This ability holds no great danger for the computer and may be useful for mobile workers. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators, LOCAL SERVICE, Users': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Change the time zone' + query: | + SELECT 1 FROM cis_audit where item = "2.2.9" AND (regex_match(value,".*(?=.*Administrators)(?=.*Users)(?=.*LOCAL SERVICE).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Create a pagefile' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to change the size of the pagefile. By making the pagefile extremely large or extremely small, an attacker could easily affect the performance of a compromised computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Create a pagefile' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ChangeSystemTime" AND mdm_command_output LIKE "%Administrators%"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Create a token object' is set to an empty list + platforms: win11 + platform: windows + description: | + This policy setting allows a process to create an access token, which may provide elevated rights to access sensitive data. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to an empty list: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Create a token object' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/CreateToken" AND mdm_command_output == ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Create global objects' is set to 'Administrators, LOCAL SERVICE, NETWORK SERVICE, SERVICE' + platforms: win11 + platform: windows + description: | + This policy setting allows users to change the size of the pagefile. By making the pagefile extremely large or extremely small, an attacker could easily affect the performance of a compromised computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators, LOCAL SERVICE, NETWORK SERVICE, SERVICE': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Create global objects' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/CreateGlobalObjects" AND (regex_match(mdm_command_output,".*(Administrators|LOCAL SERVICE|NETWORK SERVICE|([^\w\s]SERVICE)).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Create permanent shared objects' is set to an empty list + platforms: win11 + platform: windows + description: | + This user right is useful to kernel-mode components that extend the object namespace. However, + components that run in kernel mode have this user right inherently. Therefore, it is typically + not necessary to specifically assign this user right. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to an empty list: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Create permanent shared objects' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/CreatePermanentSharedObjects" AND mdm_command_output == ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Create symbolic links' is set to 'Administrators or NT VIRTUAL MACHINE\Virtual Machines' + platforms: win11 + platform: windows + description: | + This policy setting determines which users can create symbolic links. In Windows Vista, existing + NTFS file system objects, such as files and folders, can be accessed by referring to a new kind + of file system object called a symbolic link. A symbolic link is a pointer (much like a shortcut + or .lnk file) to another file system object, which can be a file, folder, shortcut or another + symbolic link. The difference between a shortcut and a symbolic link is that a shortcut only + works from within the Windows shell. To other programs and applications, shortcuts are just + another file, whereas with symbolic links, the concept of a shortcut is implemented as a feature + of the NTFS file system. Symbolic links can potentially expose security vulnerabilities in + applications that are not designed to use them. For this reason, the privilege for creating + symbolic links should only be assigned to trusted users. By default, only Administrators can + create symbolic links. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators or NT VIRTUAL MACHINE\Virtual Machines' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Create symbolic links' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/CreateSymbolicLinks" AND (regex_match(mdm_command_output,".*(Administrators|Virtual Machines).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Debug programs' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting determines which user accounts will have the right to attach a debugger to + any process or to the kernel, which provides complete access to sensitive and critical operating + system components. Developers who are debugging their own applications do not need to be + assigned this user right; however, developers who are debugging new system components will need it. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Administrators' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Debug programs' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/DebugPrograms" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Deny access to this computer from the network' includes 'Guest' + platforms: win11 + platform: windows + description: | + This policy setting prohibits users from connecting to a computer from across the network, which + would allow users to access and potentially modify data remotely. In high security environments, + there should be no need for remote users to access data on a computer. Instead, file sharing + should be accomplished through the use of network servers. This user right supersedes the Access + this computer from the network user right if an account is subject to both policies. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path includes 'Guest' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Deny access to this computer from the network' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/DenyAccessFromNetwork" AND (regex_match(mdm_command_output,".*(Guest).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Deny log on as a batch job' includes 'Guests' + platforms: win11 + platform: windows + description: | + This policy setting determines which accounts will not be able to log on to the computer as a + batch job. A batch job is not a batch (.bat) file, but rather a batch-queue facility. Accounts that use the Task Scheduler to schedule jobs need this user right. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path includes 'Guests' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Deny log on as a batch job' + query: | + SELECT 1 FROM cis_audit where item = "2.2.17" AND (regex_match(value,".*(?=.*Guests).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Deny log on as a service' includes 'Guests' + platforms: win11 + platform: windows + description: | + This security setting determines which service accounts are prevented from registering a process + as a service. This user right supersedes the Log on as a service user right if an account is subject to both policies. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path includes 'Guests' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Deny log on as a service' + query: | + SELECT 1 FROM cis_audit where item = "2.2.18" AND (regex_match(value,".*(?=.*Guests).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Deny log on locally' includes 'Guest' + platforms: win11 + platform: windows + description: | + This security setting determines which users are prevented from logging on at the computer. This + policy setting supersedes the Allow log on locally policy setting if an account is subject to + both policies. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path includes 'Guests' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Deny log on locally' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/DenyLocalLogOn" AND (regex_match(mdm_command_output,".*(Guest).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Deny log on through Remote Desktop Services' includes 'Guest' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users can log on as Remote Desktop clients. This user right supersedes the Allow log on through Remote Desktop Services user right if an account is subject to both policies. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path includes 'Guests' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Deny log on through Remote Desktop Services' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/DenyRemoteDesktopServicesLogOn" AND (regex_match(mdm_command_output,".*(Guest).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Enable computer and user accounts to be trusted for delegation' is set to an empty list + platforms: win11 + platform: windows + description: | + This policy setting allows users to change the Trusted for Delegation setting on a computer object in Active Directory. Abuse of this privilege could allow unauthorized users to impersonate other users on the network. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Enable computer and user accounts to be trusted for delegation' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/EnableDelegation" AND mdm_command_output == ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Force shutdown from a remote system' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to shut down Windows Vista-based and newer computers from + remote locations on the network. Anyone who has been assigned this user right can cause a denial + of service (DoS) condition, which would make the computer unavailable to service user requests. + Therefore, it is recommended that only highly trusted administrators be assigned this user. + right. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Force shutdown from a remote system' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/RemoteShutdown" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Generate security audits' is set to 'LOCAL SERVICE, NETWORK SERVICE' + platforms: win11 + platform: windows + description: | + This policy setting determines which users or processes can generate audit records in the Security log. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Generate security audits' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/GenerateSecurityAudits" AND (regex_match(mdm_command_output,".*(LOCAL SERVICE|NETWORK SERVICE).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Impersonate a client after authentication' is set to 'Administrators, LOCAL SERVICE, NETWORK SERVICE, SERVICE' + platforms: win11 + platform: windows + description: | + The policy setting allows programs that run on behalf of a user to impersonate that user (or + another specified account) so that they can act on behalf of the user. If this user right is + required for this kind of impersonation, an unauthorized user will not be able to convince a + client to connectβ€”for example, by remote procedure call (RPC) or named pipesβ€”to a service that + they have created to impersonate that client, which could elevate the unauthorized user's permissions to administrative or system levels. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Impersonate a client after authentication' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ImpersonateClient" AND (regex_match(mdm_command_output,".*(Administrators|LOCAL SERVICE|NETWORK SERVICE|([^\w\s]SERVICE)).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Increase scheduling priority' is set to 'Administrators, Window Manager\Window Manager Group' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users can increase the base priority class of a process. + (It is not a privileged operation to increase relative priority within a priority class.) This + user right is not required by administrative tools that are supplied with the operating system but might be required by software development tools. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Increase scheduling priority' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/IncreaseSchedulingPriority" AND (regex_match(mdm_command_output,".*(Administrators|Window Manager Group).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Load and unload device drivers' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to dynamically load a new device driver on a system. An + attacker could potentially use this capability to install malicious code that appears to be a + device driver. This user right is required for users to add local printers or printer drivers in + Windows. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Increase scheduling priority' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/LoadUnloadDeviceDrivers" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Lock pages in memory' is set to an empty list + platforms: win11 + platform: windows + description: | + This policy setting allows a process to keep data in physical memory, which prevents the system from paging the data to virtual memory on disk. If this user right is assigned, significant degradation of system performance can occur. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Lock pages in memory' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/LockMemory" AND mdm_command_output == ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Log on as a batch job' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows accounts to log on using the task scheduler service. Because the task + scheduler is often used for administrative purposes, it may be needed in enterprise + environments. However, its use should be restricted in high security environments to prevent + misuse of system resources or to prevent attackers from using the right to launch malicious code + after gaining user level access to a computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Log on as a batch job' + query: | + SELECT 1 FROM cis_audit where item = "2.2.28" AND (regex_match(value,".*(?=.*Administrators).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Configure 'Log on as a service' + platforms: win11 + platform: windows + description: | + This policy setting allows accounts to launch network services or to register a process as a + service running on the system. This user right should be restricted on any computer in a high + security environment, but because many applications may require this privilege, it should be + carefully evaluated and tested before configuring it in an enterprise environment. On Windows + Vista-based (and newer) computers, no users or groups have this privilege by default. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Log on as a service' + query: | + SELECT 1 FROM cis_audit where item = "2.2.29" AND value = ","; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Manage auditing and security log' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting determines which users can change the auditing options for files and directories and clear the Security log. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Manage auditing and security log' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ManageAuditingAndSecurityLog" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Modify an object label' is set to an empty list + platforms: win11 + platform: windows + description: | + This privilege determines which user accounts can modify the integrity label of objects, such as + files, registry keys, or processes owned by other users. Processes running under a user account + can modify the label of an object owned by that user to a lower level without this privilege. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Modify an object label' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ModifyObjectLabel" AND mdm_command_output == ""; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Modify firmware environment values' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to configure the system-wide environment variables that affect + hardware configuration. This information is typically stored in the Last Known Good + Configuration. Modification of these values and could lead to a hardware failure that would result in a denial of service condition. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Modify firmware environment values' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ModifyFirmwareEnvironment" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Perform volume maintenance tasks' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to manage the system's volume or disk configuration, which could allow a user to delete a volume and cause data loss as well as a denial-ofservice condition. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Perform volume maintenance tasks' + query: | + SELECT 1 FROM cis_audit where item = "2.2.33" AND (regex_match(value,".*(?=.*Administrators).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Profile single process' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting determines which users can use tools to monitor the performance of + non-system processes. Typically, you do not need to configure this user right to use the + Microsoft Management Console (MMC) Performance snap-in. However, you do need this user right if + System Monitor is configured to collect data using Windows Management Instrumentation (WMI). + Restricting the Profile single process user right prevents intruders from gaining additional + information that could be used to mount an attack on the system. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Profile single process' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/ProfileSingleProcess" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Profile system performance' is set to 'Administrators, NT SERVICE\WdiServiceHost' + platforms: win11 + platform: windows + description: | + This policy setting allows users to use tools to view the performance of different system + processes, which could be abused to allow attackers to determine a system's active processes and + provide insight into the potential attack surface of the computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to 'Administrators, NT SERVICE\WdiServiceHost' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Profile system performance' + query: | + SELECT 1 FROM cis_audit where item = "2.2.35" AND (regex_match(value,".*(?=.*Administrators)(?=.*WdiServiceHost).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Replace a process level token' is set to 'LOCAL SERVICE, NETWORK SERVICE' + platforms: win11 + platform: windows + description: | + This policy setting allows one process or service to start another service or process with a + different security access token, which can be used to modify the security access token of that sub-process and result in the escalation of privileges. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to 'LOCAL SERVICE, NETWORK SERVICE' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Replace a process level token' + query: | + SELECT 1 FROM cis_audit where item = "2.2.36" AND (regex_match(value,".*(?=.*LOCAL SERVICE)(?=.*NETWORK SERVICE).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Restore files and directories' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting determines which users can bypass file, directory, registry, and other + persistent object permissions when restoring backed up files and directories on computers that + run Windows Vista (or newer) in your environment. This user right also determines which users + can set valid security principals as object owners; it is similar to the Back up files and + directories user right. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Restore files and directories' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/RestoreFilesAndDirectories" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Shut down the system' is set to 'Administrators, Users' + platforms: win11 + platform: windows + description: | + This policy setting determines which users who are logged on locally to the computers in your + environment can shut down the operating system with the Shut Down command. Misuse of this user right can result in a denial of service condition. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to 'Administrators, Users' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Shut down the system' + query: | + SELECT 1 FROM cis_audit where item = "2.2.38" AND (regex_match(value,".*(?=.*Administrators)(?=.*Users).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Take ownership of files or other objects' is set to 'Administrators' + platforms: win11 + platform: windows + description: | + This policy setting allows users to take ownership of files, folders, registry keys, processes, + or threads. This user right bypasses any permissions that are in place to protect objects to give ownership to the specified user. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, ensure that the following UI path is set to an empty list + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Take ownership of files or other objects' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/UserRights/TakeOwnership" AND mdm_command_output == "Administrators"; + purpose: Informational + tags: compliance, CIS, CIS_Level1, english-support-only + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Accounts Block Microsoft accounts' is set to 'Users can't add or log on with Microsoft accounts' + platforms: win11 + platform: windows + description: | + This policy setting prevents users from adding new Microsoft accounts on this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Users can't add or log on with Microsoft account': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Block Microsoft accounts' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\NoConnectedUser' AND data == 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Accounts Guest account status' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the Guest account is enabled or disabled. The Guest account allows unauthenticated network users to gain access to the system. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Guest account status' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/LocalPoliciesSecurityOptions/Accounts_EnableGuestAccountStatus" and mdm_command_output == 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Accounts Limit local account use of blank passwords to console logon only' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether local accounts that are not password protected can be used to log on from locations other than the physical computer console. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Limit local account use of blank passwords to console logon only' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\LimitBlankPasswordUse' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Configure 'Accounts Rename administrator account' + platforms: win11 + platform: windows + description: | + The built-in local administrator account is a well-known account name that attackers will + target. It is recommended to choose another name for this account, and to avoid names that + denote administrative or elevated access accounts. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to value different than 'Administrator': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Rename administrator account' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/LocalPoliciesSecurityOptions/Accounts_RenameAdministratorAccount" and mdm_command_output != "Administrator"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Configure 'Accounts Rename guest account' + platforms: win11 + platform: windows + description: | + The built-in local guest account is another well-known name to attackers. It is recommended to + rename this account to something that does not indicate its purpose. Even if you disable this + account, which is recommended, ensure that you rename it for added security. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to value different than 'Guest': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Rename guest account' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/LocalPoliciesSecurityOptions/Accounts_RenameGuestAccount" and mdm_command_output != "Guest"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows administrators to enable the more precise auditing capabilities. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\SCENoApplyLegacyAuditPolicy' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Shut down system immediately if unable to log security audits' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the system shuts down if it is unable to log Security + events. It is a requirement for Trusted Computer System Evaluation Criteria (TCSEC)-C2 and + Common Criteria certification to prevent auditable events from occurring if the audit system is + unable to log them. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Audit: Shut down system immediately if unable to log security audits' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\crashonauditfail' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Devices Prevent users from installing printer drivers' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + For a computer to print to a shared printer, the driver for that shared printer must be + installed on the local computer. This security setting determines who is allowed to install a + printer driver as part of connecting to a shared printer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Devices: Prevent users from installing printer drivers' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Print\\Providers\\LanManPrint Services\\Servers\\AddPrinterDrivers' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Digitally encrypt or sign secure channel data (always)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether all secure channel traffic that is initiated by the + domain member must be signed or encrypted. + When a computer joins a domain, a computer account is created. After it joins the domain, the + computer uses the password for that account to create a secure channel with the Domain + Controller for its domain every time that it restarts. Requests that are sent on the secure + channel are authenticatedβ€”and sensitive information such as passwords are encryptedβ€”but the + channel is not integrity-checked, and not all information is encrypted. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Digitally encrypt or sign secure channel data (always)' + query: | + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\RequireSignOrSeal' AND data != 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Digitally encrypt secure channel data (when possible)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether a domain member should attempt to negotiate encryption + for all secure channel traffic that it initiates. + When a computer joins a domain, a computer account is created. After it joins the domain, the + computer uses the password for that account to create a secure channel with the Domain + Controller for its domain every time that it restarts. Requests that are sent on the secure + channel are authenticatedβ€”and sensitive information such as passwords are encryptedβ€”but the + channel is not integrity-checked, and not all information is encrypted. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Digitally encrypt secure channel data (when possible)' + query: | + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\SealSecureChannel' AND data != 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Digitally sign secure channel data (when possible)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether a domain member should attempt to negotiate whether all + secure channel traffic that it initiates must be digitally signed. Digital signatures protect + the traffic from being modified by anyone who captures the data as it traverses the network. + When a computer joins a domain, a computer account is created. After it joins the domain, the + computer uses the password for that account to create a secure channel with the Domain + Controller for its domain every time that it restarts. Requests that are sent on the secure + channel are authenticatedβ€”and sensitive information such as passwords are encryptedβ€”but the + channel is not integrity-checked, and not all information is encrypted. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Digitally sign secure channel data (when possible)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\SignSecureChannel' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Disable machine account password changes' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether a domain member can periodically change its computer + account password. Computers that cannot automatically change their account passwords are + potentially vulnerable, because an attacker might be able to determine the password for the + system's domain account. + The default configuration for Windows Server 2003-based computers that belong to a domain is + that they are automatically required to change the passwords for their accounts every 30 days. + If you disable this policy setting, computers that run Windows Server 2003 will retain the same + passwords as their computer accounts. Computers that are no longer able to automatically change + their account password are at risk from an attacker who could determine the password for the + computer's domain account. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Disable machine account password changes' + query: | + SELECT 1 FROM registry WHERE + path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\DisablePasswordChange' AND data = 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Maximum machine account password age' is set to '30 or fewer days, but not 0' + platforms: win11 + platform: windows + description: | + This policy setting determines the maximum allowable age for a computer account password. By + default, domain members automatically change their domain passwords every 30 days. If you + increase this interval significantly so that the computers no longer change their passwords, an + attacker would have more time to undertake a brute force attack against one of the computer + accounts. + In Active Directory-based domains, each computer has an account and password just like every + user. By default, the domain members automatically change their domain password every 30 days. + If you increase this interval significantly, or set it to 0 so that the computers no longer + change their passwords, an attacker will have more time to undertake a brute force attack to + guess the password of one or more computer accounts. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 30 or fewer days, but not 0: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Maximum machine account password age' + query: | + SELECT 1 FROM registry WHERE + path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\MaximumPasswordAge' + AND data <= 30 AND data != 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Require strong (Windows 2000 or later) session key' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + When this policy setting is enabled, a secure channel can only be established with Domain + Controllers that are capable of encrypting secure channel data with a strong (128-bit) session + key. To enable this policy setting, all Domain Controllers in the domain must be able to encrypt + secure channel data with a strong key, which means all Domain Controllers must be running + Microsoft Windows 2000 or newer. + + Session keys that are used to establish secure channel communications between Domain Controllers + and member computers are much stronger in Windows 2000 than they were in previous Microsoft + operating systems. Whenever possible, you should take advantage of these stronger session keys + to help protect secure channel communications from attacks that attempt to hijack network + sessions and eavesdropping. (Eavesdropping is a form of hacking in which network data is read or + altered in transit. The data can be modified to hide or change the sender, or be redirected.) + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Enabled' + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Require strong (Windows 2000 or later) session key' + query: | + SELECT 1 FROM registry WHERE + path = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\RequireStrongKey' AND data != 0; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Do not require CTRL+ALT+DEL' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users must press CTRL+ALT+DEL before they log on. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Do not require CTRL+ALT+DEL' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\DisableCAD' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Don't display last signed-in' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the account name of the last user to log on to the client + computers in your organization will be displayed in each computer's respective Windows logon + screen. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Don't display last signed-in' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\dontdisplaylastusername' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Machine account lockout threshold' is set to '10 or fewer invalid logon attempts, but not 0' + platforms: win11 + platform: windows + description: | + This security setting determines the number of failed logon attempts that causes the machine to be locked out. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to '10 or fewer invalid logon attempts, but not 0': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Machine account lockout threshold' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\MaxDevicePasswordFailedAttempts' AND data <= 10 AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Machine inactivity limit' is set to '900 or fewer second(s), but not 0' + platforms: win11 + platform: windows + description: | + Windows notices inactivity of a logon session, and if the amount of inactive time exceeds the inactivity limit, then the screen saver will run, locking the session. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to '900 or fewer seconds, but not 0': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Machine inactivity limit' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\InactivityTimeoutSecs' AND data <= 900 AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Configure 'Interactive logon Message text for users attempting to log on' + platforms: win11 + platform: windows + description: | + This policy setting specifies a text message that displays to users when they log on. Set the + following group policy to a value that is consistent with the security and operational + requirements of your organization. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a value that is consistent with the security and operational requirements + of your organization: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Message text for users attempting to log on' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\legalnoticetext' AND data != ""); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Configure 'Interactive logon Message title for users attempting to log on' + platforms: win11 + platform: windows + description: | + This policy setting specifies the text displayed in the title bar of the window that users see + when they log on to the system. Configure this setting in a manner that is consistent with the + security and operational requirements of your organization. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a value that is consistent with the security and operational requirements + of your organization: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Message title for users attempting to log on' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\legalnoticecaption' AND data != ""); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Prompt user to change password before expiration' is set to 'between 5 and 14 days' + platforms: win11 + platform: windows + description: | + This policy setting specifies the text displayed in the title bar of the window that users see + when they log on to the system. Configure this setting in a manner that is consistent with the + security and operational requirements of your organization. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to a value 'between 5 and 14 days': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Prompt user to change password before expiration' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\PasswordExpiryWarning' AND CAST(data AS INTEGER) >= 5 AND CAST(data AS INTEGER) <= 14); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Interactive logon Smart card removal behavior' is set to 'Lock Workstation' or higher + platforms: win11 + platform: windows + description: | + This policy setting determines what happens when the smart card for a logged-on user is removed from the smart card reader. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Lock Workstation (or, if applicable for your environment, Force Logoff or Disconnect if a Remote Desktop Services session)': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Smart card removal behavior' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\scremoveoption' AND CAST(data AS INTEGER) >= 1 AND CAST(data AS INTEGER) <= 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network client Digitally sign communications (always)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether packet signing is required by the SMB client component. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network client: Digitally sign communications (always)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters\\RequireSecuritySignature' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network client Digitally sign communications (if server agrees)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the SMB client will attempt to negotiate SMB packet signing. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network client: Digitally sign communications (if server agrees)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters\\EnableSecuritySignature' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network client Send unencrypted password to third-party SMB servers' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the SMB redirector will send plaintext passwords during authentication to third-party SMB servers that do not support password encryption. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network client: Send unencrypted password to third-party SMB servers' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters\\EnablePlainTextPassword' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network server Amount of idle time required before suspending session' is set to '15 or fewer minute(s)' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify the amount of continuous idle time that must pass in + an SMB session before the session is suspended because of inactivity. Administrators can use + this policy setting to control when a computer suspends an inactive SMB session. If client + activity resumes, the session is automatically reestablished. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network server: Amount of idle time required before suspending session' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanManServer\\Parameters\\autodisconnect' AND CAST(data AS INTEGER) <= 15 AND CAST(data AS INTEGER) >= 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network server Digitally sign communications (always)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether packet signing is required by the SMB server component. + Enable this policy setting in a mixed environment to prevent downstream clients from using the + workstation as a network server. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network server: Digitally sign communications (always)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanManServer\\Parameters\\requiresecuritysignature' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network server Digitally sign communications (if client agrees)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the SMB server will negotiate SMB packet signing with + clients that request it. If no signing request comes from the client, a connection will be + allowed without a signature if the Microsoft network server: Digitally sign communications (always) setting is not enabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network server: Digitally sign communications (if client agrees)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanManServer\\Parameters\\enablesecuritysignature' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network server Disconnect clients when logon hours expire' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This security setting determines whether to disconnect users who are connected to the local + computer outside their user account's valid logon hours. This setting affects the Server Message + Block (SMB) component. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network server: Disconnect clients when logon hours expire' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanManServer\\Parameters\\enableforcedlogoff' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure that 'Microsoft network server Server SPN target name validation level' is set to 'Accept if provided by client' + platforms: win11 + platform: windows + description: | + This policy setting controls the level of validation a computer with shared folders or printers + (the server) performs on the service principal name (SPN) that is provided by the client + computer when it establishes a session using the server message block (SMB) protocol. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Accept if provided by client': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Microsoft network server: Server SPN target name validation level' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\\Services\\LanManServer\\Parameters\\SmbServerNameHardeningLevel' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access : Allow anonymous SID/Name translation' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether an anonymous user can request security identifier + (SID) attributes for another user, or use a SID to obtain its corresponding user name. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Allow anonymous SID/Name translation' + query: | + SELECT 1 FROM cis_audit where item = "2.3.10.1" AND value = "0"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Do not allow anonymous enumeration of SAM accounts' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the ability of anonymous users to enumerate the accounts in + the Security Accounts Manager (SAM). If you enable this policy setting, users with + anonymous connections will not be able to enumerate domain account user names on the + systems in your environment. This policy setting also allows additional restrictions on + anonymous connections. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Do not allow anonymous enumeration of SAM accounts' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\restrictanonymoussam' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Do not allow anonymous enumeration of SAM accounts and shares' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the ability of anonymous users to enumerate SAM accounts as + well as shares. If you enable this policy setting, anonymous users will not be able to + enumerate domain account user names and network share names on the systems in your + environment. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Do not allow anonymous enumeration of SAM accounts and shares' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\restrictanonymous' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Do not allow storage of passwords and credentials for network authentication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Credential Manager (formerly called Stored User + Names and Passwords) saves passwords or credentials for later use when it gains domain + authentication. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Do not allow storage of passwords and credentials for network authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\disabledomaincreds' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Let Everyone permissions apply to anonymous users' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines what additional permissions are assigned for anonymous + connections to the computer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Let Everyone permissions apply to anonymous users' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\everyoneincludesanonymous' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Named Pipes that can be accessed anonymously' is set to 'None' + platforms: win11 + platform: windows + description: | + This policy setting determines which communication sessions, or pipes, will have attributes + and permissions that allow anonymous access. + resolution: | + To establish the recommended configuration via GP, set the following UI path to + (i.e. None): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Named Pipes that can be accessed anonymously' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanManServer\\Parameters\NullSessionPipes' and data == ''); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Remotely accessible registry paths' is configured + platforms: win11 + platform: windows + description: | + This policy setting determines which registry paths will be accessible over the network, + regardless of the users or groups listed in the access control list (ACL) of the winreg + registry key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to: + System\CurrentControlSet\Control\ProductOptions + System\CurrentControlSet\Control\Server Applications + SOFTWARE\Microsoft\Windows NT\CurrentVersion + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Remotely accessible registry paths' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurePipeServers\\Winreg\\AllowedExactPaths\Machine' and data == 'System\CurrentControlSet\Control\ProductOptions,System\CurrentControlSet\Control\Server Applications,Software\Microsoft\Windows NT\CurrentVersion'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Remotely accessible registry paths and sub-paths' is configured + platforms: win11 + platform: windows + description: | + This policy setting determines which registry paths and sub-paths will be accessible over + the network, regardless of the users or groups listed in the access control list (ACL) of the + winreg registry key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to: + System\CurrentControlSet\Control\Print\Printers + System\CurrentControlSet\Services\Eventlog + SOFTWARE\Microsoft\OLAP Server + SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print + SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows + System\CurrentControlSet\Control\ContentIndex + System\CurrentControlSet\Control\Terminal Server + System\CurrentControlSet\Control\Terminal Server\UserConfig + System\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration + SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib + System\CurrentControlSet\Services\SysmonLog + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Remotely accessible registry paths and sub-paths' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurePipeServers\\Winreg\\AllowedPaths\Machine' and data == 'System\CurrentControlSet\Control\Print\Printers,System\CurrentControlSet\Services\Eventlog,Software\Microsoft\OLAP Server,Software\Microsoft\Windows NT\CurrentVersion\Print,Software\Microsoft\Windows NT\CurrentVersion\Windows,System\CurrentControlSet\Control\ContentIndex,System\CurrentControlSet\Control\Terminal Server,System\CurrentControlSet\Control\Terminal Server\UserConfig,System\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration,Software\Microsoft\Windows NT\CurrentVersion\Perflib,System\CurrentControlSet\Services\SysmonLog'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Restrict anonymous access to Named Pipes and Shares' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + When enabled, this policy setting restricts anonymous access to only those shares and + pipes that are named in the Network access: Named pipes that can be accessed + anonymously and Network access: Shares that can be accessed anonymously settings. + This policy setting controls null session access to shares on your computers by adding + RestrictNullSessAccess with the value 1 in the + HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters + registry key. This registry value toggles null session shares on or off to control whether the + server service restricts unauthenticated clients' access to named resources. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Restrict anonymous access to Named Pipes and Shares' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanManServer\\Parameters\restrictnullsessaccess' and data == '1'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Restrict clients allowed to make remote calls to SAM' is set to 'Administrators: Remote Access: Allow' + platforms: win11 + platform: windows + description: | + This policy setting allows you to restrict remote RPC connections to SAM. + resolution: | + To establish the recommended configuration via GP, set the following UI path to + Administrators: Remote Access: Allow: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Restrict clients allowed to make remote calls to SAM' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\RestrictRemoteSAM' and (data == '' or data == 'O:BAG:BAD:')); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Shares that can be accessed anonymously' is set to 'None' + platforms: win11 + platform: windows + description: | + This policy setting determines which network shares can be accessed by anonymous users. + The default configuration for this policy setting has little effect because all users have to be + authenticated before they can access shared resources on the server. + resolution: | + To establish the recommended configuration via GP, set the following UI path to + (i.e. None): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Shares that can be accessed anonymously' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanManServer\\Parameters\NullSessionShares' and data == ''); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Network access: Sharing and security model for local accounts' is set to 'Classic - local users authenticate as themselves' + platforms: win11 + platform: windows + description: | + This policy setting determines how network logons that use local accounts are + authenticated. The Classic option allows precise control over access to resources, including + the ability to assign different types of access to different users for the same resource. The + Guest only option allows you to treat all users equally. In this context, all users authenticate + as Guest only to receive the same access level to a given resource. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Classic - + local users authenticate as themselves: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network access: Sharing and security model for local accounts' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\forceguest' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security Allow Local System to use computer identity for NTLM' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Local System services that use Negotiate when reverting to NTLM authentication can use the computer identity. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Allow Local System to use computer identity for NTLM' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\UseMachineId' COLLATE NOCASE AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security Allow LocalSystem NULL session fallback' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether NTLM is allowed to fall back to a NULL session when used with LocalSystem. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Allow LocalSystem NULL session fallback' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0\\allownullsessionfallback' COLLATE NOCASE AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network Security Allow PKU2U authentication requests to this computer to use online identities' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting determines if online identities are able to authenticate to this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network Security: Allow PKU2U authentication requests to this computer to use online identities' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\pku2u\\AllowOnlineID' COLLATE NOCASE AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security Configure encryption types allowed for Kerberos' is set to 'AES128_HMAC_SHA1, AES256_HMAC_SHA1, Future encryption types' + platforms: win11 + platform: windows + description: | + This setting determines if online identities are able to authenticate to this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'AES128_HMAC_SHA1, AES256_HMAC_SHA1, Future encryption types': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Configure encryption types allowed for Kerberos' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\Kerberos\\Parameters\\SupportedEncryptionTypes' COLLATE NOCASE AND ((CAST(data AS INTEGER) & 0x8) AND (CAST(data AS INTEGER) & 0x10) AND (CAST(data AS INTEGER) & 0xe0) AND ((CAST(data AS INTEGER) & 0x1) = 0) AND ((CAST(data AS INTEGER) & 0x2) = 0) AND ((CAST(data AS INTEGER) & 0x4) = 0))); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security Do not store LAN Manager hash value on next password change' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the LAN Manager (LM) hash value for the new password is + stored when the password is changed. The LM hash is relatively weak and prone to attack compared + to the cryptographically stronger Microsoft Windows NT hash. Since LM hashes are stored on the + local computer in the security database, passwords can then be easily compromised if the + database is attacked. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Do not store LAN Manager hash value on next password change' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\NoLmHash' COLLATE NOCASE AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security Force logoff when logon hours expire' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether to disconnect users who are connected to the local + computer outside their user account's valid logon hours. This setting affects the Server Message + Block (SMB) component. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Force logoff when logon hours expire' + query: | + SELECT 1 FROM cis_audit where item = "2.3.11.6" AND value = "1"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security LAN Manager authentication level' is set to 'Send NTLMv2 response only. Refuse LM & NTLM' + platforms: win11 + platform: windows + description: | + LAN Manager (LM) was a family of early Microsoft client/server software (predating Windows NT) + that allowed users to link personal computers together on a single network. LM network + capabilities included transparent file and print sharing, user security features, and network + administration tools. In Active Directory domains, the Kerberos protocol is the default + authentication protocol. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Send NTLMv2 response only. Refuse LM & NTLM': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: LAN Manager authentication level' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\LmCompatibilityLevel' COLLATE NOCASE AND data == 5); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Network security LDAP client signing requirements' is set to 'Negotiate signing or higher' + platforms: win11 + platform: windows + description: | + This policy setting determines the level of data signing that is requested on behalf of clients that issue LDAP BIND requests. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Negotiate signing or higher': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Network security: LDAP client signing requirements' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\ldap\\ldapclientintegrity' AND data >= 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'System cryptography Force strong key protection for user keys stored on the computer' is set to 'User is prompted when the key is first used or higher' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users' private keys (such as their S-MIME keys) require a password to be used. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'User is prompted when the key is first used or higher': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\System cryptography: Force strong key protection for user keys stored on the computer' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Cryptography\\ForceKeyProtection' AND CAST(data AS INTEGER) >= 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'System objects Require case insensitivity for non Windows subsystems' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether case insensitivity is enforced for all subsystems. The + Microsoft Win32 subsystem is case insensitive. However, the kernel supports case sensitivity for + other subsystems, such as the Portable Operating System Interface for UNIX (POSIX). Because + Windows is case insensitive (but the POSIX subsystem will support case sensitivity), failure to + enforce this policy setting makes it possible for a user of the POSIX subsystem to create a file + with the same name as another file by using mixed case to label it. Such a situation can block + access to these files by another user who uses typical Win32 tools, because only one of the + files will be available. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\System objects: Require case insensitivity for non Windows subsystems' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\kernel\\obcaseinsensitive' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'System objects Strengthen default permissions of internal system objects (e.g. Symbolic Links)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines the strength of the default discretionary access control list + (DACL) for objects. Active Directory maintains a global list of shared system resources, such as + DOS device names, mutexes, and semaphores. In this way, objects can be located and shared among + processes. Each type of object is created with a default DACL that specifies who can access the + objects and what permissions are granted. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\System objects: Strengthen default permissions of internal system objects (e.g. Symbolic Links) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\ProtectionMode' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Admin Approval Mode for the Built-in Administrator account' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the behavior of Admin Approval Mode for the built-in Administrator account. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Admin Approval Mode for the Built-in Administrator account' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\FilterAdministratorToken' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode' is set to 'Prompt for consent on the secure desktop' + platforms: win11 + platform: windows + description: | + This policy setting controls the behavior of the elevation prompt for administrators. + The recommended state for this setting is: Prompt for consent on the secure desktop. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Prompt for consent on the secure desktop': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\ConsentPromptBehaviorAdmin' AND data == 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Behavior of the elevation prompt for standard users' is set to 'Automatically deny elevation requests' + platforms: win11 + platform: windows + description: | + This policy setting controls the behavior of the elevation prompt for standard users. + The recommended state for this setting is: Automatically deny elevation requests. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Automatically deny elevation requests: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Behavior of the elevation prompt for standard users' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\ConsentPromptBehaviorUser' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Detect application installations and prompt for elevation' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the behavior of application installation detection for the computer. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Detect application installations and prompt for elevation' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\EnableInstallerDetection' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Only elevate UIAccess applications that are installed in secure locations' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether applications that request to run with a User Interface Accessibility (UIAccess) integrity level must reside in a secure location in the file system. Secure locations are limited to the following: + ...\Program Files\, including subfolders + ...\Windows\System32\ + ...\Program Files (x86)\, including subfolders (for 64-bit versions of Windows) + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Only elevate UIAccess applications that are installed in secure locations' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\EnableSecureUIAPaths' and data == '1'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Run all administrators in Admin Approval Mode' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the behavior of all User Account Control (UAC) policy settings for the computer. If you change this policy setting, you must restart your computer. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Run all administrators in Admin Approval Mode' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\EnableLUA' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Switch to the secure desktop when prompting for elevation' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the elevation request prompt is displayed on the interactive user's desktop or the secure desktop. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Switch to the secure desktop when prompting for elevation' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\PromptOnSecureDesktop' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'User Account Control: Virtualize file and registry write failures to per-user locations' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether application write failures are redirected to defined registry and file system locations. This policy setting mitigates applications that run as administrator and write run-time application data to: + %ProgramFiles% + %windir% + %windir%\System32 + HKEY_LOCAL_MACHINE\SOFTWARE + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\User Account Control: Virtualize file and registry write failures to per-user locations' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\EnableVirtualization' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Bluetooth Audio Gateway Service (BTAGService)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Service supporting the audio gateway role of the Bluetooth Handsfree Profile. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Bluetooth Audio Gateway Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\BTAGService\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Bluetooth Support Service (bthserv)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The Bluetooth service supports discovery and association of remote Bluetooth devices. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Bluetooth Support Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\bthserv\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Computer Browser (Browser)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + Maintains an updated list of computers on the network and supplies this list to computers designated as browsers. + The recommended state for this setting is: Disabled or Not Installed. + Note: In Windows 8.1 and Windows 10, this service is bundled with the SMB 1.0/CIFS File Sharing Support optional feature. As a result, removing that feature (highly recommended unless backward compatibility is needed to XP/2003 and older Windows OSes - see Stop using SMB1 | Storage at Microsoft) will also remediate this recommendation. The feature is not installed by default starting with Windows 10 R1709. resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or 'not installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Computer Browser' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Browser\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Browser\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Downloaded Maps Manager (MapsBroker)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Windows service for application access to downloaded maps. This service is started on- demand by application accessing downloaded maps. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Downloaded Maps Manager' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\MapsBroker\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Geolocation Service (lfsvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service monitors the current location of the system and manages geofences (a geographical location with associated events). + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Geolocation Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'IIS Admin Service (IISADMIN)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + Enables the server to administer the IIS metabase. The IIS metabase stores configuration for the SMTP and FTP services. + The recommended state for this setting is: Disabled or Not Installed. + Note: This service is not installed by default. It is supplied with Windows, but is installed + by enabling an optional Windows feature (Internet Information Services). + Note #2: An organization may choose to selectively grant exceptions to web developers to allow IIS (or another web server) on their workstation, in order for them to locally test & develop web pages. However, the organization should track those machines and ensure the security controls and mitigations are kept up to date, to reduce risk of compromise. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to Disabled or Not Installed.: + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\IIS Admin Service' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\IISADMIN\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\IISADMIN\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Infrared monitor service (irmon)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + Detects other Infrared devices that are in range and launches the file transfer application. + The recommended state for this setting is: Disabled or Not Installed. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to Disabled or Not Installed.: + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Infrared monitor service' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\irmon\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\irmon\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Internet Connection Sharing (ICS) (SharedAccess)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Provides network access translation, addressing, name resolution and/or intrusion prevention services for a home or small office network. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Internet Connection Sharing (ICS)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Link-Layer Topology Discovery Mapper (lltdsvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Creates a Network Map, consisting of PC and device topology (connectivity) information, and metadata describing each PC and device. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Link-Layer Topology Discovery Mapper' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\lltdsvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'LxssManager (LxssManager)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + The LXSS Manager service supports running native ELF binaries. The service provides the infrastructure necessary for ELF binaries to run on Windows. + The recommended state for this setting is: Disabled or Not Installed. + Note: This service is not installed by default. It is supplied with Windows, but is installed by enabling an optional Windows feature (Windows Subsystem for Linux). + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to Disabled or Not Installed.: + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\LxssManager' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\LxssManager\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LxssManager\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Microsoft FTP Service (FTPSVC)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + Enables the server to be a File Transfer Protocol (FTP) server. + The recommended state for this setting is: Disabled or Not Installed. + Note: This service is not installed by default. It is supplied with Windows, but is installed by enabling an optional Windows feature (Internet Information Services - FTP Server). + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to Disabled or Not Installed.: + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Microsoft FTP Service' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\FTPSVC\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\FTPSVC\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Microsoft iSCSI Initiator Service (MSiSCSI)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Manages Internet SCSI (iSCSI) sessions from this computer to remote target devices. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Microsoft iSCSI Initiator Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\MSiSCSI\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'OpenSSH SSH Server (sshd)' is set to 'Disabled' or 'Not Installed' + platforms: win11 + platform: windows + description: | + SSH protocol based service to provide secure encrypted communications between two untrusted hosts over an insecure network. + The recommended state for this setting is: Disabled or Not Installed. + Note: This service is not installed by default. It is supplied with Windows, but it is installed by enabling an optional Windows feature (OpenSSH Server). + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to Disabled or Not Installed.: + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\OpenSSH SSH Server' + query: | + SELECT 1 WHERE + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\sshd\\Start' ) + OR + EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\sshd\\Start' AND data == 4 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Peer Name Resolution Protocol (PNRPsvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Enables serverless peer name resolution over the Internet using the Peer Name Resolution Protocol (PNRP). + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Peer Name Resolution Protocol' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PNRPsvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Peer Networking Grouping (p2psvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Enables multi-party communication using Peer-to-Peer Grouping. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Peer Networking Grouping' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\p2psvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Peer Networking Identity Manager (p2pimsvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Provides identity services for the Peer Name Resolution Protocol (PNRP) and Peer-to-Peer Grouping services. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Peer Networking Identity Manager' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\p2pimsvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'PNRP Machine Name Publication Service (PNRPAutoReg)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service publishes a machine name using the Peer Name Resolution Protocol. Configuration is managed via the netsh context β€˜p2p pnrp peer’. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\PNRP Machine Name Publication Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PNRPAutoReg\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Print Spooler (Spooler)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service spools print jobs and handles interaction with printers. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Print Spooler' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Spooler\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Problem Reports and Solutions Control Panel Support (wercplsupport)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service provides support for viewing, sending and deletion of system-level problem reports for the Problem Reports and Solutions control panel. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Problem Reports and Solutions Control Panel Support' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\wercplsupport\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Access Auto Connection Manager (RasAuto)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Creates a connection to a remote network whenever a program references a remote DNS or NetBIOS name or address. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Access Auto Connection Manager' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasAuto\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Desktop Configuration (SessionEnv)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Remote Desktop Configuration service (RDCS) is responsible for all Remote Desktop related configuration and session maintenance activities that require SYSTEM context. These include per-session temporary folders, RD themes, and RD certificates. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Desktop Configuration' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SessionEnv\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Desktop Services (TermService)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Allows users to connect interactively to a remote computer. Remote Desktop and Remote Desktop Session Host Server depend on this service. + The recommended state for this setting is: Disabled. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Desktop Services' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\TermService\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Desktop Services UserMode Port Redirector (UmRdpService)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines the redirection of Printers/Drives/Ports for RDP connections. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Desktop Services UserMode Port Redirector' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\UmRdpService\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Procedure Call (RPC) Locator (RpcLocator)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + In Windows 2003 and older versions of Windows, the Remote Procedure Call (RPC) Locator service + manages the RPC name service database. In Windows Vista and newer versions of Windows, this + service does not provide any functionality and is present for application compatibility. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Procedure Call (RPC) Locator' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RpcLocator\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Remote Registry (RemoteRegistry)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The service enables remote users to view and modify registry settings on this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Remote Registry' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RemoteRegistry\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Routing and Remote Access (RemoteAccess)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The service offers routing services to businesses in local area and wide area network environments. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Routing and Remote Access' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RemoteAccess\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Server (LanmanServer)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The service supports file, print, and named-pipe sharing over the network for this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Server' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Simple TCP/IP Services (simptcp)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + The service supports the following TCP/IP services: Character Generator, Daytime, Discard, Echo, and Quote of the Day. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Simple TCP/IP Services' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\simptcp\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\simptcp\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'SNMP Service (SNMP)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + The service enables Simple Network Management Protocol (SNMP) requests to be processed by this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\SNMP Service' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SNMP\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SNMP\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Special Administration Console Helper (sacsvr)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + The service allows administrators to remotely access a command prompt using Emergency Management Services. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Special Administration Console Helper' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\sacsvr\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\sacsvr\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'SSDP Discovery (SSDPSRV)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service discovers networked devices and services that use the SSDP discovery protocol, such + as UPnP devices. Also announces SSDP devices and services running on the local computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\SSDP Discovery' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SSDPSRV\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'UPnP Device Host (upnphost)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service allows UPnP devices to be hosted on this computer. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\UPnP Device Host' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\upnphost\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Web Management Service (WMSvc)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + This web management Service enables remote and delegated management capabilities for administrators to manage for the Web server, sites and applications present on the machine. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Web Management Service' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WMSvc\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WMSvc\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Error Reporting Service (WerSvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service allows errors to be reported when programs stop working or responding and allows + existing solutions to be delivered. Also allows logs to be generated for diagnostic and repair + services. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Error Reporting Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WerSvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Event Collector (Wecsvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service manages persistent subscriptions to events from remote sources that support + WS-Management protocol. This includes Windows Vista event logs, hardware and IPMI-enabled event + sources. The service stores forwarded events in a local Event Log. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Event Collector' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Wecsvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Media Player Network Sharing Service (WMPNetworkSvc)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + This service shares Windows Media Player libraries to other networked players and media devices using Universal Plug and Play. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Media Player Network Sharing Service' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WMPNetworkSvc\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WMPNetworkSvc\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Mobile Hotspot Service (icssvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service provides the ability to share a cellular data connection with another device. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Mobile Hotspot Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\icssvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Push Notifications System Service (WpnService)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service runs in session 0 and hosts the notification platform and connection provider which handles the connection between the device and WNS server. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Push Notifications System Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WpnService\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows PushToInstall Service (PushToInstall)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service manages Apps that are pushed to the device from the Microsoft Store App running on other devices or the web. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows PushToInstall Service (PushToInstall)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PushToInstall\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Windows Remote Management (WSManagement) (WinRM)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The Windows Remote Management (WinRM) service implements the WS-Management protocol for remote + management. WS-Management is a standard web services protocol used for remote software and + hardware management. The WinRM service listens on the network for WS-Management requests and processes them. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Remote Management (WS-Management)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WinRM\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'World Wide Web Publishing Service (W3SVC)' is set to 'Disabled' or to 'Not Installed' + platforms: win11 + platform: windows + description: | + This service provides Web connectivity and administration through the Internet Information Services Manager. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled' or to 'Not Installed': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\World Wide Web Publishing Service' + query: | + SELECT CASE + WHEN NOT EXISTS (SELECT * FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Start') THEN 1 + WHEN (SELECT data FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Start') == '4' THEN 1 + ELSE 0 + END AS result; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Xbox Accessory Management Service (XboxGipSvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service manages connected Xbox accessories. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Xbox Accessory Management Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\XboxGipSvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Xbox Live Auth Manager (XblAuthManager)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service provides authentication and authorization services for interacting with Xbox Live. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Xbox Live Auth Manager' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\XblAuthManager\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Xbox Live Game Save (XblGameSave)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service syncs save data for Xbox Live save enabled game. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Xbox Live Game Save' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\XblGameSave\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Xbox Live Networking Service (XboxNetApiSvc)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This service supports the Windows.Networking.XboxLive application programming interface. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via domain GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Xbox Live Networking Service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\XboxNetApiSvc\\Start' AND data == 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Firewall state' is set to 'On (recommended)' + platforms: win11 + platform: windows + description: | + Select On (recommended) to have Windows Firewall with Advanced Security use the settings for this profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile. + The recommended state for this setting is: On (recommended). + resolution: | + To establish the recommended configuration via GP, set the following UI path to On (recommended): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Firewall state' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\EnableFirewall' and data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Inbound connections' is set to 'Block (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for inbound connections that do not match an inbound firewall rule. + The recommended state for this setting is: Block (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Block (default): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Inbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\\Policies\\Microsoft\WindowsFirewall\DomainProfile\DefaultInboundAction' and data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Outbound connections' is set to 'Allow (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for outbound connections that do not match an outbound firewall rule. + The recommended state for this setting is: Allow (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Allow (default): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Outbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\\Microsoft\WindowsFirewall\DomainProfile\DefaultOutboundAction' and data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Settings: Display a notification' is set to 'No' + platforms: win11 + platform: windows + description: | + Select this option to have Windows Firewall with Advanced Security display notifications to the user when a program is blocked from receiving inbound connections. + The recommended state for this setting is: No. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'No': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Settings Customize\Display a notification' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\DisableNotifications' and data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Logging: Name' is set to '%SystemRoot%\System32\logfiles\firewall\domainfw.log' + platforms: win11 + platform: windows + description: | + Use this option to specify the path and name of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: %SystemRoot%\System32\logfiles\firewall\domainfw.log. + resolution: | + To establish the recommended configuration via GP, set the following UI path to %SystemRoot%\System32\logfiles\firewall\domainfw.log: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Logging Customize\Name' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\Logging\LogFilePath' and data = '%SystemRoot%\System32\logfiles\firewall\domainfw.log'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Logging: Size limit (KB)' is set to '16,384 KB or greater' + platforms: win11 + platform: windows + description: | + Use this option to specify the size limit of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: 16,384 KB or greater. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 16,384 KB or greater: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Logging Customize\Size limit (KB)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\\Microsoft\WindowsFirewall\DomainProfile\Logging\LogFileSize' and CAST(data as integer) >= 16384 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Logging: Log dropped packets' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security discards an inbound packet for any reason. The log records why and when the packet was dropped. Look for entries with the word DROP in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Windows Firewall Properties\Domain Profile\Logging Customize\Log dropped packets' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\Logging\LogDroppedPackets' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Domain: Logging: Log successful connections' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security allows an inbound connection. The log records why and when the connection was formed. Look for entries with the word ALLOW in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes. + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Domain Profile\Logging Customize\Log successful connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\Logging\LogSuccessfulConnections' and data = 1 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Firewall state' is set to 'On (recommended)' + platforms: win11 + platform: windows + description: | + Select On (recommended) to have Windows Firewall with Advanced Security use the settings for this profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile. + The recommended state for this setting is: On (recommended). + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'On (recommended)': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Private Profile\Firewall state' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\EnableFirewall' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Inbound connections' is set to 'Block (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for inbound connections that do not match an inbound firewall rule. + The recommended state for this setting is: Block (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Block (default)'': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Private Profile\Inbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\DefaultInboundAction' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Outbound connections' is set to 'Allow (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for outbound connections that do not match an outbound firewall rule. + The recommended state for this setting is: Allow (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Allow (default)'': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Private Profile\Outbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\DefaultOutboundAction' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Settings: Display a notification' is set to 'No' + platforms: win11 + platform: windows + description: | + Select this option to have Windows Firewall with Advanced Security display notifications to the user when a program is blocked from receiving inbound connections. + The recommended state for this setting is: No. + resolution: | + To establish the recommended configuration via GP, set the following UI path to No: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Private Profile\Settings Customize\Display a notification' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\DisableNotifications' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Logging: Name' is set to '%SystemRoot%\System32\logfiles\firewall\privatefw.log' + platforms: win11 + platform: windows + description: | + Use this option to specify the path and name of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: %SystemRoot%\System32\logfiles\firewall\privatefw.log. + resolution: | + To establish the recommended configuration via GP, set the following UI path to '%SystemRoot%\System32\logfiles\firewall\privatefw.log': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Private Profile\Logging Customize\Name' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\\Logging\LogFilePath' AND data ='%systemroot%\system32\logfiles\firewall\pfirewall.log'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Logging: Size limit (KB)' is set to '16,384 KB or greater' + platforms: win11 + platform: windows + description: | + Use this option to specify the size limit of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: 16,384 KB or greater. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 16,384 KB or greater: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Windows Firewall Properties\Private Profile\Logging Customize\Size limit (KB)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\\Logging\LogFileSize' and CAST(data AS INTEGER) >= 16384 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Logging: Log dropped packets' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security discards an inbound packet for any reason. The log records why and when the packet was dropped. Look for entries with the word DROP in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Windows Firewall Properties\Private Profile\Logging Customize\Log dropped packets' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\\Logging\LogDroppedPackets' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Private: Logging: Log successful connections' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security allows an inbound connection. The log records why and when the connection was formed. Look for entries with the word ALLOW in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Windows Firewall Properties\Private Profile\Logging Customize\Log successful connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PrivateProfile\\Logging\LogSuccessfulConnections' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Firewall state' is set to 'On (recommended)' + platforms: win11 + platform: windows + description: | + Select On (recommended) to have Windows Firewall with Advanced Security use the settings for this profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile. + The recommended state for this setting is: On (recommended). + resolution: | + To establish the recommended configuration via GP, set the following UI path to On (recommended): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Firewall state' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\EnableFirewall' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Inbound connections' is set to 'Block (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for inbound connections that do not match an inbound firewall rule. + The recommended state for this setting is: Block (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Block (default): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Inbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\DefaultInboundAction' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Outbound connections' is set to 'Allow (default)' + platforms: win11 + platform: windows + description: | + This setting determines the behavior for outbound connections that do not match an outbound firewall rule. + The recommended state for this setting is: Allow (default). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Allow (default): + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Outbound connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\DefaultOutboundAction' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Settings: Display a notification' is set to 'No' + platforms: win11 + platform: windows + description: | + Select this option to have Windows Firewall with Advanced Security display notifications to the user when a program is blocked from receiving inbound connections. + The recommended state for this setting is: No. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'No': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Settings Customize\Display a notification' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\DisableNotifications' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Settings: Apply local firewall rules' is set to 'No' + platforms: win11 + platform: windows + description: | + This setting controls whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy. + The recommended state for this setting is: No. + resolution: | + To establish the recommended configuration via GP, set the following UI path to No: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Settings Customize\Apply local firewall rules' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\AllowLocalPolicyMerge' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Settings: Apply local connection security rules' is set to 'No' + platforms: win11 + platform: windows + description: | + This setting controls whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy. + The recommended state for this setting is: No. + resolution: | + To establish the recommended configuration via GP, set the following UI path to No: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Settings Customize\Apply local connection security rules' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\AllowLocalIPsecPolicyMerge' and data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Logging: Name' is set to '%SystemRoot%\System32\logfiles\firewall\publicfw.log' + platforms: win11 + platform: windows + description: | + Use this option to specify the path and name of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: %SystemRoot%\System32\logfiles\firewall\publicfw.log. + resolution: | + To establish the recommended configuration via GP, set the following UI path to %SystemRoot%\System32\logfiles\firewall\publicfw.log: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Logging Customize\Name' + query: | + SELECT * FROM registry WHERE (key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\\Logging\LogFilePath' and data == '%SystemRoot%\System32\logfiles\firewall\publicfw.log'); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Logging: Size limit (KB)' is set to '16,384 KB or greater' + platforms: win11 + platform: windows + description: | + Use this option to specify the size limit of the file in which Windows Firewall will write its log information. + The recommended state for this setting is: 16,384 KB or greater. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 16,384 KB or greater: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Logging Customize\Size limit (KB)' + query: | + SELECT * FROM registry WHERE (key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\\Logging\LogFileSize' and data >= 16384 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Logging: Log dropped packets' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security discards an inbound packet + for any reason. The log records why and when the packet was dropped. Look for entries with the + word DROP in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Windows Firewall Properties\Public Profile\Logging Customize\Log dropped packets' + query: | + SELECT * FROM registry WHERE (key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\\Logging\LogDroppedPackets' and data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Windows Firewall: Public: Logging: Log successful connections' is set to 'Yes' + platforms: win11 + platform: windows + description: | + Use this option to log when Windows Firewall with Advanced Security allows an inbound connection. The log records why and when the connection was formed. Look for entries with the word ALLOW in the action column of the log. + The recommended state for this setting is: Yes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Yes. + 'Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Windows Defender Firewall Properties\Public Profile\Logging Customize\Log successful connections' + query: | + SELECT 1 FROM registry WHERE (key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\PublicProfile\\Logging\LogSuccessfulConnections' and data == 1 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: RachelElysia +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Credential Validation' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + Creates audit events whenever an attempt is made to authenticate, whether it is successful or not. + This makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Account Logon\Audit Credential Validation' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/AccountLogon_AuditCredentialValidation" + AND mdm_command_output = "3"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Application Group Management' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + Creates audit events whenever an application group is changed, e.g. by adding members. + This makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Account Management\Audit Application Group Management' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/AccountManagement_AuditApplicationGroupManagement" + AND mdm_command_output = "3"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Security Group Management' is set to include 'Success' + platforms: win11 + platform: windows + description: | + Creates audit events whenever a security group is changed, e.g. by adding members. + This makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Success and Failure' or 'Success': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Account Management\Audit Security Group Management' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/AccountManagement_AuditSecurityGroupManagement" + AND (mdm_command_output = "1" OR mdm_command_output = "3"); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit PNP Activity' is set to 'Success' + platforms: win11 + platform: windows + description: | + Creates audit events whenever there is a change in user status, e.g. if an account is created or an account's password changed. + This makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Success and Failure': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Account Management\Audit User Account Management' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/AccountManagement_AuditUserAccountManagement" + AND mdm_command_output = "3"; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit PNP Activity' is set to include 'Success' + platforms: win11 + platform: windows + description: | + Creates audit events whenever a plug and play external device is detected. + Attaching unapproved devices could cause Windows to install unapproved software. + This also makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the + following UI path to 'Success': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Detailed Tracking\Audit PNP Activity' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/DetailedTracking_AuditPNPActivity" + AND (mdm_command_output = "1" OR mdm_command_output = "3"); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Process Creation' is set to include 'Success' + platforms: win11 + platform: windows + description: | + Creates audit events whenever a process is executed. + This makes it easier to investigate a future security incident if required. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Success': + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Detailed Tracking\Audit Process Creation' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = + "1./Device/Vendor/MSFT/Policy/Result/Audit/DetailedTracking_AuditProcessCreation" + AND (mdm_command_output = "1" OR mdm_command_output = "3"); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Account Lockout' is set to include 'Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports when a user's account is locked out as a result of too many failed logon attempts. Events for this subcategory include: + - 4625: An account failed to log on. + resolution: | + To establish the recommended configuration via GP, set the following UI path to include Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Account Lockout' + query: | + SELECT 1 FROM cis_audit where item = "17.5.1" AND (regex_match(value,".*(?=.*Failure).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Group Membership' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This policy allows you to audit the group membership information in the user's logon token. Events in this subcategory are generated on the computer on which a logon session is created. For an interactive logon, the security audit event is generated on the computer that the user logged on to. For a network logon, such as accessing a shared folder on the network, the security audit event is generated on the computer hosting the resource. + resolution: | + To establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Group Membership' + query: | + SELECT 1 FROM cis_audit where item = "17.5.2" AND (regex_match(value,".*(?=.*Success).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Logoff' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports when a user logs off from the system. These events occur on the accessed computer. For interactive logons, the generation of these events occurs on the computer that is logged on to. If a network logon takes place to access a share, these events generate on the computer that hosts the accessed resource. If you configure this setting to No auditing, it is difficult or impossible to determine which user has accessed or attempted to access organization computers. Events for this subcategory include: + - 4634: An account was logged off. + - 4647: User initiated logoff. + resolution: | + To establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Logoff' + query: | + SELECT 1 FROM cis_audit where item = "17.5.3" AND (regex_match(value,".*(?=.*Success).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Logon' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports when a user attempts to log on to the system. These events occur on the accessed computer. For interactive logons, the generation of these events occurs on the computer that is logged on to. If a network logon takes place to access a share, these events generate on the computer that hosts the accessed resource. If you configure this setting to No auditing, it is difficult or impossible to determine which user has accessed or attempted to access organization computers. Events for this subcategory include: + - 4624: An account was successfully logged on. + - 4625: An account failed to log on. + - 4648: A logon was attempted using explicit credentials. + - 4675: SIDs were filtered. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Logon' + query: | + SELECT 1 FROM cis_audit where item = "17.5.4" AND (regex_match(value,".*(?=.*Success)(?=.*Failure).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Other Logon/Logoff Events' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports other logon/logoff-related events, such as Remote Desktop Services session disconnects and reconnects, using RunAs to run processes under a different account, and locking and unlocking a workstation. Events for this subcategory include: + - 4649: A replay attack was detected. + - 4778: A session was reconnected to a Window Station. + - 4779: A session was disconnected from a Window Station. + - 4800: The workstation was locked. + - 4801: The workstation was unlocked. + - 4802: The screen saver was invoked. + - 4803: The screen saver was dismissed. + - 5378: The requested credentials delegation was disallowed by policy. + - 5632: A request was made to authenticate to a wireless network. + - 5633: A request was made to authenticate to a wired network. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Other Logon/Logoff Events' + query: | + SELECT 1 FROM cis_audit where item = "17.5.5" AND (regex_match(value,".*(?=.*Success)(?=.*Failure).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Audit Special Logon' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports when a special logon is used. A special logon is a logon that has administrator-equivalent privileges and can be used to elevate a process to a higher level. Events for this subcategory include: + - 4964 : Special groups have been assigned to a new logon. + resolution: | + To establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Logon/Logoff\Audit Special Logon' + query: | + SELECT 1 FROM cis_audit where item = "17.5.6" AND (regex_match(value,".*(?=.*Success).*",0) is not null); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Detailed File Share' is set to include 'Failure' + platforms: win11 + platform: windows + description: | + This subcategory allows you to audit attempts to access files and folders on a shared folder. Events for this subcategory include: + - 5145: network share object was checked to see whether client can be granted desired access. + The recommended state for this setting is to include: Failure + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Object Access\Audit Detailed File Share' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/ObjectAccess_AuditDetailedFileShare" + AND (mdm_command_output = 2 OR mdm_command_output = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit File Share' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This policy setting allows you to audit attempts to access a shared folder. The recommended state for this setting is: Success and Failure. + Note: There are no system access control lists (SACLs) for shared folders. If this policy setting is enabled, access to all shared folders on the system is audited. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Object Access\Audit File Share' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/ObjectAccess_AuditFileShare" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Other Object Access Events' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This policy setting allows you to audit events generated by the management of task scheduler jobs or COM+ objects. + For scheduler jobs, the following are audited: + - Job created. + - Job deleted. + - Job enabled. + - Job disabled. + - Job updated. + For COM+ objects, the following are audited: + - Catalog object added. + - Catalog object updated. + - Catalog object deleted. + The recommended state for this setting is: Success and Failure. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Object Access\Audit Other Object Access Events' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/ObjectAccess_AuditOtherObjectAccessEvents" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Removable Storage' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This policy setting allows you to audit user attempts to access file system objects on a removable storage device. A security audit event is generated only for all objects for all types of access requested. If you configure this policy setting, an audit event is generated each time an account accesses a file system object on a removable storage. Success audits record successful attempts and Failure audits record unsuccessful attempts. If you do not configure this policy setting, no audit event is generated when an account accesses a file system object on a removable storage. + The recommended state for this setting is: Success and Failure. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Object Access\Audit Removable Storage' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/ObjectAccess_AuditRemovableStorage" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Audit Policy Change' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports changes in audit policy including SACL changes. Events for this subcategory include: + - 4715: The audit policy (SACL) on an object was changed. + - 4719: System audit policy was changed. + - 4902: The Per-user audit policy table was created. + - 4904: An attempt was made to register a security event source. + - 4905: An attempt was made to unregister a security event source. + - 4906: The CrashOnAuditFail value has changed. + - 4907: Auditing settings on object were changed. + - 4908: Special Groups Logon table modified. + - 4912: Per User Audit Policy was changed. + The recommended state for this setting is to include: Success. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Policy Change\Audit Audit Policy Change' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PolicyChange_AuditPolicyChange" + AND (mdm_command_output = 1 OR mdm_command_output = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Authentication Policy Change' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports changes in authentication policy. Events for this subcategory include: + - 4706: A new trust was created to a domain. + - 4707: A trust to a domain was removed. + - 4713: Kerberos policy was changed. + - 4716: Trusted domain information was modified. + - 4717: System security access was granted to an account. + - 4718: System security access was removed from an account. + - 4739: Domain Policy was changed. + - 4864: A namespace collision was detected. + - 4865: A trusted forest information entry was added. + - 4866: A trusted forest information entry was removed. + - 4867: A trusted forest information entry was modified. + The recommended state for this setting is to include: Success. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Policy Change\Audit Authentication Policy Change' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PolicyChange_AuditAuthenticationPolicyChange" + AND (mdm_command_output = 1 OR mdm_command_output = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Authorization Policy Change' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports changes in authorization policy. Events for this subcategory include: + - 4704: A user right was assigned. + - 4705: A user right was removed. + - 4706: A new trust was created to a domain. + - 4707: A trust to a domain was removed. + - 4714: Encrypted data recovery policy was changed. + The recommended state for this setting is to include: Success. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Policy Change\Audit Authorization Policy Change' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PolicyChange_AuditAuthorizationPolicyChange" + AND (mdm_command_output = 1 OR mdm_command_output = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit MPSSVC Rule-Level Policy Change' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory determines whether the operating system generates audit events when changes are made to policy rules for the Microsoft Protection Service (MPSSVC.exe). Events for this subcategory include: + - 4944: The following policy was active when the Windows Firewall started. + - 4945: A rule was listed when the Windows Firewall started. + - 4946: A change has been made to Windows Firewall exception list. A rule was added. + - 4947: A change has been made to Windows Firewall exception list. A rule was modified. + - 4948: A change has been made to Windows Firewall exception list. A rule was deleted. + - 4949: Windows Firewall settings were restored to the default values. + - 4950: A Windows Firewall setting has changed. + - 4951: A rule has been ignored because its major version number was not recognized by Windows Firewall. + - 4952: Parts of a rule have been ignored because its minor version number was not recognized by Windows Firewall. The other parts of the rule will be enforced. + - 4953: A rule has been ignored by Windows Firewall because it could not parse the rule. + - 4954: Windows Firewall Group Policy settings have changed. The new settings have been applied. + - 4956: Windows Firewall has changed the active profile. + - 4957: Windows Firewall did not apply the following rule. + - 4958: Windows Firewall did not apply the following rule because the rule referred to items not configured on this computer. + The recommended state for this setting is : Success and Failure + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Policy Change\Audit MPSSVC Rule- Level Policy Change' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PolicyChange_AuditMPSSVCRuleLevelPolicyChange" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Sensitive Privilege Use' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports when a user account or service uses a sensitive privilege. A sensitive privilege includes the following user rights: + - Act as part of the operating system + - Back up files and directories + - Create a token object + - Debug programs + - Enable computer and user accounts to be trusted for delegation + - Generate security audits + - Impersonate a client after authentication + - Load and unload device drivers + - Manage auditing and security log + - Modify firmware environment values + - Replace a process-level token + - Restore files and directories + - Take ownership of files or other objects + Auditing this subcategory will create a high volume of events. Events for this subcategory include: + - 4672: Special privileges assigned to new logon. + - 4673: A privileged service was called. + - 4674: An operation was attempted on a privileged object. + The recommended state for this setting is: 'Success and Failure'. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Privilege Use\Audit Sensitive Privilege Use' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PrivilegeUse_AuditSensitivePrivilegeUse" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit IPsec Driver' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports on the activities of the Internet Protocol security (IPsec) driver. Events for this subcategory include: + - 4960: IPsec dropped an inbound packet that failed an integrity check. If this problem persists, it could indicate a network issue or that packets are being modified in transit to this computer. Verify that the packets sent from the remote computer are the same as those received by this computer. This error might also indicate interoperability problems with other IPsec implementations. + - 4961: IPsec dropped an inbound packet that failed a replay check. If this problem persists, it could indicate a replay attack against this computer. + - 4962: IPsec dropped an inbound packet that failed a replay check. The inbound packet had too low a sequence number to ensure it was not a replay. + - 4963: IPsec dropped an inbound clear text packet that should have been secured. This is usually due to the remote computer changing its IPsec policy without informing this computer. This could also be a spoofing attack attempt. + - 4965: IPsec received a packet from a remote computer with an incorrect Security Parameter Index (SPI). This is usually caused by malfunctioning hardware that is corrupting packets. If these errors persist, verify that the packets sent from the remote computer are the same as those received by this computer. This error may also indicate interoperability problems with other IPsec implementations. In that case, if connectivity is not impeded, then these events can be ignored. + - 5478: IPsec Services has started successfully. + - 5479: IPsec Services has been shut down successfully. The shutdown of IPsec Services can put the computer at greater risk of network attack or expose the computer to potential security risks. + - 5480: IPsec Services failed to get the complete list of network interfaces on the computer. This poses a potential security risk because some of the network interfaces may not get the protection provided by the applied IPsec filters. Use the IP Security Monitor snap-in to diagnose the problem. + - 5483: IPsec Services failed to initialize RPC server. IPsec Services could not be started. + - 5484: IPsec Services has experienced a critical failure and has been shut down. The shutdown of IPsec Services can put the computer at greater risk of network attack or expose the computer to potential security risks. + - 5485: IPsec Services failed to process some IPsec filters on a plug-and-play event for network interfaces. This poses a potential security risk because some of the network interfaces may not get the protection provided by the applied IPsec filters. Use the IP Security Monitor snap-in to diagnose the problem. + The recommended state for this setting is: Success and Failure. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\System\Audit IPsec Driver' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/System_AuditIPsecDriver" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Other System Events' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports on other system events. Events for this subcategory include: + - 5024 : The Windows Firewall Service has started successfully. + - 5025 : The Windows Firewall Service has been stopped. + - 5027 : The Windows Firewall Service was unable to retrieve the security policy from the local storage. The service will continue enforcing the current policy. + - 5028 : The Windows Firewall Service was unable to parse the new security policy. The service will continue with currently enforced policy. + - 5029: The Windows Firewall Service failed to initialize the driver. The service will continue to enforce the current policy. + - 5030: The Windows Firewall Service failed to start. + - 5032: Windows Firewall was unable to notify the user that it blocked an application from accepting incoming connections on the network. + - 5033 : The Windows Firewall Driver has started successfully. + - 5034 : The Windows Firewall Driver has been stopped. + - 5035 : The Windows Firewall Driver failed to start. + - 5037 : The Windows Firewall Driver detected critical runtime error. Terminating. + - 5058: Key file operation. + - 5059: Key migration operation. + The recommended state for this setting is: 'Success and Failure'. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\System\Audit Other System Events' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/System_AuditOtherSystemEvents" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Security State Change' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports changes in security state of the system, such as when the security subsystem starts and stops. Events for this subcategory include: + - 4608: Windows is starting up. + - 4609: Windows is shutting down. + - 4616: The system time was changed. + - 4621: Administrator recovered system from CrashOnAuditFail. Users who are not + administrators will now be allowed to log on. Some audit-able activity might not have been recorded. + The recommended state for this setting is to include: 'Success'. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\System\Audit Security State Change' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/System_AuditSecurityStateChange" + AND (mdm_command_output = 3 OR mdm_command_output = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Security System Extension' is set to include 'Success' + platforms: win11 + platform: windows + description: | + This subcategory reports the loading of extension code such as authentication packages by the security subsystem. Events for this subcategory include: + - 4610: An authentication package has been loaded by the Local Security Authority. + - 4611: A trusted logon process has been registered with the Local Security Authority. + - 4614: A notification package has been loaded by the Security Account Manager. + - 4622: A security package has been loaded by the Local Security Authority. + - 4697: A service was installed in the system. + The recommended state for this setting is to include: Success. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\System\Audit Security System Extension' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/System_AuditSecuritySystemExtension" + AND (mdm_command_output = 3 OR mdm_command_output = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit System Integrity' is set to 'Success and Failure' + platforms: win11 + platform: windows + description: | + This subcategory reports on violations of integrity of the security subsystem. Events for this subcategory include: + - 4612 : Internal resources allocated for the queuing of audit messages have been exhausted, leading to the loss of some audits. + - 4615 : Invalid use of LPC port. + - 4618 : A monitored security event pattern has occurred. + - 4816 : RPC detected an integrity violation while decrypting an incoming message. + - 5038 : Code integrity determined that the image hash of a file is not valid. The file could be corrupt due to unauthorized modification or the invalid hash could indicate a potential disk device error. + - 5056: A cryptographic self test was performed. + - 5057: A cryptographic primitive operation failed. + - 5060: Verification operation failed. + - 5061: Cryptographic operation. + - 5062: A kernel-mode cryptographic self test was performed. + The recommended state for this setting is: Success and Failure. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Success and Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\System\Audit System Integrity' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/System_AuditSystemIntegrity" + AND mdm_command_output = 3; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Audit Other Policy Change Events' is set to include 'Failure' + platforms: win11 + platform: windows + description: | + This subcategory contains events about EFS Data Recovery Agent policy changes, changes in Windows Filtering Platform filter, status on Security policy settings updates for local Group Policy settings, Central Access Policy changes, and detailed troubleshooting events for Cryptographic Next Generation (CNG) operations. + - 5063: A cryptographic provider operation was attempted. + - 5064: A cryptographic context operation was attempted. + - 5065: A cryptographic context modification was attempted. + - 5066: A cryptographic function operation was attempted. + - 5067: A cryptographic function modification was attempted. + - 5068: A cryptographic function provider operation was attempted. + - 5069: A cryptographic function property operation was attempted. + - 5070: A cryptographic function property modification was attempted. + - 6145: One or more errors occurred while processing security policy in the group + policy objects. + The recommended state for this setting is to include: Failure. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to include Failure: + 'Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Policy Change\Audit Other Policy Change Events' + query: | + SELECT 1 FROM mdm_bridge where mdm_command_input = "1./Device/Vendor/MSFT/Policy/Result/Audit/PolicyChange_AuditOtherPolicyChangeEvents" + AND (mdm_command_output = 2 OR mdm_command_output = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent enabling lock screen camera' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Disables the lock screen camera toggle switch in PC Settings and prevents a camera from being invoked on the lock screen. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Control Panel\Personalization\Prevent enabling lock screen camera' + query: | + SELECT 1 FROM registry where (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization\NoLockScreenCamera' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent enabling lock screen slide show' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Disables the lock screen slide show settings in PC Settings and prevents a slide show from playing on the lock screen. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Control Panel\Personalization\Prevent enabling lock screen slide show' + query: | + SELECT 1 FROM registry where (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization\NoLockScreenSlideshow' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow users to enable online speech recognition services' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy enables the automatic learning component of input personalization that includes speech, inking, and typing. Automatic learning enables the collection of speech and handwriting patterns, typing history, contacts, and recent calendar information. It is required for the use of Cortana. Some of this collected information may be stored on the user's OneDrive, in the case of inking and typing; some of the information will be uploaded to Microsoft to personalize speech. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Control Panel\Regional and Language Options\Allow users to enable online speech recognition services' + query: | + SELECT 1 FROM registry where (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\InputPersonalization\AllowInputPersonalization' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Online Tips' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting configures the retrieval of online tips and help for the Settings app. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Control Panel\Allow Online Tips' + query: | + SELECT 1 FROM registry where (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\AllowOnlineTips' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure LAPS AdmPwd GPO Extension / CSE is installed + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + Note #1: Organizations that utilize 3rd-party commercial software to manage unique & complex local Administrator passwords on domain members may opt to disregard these LAPS recommendations. + Note #2: LAPS is only designed to manage local Administrator passwords, and is therefore not recommended (or supported) for use directly on Domain Controllers, which do not have a traditional local Administrator account. We strongly encourage you to only deploy the LAPS CSE and LAPS GPO settings to member servers and workstations. + resolution: | + In order to utilize LAPS, a minor Active Directory Schema update is required, and a Group Policy Client Side Extension (CSE) must be installed on each managed computer. When LAPS is installed, the file AdmPwd.dll must be present in the following location and registered in Windows (the LAPS AdmPwd GPO Extension / CSE installation does this for you): + C:\Program Files\LAPS\CSE\AdmPwd.dll + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{D76B9641-3288-4f75-942D-087DE603E3EA}\DllName'; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow password expiration time longer than required by policy' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\LAPS\Do not allow password expiration time longer than required by policy' + Note: This Group Policy path does not exist by default. An additional Group Policy template (AdmPwd.admx/adml) is required - it is included with Microsoft Local Administrator Password Solution (LAPS). + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft Services\AdmPwd\PwdExpirationProtectionEnabled' AND data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable Local Admin Password Management' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\LAPS\Enable Local Admin Password Management' + Note: This Group Policy path does not exist by default. An additional Group Policy template (AdmPwd.admx/adml) is required - it is included with Microsoft Local Administrator Password Solution (LAPS). + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft Services\\AdmPwd\\AdmPwdEnabled' AND data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Password Settings: Password Complexity' is set to 'Enabled: Large letters + small letters + numbers + special characters' + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, and configure the Password Complexity option to Large letters + small letters + numbers + special characters: + 'Computer Configuration\Policies\Administrative Templates\LAPS\Password Settings' + Note: This Group Policy path does not exist by default. An additional Group Policy template (AdmPwd.admx/adml) is required - it is included with Microsoft Local Administrator Password Solution (LAPS). + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft Services\\AdmPwd\\PasswordComplexity' AND data = 4; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Password Settings: Password Length' is set to 'Enabled: 15 or more' + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, and configure the Password Length option to 15 or more: + 'Computer Configuration\Policies\Administrative Templates\LAPS\Password Settings' + Note: This Group Policy path does not exist by default. An additional Group Policy template (AdmPwd.admx/adml) is required - it is included with Microsoft Local Administrator Password Solution (LAPS). + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft Services\\AdmPwd\\PasswordLength' AND data >= 15; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Password Settings: Password Age (Days)' is set to 'Enabled: 30 or fewer' + platforms: win11 + platform: windows + description: | + In May 2015, Microsoft released the Local Administrator Password Solution (LAPS) tool, which is free and supported software that allows an organization to automatically set randomized and unique local Administrator account passwords on domain-attached workstations and Member Servers. The passwords are stored in a confidential attribute of the domain computer account and can be retrieved from Active Directory by approved Sysadmins when needed. + The LAPS tool requires a small Active Directory Schema update in order to implement, as well as installation of a Group Policy Client Side Extension (CSE) on targeted computers. Please see the LAPS documentation for details. + LAPS supports Windows Vista or newer workstation OSes, and Server 2003 or newer server OSes. LAPS does not support standalone computers - they must be joined to a domain. + The recommended state for this setting is: Enabled: 30 or fewer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, and configure the Password Age (Days) option to 30 or fewer: + 'Computer Configuration\Policies\Administrative Templates\LAPS\Password Settings' + Note: This Group Policy path does not exist by default. An additional Group Policy template (AdmPwd.admx/adml) is required - it is included with Microsoft Local Administrator Password Solution (LAPS). + query: | + SELECT 1 FROM registry where path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft Services\\AdmPwd\\PasswordAgeDays' AND data <= 30; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Apply UAC restrictions to local accounts on network logons' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting controls whether local accounts can be used for remote administration via network logon (e.g., NET USE, connecting to C$, etc.). Local accounts are at high risk for credential theft when the same account and password is configured on multiple systems. Enabling this policy significantly reduces that risk. + Enabled: Applies UAC token-filtering to local accounts on network logons. Membership in powerful group such as Administrators is disabled and powerful privileges are removed from the resulting access token. This configures the LocalAccountTokenFilterPolicy registry value to 0. This is the default behavior for Windows. + Disabled: Allows local accounts to have full administrative rights when authenticating via network logon, by configuring the LocalAccountTokenFilterPolicy registry value to 1. + For more information about local accounts and credential theft, review the "Mitigating Pass-the-Hash (PtH) Attacks and Other Credential Theft Techniques" documents. + For more information about LocalAccountTokenFilterPolicy, see Microsoft Knowledge Base article 951016: Description of User Account Control and remote restrictions in Windows Vista. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Apply UAC restrictions to local accounts on network logons' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\LocalAccountTokenFilterPolicy' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure SMB v1 client driver' is set to 'Enabled: Disable driver (recommended)' + platforms: win11 + platform: windows + description: | + This setting configures the start type for the Server Message Block version 1 (SMBv1) client driver service (MRxSmb10), which is recommended to be disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Disable driver (recommended)': + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Configure SMB v1 client driver' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\MrxSmb10\Start' AND data = 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure SMB v1 server' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting configures the server-side processing of the Server Message Block version 1 (SMBv1) protocol. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Configure SMB v1 server' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\SMB1' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable Structured Exception Handling Overwrite Protection (SEHOP)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Windows includes support for Structured Exception Handling Overwrite Protection (SEHOP). We recommend enabling this feature to improve the security profile of the computer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Enable Structured Exception Handling Overwrite Protection (SEHOP)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\kernel\DisableExceptionChainValidation' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'NetBT NodeType configuration' is set to 'Enabled: P-node (recommended)' + platforms: win11 + platform: windows + description: | + This setting determines which method NetBIOS over TCP/IP (NetBT) uses to register and resolve names. The available methods are: + The B-node (broadcast) method only uses broadcasts. + The P-node (point-to-point) method only uses name queries to a name server (WINS). + The M-node (mixed) method broadcasts first, then queries a name server (WINS) if broadcast failed. + The H-node (hybrid) method queries a name server (WINS) first, then broadcasts if the query failed. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: P-node (recommended): + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\NetBT NodeType configuration' + Note: This change does not take effect until the computer has been restarted. + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NetBT\\Parameters\NodeType' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'WDigest Authentication' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + When WDigest authentication is enabled, Lsass.exe retains a copy of the user's plaintext password in memory, where it can be at risk of theft. If this setting is not configured, WDigest authentication is disabled in Windows 8.1 and in Windows Server 2012 R2; it is enabled by default in earlier versions of Windows and Windows Server. + For more information about local accounts and credential theft, review the "Mitigating Pass-the-Hash (PtH) Attacks and Other Credential Theft Techniques" documents. + For more information about UseLogonCredential, see Microsoft Knowledge Base article 2871997: Microsoft Security Advisory Update to improve credentials protection and management May 13, 2014. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\WDigest Authentication (disabling may require KB2871997)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\WDigest\UseLogonCredential' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (AutoAdminLogon) Enable Automatic Logon (not recommended)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting is separate from the Welcome screen feature in Windows XP and Windows Vista; if that feature is disabled, this setting is not disabled. If you configure a computer for automatic logon, anyone who can physically gain access to the computer can also gain access to everything that is on the computer, including any network or networks to which the computer is connected. Also, if you enable automatic logon, the password is stored in the registry in plaintext, and the specific registry key that stores this value is remotely readable by the Authenticated Users group. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (AutoAdminLogon) Enable Automatic Logon (not recommended)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\AutoAdminLogon' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure RPC packet level privacy setting for incoming connections' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls packet level privacy for Remote Procedure Call (RPC) incoming connections. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Configure RPC packet level privacy setting for incoming connections' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Print\\RpcAuthnLevelPrivacyEnabled' AND (data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: defensivedepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (DisableIPSourceRouting IPv6) IP source routing protection level (protects against packet spoofing)' is set to 'Enabled: Highest protection, source routing is completely disabled' + platforms: win11 + platform: windows + description: | + IP source routing is a mechanism that allows the sender to determine the IP route that a datagram should follow through the network. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Highest protection, source routing is completely disabled': + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (DisableIPSourceRouting IPv6) IP source routing protection level (protects against packet spoofing)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters\DisableIPSourceRouting' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (DisableIPSourceRouting) IP source routing protection level (protects against packet spoofing)' is set to 'Enabled: Highest protection, source routing is completely disabled' + platforms: win11 + platform: windows + description: | + IP source routing is a mechanism that allows the sender to determine the IP route that a datagram should take through the network. It is recommended to configure this setting to Not Defined for enterprise environments and to Highest Protection for high security environments to completely disable source routing. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Highest protection, source routing is completely disabled': + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (DisableIPSourceRouting) IP source routing protection level (protects against packet spoofing)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\DisableIPSourceRouting' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (DisableSavePassword) Prevent the dial-up password from being saved' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + When you dial a phonebook or VPN entry in Dial-Up Networking, you can use the "Save Password" option so that your Dial-Up Networking password is cached and you will not need to enter it on successive dial attempts. For security, administrators may want to prevent users from caching passwords. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS:(DisableSavePassword) Prevent the dial-up password from being saved' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasMan\\Parameters\DisableSavePassword' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (EnableICMPRedirect) Allow ICMP redirects to override OSPF generated routes' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Internet Control Message Protocol (ICMP) redirects cause the IPv4 stack to plumb host routes. These routes override the Open Shortest Path First (OSPF) generated routes. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (EnableICMPRedirect) Allow ICMP redirects to override OSPF generated routes' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\EnableICMPRedirect' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (NoNameReleaseOnDemand) Allow the computer to ignore NetBIOS name release requests except from WINS servers' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + NetBIOS over TCP/IP is a network protocol that among other things provides a way to easily resolve NetBIOS names that are registered on Windows-based systems to the IP addresses that are configured on those systems. This setting determines whether the computer releases its NetBIOS name when it receives a name-release request. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (NoNameReleaseOnDemand) Allow the computer to ignore NetBIOS name release requests except from WINS servers' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NetBT\\Parameters\NoNameReleaseOnDemand' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (PerformRouterDiscovery) Allow IRDP to detect and configure Default Gateway addresses (could lead to DoS)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting is used to enable or disable the Internet Router Discovery Protocol (IRDP), which allows the system to detect and configure default gateway addresses automatically as described in RFC 1256 on a per-interface basis. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (PerformRouterDiscovery) Allow IRDP to detect and configure Default Gateway addresses (could lead to DoS)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\PerformRouterDiscovery' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (SafeDllSearchMode) Enable Safe DLL search mode (recommended)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + The DLL search order can be configured to search for DLLs that are requested by running processes in one of two ways: + - Search folders specified in the system path first, and then search the current working folder. + - Search current working folder first, and then search the folders specified in the system path. + When enabled, the registry value is set to 1. With a setting of 1, the system first searches the folders that are specified in the system path and then searches the current working folder. + When disabled the registry value is set to 0 and the system first searches the current working folder and then searches the folders that are specified in the system path. + Applications will be forced to search for DLLs in the system path first. For applications that require unique versions of these DLLs that are included with the application, this entry could cause performance or stability problems. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (SafeDllSearchMode) Enable Safe DLL search mode (recommended)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\SafeDllSearchMode' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (ScreenSaverGracePeriod) The time in seconds before the screen saver grace period expires (0 recommended)' is set to 'Enabled: 5 or fewer seconds' + platforms: win11 + platform: windows + description: | + Windows includes a grace period between when the screen saver is launched and when the console is actually locked automatically when screen saver locking is enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 5 or fewer seconds: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (ScreenSaverGracePeriod) The time in seconds before the screen saver grace period expires (0 recommended)' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\ScreenSaverGracePeriod' AND data <= 5); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (TcpMaxDataRetransmissions IPv6) How many times unacknowledged data is retransmitted' is set to 'Enabled: 3' + platforms: win11 + platform: windows + description: | + This setting controls the number of times that TCP retransmits an individual data segment (non-connect segment) before the connection is aborted. The retransmission time-out is doubled with each successive retransmission on a connection. It is reset when responses resume. The base time-out value is dynamically determined by the measured round-trip time on the connection. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 3': + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS:(TcpMaxDataRetransmissions IPv6) How many times unacknowledged data is retransmitted' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\TCPIP6\\Parameters\TcpMaxDataRetransmissions' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (TcpMaxDataRetransmissions) How many times unacknowledged data is retransmitted' is set to 'Enabled: 3' + platforms: win11 + platform: windows + description: | + This setting controls the number of times that TCP retransmits an individual data segment (non-connect segment) before the connection is aborted. The retransmission time-out is doubled with each successive retransmission on a connection. It is reset when responses resume. The base time-out value is dynamically determined by the measured round-trip time on the connection. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 3': + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS:(TcpMaxDataRetransmissions) How many times unacknowledged data is retransmitted' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\TcpMaxDataRetransmissions' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (WarningLevel) Percentage threshold for the security event log at which the system will generate a warning' is set to 'Enabled: 90% or less' + platforms: win11 + platform: windows + description: | + This setting can generate a security audit in the Security event log when the log reaches a user-defined threshold. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 90% or less: + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (WarningLevel) Percentage threshold for the security event log at which the system will generate a warning' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Security\WarningLevel' AND data <= 90); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off multicast name resolution' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + LLMNR is a secondary name resolution protocol. With LLMNR, queries are sent using multicast over a local network link on a single subnet from a client computer to another client computer on the same subnet that also has LLMNR enabled. LLMNR does not require a DNS server or DNS client configuration, and provides name resolution in scenarios in which conventional DNS name resolution is not possible. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Network\DNS Client\Turn off multicast name resolution' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\EnableMulticast' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable Font Providers' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Windows is allowed to download fonts and font catalog data from an online font provider. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Network\Fonts\Enable Font Providers' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\EnableFontProviders' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'MSS: (KeepAliveTime) How often keep-alive packets are sent in milliseconds' is set to 'Enabled: 300,000 or 5 minutes' + platforms: win11 + platform: windows + description: | + This value controls how often TCP attempts to verify that an idle connection is still intact by sending a keep-alive packet. If the remote computer is still reachable, it acknowledges the keep-alive packet. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 300,000 or 5 minutes (recommended)': + 'Computer Configuration\Policies\Administrative Templates\MSS (Legacy)\MSS: (KeepAliveTime) How often keep-alive packets are sent in milliseconds' + Note: This Group Policy path does not exist by default. An additional Group Policy template (MSS-legacy.admx/adml) is required - it is available from the Security Compliance Toolkit 1.0 (https://www.microsoft.com/en-us/download/details.aspx?id=55319) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\KeepAliveTime' AND data = 300000); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable insecure guest logons' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines if the SMB client will allow insecure guest logons to an SMB server. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Network\Lanman Workstation\Enable insecure guest logons' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation\AllowInsecureGuestAuth' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on Mapper I/O (LLTDIO) driver' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting changes the operational behavior of the Mapper I/O network protocol driver. LLTDIO allows a computer to discover the topology of a network it's connected to. It also allows a computer to initiate Quality-of-Service requests such as bandwidth estimation and network health analysis. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Network\Link-Layer Topology Discovery\Turn on Mapper I/O (LLTDIO) driver' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LLTD\EnableLLTDIO' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on Responder (RSPNDR) driver' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting changes the operational behavior of the Responder network protocol driver. The Responder allows a computer to participate in Link Layer Topology Discovery requests so that it can be discovered and located on the network. It also allows a computer to participate in Quality-of-Service activities such as bandwidth estimation and network health analysis. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled (recommended): + 'Computer Configuration\Policies\Administrative Templates\Network\Link-Layer Topology Discovery\Turn on Responder (RSPNDR) driver' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LLTD\EnableRspndr' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Microsoft Peer-to-Peer Networking Services' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + The Peer Name Resolution Protocol (PNRP) allows for distributed resolution of a name to an IPv6 address and port number. The protocol operates in the context of clouds. A cloud is a set of peer computers that can communicate with each other by using the same IPv6 scope.Peer-to-Peer protocols allow for applications in the areas of RTC, collaboration, content distribution and distributed processing. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Network\Microsoft Peer-to-Peer Networking Services\Turn off Microsoft Peer-to-Peer Networking Services' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Peernet\Disabled' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prohibit installation and configuration of Network Bridge on your DNS domain network' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + You can use this procedure to control a user's ability to install and configure a Network Bridge.. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Network\Network Connections\Prohibit installation and configuration of Network Bridge on your DNS domain network' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Network Connections\NC_AllowNetBridge_NLA' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prohibit use of Internet Connection Sharing on your DNS domain network' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Although this "legacy" setting traditionally applied to the use of Internet Connection Sharing (ICS) in Windows 2000, Windows XP & Server 2003, this setting now freshly applies to the Mobile Hotspot feature in Windows 10 & Server 2016. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to On (recommended): + 'Computer Configuration\Policies\Administrative Templates\Network\Network Connections\Prohibit use of Internet Connection Sharing on your DNS domain network' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Network Connections\NC_ShowSharedAccessUI' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require domain users to elevate when setting a network's location' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether to require domain users to elevate when setting a network's location. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to On (recommended): + 'Computer Configuration\Policies\Administrative Templates\Network\Network Connections\Require domain users to elevate when setting a network's location' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Network Connections\NC_StdDomainUserSetLocation' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Print Spooler to accept client connections' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the Print Spooler service will accept client connections. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Printers\Allow Print Spooler to accept client connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Windows NT\\Printers\RegisterSpoolerRemoteRpcEndPoint' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Point and Print Restrictions: When installing drivers for a new connection' is set to 'Enabled: Show warning and elevation prompt' + platforms: win11 + platform: windows + description: | + This policy setting controls whether computers will show a warning and a security elevation prompt when users create a new printer connection using Point and Print. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Show warning and elevation prompt': + 'Computer Configuration\Policies\Administrative Templates\Printers\Point and Print Restrictions: When installing drivers for a new connection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Windows NT\\Printers\PointAndPrint\\NoWarningNoElevationOnInstall' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Point and Print Restrictions: When updating drivers for an existing connection' is set to 'Enabled: Show warning and elevation prompt' + platforms: win11 + platform: windows + description: | + This policy setting controls whether computers will show a warning and a security elevation prompt when users are updating drivers for an existing connection using Point and Print. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Show warning and elevation prompt': + 'Computer Configuration\Policies\Administrative Templates\Printers\Point and Print Restrictions: When updating drivers for an existing connection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Windows NT\\Printers\PointAndPrint\\UpdatePromptSettings' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure DNS over HTTPS (DoH) name resolution' is set to 'Enabled: Allow DoH' or higher (Automated) + platforms: win11 + platform: windows + description: | + This setting determines if DNS over HTTPS (DoH) is used by the system. DNS over HTTPS (DoH) is a protocol for performing remote Domain Name System (DNS) resolution over the Hypertext Transfer Protocol Secure (HTTPS). For additional information on DNS over HTTPS (DoH), visit: Secure DNS Client over HTTPS (DoH) on Windows Server 2022 | Microsoft Docs. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: Allow DoH (configuring to Enabled: Require DoH also conforms to the benchmark): + 'Computer Configuration\Policies\Administrative Templates\Network\DNSClient\Configure DNS over HTTPS (DoH) name resolution' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\DNSClient\\DoHPolicy' AND (data in (2,3))); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure NetBIOS settings' is set to 'Enabled: Disable NetBIOS name resolution on public networks' + platforms: win11 + platform: windows + description: | + This policy setting specifies if the Domain Name System (DNS) client will perform name resolution over Network Basic Input/Output System (NetBIOS). NetBIOS is a legacy name resolution method for internal Microsoft networking that predates the use of DNS for that purpose (pre–Active Directory). Some legacy applications still require the use of NetBIOS for full functionality. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Disable NetBIOS name resolution on public networks': + 'Computer Configuration\Policies\Administrative Templates\Network\DNS Client\Configure NetBIOS settings' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\DNSClient\\EnableNetbios' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off notifications network usage' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting blocks applications from using the network to send notifications to update tiles, tile badges, toast, or raw notifications. This policy setting turns off the connection between Windows and the Windows Push Notification Service (WNS). This policy setting also stops applications from being able to poll application services to update tiles. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Start Menu and Taskbar\Turn off notifications network usage' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Windows\\CurrentVersion\\PushNotifications\NoCloudApplicationNotification' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Redirection Guard' is set to 'Enabled: Redirection Guard Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Redirection Guard is enabled for the print spooler. Redirection Guard can prevent file redirections from being used within the print spooler. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Redirection Guard Enabled': + 'Computer Configuration\Policies\Administrative Templates\Printers\Configure Redirection Guard' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\RedirectionGuardPolicy' AND (data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure RPC connection settings: Protocol to use for outgoing RPC connections' is set to 'Enabled: RPC over TCP' + platforms: win11 + platform: windows + description: | + This policy setting controls which protocol and protocol settings to use for outgoing Remote Procedure Call (RPC) connections to a remote print spooler. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: RPC over TCP': + 'Computer Configuration\Policies\Administrative Templates\Printers\Configure RPC connection settings: Protocol to use for outgoing RPC connections' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (and newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\RPC\RpcUseNamedPipeProtocol' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure RPC connection settings: Use authentication for outgoing RPC connections' is set to 'Enabled: Default' + platforms: win11 + platform: windows + description: | + This policy setting controls which protocol and protocol settings to use for outgoing Remote Procedure Call (RPC) connections to a remote print spooler. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: RPC over TCP': + 'Computer Configuration\Policies\Administrative Templates\Printers\Configure RPC connection settings: Use authentication for outgoing RPC connections' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (and newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\RPC\RpcAuthentication' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure RPC listener settings: Protocols to allow for incoming RPC connections' is set to 'Enabled: RPC over TCP' + platforms: win11 + platform: windows + description: | + This policy setting controls which protocols incoming Remote Procedure Call (RPC) connections to the print spooler are allowed to use. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: RPC over TCP': + 'Computer Configuration\Policies\Administrative Templates\Printers\Configure RPC listener settings: Configure protocol options for incoming RPC connections' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (and newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\RPC\RpcProtocols' AND (data = 5)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure RPC listener settings: Authentication protocol to use for incoming RPC connections:' is set to 'Enabled: Negotiate' or higher + platforms: win11 + platform: windows + description: | + This policy setting controls which protocols incoming Remote Procedure Call (RPC) connections to the print spooler are allowed to use. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Negotiate': + 'Computer Configuration\Policies\Administrative Templates\Printers\Configure RPC listener settings: Configure protocol options for incoming RPC connections' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (and newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\RPC\ForceKerberosForRpc' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Manage processing of Queue-specific files' is set to 'Enabled: Limit Queue-specific files to Color profiles' + platforms: win11 + platform: windows + description: | + This policy setting manages how queue-specific files are processed during printer installation. At printer installation time, a vendor-supplied installation application can specify a set of files, of any type, to be associated with a particular print queue. The files are downloaded to each client that connects to the print server. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Limit Queue-specific files to Color profiles': + 'Computer Configuration\Policies\Administrative Templates\Printers\Manage processing of Queue-specific files' + Note: This Group Policy path is provided by the Group Policy template Printing.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (and newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\CopyFilesPolicy' AND (data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Limits print driver installation to Administrators' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether users that aren't Administrators can install print drivers on the system. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled. + 'Computer Configuration\Policies\Administrative Templates\MS Security Guide\Limits print driver installation to Administrators' + Note: This Group Policy path does not exist by default. An additional Group Policy template (SecGuide.admx/adml) is required - it is available from Microsoft at this link (https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-final-for-windows-10-v1903-and-windows-server/ba-p/701084). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\\PointAndPrint\RestrictDriverInstallationToAdministrators' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Include command line in process creation events' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the process creation command line text is logged in security audit events when a new process has been created. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Audit Process Creation\Include command line in process creation events' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\Audit\ProcessCreationIncludeCmdLine_Enabled' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Encryption Oracle Remediation' is set to 'Enabled: Force Updated Clients' + platforms: win11 + platform: windows + description: | + Some versions of the CredSSP protocol that is used by some applications (such as Remote Desktop Connection) are vulnerable to an encryption oracle attack against the client. This policy controls compatibility with vulnerable clients and servers and allows you to set the level of protection desired for the encryption oracle vulnerability. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Force Updated Clients': + 'Computer Configuration\Policies\Administrative Templates\System\Credentials Delegation\Encryption Oracle Remediation' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\CredSSP\\Parameters\AllowEncryptionOracle' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Remote host allows delegation of non-exportable credentials' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Remote host allows delegation of non-exportable credentials. When using credential delegation, devices provide an exportable version of credentials to the remote host. This exposes users to the risk of credential theft from attackers on the remote host. The Restricted Admin Mode and Windows Defender Remote Credential Guard features are two options to help protect against this risk. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Credentials Delegation\Remote host allows delegation of non-exportable credentials' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\CredentialsDelegation\AllowProtectedCreds' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_NG + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Virtualization Based Security is enabled. Virtualization Based Security uses the Windows Hypervisor to provide support for security services. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\EnableVirtualizationBasedSecurity' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Select Platform Security Level' is set to 'Secure Boot' or higher + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Virtualization Based Security (VBS) is enabled. VBS uses the Windows Hypervisor to provide support for security services. The recommended state for this setting is: Secure Boot or Secure Boot and DMA Protection. + + Note: VBS requires a 64-bit version of Windows with Secure Boot enabled, which in turn requires that Windows was installed with a UEFI BIOS configuration, not a Legacy BIOS configuration. In addition, if running Windows on a virtual machine, the hardware-assisted CPU virtualization feature (Intel VT-x or AMD-V) must be exposed by the host to the guest VM. More information on system requirements for this feature can be found at Windows Defender Credential Guard Requirements (Windows 10) | Microsoft Docs + + Note #2: Credential Guard and Device Guard are not currently supported when using Azure IaaS VMs. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Secure Boot or Secure Boot and DMA Protection: + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Select Platform Security Level' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\DeviceGuard\RequirePlatformSecurityFeatures' AND data in (1,3)); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Select Platform Security Level' is set to 'Secure Boot and DMA Protection' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Virtualization Based Security is enabled. Virtualization Based Security uses the Windows Hypervisor to provide support for security services. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Secure Boot and DMA Protection': + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Select Platform Security Level' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\RequirePlatformSecurityFeatures' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_NG + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Virtualization Based Protection of Code Integrity' is set to 'Enabled with UEFI lock' + platforms: win11 + platform: windows + description: | + This setting enables virtualization based protection of Kernel Mode Code Integrity. When this is enabled, kernel mode memory protections are enforced and the Code Integrity validation path is protected by the Virtualization Based Security feature. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled with UEFI lock': + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Virtualization Based Protection of Code Integrity' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\HypervisorEnforcedCodeIntegrity' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Require UEFI Memory Attributes Table' is set to 'True (checked)' + platforms: win11 + platform: windows + description: | + This option will only enable Virtualization Based Protection of Code Integrity on devices with UEFI firmware support for the Memory Attributes Table. Devices without the UEFI Memory Attributes Table may have firmware that is incompatible with Virtualization Based Protection of Code Integrity which in some cases can lead to crashes or data loss or incompatibility with certain plug-in cards. If not setting this option the targeted devices should be tested to ensure compatibility. + resolution: | + To establish the recommended configuration via GP, set the following UI path to TRUE: + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Require UEFI Memory Attributes Table' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\HVCIMATRequired' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Credential Guard Configuration' is set to 'Enabled with UEFI lock' + platforms: win11 + platform: windows + description: | + This setting lets users turn on Credential Guard with virtualization-based security to help protect credentials. The "Enabled with UEFI lock" option ensures that Credential Guard cannot be disabled remotely. In order to disable the feature, you must set the Group Policy to "Disabled" as well as remove the security functionality from each computer, with a physically present user, in order to clear configuration persisted in UEFI. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled with UEFI lock': + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Credential Guard Configuration' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\LsaCfgFlags' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Secure Launch Configuration' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Secure Launch protects the Virtualization Based Security environment from exploited vulnerabilities in device firmware. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Secure Launch Configuration' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\ConfigureSystemGuardLaunch' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn On Virtualization Based Security: Kernel-mode Hardware-enforced Stack Protection' is set to 'Enabled: Enabled in enforcement mode' + platforms: win11 + platform: windows + description: | + This policy setting enables Hardware-enforced Stack Protection for kernel-mode code. Kernel-mode data stacks are hardened with hardware-based shadow stacks, which store intended return address targets to ensure that program control flow is not tampered. The recommended state for this setting is: Enabled: Enabled in enforcement mode. + + Note: Virtualization Based Security (VBS) requires a 64-bit version of Windows with Secure Boot enabled, which in turn requires that Windows was installed with a UEFI BIOS configuration, not a Legacy BIOS configuration. In addition, if running Windows on a virtual machine, the hardware-assisted CPU virtualization feature (Intel VT-x or AMD- V) must be exposed by the host to the guest VM. More information on system requirements for this feature can be found at Windows Defender Credential Guard Requirements (Windows 10) | Microsoft Docs + Note #2: This specific security feature of VBS is only compatible with Windows 11 Release 22H2 (and newer). + Note #3: Only Intel CPUs from Tiger Lake and beyond or AMD CPUs Zen3 and beyond (both were release in fall 2020) are compatible with this security feature. + Note #4: Credential Guard and Device Guard are not currently supported when using Azure IaaS VMs. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: Enabled in enforcement mode: + 'Computer Configuration\Policies\Administrative Templates\System\Device Guard\Turn On Virtualization Based Security: Kernel-mode Hardware-enforced Stack Protection' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceGuard\ConfigureKernelShadowStacksLaunch' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices that match any of these device IDs' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of Plug and Play hardware IDs and compatible IDs for devices that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing a device whose hardware ID or compatible ID appears in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, devices can be installed and updated as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices that match any of these device IDs' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\DenyDeviceIDs' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices that match any of these device IDs: Prevent installation of devices that match any of these device IDs' is set to 'PCI\CC_0C0A' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of Plug and Play hardware IDs and compatible IDs for devices that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing a device whose hardware ID or compatible ID appears in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, devices can be installed and updated as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', and add 'PCI\CC_0C0A' to the Device IDs list: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices that match any of these device IDs' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\\DenyDeviceIDs\1' AND data = 'PCI\CC_0C0A'); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices that match any of these device IDs: Also apply to matching devices that are already installed.' is set to 'True' (checked) + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of Plug and Play hardware IDs and compatible IDs for devices that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing a device whose hardware ID or compatible ID appears in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, devices can be installed and updated as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', and check the 'Also apply to matching devices that are already installed'. checkbox: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices that match any of these device IDs' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\DenyDeviceIDsRetroactive' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices using drivers that match these device setup classes' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of device setup class globally unique identifiers (GUIDs) for device drivers that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing or updating device drivers whose device setup class GUIDs appear in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, Windows can install and update devices as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices using drivers that match these device setup classes' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\DenyDeviceClasses' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices using drivers that match these device setup classes: Prevent installation of devices using drivers for these device setup' is set to 'IEEE 1394 device setup classes' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of device setup class globally unique identifiers (GUIDs) for device drivers that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing or updating device drivers whose device setup class GUIDs appear in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, Windows can install and update devices as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, and add {d48179be-ec20-11d1-b6b8-00c04fa372a7}, {7ebefbc0-3200-11d2-b4c2-00a0C9697d07}, {c06ff265-ae09-48f0-812c-16753d7cba83}, and {6bdd1fc1-810f-11d0-bec7-08002be2092f} to the device setup classes list: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices using drivers that match these device setup classes' + query: | + SELECT data FROM registry WHERE ((key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\\DenyDeviceClasses\' AND data IN ('{d48179be-ec20-11d1-b6b8-00c04fa372a7}', '{7ebefbc0-3200-11d2-b4c2-00a0C9697d07}', '{c06ff265-ae09-48f0-812c-16753d7cba83}', '{6bdd1fc1-810f-11d0-bec7-08002be2092f}')) AND ((SELECT COUNT(*) FROM registry WHERE (key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\\DenyDeviceClasses\' AND data IN ('{d48179be-ec20-11d1-b6b8-00c04fa372a7}', '{7ebefbc0-3200-11d2-b4c2-00a0C9697d07}', '{c06ff265-ae09-48f0-812c-16753d7cba83}', '{6bdd1fc1-810f-11d0-bec7-08002be2092f}'))))=4); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent installation of devices using drivers that match these device setup classes: Also apply to matching devices that are already installed.' is set to 'True' (checked) + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify a list of device setup class globally unique identifiers (GUIDs) for device drivers that Windows is prevented from installing. This policy setting takes precedence over any other policy setting that allows Windows to install a device. + If you enable this policy setting, Windows is prevented from installing or updating device drivers whose device setup class GUIDs appear in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. + If you disable or do not configure this policy setting, Windows can install and update devices as allowed or prevented by other policy settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', and check the 'Also apply to matching devices that are already installed.' checkbox: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Device Installation Restrictions\Prevent installation of devices using drivers that match these device setup classes' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions\DenyDeviceClassesRetroactive' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent device metadata retrieval from the Internet' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to prevent Windows from retrieving device metadata from the Internet. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Device Installation\Prevent device metadata retrieval from the Internet' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata\PreventDeviceMetadataFromNetwork' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Boot-Start Driver Initialization Policy' is set to 'Enabled: Good, unknown and bad but critical' (Automated) + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify which boot-start drivers are initialized based on a classification determined by an Early Launch Antimalware boot-start driver. The Early Launch Antimalware boot-start driver can return the following classifications for each boot-start driver: + Good: The driver has been signed and has not been tampered with. + Bad: The driver has been identified as malware. It is recommended that you do not allow known bad drivers to be initialized. + Bad, but required for boot: The driver has been identified as malware, but the computer cannot successfully boot without loading this driver. + Unknown: This driver has not been attested to by your malware detection application and has not been classified by the Early Launch Antimalware boot-start driver. + If you enable this policy setting you will be able to choose which boot-start drivers to initialize the next time the computer is started. + If your malware detection application does not include an Early Launch Antimalware boot- start driver or if your Early Launch Antimalware boot-start driver has been disabled, this setting has no effect and all boot-start drivers are initialized. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 'Good, unknown and bad but critical': + 'Computer Configuration\Policies\Administrative Templates\System\Early Launch Antimalware\Boot-Start Driver Initialization Policy' + query: | + SELECT 1 FROM REGISTRY WHERE (PATH = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Policies\\EarlyLaunch\DriverLoadPolicy' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure registry policy processing: Do not apply during periodic background processing' is set to 'Enabled: FALSE' + platforms: win11 + platform: windows + description: | + The "Do not apply during periodic background processing" option prevents the system from updating affected policies in the background while the computer is in use. When background updates are disabled, policy changes will not take effect until the next user logon or system restart. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, then set the Do not apply during periodic background processing option to FALSE (unchecked): + 'Computer Configuration\Policies\Administrative Templates\System\Group Policy\Configure registry policy processing' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template GroupPolicy.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Group Policy\\{35378EAC-683F-11D2-A89A-00C04FBBCFA2}\NoBackgroundPolicy' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure registry policy processing: Process even if the Group Policy objects have not changed' is set to 'Enabled: TRUE' + platforms: win11 + platform: windows + description: | + The "Process even if the Group Policy objects have not changed" option updates and reapplies policies even if the policies have not changed. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled, then set the Process even if the Group Policy objects have not changed option to TRUE (checked): + 'Computer Configuration\Policies\Administrative Templates\System\Group Policy\Configure registry policy processing' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template GroupPolicy.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Group Policy\\{35378EAC-683F-11D2-A89A-00C04FBBCFA2}\NoGPOListChanges' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_domain_joined_required + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Continue experiences on this device' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the Windows device is allowed to participate in cross-device experiences (continue experiences). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Group Policy\Continue experiences on this device' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template GroupPolicy.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\EnableCdp' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_domain_joined_required + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off background refresh of Group Policy' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting prevents Group Policy from being updated while the computer is in use. + This policy setting applies to Group Policy for computers, users and Domain Controllers. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Group Policy\Turn off background refresh of Group Policy' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template GroupPolicy.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + -- The registry key is not present when policy is disabled, so query below is returning 1 when policy is disabled and registry value does not exist. It also return 1 in case policy is enabled and its registry value is 1 + SELECT 1 WHERE ( + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' AND name = 'DisableBkGndGroupPolicy' ) + ) OR ( + NOT EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\DisableBkGndGroupPolicy' AND data = 1 ) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_domain_joined_required + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off access to the Store' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to use the Store service for finding an application to open a file with an unhandled file type or protocol association. When a user opens a file type or protocol that is not associated with any applications on the computer, the user is given the choice to select a local application or use the Store service to find an application. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off access to the Store' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template ICM.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer\NoUseStoreOpenWith' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off downloading of print drivers over HTTP' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the computer can download print driver packages over HTTP. To set up HTTP printing, printer drivers that are not available in the standard operating system installation might need to be downloaded over HTTP. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off downloading of print drivers over HTTP' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template ICM.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\DisableWebPnPDownload' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off handwriting personalization data sharing' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting turns off data sharing from the handwriting recognition personalization tool. + The handwriting recognition personalization tool enables Tablet PC users to adapt handwriting recognition to their own writing style by providing writing samples. The tool can optionally share user writing samples with Microsoft to improve handwriting recognition in future versions of Windows. The tool generates reports and transmits them to Microsoft over a secure connection. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off handwriting personalization data sharing' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template ShapeCollector.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\TabletPC\PreventHandwritingDataSharing' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off handwriting recognition error reporting' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Turns off the handwriting recognition error reporting tool. + The handwriting recognition error reporting tool enables users to report errors encountered in Tablet PC Input Panel. The tool generates error reports and transmits them to Microsoft over a secure connection. Microsoft uses these error reports to improve handwriting recognition in future versions of Windows. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off handwriting recognition error reporting' + Note: This Group Policy path is provided by the Group Policy template InkWatson.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\HandwritingErrorReports\PreventHandwritingErrorReports' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Internet Connection Wizard if URL connection is referring to Microsoft.com' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the Internet Connection Wizard can connect to Microsoft to download a list of Internet Service Providers (ISPs). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Internet Connection Wizard if URL connection is referring to Microsoft.com' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Internet Connection Wizard\ExitOnMSICW' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Internet download for Web publishing and online ordering wizards' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether Windows will download a list of providers for the Web publishing and online ordering wizards. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Internet download for Web publishing and online ordering wizards' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\NoWebServices' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off printing over HTTP' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to disable the client computer's ability to print over HTTP, which allows the computer to print to printers on the intranet as well as the Internet. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off printing over HTTP' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Printers\DisableHTTPPrinting' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Registration if URL connection is referring to Microsoft.com' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the Windows Registration Wizard connects to Microsoft.com for online registration. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Registration if URL connection is referring to Microsoft.com' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Registration Wizard Control\NoRegistration' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Search Companion content file updates' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Search Companion should automatically download content updates during local and Internet searches. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Search Companion content file updates' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\SearchCompanion\DisableContentFileUpdates' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the "Order Prints" picture task' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the "Order Prints Online" task is available from Picture Tasks in Windows folders. + The Order Prints Online Wizard is used to download a list of providers and allow users to order prints online. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off the "Order Prints" picture task' + Note: This Group Policy path is provided by the Group Policy template ICM.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\NoOnlinePrintsWizard' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the "Publish to Web" task for files and folders' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the tasks Publish this file to the Web, Publish this folder to the Web, and Publish the selected items to the Web are available from File and Folder Tasks in Windows folders. The Web Publishing wizard is used to download a list of providers and allow users to publish content to the Web. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off the "Publish to Web" task for files and folders' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\NoPublishingWizard' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the Windows Messenger Customer Experience Improvement Program' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the Windows Customer Experience Improvement Program can collect anonymous information about how Windows is used. Microsoft uses information collected through the Windows Customer Experience Improvement Program to improve features that are most used and to detect flaws so that they can be corrected more quickly. Enabling this setting will reduce the amount of data Microsoft is able to gather for this purpose. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off the Windows Messenger Customer Experience Improvement Program' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Messenger\\Client\CEIP' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Windows Customer Experience Improvement Program' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Windows Messenger can collect anonymous information about how the Windows Messenger software and service is used. + Microsoft uses information collected through the Windows Customer Experience Improvement Program to detect software flaws so that they can be corrected more quickly, enabling this setting will reduce the amount of data Microsoft is able to gather for this purpose. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Windows Customer Experience Improvement Program' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\SQMClient\\Windows\CEIPEnable' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Windows Error Reporting' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether or not errors are reported to Microsoft. Error Reporting is used to report information about a system or application that has failed or has stopped responding and is used to improve the quality of the product. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication settings\Turn off Windows Error Reporting' + query: | + SELECT COUNT(*) FROM registry WHERE ((path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Error Reporting\Disabled' AND data = 1) OR (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\PCHealth\\ErrorReporting\DoReport' AND data = 0))=2; + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Support device authentication using certificate' is set to 'Enabled: Automatic' + platforms: win11 + platform: windows + description: | + This policy setting allows you to set support for Kerberos to attempt authentication using the certificate for the device to the domain. + Support for device authentication using certificate will require connectivity to a DC in the device account domain which supports certificate authentication for computer accounts. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: Automatic: + 'Computer Configuration\Policies\Administrative Templates\System\Kerberos\Support device authentication using certificate' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Kerberos.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\kerberos\\parameters\DevicePKInitBehavior' AND data = 0) AND (SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\kerberos\\parameters\DevicePKInitEnabled' AND data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enumeration policy for external devices incompatible with Kernel DMA Protection' is set to 'Enabled: Block All' + platforms: win11 + platform: windows + description: | + This policy is intended to provide additional security against external DMA-capable devices. It allows for more control over the enumeration of external DMA-capable devices that are not compatible with DMA Remapping/device memory isolation and sandboxing. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: Block All: + 'Computer Configuration\Policies\Administrative Templates\System\Kernel DMA Protection\Enumeration policy for external devices incompatible with Kernel DMA Protection' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DmaGuard.admx/adml that is included with the Microsoft Windows 10 Release 1809 & Server 2019 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Kernel DMA Protection\DeviceEnumerationPolicy' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disallow copying of user input methods to the system account for sign-in' is set to 'Enabled' (Automated) + platforms: win11 + platform: windows + description: | + This policy prevents automatic copying of user input methods to the system account for use on the sign-in screen. The user is restricted to the set of input methods that are enabled in the system account. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Locale Services\Disallow copying of user input methods to the system account for sign-in' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Globalization.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Control Panel\\International\BlockUserInputMethodsForSignIn' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Block user from showing account details on sign-in' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy prevents the user from showing account details (email address or user name) on the sign-in screen. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Block user from showing account details on sign-in' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\BlockUserFromShowingAccountDetailsOnSignin' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not display network selection UI' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control whether anyone can interact with available networks UI on the logon screen. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Do not display network selection UI' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\DontDisplayNetworkSelectionUI' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not enumerate connected users on domain-joined computers' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting prevents connected users from being enumerated on domain-joined computers. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Do not enumerate connected users on domain-joined computers' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\DontEnumerateConnectedUsers' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enumerate local users on domain-joined computers' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows local users to be enumerated on domain-joined computers. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Enumerate local users on domain-joined computers' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\EnumerateLocalUsers' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off app notifications on the lock screen' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to prevent app notifications from appearing on the lock screen. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Turn off app notifications on the lock screen' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\DisableLockScreenAppNotifications' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off picture password sign-in' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control whether a domain user can sign in using a picture password. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Turn off picture password sign-in' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\BlockDomainPicturePassword' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on convenience PIN sign-in' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control whether a domain user can sign in using a convenience PIN. In Windows 10, convenience PIN was replaced with Passport, which has stronger security properties. To configure Passport for domain users, use the policies under Computer Configuration\Administrative Templates\Windows Components\Microsoft Passport for Work. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Logon\Turn on convenience PIN sign-in' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\AllowDomainPINLogon' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Clipboard synchronization across devices' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting determines whether Clipboard contents can be synchronized across devices. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\OS Policies\Allow Clipboard synchronization across devices' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\AllowCrossDeviceClipboard' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow upload of User Activities' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether published User Activities can be uploaded to the cloud. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\OS Policies\Allow upload of User Activities' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\UploadUserActivities' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow network connectivity during connected-standby (on battery)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control the network connectivity state in standby on modern standby-capable systems. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Allow network connectivity during connected-standby (on battery)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\f15576e8-98b7-4186-b944-eafa664402d9\DCSettingIndex' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow network connectivity during connected-standby (plugged in)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control the network connectivity state in standby on modern standby-capable systems. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Allow network connectivity during connected-standby (plugged in)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\f15576e8-98b7-4186-b944-eafa664402d9\ACSettingIndex' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow standby states (S1-S3) when sleeping (on battery)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting manages whether or not Windows is allowed to use standby states when putting the computer in a sleep state. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Allow standby states (S1-S3) when sleeping (on battery)'' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\DCSettingIndex' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow standby states (S1-S3) when sleeping (plugged in)' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting manages whether or not Windows is allowed to use standby states when putting the computer in a sleep state. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Allow standby states (S1-S3) when sleeping (plugged in)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\ACSettingIndex' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require a password when a computer wakes (on battery)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Specifies whether or not the user is prompted for a password when the system resumes from sleep. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Require a password when a computer wakes (on battery)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\0e796bdb-100d-47d6-a2d5-f7d2daa51f51\DCSettingIndex' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require a password when a computer wakes (plugged in)' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Specifies whether or not the user is prompted for a password when the system resumes from sleep. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Power Management\Sleep Settings\Require a password when a computer wakes (plugged in)' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\0e796bdb-100d-47d6-a2d5-f7d2daa51f51\ACSettingIndex' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Offer Remote Assistance' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to turn on or turn off Offer (Unsolicited) Remote Assistance on this computer. Help desk and support personnel will not be able to proactively offer assistance, although they can still respond to user assistance requests. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Remote Assistance\Configure Offer Remote Assistance' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\fAllowUnsolicited' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Solicited Remote Assistance' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to turn on or turn off Solicited (Ask for) Remote Assistance on this computer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Remote Assistance\Configure Solicited Remote Assistance' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\fAllowToGetHelp' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable RPC Endpoint Mapper Client Authentication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether RPC clients authenticate with the Endpoint Mapper Service when the call they are making contains authentication information. The Endpoint Mapper Service on computers running Windows NT4 (all service packs) cannot process authentication information supplied in this manner. This policy setting can cause a specific issue with 1-way forest trusts if it is applied to the trusting domain DCs (see Microsoft KB3073942), so we do not recommend applying it to Domain Controllers. + Note: This policy will not in effect until the system is rebooted. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Remote Procedure Call\Enable RPC Endpoint Mapper Client Authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Rpc\EnableAuthEpResolution' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Restrict Unauthenticated RPC clients' is set to 'Enabled: Authenticated' + platforms: win11 + platform: windows + description: | + This policy setting controls how the RPC server runtime handles unauthenticated RPC clients connecting to RPC servers. + This policy setting impacts all RPC applications. In a domain environment this policy setting should be used with caution as it can impact a wide range of functionality including group policy processing itself. Reverting a change to this policy setting can require manual intervention on each affected machine. This policy setting should never be applied to a Domain Controller. + A client will be considered an authenticated client if it uses a named pipe to communicate with the server or if it uses RPC Security. RPC Interfaces that have specifically requested to be accessible by unauthenticated clients may be exempt from this restriction, depending on the selected value for this policy setting. + -- "None" allows all RPC clients to connect to RPC Servers running on the machine on which the policy setting is applied. + -- "Authenticated" allows only authenticated RPC Clients (per the definition above) to connect to RPC Servers running on the machine on which the policy setting is applied. Exemptions are granted to interfaces that have requested them. + -- "Authenticated without exceptions" allows only authenticated RPC Clients (per the definition above) to connect to RPC Servers running on the machine on which the policy setting is applied. No exceptions are allowed. This value has the potential to cause serious problems and is not recommended. + Note: This policy setting will not be applied until the system is rebooted. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Authenticated': + 'Computer Configuration\Policies\Administrative Templates\System\Remote Procedure Call\Restrict Unauthenticated RPC clients' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Rpc\RestrictRemoteClients' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Microsoft Support Diagnostic Tool: Turn on MSDT interactive communication with support provider' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting configures Microsoft Support Diagnostic Tool (MSDT) interactive communication with the support provider. MSDT gathers diagnostic data for analysis by support professionals. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Troubleshooting and Diagnostics\Microsoft Support Diagnostic Tool\Microsoft Support Diagnostic Tool: Turn on MSDT interactive communication with support provider + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template MSDT.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\ScriptedDiagnosticsProvider\\Policy\DisableQueryRemoteServer' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable/Disable PerfTrack' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to enable or disable tracking of responsiveness events. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Troubleshooting and Diagnostics\Windows Performance PerfTrack\Enable/Disable PerfTrack' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template PerformancePerftrack.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft\\Windows\\WDI\\{9c5a40da-b965-4fc3-8781-88dd50a6299d}\ScenarioExecutionEnabled' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the advertising ID' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting turns off the advertising ID, preventing apps from using the ID for experiences across apps. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\User Profiles\Turn off the advertising ID' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template UserProfiles.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft\\Windows\\AdvertisingInfo\DisabledByGroupPolicy' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable Windows NTP Client' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the Windows NTP Client is enabled. Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers. You might want to disable this service if you decide to use a third-party time provider. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\System\Windows Time Service\Time Providers\Enable Windows NTP Client' + Note: This Group Policy path is provided by the Group Policy template W32Time.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft\\W32Time\\TimeProviders\\NtpClient\Enabled' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable Windows NTP Server' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether the Windows NTP Server is enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Windows Time Service\Time Providers\Enable Windows NTP Server' + Note: This Group Policy path is provided by the Group Policy template W32Time.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\W32Time\\TimeProviders\\NtpServer' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Allow a Windows app to share application data between users' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy manages a Windows app's ability to share data between users who have installed the + app. Data is shared through the SharedLocal folder. This folder is available through the + Windows.Storage API. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\App Package Deployment\Allow a Windows app to share application data between users' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\AppModel\\StateManager\\AllowSharedLocalAppData' AND data == 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Prevent non-admin users from installing packaged Windows apps' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting manages non-Administrator users' ability to install Windows app packages. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\App Package Deployment\Prevent non-admin users from installing packaged Windows apps' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Appx\\BlockNonAdminUserInstall' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Let Windows apps activate with voice while the system is locked' is set to 'Enabled Force Deny' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Windows apps can be activated by voice (apps and Cortana) while the system is locked. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled Force Deny': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\App Privacy\Let Windows apps activate with voice while the system is locked' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy\\LetAppsActivateWithVoiceAboveLock' AND data == 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Allow Microsoft accounts to be optional' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting lets you control whether Microsoft accounts are optional for Windows Store + apps that require an account to sign in. This policy only affects Windows Store apps that support it. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\App runtime\Allow Microsoft accounts to be optional' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\MSAOptional' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Block launching Universal Windows apps with Windows Runtime API access from hosted content' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether Microsoft Store apps with Windows Runtime API access directly from web content can be launched. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\App runtime\Block launching Universal Windows apps with Windows Runtime API access from hosted content' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\BlockHostedAppAccessWinRT' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Disallow Autoplay for non-volume devices' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting disallows AutoPlay for MTP devices like cameras or phones. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\AutoPlay Policies\Disallow Autoplay for non-volume devices' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer\\NoAutoplayfornonVolume' AND data != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Set the default behavior for AutoRun' is set to 'Enabled Do not execute any autorun commands' + platforms: win11 + platform: windows + description: | + This policy setting sets the default behavior for Autorun commands. Autorun commands are + generally stored in autorun.inf files. They often launch the installation program or other routines. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled Do not execute any autorun commands': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\AutoPlay Policies\Set the default behavior for AutoRun' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoAutorun' AND data == 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: CIS - Ensure 'Turn off Autoplay' is set to 'Enabled All drives' + platforms: win11 + platform: windows + description: | + This policy setting sets the default behavior for Autorun commands. Autorun commands are + generally stored in autorun.inf files. They often launch the installation program or other routines. + resolution: | + Automatic method: + Ask your system administrator to establish the recommended configuration via GP, set the following UI path to 'Enabled All drives': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\AutoPlay Policies\Turn off Autoplay' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoDriveTypeAutoRun' AND data == 255); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure enhanced anti-spoofing' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether enhanced anti-spoofing is configured for devices which support it. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Biometrics\Facial Features\Configure enhanced anti-spoofing' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Biometrics.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Biometrics\\FacialFeatures\EnhancedAntiSpoofing' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow access to BitLocker-protected fixed data drives from earlier versions of Windows' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting configures whether or not fixed data drives formatted with the FAT file system can be unlocked and viewed on computers running Windows Server 2008 (non-R2), Windows Vista, Windows XP with Service Pack 3 (SP3), or Windows XP with Service Pack 2 (SP2) operating systems. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Allow access to BitLocker-protected fixed data drives from earlier versions of Windows' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVDiscoveryVolumeType' AND data = ''); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + The "Allow data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected fixed data drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for fixed data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for fixed data drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVRecovery' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Allow data recovery agent' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + The "Allow data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected fixed data drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)'': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker-protected fixed drives can be recovered: Allow data recovery agent' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft\\FVE\FDVManageDRA' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Recovery Password' is set to 'Enabled: Allow 48-digit recovery password' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Allow 48-digit recovery password': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker-protected fixed drives can be recovered: Recovery Password' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVRecoveryPassword' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Recovery Key' is set to 'Enabled: Allow 256-bit recovery key' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Allow 256-bit recovery key': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered: Recovery Key' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVRecoveryKey' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Omit recovery options from the BitLocker setup wizard' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)'': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered: Omit recovery options from the BitLocker setup wizard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVHideRecoveryPage' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Save BitLocker recovery information to AD DS for fixed data drives' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for fixed data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered: Save BitLocker recovery information to AD DS for fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVActiveDirectoryBackup' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Configure storage of BitLocker recovery information to AD DS' is set to 'Enabled: Backup recovery passwords and key packages' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for fixed data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Backup recovery passwords and key packages': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered: Configure storage of BitLocker recovery information to AD DS:' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVActiveDirectoryInfoToStore' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected fixed drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for fixed data drives' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for fixed data drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)'': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Choose how BitLocker- protected fixed drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVRequireActiveDirectoryBackup' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of hardware-based encryption for fixed data drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage BitLocker's use of hardware-based encryption on fixed data drives and specify which encryption algorithms it can use with hardware-based encryption. Using hardware-based encryption can improve performance of drive operations that involve frequent reading or writing of data to the drive. + You can specify additional options that control whether BitLocker software-based encryption is used instead of hardware-based encryption on computers that do not support hardware-based encryption and whether you want to restrict the encryption algorithms and cipher suites used with hardware-based encryption. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Configure use of hardware-based encryption for fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVHardwareEncryption' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of passwords for fixed data drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether a password is required to unlock BitLocker-protected fixed data drives. + Note: This setting is enforced when turning on BitLocker, not when unlocking a volume. BitLocker will allow unlocking a drive with any of the protectors available on the drive. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Configure use of passwords for fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVPassphrase' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of smart cards on fixed data drives' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether smart cards can be used to authenticate user access to the BitLocker-protected fixed data drives on a computer. Smart cards can be used to authenticate user access to the drive. You can require smart card authentication by selecting the "Require use of smart cards on fixed data drives" check box. + Note: This setting is enforced when turning on BitLocker, not when unlocking a drive. BitLocker will allow unlocking a drive with any of the protectors available on the drive. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Configure use of smart cards on fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\Microsoft\\FVE\FDVAllowUserCert' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of smart cards on fixed data drives: Require use of smart cards on fixed data drives' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether smart cards must be used to authenticate user access to the BitLocker-protected fixed data drives on a computer. Smart cards can be used to authenticate user access to the drive. You can require a smart card authentication by selecting the "Require use of smart cards on fixed data drives" check box. + Note: This setting is enforced when turning on BitLocker, not when unlocking a drive. BitLocker will allow unlocking a drive with any of the protectors available on the drive. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: True (checked): + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives\Configure use of smart cards on fixed data drives: Require use of smart cards on fixed data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\FDVEnforceUserCert' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow enhanced PINs for startup' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure whether or not enhanced startup PINs are used with BitLocker. + Enhanced startup PINs permit the use of characters including uppercase and lowercase letters, symbols, numbers, and spaces. This policy setting is applied when you turn on BitLocker. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Allow enhanced PINs for startup' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\UseEnhancedPin' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Secure Boot for integrity validation' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure whether Secure Boot will be allowed as the platform integrity provider for BitLocker operating system drives. Secure Boot ensures that the PC's pre-boot environment only loads firmware that is digitally signed by authorized software publishers. Secure Boot also provides more flexibility for managing pre-boot configuration than legacy BitLocker integrity checks. Secure Boot requires a system that meets the UEFI 2.3.1 Specifications for Class 2 and Class 3 computers. + When this policy is enabled and the hardware is capable of using Secure Boot for BitLocker scenarios, the "Use enhanced Boot Configuration Data validation profile" group policy setting is ignored and Secure Boot verifies BCD settings according to the Secure Boot policy setting, which is configured separately from BitLocker. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Allow Secure Boot for integrity validation' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSAllowSecureBootForIntegrity' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + The "Allow certificate-based data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected operating system drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + In "Save BitLocker recovery information to Active Directory Domain Services", choose which BitLocker recovery information to store in AD DS for operating system drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for operating system drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSRecovery' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Allow data recovery agent' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + The "Allow certificate-based data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected operating system drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Allow data recovery agent' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSManageDRA' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Recovery Password' is set to 'Enabled: Require 48-digit recovery password' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Require 48-digit recovery password': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Recovery Password' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSRecoveryPassword' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Recovery Key' is set to 'Enabled: Do not allow 256-bit recovery key' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Do not allow 256-bit recovery key': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Recovery Key' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSRecoveryKey' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Omit recovery options from the BitLocker setup wizard' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Omit recovery options from the BitLocker setup wizard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSHideRecoveryPage' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Save BitLocker recovery information to AD DS for operating system drives' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services", choose which BitLocker recovery information to store in AD DS for operating system drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Save' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSActiveDirectoryBackup' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Configure storage of BitLocker recovery information to AD DS:' is set to 'Enabled: Store recovery passwords and key packages' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services", choose which BitLocker recovery information to store in AD DS for operating system drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. Storing the key package supports recovering data from a drive that has been physically corrupted. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Store recovery passwords and key packages': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Configure storage of BitLocker recovery information to AD DS:' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSActiveDirectoryInfoToStore' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected operating system drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for operating system drives' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected operating system drives are recovered in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for operating system drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Choose how BitLocker-protected operating system drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for operating system drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSRequireActiveDirectoryBackup' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of hardware-based encryption for operating system drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage BitLocker's use of hardware-based encryption on operating system drives and specify which encryption algorithms it can use with hardware-based encryption. Using hardware-based encryption can improve performance of drive operations that involve frequent reading or writing of data to the drive. + You can specify additional options that control whether BitLocker software-based encryption is used instead of hardware-based encryption on computers that do not support hardware-based encryption and whether you want to restrict the encryption algorithms and cipher suites used with hardware-based encryption. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Configure use of hardware-based encryption for operating system drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSHardwareEncryption' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of passwords for operating system drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies the constraints for passwords used to unlock BitLocker-protected operating system drives. + Note: This setting is enforced when turning on BitLocker, not when unlocking a volume. BitLocker will allow unlocking a drive with any of the protectors available on the drive. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Configure use of passwords for operating system drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\OSPassphrase' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require additional authentication at startup' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure whether BitLocker requires additional authentication each time the computer starts and whether you are using BitLocker with or without a Trusted Platform Module (TPM). This policy setting is applied when you turn on BitLocker. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Require additional authentication at startup' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\UseAdvancedStartup' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require additional authentication at startup: Allow BitLocker without a compatible TPM' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure whether you can use BitLocker without a Trusted Platform Module (TPM), instead using a password or startup key on a USB flash drive. This policy setting is applied when you turn on BitLocker. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Operating System Drives\Require additional authentication at startup: Allow BitLocker without a compatible TPM' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\EnableBDEWithNoTPM' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow access to BitLocker-protected removable data drives from earlier versions of Windows' is set to 'Disabled' (Automated) + platforms: win11 + platform: windows + description: | + This policy setting configures whether or not removable data drives formatted with the FAT file system can be unlocked and viewed on computers running Windows Server 2008 (non-R2), Windows Vista, Windows XP with Service Pack 3 (SP3), or Windows XP with Service Pack 2 (SP2) operating systems. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Allow access to BitLocker-protected removable data drives from earlier versions of Windows' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVDiscoveryVolumeType' AND data = ''); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + The "Allow data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected removable data drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for removable data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for removable data drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVRecovery' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Allow data recovery agent' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + The "Allow data recovery agent" check box is used to specify whether a Data Recovery Agent can be used with BitLocker-protected removable data drives. Before a Data Recovery Agent can be used it must be added from the Public Key Policies item in either the Group Policy Management Console or the Local Group Policy Editor. Consult the BitLocker Drive Encryption Deployment Guide on Microsoft TechNet for more information about adding Data Recovery Agents. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Allow data recovery agent' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVManageDRA' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Recovery Password' is set to 'Enabled: Do not allow 48- digit recovery password' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Do not allow 48-digit recovery password': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Recovery Password' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVRecoveryPassword' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Recovery Key' is set to 'Enabled: Do not allow 256-bit recovery key' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Configure user storage of BitLocker recovery information" select whether users are allowed, required, or not allowed to generate a 48-digit recovery password or a 256-bit recovery key. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Do not allow 256-bit recovery key': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Recovery Key' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVRecoveryKey' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Omit recovery options from the BitLocker setup wizard' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + Select "Omit recovery options from the BitLocker setup wizard" to prevent users from specifying recovery options when they enable BitLocker on a drive. This means that you will not be able to specify which recovery option to use when you enable BitLocker, instead BitLocker recovery options for the drive are determined by the policy setting. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Omit recovery options from the BitLocker setup wizard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVHideRecoveryPage' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Save BitLocker recovery information to AD DS for removable data drives' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for removable data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Save BitLocker recovery information to AD DS for removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVActiveDirectoryBackup' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Configure storage of BitLocker recovery information to AD DS:' is set to 'Enabled: Backup recovery passwords and key packages' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + In "Save BitLocker recovery information to Active Directory Domain Services" choose which BitLocker recovery information to store in AD DS for removable data drives. If you select "Backup recovery password and key package", both the BitLocker recovery password and key package are stored in AD DS. If you select "Backup recovery password only", only the recovery password is stored in AD DS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Backup recovery passwords and key packages': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Configure storage of BitLocker recovery information to AD DS:' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVActiveDirectoryInfoToStore' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Choose how BitLocker-protected removable drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for removable data drives' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control how BitLocker-protected removable data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker. + Select the "Do not enable BitLocker until recovery information is stored in AD DS for removable data drives" check box if you want to prevent users from enabling BitLocker unless the computer is connected to the domain and the backup of BitLocker recovery information to AD DS succeeds. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Choose how BitLocker-protected removable drives can be recovered: Do not enable BitLocker until recovery information is stored to AD DS for removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVRequireActiveDirectoryBackup' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of hardware-based encryption for removable data drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage BitLocker's use of hardware-based encryption on removable data drives and specify which encryption algorithms it can use with hardware- based encryption. Using hardware-based encryption can improve performance of drive operations that involve frequent reading or writing of data to the drive. + You can specify additional options that control whether BitLocker software-based encryption is used instead of hardware-based encryption on computers that do not support hardware-based encryption and whether you want to restrict the encryption algorithms and cipher suites used with hardware-based encryption. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Configure use of hardware-based encryption for removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVHardwareEncryption' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of passwords for removable data drives' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether a password is required to unlock BitLocker-protected removable data drives. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Configure use of passwords for removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVPassphrase' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of smart cards on removable data drives' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether smart cards can be used to authenticate user access to BitLocker-protected removable data drives on a computer. + Smart cards can be used to authenticate user access to the drive. You can require smart card authentication by selecting the "Require use of smart cards on removable data drives" check box. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Configure use of smart cards on removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVAllowUserCert' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure use of smart cards on removable data drives: Require use of smart cards on removable data drives' is set to 'Enabled: True' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether smart cards must be used to authenticate user access to BitLocker-protected removable data drives on a computer. + Smart cards can be used to authenticate user access to the drive. You can require smart card authentication by selecting the "Require use of smart cards on removable data drives" check box. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: True (checked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Configure use of smart cards on removable data drives: Require use of smart cards on removable data drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVEnforceUserCert' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Deny write access to removable drives not protected by BitLocker' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting configures whether BitLocker protection is required for a computer to be able to write data to a removable data drive. + All removable data drives that are not BitLocker-protected will be mounted as read-only. If the drive is protected by BitLocker, it will be mounted with read and write access. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Deny write access to removable drives not protected by BitLocker' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Policies\\Microsoft\\FVE\RDVDenyWriteAccess' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Deny write access to removable drives not protected by BitLocker: Do not allow write access to devices configured in another organization' is set to 'Enabled: False' + platforms: win11 + platform: windows + description: | + This policy setting configures whether the computer will be able to write data to BitLocker- protected removable drives that were configured in another organization. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: False (unchecked)': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Removable Data Drives\Deny write access to removable drives not protected by BitLocker: Do not allow write access to devices configured in another organization' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\RDVDenyCrossOrg' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disable new DMA devices when this computer is locked' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to block direct memory access (DMA) for all hot pluggable PCI downstream ports until a user logs into Windows. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\BitLocker Drive Encryption\Disable new DMA devices when this computer is locked' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template VolumeEncryption.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\FVE\DisableExternalDMAUnderLock' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_BitLocker + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Use of Camera' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the use of Camera devices on the machine are + permitted. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Camera\Allow Use of Camera' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Camera\AllowCamera' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off cloud consumer account state content' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether cloud consumer account state content is allowed in all Windows experiences. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Turn off cloud consumer account state content' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\\Windows\\CloudContent\DisableConsumerAccountStateContent' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off cloud optimized content' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting turns off cloud optimized content in all Windows experiences. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Turn off cloud optimized content' + query: | + Select 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent\DisableCloudOptimizedContent' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Microsoft consumer experiences' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting turns off experiences that help consumers make the most of their devices and Microsoft account. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Turn off Microsoft consumer experiences' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent\DisableWindowsConsumerFeatures' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require pin for pairing' is set to 'Enabled: First Time' OR 'Enabled: Always' + platforms: win11 + platform: windows + description: | + This policy setting controls whether or not a PIN is required for pairing to a wireless display device. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: First Time' OR 'Enabled: Always': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Connect\Require pin for pairing' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\Windows\\Connect\RequirePinForPairing' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not display the password reveal button' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure the display of the password reveal button in password entry user experiences. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Credential User Interface\Do not display the password reveal button' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\CredUI\DisablePasswordReveal' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enumerate administrator accounts on elevation' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether administrator accounts are displayed when a user attempts to elevate a running application. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Credential User Interface\Enumerate administrator accounts on elevation' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\CredUI\EnumerateAdministrators' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent the use of security questions for local accounts' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether security questions can be used to reset local account passwords. The security question feature does not apply to domain accounts, only local accounts on the workstation. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Credential User Interface\Prevent the use of security questions for local accounts' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\NoLocalPasswordResetQuestions' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Diagnostic Data' is set to 'Enabled: Diagnostic data off (not recommended)' or 'Enabled: Send required diagnostic data' + platforms: win11 + platform: windows + description: | + This policy setting determines the amount of diagnostic and usage data reported to Microsoft: + - A value of (0) Diagnostic data off (not recommended). Using this value, no diagnostic data is sent from the device. This value is only supported on Enterprise, Education, and Server editions. If you choose this setting, devices in your organization will still be secure. + - A value of (1) Send required diagnostic data. This is the minimum diagnostic data necessary to keep Windows secure, up to date, and performing as expected. Using this value disables the Optional diagnostic data control in the Settings app. + - A value of (3)Send optional diagnostic data. Additional diagnostic data is collected that helps us to detect, diagnose and fix issues, as well as make product improvements. Required diagnostic data will always be included when you choose to send optional diagnostic data. Optional diagnostic data can also include diagnostic log files and crash dumps. Use the Limit Dump Collection and the Limit Diagnostic Log Collection policies for more granular control of what optional diagnostic data is sent. + Windows telemetry settings apply to the Windows operating system and some first party apps. This setting does not apply to third party apps running on Windows 10/11. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 'Diagnostic data off (not recommended)' or Enabled: 'Send required diagnostic data': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Allow Telemetry' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\AllowTelemetry' AND (data = 0 OR data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Authenticated Proxy usage for the Connected User Experience and Telemetry service' is set to 'Enabled: Disable Authenticated Proxy usage' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the Connected User Experience and Telemetry service can automatically use an authenticated proxy to send data back to Microsoft. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Disable Authenticated Proxy usage': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Configure Authenticated Proxy usage for the Connected User Experience and Telemetry service' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\DisableEnterpriseAuthProxy' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disable OneSettings Downloads' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy is meant for Windows 11. + This policy setting controls whether Windows attempts to connect with the OneSettings service to download configuration settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Disable OneSettings Downloads' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\\DisableOneSettingsDownloads' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not show feedback notifications' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows an organization to prevent its devices from showing feedback questions from Microsoft. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Do not show feedback notifications' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\DoNotShowFeedbackNotifications' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable OneSettings Auditing' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy is meant for Windows 11. + This policy setting controls whether Windows records attempts to connect with the OneSettings service to the Operational EventLog. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Enable OneSettings Auditing' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\\EnableOneSettingsAuditing' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Limit Diagnostic Log Collection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy is meant for Windows 11. + This policy setting controls whether additional diagnostic logs are collected when more information is needed to troubleshoot a problem on the device. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Limit Diagnostic Log Collection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\\LimitDiagnosticLogCollection' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Limit Dump Collection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy is meant for Windows 11. + This policy setting limits the type of dumps that can be collected when more information is needed to troubleshoot a problem. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled. + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Limit Dump Collection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\LimitDumpCollection' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Toggle user control over Insider builds' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users can access the Insider build controls in the Advanced Options for Windows Update. These controls are located under "Get Insider builds," and enable users to make their devices available for downloading and installing Windows preview software. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Data Collection and Preview Builds\Toggle user control over Insider builds' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\PreviewBuilds\AllowBuildPreview' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Download Mode' is NOT set to 'Enabled: Internet' + platforms: win11 + platform: windows + description: | + This policy setting specifies the download method that Delivery Optimization can use in downloads of Windows Updates, Apps and App updates. The following methods are supported: + 0 = HTTP only, no peering. + 1 = HTTP blended with peering behind the same NAT. + 2 = HTTP blended with peering across a private group. Peering occurs on devices in the same Active Directory Site (if exist) or the same domain by default. When this option is selected, peering will cross NATs. To create a custom group use Group ID in combination with Mode 2. + 3 = HTTP blended with Internet Peering. + 99 = Simple download mode with no peering. Delivery Optimization downloads using HTTP only and does not attempt to contact the Delivery Optimization cloud services. + 100 = Bypass mode. Do not use Delivery Optimization and use BITS instead. + resolution: | + To establish the recommended configuration via GP, set the following UI path to any value other than Enabled: Internet (3): + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Delivery Optimization\Download Mode' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DeliveryOptimization.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization\DODownloadMode' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Custom SSPs and APs to be loaded into LSASS' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the configuration under which the Local Security Authority Subsystem Service (LSASS) will load custom Security Support Provider/Authentication Package (SSP/AP). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\System\Local Security Authority\Allow Custom SSPs and APs to be loaded into LSASS' + + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\Policies\\Microsoft\\Windows\\System\\AllowCustomSSPsAPs' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configures LSASS to run as a protected process' is set to 'Enabled: Enabled with UEFI Lock' + platforms: win11 + platform: windows + description: | + This policy setting controls whether the Local Security Authority Subservice Service (LSASS) runs in protected mode and also has the option to lock in protected mode with Unified Extensible Firmware Interface (UEFI). The Local Security Authority (LSA), which includes the LSASS process, validates users for local and remote sign-ins and enforces local security policies. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: Enabled with UEFI Lock: + 'Computer Configuration\Policies\Administrative Templates\System\Local Security Authority\Configures LSASS to run as a protected process' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\Control\LSA\RunAsPPL' and data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Application: Control Event Log behavior when the log file reaches its maximum size' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls Event Log behavior when the log file reaches its maximum size. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Application\Control Event Log behavior when the log file reaches its maximum size' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Retain old events, but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\Policies\\Microsoft\\Windows\\EventLog\\Application\Retention' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Application: Specify the maximum log file size (KB)' is set to 'Enabled: 32,768 or greater' + platforms: win11 + platform: windows + description: | + This policy setting specifies the maximum size of the log file in kilobytes. The maximum log file size can be configured between 1 megabyte (1,024 kilobytes) and 4 terabytes (4,194,240 kilobytes) in kilobyte increments. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 32,768 or greater: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Application\Specify the maximum log file size (KB)' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Maximum Log Size (KB), but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\Application\\MaxSize' AND data >= 32768 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Security: Control Event Log behavior when the log file reaches its maximum size' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls Event Log behavior when the log file reaches its maximum size. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Security\Control Event Log behavior when the log file reaches its maximum size' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Retain old events, but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\Security\Retention' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Security: Specify the maximum log file size (KB)' is set to 'Enabled: 196,608 or greater' + platforms: win11 + platform: windows + description: | + This policy setting specifies the maximum size of the log file in kilobytes. The maximum log file size can be configured between 1 megabyte (1,024 kilobytes) and 4 terabytes (4,194,240 kilobytes) in kilobyte increments. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 196,608 or greater: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Security\Specify the maximum log file size (KB)' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Maximum Log Size (KB), but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\Security\MaxSize' AND data >= 196608 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Setup: Control Event Log behavior when the log file reaches its maximum size' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls Event Log behavior when the log file reaches its maximum size. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Setup\Control Event Log behavior when the log file reaches its maximum size + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Retain old events, but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\Setup\Retention' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Setup: Specify the maximum log file size (KB)' is set to 'Enabled: 32,768 or greater' + platforms: win11 + platform: windows + description: | + This policy setting specifies the maximum size of the log file in kilobytes. The maximum log file size can be configured between 1 megabyte (1,024 kilobytes) and 4 terabytes (4,194,240 kilobytes) in kilobyte increments. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 32,768 or greater: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Setup\Specify the maximum log file size (KB)' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Maximum Log Size (KB), but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\Setup\MaxSize' AND data >= 32768); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'System: Control Event Log behavior when the log file reaches its maximum size' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls Event Log behavior when the log file reaches its maximum size. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\System\Control Event Log behavior when the log file reaches its maximum size' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Maximum Log Size (KB), but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\System\Retention' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'System: Specify the maximum log file size (KB)' is set to 'Enabled: 32,768 or greater' + platforms: win11 + platform: windows + description: | + This policy setting specifies the maximum size of the log file in kilobytes. The maximum log file size can be configured between 1 megabyte (1,024 kilobytes) and 4 terabytes (4,194,240 kilobytes) in kilobyte increments. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 32,768 or greater: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\System\Specify the maximum log file size (KB)' + Note: This Group Policy path is provided by the Group Policy template EventLog.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Maximum Log Size (KB), but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\EventLog\\System\MaxSize' AND data >= 32768 ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Data Execution Prevention for Explorer' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Disabling Data Execution Prevention can allow certain legacy plug-in applications to function without terminating Explorer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\File Explorer\Turn off Data Execution Prevention for Explorer' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Explorer.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer\NoDataExecutionPrevention' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off files from Office.com in Quick access view' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether or not File Explorer will request files from the cloud and display them in Quick access view. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\File Explorer\Turn off files from Office.com in Quick access view' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer\\DisableGraphRecentItems' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off heap termination on corruption' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + Without heap termination on corruption, legacy plug-in applications may continue to function when a File Explorer session has become corrupt. Ensuring that heap termination on corruption is active will prevent this. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\File Explorer\Turn off heap termination on corruption' + Note: This Group Policy path is provided by the Group Policy template Explorer.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer\NoHeapTerminationOnCorruption' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off shell protocol protected mode' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure the amount of functionality that the shell protocol can have. When using the full functionality of this protocol, applications can open folders and launch files. The protected mode reduces the functionality of this protocol allowing applications to only open a limited set of folders. Applications are not able to open files with this protocol when it is in the protected mode. It is recommended to leave this protocol in the protected mode to increase the security of Windows. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\File Explorer\Turn off shell protocol protected mode' + Note: This Group Policy path is provided by the Group Policy template WindowsExplorer.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\PreXPSP2ShellProtocolBehavior' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent the computer from joining a homegroup' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + By default, users can add their computer to a HomeGroup on a home network. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\HomeGroup\Prevent the computer from joining a homegroup' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Sharing.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\HomeGroup\DisableHomeGroup' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off location' is set to 'Enabled + platforms: win11 + platform: windows + description: | + This policy setting turns off the location feature for the computer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Location and Sensors\Turn off location' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Sensors.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\LocationAndSensors\DisableLocation' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Block all consumer Microsoft account user authentication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting determines whether applications and services on the device can utilize new consumer Microsoft account authentication via the Windows OnlineID and WebAccountManager APIs. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft accounts\Block all consumer Microsoft account user authentication' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template MSAPolicy.admx/adml that is included with the Microsoft Windows 10 Release 1703 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\MicrosoftAccount\\DisableUserAuth' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure local setting override for reporting to Microsoft MAPS' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting configures a local override for the configuration to join Microsoft Active Protection Service, which Microsoft renamed to Windows Defender Antivirus Cloud Protection Service and then Microsoft Defender Antivirus Cloud Protection Service. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\MAPS\Configure local setting override for reporting to Microsoft MAPS' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Spynet\\LocalSettingOverrideSpynetReporting' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Join Microsoft MAPS' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to join Microsoft Active Protection Service (MAPS), which Microsoft renamed to Windows Defender Antivirus Cloud Protection Service and then Microsoft Defender Antivirus Cloud Protection Service. + Microsoft MAPS / Microsoft Defender Antivirus Cloud Protection Service is the online community that helps you choose how to respond to potential threats. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\MAPS\Join Microsoft MAPS' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + -- The registry key is not present when policy is disabled, so query below is returning 1 when policy is disabled and registry value does not exist. It also return 1 in case policy is enabled and its registry value is 1 or 2 + SELECT 1 WHERE ( + NOT EXISTS ( SELECT 1 FROM registry WHERE key = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Spynet' COLLATE NOCASE AND name = 'SpynetReporting' ) + ) OR ( + NOT EXISTS ( SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Spynet\\SpynetReporting' COLLATE NOCASE AND data != 0 ) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Attack Surface Reduction Rules' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the state for the Attack Surface Reduction (ASR) rules. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Microsoft Defender Exploit Guard\Attack Surface Reduction\Configure Attack Surface Reduction rules' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\ExploitGuard_ASR_Rules' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Attack Surface Reduction rules: Set the state for each ASR rule' is configured + platforms: win11 + platform: windows + description: | + This policy setting sets the Attack Surface Reduction rules. + resolution: | + To establish the recommended configuration via GP, set the following UI path so that + 26190899-1602-49e8-8b27-eb1d0a1ce869, + 3b576869-a4ec-4529-8536-b80a7769e899, + 5beb7efe-fd9a-4556-801d-275e5ffc04cc, + 75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84, + 7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c, + 92e97fa1-2edf-4476-bdd6-9dd0b4dddc7b, + 9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2, + b2b3f03d-6a65-4f7b-a9c7-1c7ef74a9ba4, + be9ba2d9-53ea-4cdc-84e5-9b1eeee46550, + d3e037e1-3eb8-44c8-a917-57927947596d, + d4f940ab-401b-4efc-aadc-ad5f3c50688a, and + e6db77e5-3df2-4cf1-b95a-636979351e5b are each set to a value of 1: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Microsoft Defender Exploit Guard\Attack Surface Reduction\Configure Attack Surface Reduction rules: Set the state for each ASR rule' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 + WHERE EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\ExploitGuard_ASR_Rules' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\26190899-1602-49e8-8b27-eb1d0a1ce869' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\3b576869-a4ec-4529-8536-b80a7769e899' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\5beb7efe-fd9a-4556-801d-275e5ffc04cc' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\92e97fa1-2edf-4476-bdd6-9dd0b4dddc7b' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\b2b3f03d-6a65-4f7b-a9c7-1c7ef74a9ba4' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\be9ba2d9-53ea-4cdc-84e5-9b1eeee46550' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\d3e037e1-3eb8-44c8-a917-57927947596d' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\d4f940ab-401b-4efc-aadc-ad5f3c50688a' AND data = 1 + ) AND EXISTS ( + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\ASR\\Rules\\e6db77e5-3df2-4cf1-b95a-636979351e5b' AND data = 1 + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent users and apps from accessing dangerous websites' is set to 'Enabled: Block' + platforms: win11 + platform: windows + description: | + This policy setting controls Microsoft Defender Exploit Guard network protection. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Block' + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender Antivirus\Windows Defender Exploit Guard\Network Protection\Prevent users and apps from accessing dangerous websites' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Windows Defender Exploit Guard\\Network Protection\\EnableNetworkProtection' AND data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Message Service Cloud Sync' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows backup and restore of cellular text messages to Microsoft's cloud services. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Messaging\Allow Message Service Cloud Sync' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Messaging.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Messaging\AllowMessageSync' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable file hash computation feature' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting determines whether hash values are computed for files scanned by Microsoft Defender. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\MpEngine\Enable file hash computation feature' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\MpEngine\\EnableFileHashComputation' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Scan all downloaded files and attachments' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting configures scanning for all downloaded files and attachments. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Real-Time Protection\Scan all downloaded files and attachments' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\\DisableIOAVProtection' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off real-time protection' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting configures real-time protection prompts for known malware detection. + Microsoft Defender Antivirus alerts you when malware or potentially unwanted software attempts to install itself or to run on your computer. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Real-Time Protection\Turn off real- time protection' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\\DisableRealtimeMonitoring' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on behavior monitoring' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure behavior monitoring for Microsoft Defender Antivirus. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Real-Time Protection\Turn on behavior monitoring' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\\DisableBehaviorMonitoring' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on script scanning' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows script scanning to be turned on/off. Script scanning intercepts scripts then scans them before they are executed on the system. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Real-Time Protection\Turn on script scanning' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\\DisableScriptScanning' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Watson events' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure whether or not Watson events are sent. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Reporting\Configure Watson events' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Reporting\\DisableGenericRePorts' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Scan removable drives' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether or not to scan for malicious software and unwanted software in the contents of removable drives, such as USB flash drives, when running a full scan. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Scan\Scan removable drives' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Scan\\DisableRemovableDriveScanning' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on e-mail scanning' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure e-mail scanning. When e-mail scanning is enabled, the engine will parse the mailbox and mail files, according to their specific format, in order to analyze the mail bodies and attachments. Several e-mail formats are currently supported, for example: pst (Outlook), dbx, mbx, mime (Outlook Express), binhex (Mac). + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Scan\Turn on e-mail scanning' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Scan\\DisableEmailScanning' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure detection for potentially unwanted applications' is set to 'Enabled: Block' + platforms: win11 + platform: windows + description: | + This policy setting controls detection and action for Potentially Unwanted Applications (PUA), which are sneaky unwanted application bundlers or their bundled applications, that can deliver adware or malware. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Block': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Configure detection for potentially unwanted applications' + Note: This Group Policy path is provided by the Group Policy template WindowsDefender.admx/adml that is included with the Microsoft Windows 10 Release 1809 & Server 2019 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\PUAProtection' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Microsoft Defender AntiVirus' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting turns off Microsoft Defender Antivirus. If the setting is configured to Disabled, Microsoft Defender Antivirus runs and computers are scanned for malware and other potentially unwanted software. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Turn off Microsoft Defender AntiVirus' + Note: This Group Policy path is provided by the Group Policy template WindowsDefender.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\DisableAntiSpyware' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow auditing events in Microsoft Defender Application Guard' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to decide whether auditing events can be collected from Microsoft Defender Application Guard. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Allow auditing events in Microsoft Defender Application Guard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\AuditApplicationGuard' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow camera and microphone access in Microsoft Defender Application Guard' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + The policy allows you to determine whether applications inside Microsoft Defender Application Guard can access the device’s camera and microphone. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Allow camera and microphone access in Microsoft Defender Application Guard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1809 & Server 2019 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\AllowCameraMicrophoneRedirection' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow data persistence for Microsoft Defender Application Guard' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to decide whether data should persist across different sessions in Microsoft Defender Application Guard. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Allow data persistence for Microsoft Defender Application Guard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\AllowPersistence' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow files to download and save to the host operating system from Microsoft Defender Application Guard' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether to save downloaded files to the host operating system from the Microsoft Defender Application Guard container. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Allow files to download and save to the host operating system from Microsoft Defender Application Guard' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1803 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\SaveFilesToHost' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Microsoft Defender Application Guard clipboard settings: Clipboard behavior setting' is set to 'Enabled: Enable clipboard operation from an isolated session to the host' + platforms: win11 + platform: windows + description: | + This policy setting allows you to decide how the clipboard behaves while in Microsoft Defender Application Guard. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Enable clipboard operation from an isolated session to the host': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Configure Microsoft Defender Application Guard clipboard settings: Clipboard behavior setting' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1703 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\AppHVSIClipboardSettings' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on Microsoft Defender Application Guard in Managed Mode' is set to 'Enabled: 1' + platforms: win11 + platform: windows + description: | + This policy setting enables application isolation through Microsoft Defender Application Guard (Application Guard). + There are 4 options available: + - 0. Disable Microsoft Defender Application Guard + - 1. Enable Microsoft Defender Application Guard for Microsoft Edge ONLY + - 2. Enable Microsoft Defender Application Guard for Microsoft Office ONLY + - 3. Enable Microsoft Defender Application Guard for Microsoft Edge AND Microsoft Office + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 1': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard\Turn on Microsoft Defender Application Guard in Managed Mode' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AppHVSI.admx/adml that is included with the Microsoft Windows 10 Release 1703 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\AppHVSI\AllowAppHVSI_ProviderSet' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_LEVEL1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable news and interests on the taskbar' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the news and interests feature is allowed on the device. + The recommended state for this setting is: Disabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\News and interests\Enable news and interests on the taskbar' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Messaging.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Feeds\\EnableFeeds' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent the usage of OneDrive for file storage' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting lets you prevent apps and features from working with files on OneDrive using the Next Generation Sync Client. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\OneDrive\Prevent the usage of OneDrive for file storage' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template SkyDrive.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). However, we strongly recommend you only use the version included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). Older versions of the templates had conflicting settings in different template files for both OneDrive & SkyDrive, until it was cleaned up properly in the above version. + Note #2: In older Microsoft Windows Administrative Templates, this setting was named Prevent the usage of SkyDrive for file storage, but it was renamed starting with the Windows 10 RTM (Release 1507) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive\\DisableFileSyncNGSC' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Push To Install service' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether users can push Apps to the device from the Microsoft Store App running on other devices or the web. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Push to Install\Turn off Push To Install service' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template PushToInstall.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\PushToInstall\\DisablePushToInstall' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow UI Automation redirection' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether User Interface (UI) Automation client applications running on the local computer can access UI elements on the server. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\\Administrative Templates\\Windows Components\\Remote Desktop Services\\Remote Desktop Session Host\\Device and Resource Redirection\\Allow UI Automation redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\EnableUiaRedirection' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow location redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the redirection of location data to the remote computer in a Remote Desktop Services session. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow location redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisableLocationRedir' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent downloading of enclosures' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting prevents the user from having enclosures (file attachments) downloaded from an RSS feed to the user's computer. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\RSS Feeds\Prevent downloading of enclosures' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Internet Explorer\\Feeds\\DisableEnclosureDownload' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Cloud Search' is set to 'Enabled: Disable Cloud Search' + platforms: win11 + platform: windows + description: | + This policy setting allows search and Cortana to search cloud sources like OneDrive and SharePoint. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', then 'Disable Cloud Search': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Search\Allow Cloud Search' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\AllowCloudSearch' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Cortana' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Cortana is allowed on the device. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Search\Allow Cortana' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\AllowCortana' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Cortana above lock screen' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether or not the user can interact with Cortana using speech while the system is locked. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\AllowCortanaAboveLock' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow indexing of encrypted files' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether encrypted items are allowed to be indexed. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Search\Allow indexing of encrypted files' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\AllowIndexingEncryptedStoresOrItems' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow search and Cortana to use location' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether search and Cortana can provide location aware search and Cortana results. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Search\Allow search and Cortana to use location' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\AllowSearchToUseLocation' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disable Cloud Clipboard integration for server-to-client data transfer' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether data transferred from the remote session to the client using clipboard redirection is added to the client-side cloud clipboard. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client\Disable Cloud Clipboard integration for server-to-client data transfer' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\Client\\DisableCloudClipboardIntegration' and data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow passwords to be saved' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting helps prevent Remote Desktop clients from saving passwords on a computer. + The recommended state for this setting is: Enabled. + Note: If this policy setting was previously configured as Disabled or Not configured, any previously saved passwords will be deleted the first time a Remote Desktop client disconnects from any server. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client\Do not allow passwords to be saved' + Note: This Group Policy path is provided by the Group Policy template TerminalServer.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\DisablePasswordSaving' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow users to connect remotely by using Remote Desktop Services' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to configure remote access to computers by using Remote Desktop Services. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections\Allow users to connect remotely by using Remote Desktop Services' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDenyTSConnections' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow COM port redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to prevent the redirection of data to client COM ports from the remote computer in a Remote Desktop Services session. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow COM port redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisableCcm' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow drive redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting prevents users from sharing the local drives on their client computers to Remote Desktop Servers that they access. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow drive redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisableCdm' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow LPT port redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to prevent the redirection of data to client LPT ports during a Remote Desktop Services session. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow LPT port redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisableLPT' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow supported Plug and Play device redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to control the redirection of supported Plug and Play devices, such as Windows Portable Devices, to the remote computer in a Remote Desktop Services session. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow supported Plug and Play device redirection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisablePNPRedir' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Always prompt for password upon connection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Remote Desktop Services always prompts the client computer for a password upon connection. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security\Always prompt for password upon connection' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fPromptForPassword' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require secure RPC communication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether Remote Desktop Services requires secure Remote Procedure Call (RPC) communication with all clients or allows unsecured communication. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security\Require secure RPC communication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fEncryptRPCTraffic' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require use of specific security layer for remote (RDP) connections' is set to 'Enabled: SSL' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to require the use of a specific security layer to secure communications between clients and RD Session Host servers during Remote Desktop Protocol (RDP) connections. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: SSL': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security\Require use of specific security layer for remote (RDP) connections' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\SecurityLayer' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Require user authentication for remote connections by using Network Level Authentication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify whether to require user authentication for remote connections to the RD Session Host server by using Network Level Authentication. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security\Require user authentication for remote connections by using Network Level Authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\UserAuthentication' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Set client connection encryption level' is set to 'Enabled: High Level' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether to require the use of a specific encryption level to secure communications between client computers and RD Session Host servers during Remote Desktop Protocol (RDP) connections. + This policy only applies when you are using native RDP encryption. + However, native RDP encryption (as opposed to SSL encryption) is not recommended. + This policy does not apply to SSL encryption. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', then 'High Level': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security\Set client connection encryption level' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\MinEncryptionLevel' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Set time limit for active but idle Remote Desktop Services sessions' is set to 'Enabled: 15 minutes or less, but not Never (0)' + platforms: win11 + platform: windows + description: | + This policy setting allows you to specify the maximum amount of time that an active Remote Desktop Services session can be idle (without user input) before it is automatically disconnected. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled', then '15 minutes': + `Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits\Set time limit for active but idle Remote Desktop Services sessions` + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\MaxIdleTime' AND CAST(data AS INTEGER) <= 900000 AND CAST(data AS + INTEGER) != 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Set time limit for disconnected sessions' is set to 'Enabled: 1 minute' + platforms: win11 + platform: windows + description: | + This setting helps to prevent active Remote Desktop sessions from tying up the computer for long periods of time while not in use, preventing computing resources from being consumed by large numbers of disconnected but still active sessions. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled' and then '1 minute': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits\Set time limit for disconnected sessions' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\MaxDisconnectionTime' AND data = 60000); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not delete temp folders upon exit' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether Remote Desktop Services retains a user's per-session temporary folders at logoff. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Temporary Folders\Do not delete temp folders upon exit' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\DeleteTempDirsOnExit' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: artemist-work +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off KMS Client Online AVS Validation' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + The Key Management Service (KMS) is a Microsoft license activation method that entails setting up a local server to store the software licenses. The KMS server itself needs to connect to Microsoft to activate the KMS service, but subsequent on-network clients can activate Microsoft Windows OS and/or their Microsoft Office via the KMS server instead of connecting directly to Microsoft. This policy setting lets you opt-out of sending KMS client activation data to Microsoft automatically. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Software Protection Platform\Turn off KMS Client Online AVS Validation' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template AVSValidationGP.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Software Protection Platform\NoGenTicket' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disable all apps from Microsoft Store' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting configures the launch of all apps from the Microsoft Store that came pre-installed or were downloaded. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Store\Disable all apps from Microsoft Store' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsStore.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsStore\DisableStoreApps' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Only display the private store within the Microsoft Store' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting denies access to the retail catalog in the Microsoft Store, but displays the private store. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Store\Only display the private store within the Microsoft Store' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsStore.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsStore\RequirePrivateStoreOnly' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Automatic Download and Install of updates' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting enables or disables the automatic download and installation of Microsoft Store app updates. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Store\Turn off Automatic Download and Install of updates' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WinStoreUI.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates, or by the Group Policy template WindowsStore.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsStore\AutoDownload' AND data = 4); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the offer to update to the latest version of Windows' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + Enables or disables the Microsoft Store offer to update to the latest version of Windows. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Store\Turn off the offer to update to the latest version of Windows' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WinStoreUI.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates, or by the Group Policy template WindowsStore.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsStore\DisableOSUpgrade' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off the Store application' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting denies or allows access to the Store application. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Store\Turn off the Store application' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WinStoreUI.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates, or by the Group Policy template WindowsStore.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsStore\RemoveWindowsStore' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow widgets' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether the widgets feature is allowed on the device. The widgets feature provides information such as, weather, news, sports, stocks, traffic, and entertainment (not an inclusive list). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Widgets\Allow Widgets' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template NewsAndInterests.admx/adml that is actually NOT included with the Microsoft Windows 10 Release 21H2 Administrative Templates (more info on missing settings on Windows 10 21H2: https://4sysops.com/archives/group-policies-for-windows-11-and-10-21h2-compared/) but is included in Windows 11 2022 Update (22H2). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Dsh\AllowNewsAndInterests' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Notify Malicious' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Enhanced Phishing Protection in Microsoft Defender SmartScreen warns users if they type their work or school password into one of the following malicious scenarios: into a reported phishing site, into a Microsoft login URL with an invalid certificate, or into an application connecting to either a reported phishing site or a Microsoft login URL with an invalid certificate. The recommended state for this setting is: Enabled. + Note: This setting only applies to Microsoft Accounts (computer or browser login) while using Microsoft Windows 11 and not on prem domain-joined accounts. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Enhanced Phishing Protection\Notify Malicious' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WTDS\\Components\\NotifyMalicious' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Notify Password Reuse' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Enhanced Phishing Protection in Microsoft Defender SmartScreen warns users if they reuse their work or school password. + The recommended state for this setting is: Enabled. + Note: This setting only applies to Microsoft Accounts (computer or browser login) while using Microsoft Windows 11 and not on prem domain-joined accounts. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Enhanced Phishing Protection\Notify Password Reuse' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WTDS\\Components\\NotifyPasswordReuse' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Notify Unsafe App' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Enhanced Phishing Protection in Microsoft Defender SmartScreen warns users if they type their work or school passwords in Notepad, WordPad, or M365 Office apps like OneNote, Word, Excel, etc. + The recommended state for this setting is: Enabled. + Note: This setting only applies to Microsoft Accounts (computer or browser login) while using Microsoft Windows 11 and not on prem domain-joined accounts. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Enhanced Phishing Protection\Notify Unsafe App' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WTDS\\Components\\NotifyUnsafeApp' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Service Enabled' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Enhanced Phishing Protection is in audit mode. This allows notifications to be sent to users regarding unsafe password events. Additionally, Enhanced Phishing Protection captures unsafe password entry events and sends diagnostic data through Microsoft Defender. + The recommended state for this setting is: Enabled. + Note: This setting only applies to Microsoft accounts (computer or browser login) while using Microsoft Windows 11 and not on-prem domain-joined accounts + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Enhanced Phishing Protection\Service Enabled' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WTDS\\Components\\ServiceEnabled' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Windows Defender SmartScreen' is set to 'Enabled: Warn and prevent bypass' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage the behavior of Windows Defender SmartScreen. Windows Defender SmartScreen helps keep PCs safer by warning users before running unrecognized programs downloaded from the Internet. Some information is sent to Microsoft about files and programs run on PCs with this feature enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: Warn and prevent bypass': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Explorer\Configure Windows Defender SmartScreen' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsExplorer.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\EnableSmartScreen' AND data = 1) + AND EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\ShellSmartScreenLevel' AND data = 'Block') + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Windows Defender SmartScreen' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting lets you decide whether to turn on SmartScreen Filter. SmartScreen Filter provides warning messages to help protect your employees from potential phishing scams and malicious software. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Microsoft Edge\Configure Windows Defender SmartScreen' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template MicrosoftEdge.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\PhishingFilter\EnabledV9' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent bypassing Windows Defender SmartScreen prompts for sites' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting lets you decide whether employees can override the SmartScreen Filter warnings about potentially malicious websites. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Defender SmartScreen\Microsoft Edge\Prevent bypassing Windows Defender SmartScreen prompts for sites' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template MicrosoftEdge.admx/adml that is included with the Microsoft Windows 10 Release 1511 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\PhishingFilter\PreventOverride' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enables or disables Windows Game Recording and Broadcasting' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting enables or disables the Windows Game Recording and Broadcasting features. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Game Recording and Broadcasting\Enables or disables Windows Game Recording and Broadcasting' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template GameDVR.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR\AllowGameDVR' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable ESS with Supported Peripherals' is set to 'Enabled: 1' + platforms: win11 + platform: windows + description: | + Enhanced Sign-in Security isolates Windows Hello biometric (face and fingerprint) template data and matching operations to trusted hardware or specified memory regions. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 1 (Enhanced Sign-in Security Enabled): + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Hello for Business\Enable ESS with Supported Peripherals' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Policies\\PassportForWork\\Biometrics\\EnableESSwithSupportedPeripherals' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow suggested apps in Windows Ink Workspace' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether suggested apps in Windows Ink Workspace are allowed. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Ink Workspace\Allow suggested apps in Windows Ink Workspace' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsInkWorkspace.admx/adml that is included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsInkWorkspace\AllowSuggestedAppsInWindowsInkWorkspace' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow user control over installs' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting controls whether users are permitted to change installation options that typically are available only to system administrators. The security features of Windows Installer normally prevent users from changing installation options that are typically reserved for system administrators, such as specifying the directory to which files are installed. If Windows Installer detects that an installation package has permitted the user to change a protected option, it stops the installation and displays a message. These security features operate only when the installation program is running in a privileged security context in which it has access to directories denied to the user. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Installer\Allow user control over installs' + Note: This Group Policy path is provided by the Group Policy template MSI.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was named Enable user control over installs, but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Installer\EnableUserControl' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Always install with elevated privileges' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This setting controls whether or not Windows Installer should use system permissions when it installs any program on the system. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Installer\Always install with elevated privileges' + Note: This Group Policy path is provided by the Group Policy template MSI.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Installer\AlwaysInstallElevated' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent Internet Explorer security prompt for Windows Installer scripts' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether Web-based programs are allowed to install software on the computer without notifying the user. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Installer\Prevent Internet Explorer security prompt for Windows Installer scripts' + Note: This Group Policy path is provided by the Group Policy template MSI.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Disable IE security prompt for Windows Installer scripts, but it was renamed starting with the Windows 8.0 & Server 2012 (non-R2) Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Installer\SafeForScripting' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Sign-in and lock last interactive user automatically after a restart' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether a device will automatically sign-in the last interactive user after Windows Update restarts the system. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Logon Options\Sign-in and lock last interactive user automatically after a restart' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WinLogon.admx/adml that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + Note #2: In older Microsoft Windows Administrative Templates, this setting was initially named Sign-in last interactive user automatically after a system-initiated restart, but it was renamed starting with the Windows 10 Release 1903 Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\System\DisableAutomaticRestartSignOn' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on PowerShell Script Block Logging' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting enables logging of all PowerShell script input to the Applications and Services Logs\Microsoft\Windows\PowerShell\Operational Event Log channel. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows PowerShell\Turn on PowerShell Script Block Logging' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template PowerShellExecutionPolicy.admx that is included with the Microsoft Windows 8.1 & Server 2012 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\\EnableScriptBlockLogging' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Basic authentication' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) client uses Basic authentication. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Client\Allow Basic authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Client\\AllowBasic' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow unencrypted traffic' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) client sends and receives unencrypted messages over the network. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Client\Allow unencrypted traffic' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Client\\AllowUnencryptedTraffic' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disallow Digest authentication' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) client will not use Digest authentication. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Client\Disallow Digest authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Client\\AllowDigest' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Basic authentication' in WinRM service is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) service accepts Basic authentication from a remote client. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Service\Allow Basic authentication' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Service\\AllowBasic' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow remote server management through WinRM' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) service + automatically listens on the network for requests on the HTTP transport over the default HTTP + port. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Service\Allow remote server management through WinRM' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Service\\AllowAutoConfig' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow unencrypted traffic' in WinRM service is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) service sends and receives unencrypted messages over the network. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Service\Allow unencrypted traffic' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Service\\AllowUnencryptedTraffic' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Disallow WinRM from storing RunAs credentials' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether the Windows Remote Management (WinRM) service will allow RunAs credentials to be stored for any plug-ins. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Service\Disallow WinRM from storing RunAs credentials' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsRemoteManagement.admx that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer) + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Service\\DisableRunAs' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Remote Shell Access' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage configuration of remote access to all supported shells to execute scripts and commands. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Shell\Allow Remote Shell Access' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WinRM\\Service\\WinRS\\AllowRemoteShellAccess' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow clipboard sharing with Windows Sandbox' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting enables or disables clipboard sharing with the Windows sandbox. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Sandbox\Allow clipboard sharing with Windows Sandbox' + Note: This Group Policy section is provided by the Group Policy template WindowsSandbox.admx/adml that is included with the Microsoft Windows 11 Release 21H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Sandbox\\AllowClipboardRedirection' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow networking in Windows Sandbox' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting enables or disables networking in the Windows Sandbox. Networking is achieved by creating a virtual switch on the host, and connecting the Windows Sandbox to it via a virtual Network Interface Card (NIC). + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Sandbox\Allow networking in Windows Sandbox' + Note: This Group Policy section is provided by the Group Policy template WindowsSandbox.admx/adml that is included with the Microsoft Windows 11 Release 21H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Sandbox\\AllowNetworking' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent users from modifying settings' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting prevent users from making changes to the Exploit protection settings area in the Windows Security settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\\Windows Security\App and browser protection\Prevent users from modifying settings' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsDefenderSecurityCenter.admx/adml that is included with the Microsoft Windows 10 Release 1709 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender Security Center\\App and Browser protection\\DisallowExploitProtectionOverride' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'No auto-restart with logged on users for scheduled automatic updates installations' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies that Automatic Updates will wait for computers to be restarted by the users who are logged on to them to complete a scheduled installation. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Legacy Policies\No auto-restart with logged on users for scheduled automatic updates installations' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\\NoAutoRebootWithLoggedOnUsers' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Automatic Updates' is set to 'Enabled: 3' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether computers in your environment will receive security updates from Windows Update or WSUS. If you configure this policy setting to Enabled, the operating system will recognize when a network connection is available and then use the network connection to search Windows Update or your designated intranet site for updates that apply to them. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 3': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Manage end user experience\Configure Automatic Updates' + query: | + SELECT EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\\NoAutoUpdate' AND data = 0) + ) AND EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\\AUOptions' AND data = 3) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Automatic Updates: Scheduled install day' is set to '0 - Every day' + platforms: win11 + platform: windows + description: | + This policy setting specifies when computers in your environment will receive security updates from Windows Update or WSUS. + resolution: | + To establish the recommended configuration via GP, set the following UI path to '0 - Every day': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Manage end user experience\Configure Automatic Updates: Scheduled install day' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\\NoAutoUpdate' AND data = 0) + AND EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\\ScheduledInstallDay' AND data = 0) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Remove access to "Pause updates" feature' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy removes access to "Pause updates" feature. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Manage end user experience\Remove access to "Pause updates" feature' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\SetDisablePauseUXAccess' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Manage preview builds' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting manage which updates that are receive prior to the update being released. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Manage updates offered from Windows Update\Manage preview builds' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\ManagePreviewBuildsPolicyValue' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Select when Preview Builds and Feature Updates are received' is set to 'Enabled: 180 or more days' + platforms: win11 + platform: windows + description: | + This policy setting determines when Preview Build or Feature Updates are received. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 180 or more days': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Manage updates offered from Windows Update\Windows Update for Business\Select when Preview Builds and Feature Updates are received' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\DeferFeatureUpdates' AND CAST(data AS INTEGER) = 1) + AND EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\DeferFeatureUpdatesPeriodInDays' AND CAST(data AS INTEGER) >= 180) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Select when Quality Updates are received' is set to 'Enabled: 0 days' + platforms: win11 + platform: windows + description: | + This settings controls when Quality Updates are received. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: 0 days': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update\Windows Update for Business\Select when Quality Updates are received' + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\DeferQualityUpdates' AND data = 1) + AND EXISTS ( + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\DeferQualityUpdatesPeriodInDays' AND data = 0) + ); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable App Installer' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether user have access to the Windows Package Manager. Windows Package Manager is a package manager solution that consists of a command line tool and set of services for installing applications on Microsoft Windows 10 and 11. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Desktop App Installer\Enable App Installer' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DesktopAppInstaller.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppInstaller\\EnableAppInstaller' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable App Installer Experimental Features' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether users can enable experimental features in the Windows Package Manager. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Desktop App Installer\Enable App Installer Experimental Features' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DesktopAppInstaller.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppInstaller\\EnableExperimentalFeatures' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable App Installer Hash Override' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether or not users can override the SHA256 security validation in the Windows Package Manager settings. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Desktop App Installer\Enable App Installer Hash Override' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DesktopAppInstaller.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppInstaller\\EnableHashOverride' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable App Installer ms-appinstaller protocol' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls whether users can install packages from a website that is using the ms-appinstaller protocol. The ms-appinstaller protocol allows users to install an application by clicking a link on a website. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Desktop App Installer\Enable App Installer ms-appinstaller protocol' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template DesktopAppInstaller.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppInstaller\\EnableMSAppInstallerProtocol' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not allow WebAuthn redirection' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting controls the redirection of web authentication (WebAuthn) requests from a Remote Desktop session to the local device. This redirection enables users to authenticate to resources inside the Remote Desktop session using their local authenticator (e.g. Windows Hello for Business, security key, or other). + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow WebAuthn redirection + Note: This Group Policy path is provided by the Group Policy template TerminalServer.admx/adml that is included with the Microsoft Windows 11 Release 22H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services\\fDisableWebAuthn' AND (data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow search highlights' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting controls search highlights in the start menu search box and in search home. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Disabled': + Computer Configuration\Policies\Administrative Templates\Windows Components\Search\Allow search highlights + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template Search.admx/adml that is included with the Microsoft Windows 10 Release 21H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\\EnableDynamicContentInWSB' AND (data = 0)); + purpose: Informational + tags: compliance, CIS, CIS_Level2, CIS_group_policy_template_required + contributors: DefensiveDepth +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Allow Windows Ink Workspace' is set to 'Enabled: On, but disallow access above lock' OR 'Enabled: Disabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Windows Ink items are allowed above the lock screen. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled: On, but disallow access above lock' OR 'Enabled: Disabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Ink Workspace\Allow Windows Ink Workspace' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WindowsInkWorkspace.admx/adml that is included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsInkWorkspace\AllowWindowsInkWorkspace' AND (data = 0 OR data = 1)); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn on PowerShell Transcription' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This Policy setting lets you capture the input and output of Windows PowerShell commands into text-based transcripts. + resolution: | + To establish the recommended configuration via GP, set the following UI path to 'Enabled': + 'Computer Configuration\Policies\Administrative Templates\Windows Components\Windows PowerShell\Turn on PowerShell Transcription' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template PowerShellExecutionPolicy.admx/adml that is included with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\Transcription\\EnableTranscripting' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1, CIS_group_policy_template_required + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Enable screen saver' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting enables/disables the use of desktop screen savers. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Control Panel\Personalization\Enable screen saver' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template ControlPanelDisplay.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaveActive' and data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Password protect the screen saver' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting determines whether screen savers used on the computer are password protected. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Control Panel\Personalization\Password protect the screen saver' + Note: This Group Policy path is provided by the Group Policy template ControlPanelDisplay.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaverIsSecure' and data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Screen saver timeout' is set to 'Enabled: 900 seconds or fewer, but not 0' + platforms: win11 + platform: windows + description: | + This setting specifies how much user idle time must elapse before the screen saver is launched. + The recommended state for this setting is: Enabled: 900 seconds or fewer, but not 0. Note: This setting has no effect under the following circumstances: + - The wait time is set to zero. + - The "Enable Screen Saver" setting is disabled. + - A valid screen existing saver is not selected manually or via the "Screen saver executable name" setting + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: 900 or fewer, but not 0: + 'User Configuration\Policies\Administrative Templates\Control Panel\Personalization\Screen saver timeout' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template ControlPanelDisplay.admx/adml that is included with the Microsoft Windows 7 & Server 2008 R2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaveTimeOut' AND data <=900 AND data > 0 ; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off toast notifications on the lock screen' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting turns off toast notifications on the lock screen. + The recommended state for this setting is Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Start Menu and Taskbar\Notifications\Turn off toast notifications on the lock screen' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template WPN.admx/adml that is included with the Microsoft Windows 8.0 & Server 2012 (non-R2) Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications\NoToastApplicationNotificationOnLockScreen' AND data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Help Experience Improvement Program' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting specifies whether users can participate in the Help Experience Improvement program. The Help Experience Improvement program collects information about how customers use Windows Help so that Microsoft can improve it. + The recommended state for this setting is: Enabled. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\System\Internet Communication Management\Internet Communication Settings\Turn off Help Experience Improvement Program' + Note: This Group Policy path is provided by the Group Policy template HelpAndSupport.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Assistance\Client\1.0\NoImplicitFeedback' AND data = 1; + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: sharon-fdm +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not preserve zone information in file attachments' is set to 'Disabled' + platforms: win11 + platform: windows + description: | + This policy setting allows you to manage whether Windows marks file attachments with information about their zone of origin (such as restricted, Internet, intranet, local). This requires NTFS in order to function correctly, and will fail without notice on FAT32. By not preserving the zone information, Windows cannot make proper risk assessments. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Attachment Manager\Do not preserve zone information in file attachments' + Note: This Group Policy path is provided by the Group Policy template AttachmentManager.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments\SaveZoneInformation' and data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Notify antivirus programs when opening attachments' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting manages the behavior for notifying registered antivirus programs. If multiple programs are registered, they will all be notified. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Attachment Manager\Notify antivirus programs when opening attachments' + Note: This Group Policy path is provided by the Group Policy template AttachmentManager.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments\ScanWithAntiVirus' AND data = 3); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Configure Windows spotlight on lock screen' is set to Disabled' + platforms: win11 + platform: windows + description: | + This policy setting lets you configure Windows Spotlight on the lock screen. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Configure Windows spotlight on lock screen' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template CloudContent.admx/adml that is included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Policies\Microsoft\Windows\CloudContent\ConfigureWindowsSpotlight' AND data = 2); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not suggest third-party content in Windows spotlight' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether Windows will suggest apps and content from third-party software publishers. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Do not suggest third-party content in Windows spotlight' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template CloudContent.admx/adml that is included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Policies\Microsoft\Windows\CloudContent\DisableThirdPartySuggestions' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Do not use diagnostic data for tailored experiences' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting determines if Windows can use diagnostic data to provide tailored experiences to the user. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Do not use diagnostic data for tailored experiences' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template CloudContent.admx/adml that is included with the Microsoft Windows 10 Release 1703 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Policies\Microsoft\Windows\CloudContent\DisableTailoredExperiencesWithDiagnosticData' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off all Windows spotlight features' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether the all Windows Spotlight features are turned on/off (together). + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Turn off all Windows spotlight features' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template CloudContent.admx/adml that is included with the Microsoft Windows 10 Release 1607 & Server 2016 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\%\Software\Policies\Microsoft\Windows\CloudContent\DisableWindowsSpotlightFeatures' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Turn off Spotlight collection on Desktop' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy is meant for Windows 11. + This policy setting removes the Spotlight collection setting in Personalization, rendering the user unable to select and subsequently download daily images from Microsoft to the system desktop. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Cloud Content\Turn off Spotlight collection on Desktop' + Note: This Group Policy path may not exist by default. It is provided by the Group Policy template CloudContent.admx/adml that is included with the Microsoft Windows 10 Release 21H2 Administrative Templates (or newer). + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableSpotlightCollectionOnDesktop' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: marcosd4h +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent users from sharing files within their profile.' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This policy setting determines whether users can share files within their profile. By default, users are allowed to share files within their profile to other users on their network after an administrator opts in the computer. An administrator can opt in the computer by using the sharing wizard to share a file within their profile. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Network Sharing\Prevent users from sharing files within their profile' + Note: This Group Policy path is provided by the Group Policy template Sharing.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoInplaceSharing' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Always install with elevated privileges' is set to 'Disabled' (User Configuration) + platforms: win11 + platform: windows + description: | + This setting controls whether or not Windows Installer should use system permissions when it installs any program on the system. + Note: This setting appears both in the Computer Configuration and User Configuration folders. To make this setting effective, you must enable the setting in both folders. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Disabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Windows Installer\Always install with elevated privileges' + Note: This Group Policy path is provided by the Group Policy template MSI.admx/adml thatis included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\Software\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated' AND data = 0); + purpose: Informational + tags: compliance, CIS, CIS_Level1 + contributors: rachelelysia +--- +apiVersion: v1 +kind: policy +spec: + name: > + CIS - Ensure 'Prevent Codec Download' is set to 'Enabled' + platforms: win11 + platform: windows + description: | + This setting controls whether Windows Media Player is allowed to download additional codecs for decoding media files it does not already understand. + resolution: | + To establish the recommended configuration via GP, set the following UI path to Enabled: + 'User Configuration\Policies\Administrative Templates\Windows Components\Windows Media Player\Playback\Prevent Codec Download' + Note: This Group Policy path is provided by the Group Policy template WindowsMediaPlayer.admx/adml that is included with all versions of the Microsoft Windows Administrative Templates. + query: | + SELECT 1 FROM registry WHERE (path LIKE 'HKEY_USERS\%\Software\Policies\Microsoft\WindowsMediaPlayer\PreventCodecDownload' AND data = 1); + purpose: Informational + tags: compliance, CIS, CIS_Level2 + contributors: rachelelysia diff --git a/ee/fleetd-chrome/src/tables/system_info.ts b/ee/fleetd-chrome/src/tables/system_info.ts index 84e92a0a07..d324a0e472 100644 --- a/ee/fleetd-chrome/src/tables/system_info.ts +++ b/ee/fleetd-chrome/src/tables/system_info.ts @@ -33,12 +33,21 @@ export default class TableSystemInfo extends Table { // @ts-expect-error @types/chrome doesn't yet have instanceID. const uuid = (await chrome.instanceID.getID()) as string; + let devMode = false; + if (!chrome.enterprise) { + const { installType } = await chrome.management.getSelf(); + devMode = installType === "development"; + } // TODO should it default to UUID or should Fleet handle it somehow? let hostname = ""; try { - // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. - hostname = (await chrome.enterprise.deviceAttributes.getDeviceHostname()) as string; + if (!devMode) { + // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. + hostname = (await chrome.enterprise.deviceAttributes.getDeviceHostname()) as string; + } else { + hostname = uuid; + } } catch (err) { console.warn("get hostname:", err); warningsArray.push({ @@ -49,8 +58,13 @@ export default class TableSystemInfo extends Table { let hwSerial = ""; try { - // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. - hwSerial = (await chrome.enterprise.deviceAttributes.getDeviceSerialNumber()) as string; + if (!devMode) { + // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. + hwSerial = (await chrome.enterprise.deviceAttributes.getDeviceSerialNumber()) as string; + } else { + // We leave it blank. The host will be identified by UUID instead. + hwSerial = ""; + } } catch (err) { console.warn("get serial number:", err); warningsArray.push({ @@ -62,13 +76,18 @@ export default class TableSystemInfo extends Table { let hwVendor = "", hwModel = ""; try { - // This throws "Not allowed" error if - // https://chromeenterprise.google/policies/?policy=EnterpriseHardwarePlatformAPIEnabled is - // not configured to enabled for the device. - // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. - const platformInfo = await chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(); - hwVendor = platformInfo.manufacturer; - hwModel = platformInfo.model; + if (!devMode) { + // This throws "Not allowed" error if + // https://chromeenterprise.google/policies/?policy=EnterpriseHardwarePlatformAPIEnabled is + // not configured to enabled for the device. + // @ts-expect-error @types/chrome doesn't yet have the deviceAttributes Promise API. + const platformInfo = await chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(); + hwVendor = platformInfo.manufacturer; + hwModel = platformInfo.model; + } else { + hwVendor = "dev-hardware_vendor"; + hwModel = "dev-hardware_model"; + } } catch (err) { console.warn("get platform info:", err); warningsArray.push({ diff --git a/frontend/interfaces/config.ts b/frontend/interfaces/config.ts index 8f68613cee..3305330548 100644 --- a/frontend/interfaces/config.ts +++ b/frontend/interfaces/config.ts @@ -207,10 +207,6 @@ export interface IConfig { }; }; mdm: IMdmConfig; - /** This is the flag that determines if the windwos mdm feature flag is enabled. - TODO: WINDOWS FEATURE FLAG: remove when windows MDM is released. Only used for windows MDM dev currently. - */ - mdm_enabled?: boolean; } export interface IWebhookSettings { diff --git a/frontend/interfaces/host.ts b/frontend/interfaces/host.ts index fe741fcf7a..bc977508be 100644 --- a/frontend/interfaces/host.ts +++ b/frontend/interfaces/host.ts @@ -84,6 +84,38 @@ export interface IDeviceUser { source: string; } +const DEVICE_USER_SOURCE_TO_DISPLAY: { [key: string]: string } = { + google_chrome_profiles: "Google Chrome", + mdm_idp_accounts: "identity provider", +} as const; + +const getDeviceUserSourceForDisplay = (s: string): string => { + return DEVICE_USER_SOURCE_TO_DISPLAY[s] || s; +}; + +const getDeviceUserForDisplay = (d: IDeviceUser): IDeviceUser => { + return { ...d, source: getDeviceUserSourceForDisplay(d.source) }; +}; + +/* + * mapDeviceUsersForDisplay is a helper function that takes an array of device users and returns a + * new array of device users with the source field mapped to a more user-friendly value. It also + * ensures that the identity provider account is always the first device user in the array. + */ +export const mapDeviceUsersForDisplay = ( + deviceMapping: IDeviceUser[] +): IDeviceUser[] => { + const newDeviceMapping: IDeviceUser[] = []; + deviceMapping.forEach((d) => { + if (d.source === "mdm_idp_accounts") { + newDeviceMapping.unshift(getDeviceUserForDisplay(d)); + } else { + newDeviceMapping.push(getDeviceUserForDisplay(d)); + } + }); + return newDeviceMapping; +}; + export interface IDeviceMappingResponse { device_mapping: IDeviceUser[]; } diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/DiskEncryption.tsx b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/DiskEncryption.tsx index e93259145f..79567bc2ca 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/DiskEncryption.tsx +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/DiskEncryption.tsx @@ -106,11 +106,7 @@ const DiskEncryption = ({ return "If turned on, hosts' disk encryption keys will be stored in Fleet. "; } - const isWindowsFeatureFlagEnabled = config?.mdm_enabled ?? false; - const dynamicText = isWindowsFeatureFlagEnabled - ? " and β€œBitLocker” on Windows" - : ""; - return `Also known as β€œFileVault” on macOS${dynamicText}. If turned on, hosts' disk encryption keys will be stored in Fleet. `; + return `Also known as β€œFileVault” on macOS and β€œBitLocker” on Windows. If turned on, hosts' disk encryption keys will be stored in Fleet. `; }; return ( diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTable.tsx b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTable.tsx index 67e222dc99..7d8fa0bcad 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTable.tsx +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTable.tsx @@ -20,8 +20,6 @@ interface IDiskEncryptionTableProps { } const DiskEncryptionTable = ({ currentTeamId }: IDiskEncryptionTableProps) => { - const { config } = useContext(AppContext); - const { data: diskEncryptionStatusData, error: diskEncryptionStatusError, @@ -34,15 +32,8 @@ const DiskEncryptionTable = ({ currentTeamId }: IDiskEncryptionTableProps) => { } ); - // TODO: WINDOWS FEATURE FLAG: remove this when windows feature flag is removed. - // this is used to conditianlly show "View all hosts" link in table cells. - const windowsFeatureFlagEnabled = config?.mdm_enabled ?? false; - const tableHeaders = generateTableHeaders(windowsFeatureFlagEnabled); - const tableData = generateTableData( - windowsFeatureFlagEnabled, - diskEncryptionStatusData, - currentTeamId - ); + const tableHeaders = generateTableHeaders(); + const tableData = generateTableData(diskEncryptionStatusData, currentTeamId); if (diskEncryptionStatusError) { return ; diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTableConfig.tsx b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTableConfig.tsx index aef0bbc22c..a683ae6f93 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTableConfig.tsx +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/DiskEncryption/components/DiskEncryptionTable/DiskEncryptionTableConfig.tsx @@ -32,7 +32,6 @@ interface ICellProps { }; row: { original: { - includeWindows: boolean; status: IStatusCellValue; teamId: number; }; @@ -94,18 +93,13 @@ const defaultTableHeaders: IDataColumn[] = [ return (
<>{val}} /> - {/* TODO: WINDOWS FEATURE FLAG: remove this conditional when windows mdm - is released. the view all UI will show in the windows column when we - release the feature. */} - {!original.includeWindows && ( - - )} +
); }, @@ -144,14 +138,8 @@ const windowsTableHeader: IDataColumn[] = [ }, ]; -// TODO: WINDOWS FEATURE FLAG: return all headers when windows feature flag is removed. -export const generateTableHeaders = ( - includeWindows: boolean -): IDataColumn[] => { - return includeWindows - ? [...defaultTableHeaders, ...windowsTableHeader] - : defaultTableHeaders; - return defaultTableHeaders; +export const generateTableHeaders = (): IDataColumn[] => { + return [...defaultTableHeaders, ...windowsTableHeader]; }; const STATUS_CELL_VALUES: Record = { @@ -215,9 +203,6 @@ const STATUS_ORDER = [ ] as const; export const generateTableData = ( - // TODO: WINDOWS FEATURE FLAG: remove includeWindows when windows feature flag is removed. - // This is used to conditionally show "View all hosts" link in table cells. - includeWindows: boolean, data?: IDiskEncryptionSummaryResponse, currentTeamId?: number ) => { @@ -227,7 +212,6 @@ export const generateTableData = ( status: DiskEncryptionStatus, statusAggregate: IDiskEncryptionStatusAggregate ) => ({ - includeWindows, status: STATUS_CELL_VALUES[status], macosHosts: statusAggregate.macos, windowsHosts: statusAggregate.windows, diff --git a/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx b/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx index 156c6fd5d9..ff81963540 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx +++ b/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx @@ -234,11 +234,9 @@ const AppleBusinessManagerSection = ({

Apple Business Manager

{isLoadingMdmAppleBm ? : renderAppleBMInfo()} - {config?.mdm_enabled && ( - - )} + {showEditTeamModal && ( { turnOnMacOSMdm={navigateToMacOSMdm} viewDetails={navigateToMacOSMdm} /> - {/* TODO: remove conditional rendering when windows MDM is released. */} - {config?.mdm_enabled && ( - - )} + )}
diff --git a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx index 20e6f3d7de..fe26cb9a75 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx +++ b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx @@ -111,12 +111,6 @@ interface IWindowsMdmPageProps { const WindowsMdmPage = ({ router }: IWindowsMdmPageProps) => { const { config } = useContext(AppContext); - // TODO: remove when windows MDM is fully released. This is a temporary redirect - // when the feature is not enabled. - if (!config?.mdm_enabled) { - router.replace(PATHS.ADMIN_INTEGRATIONS_MDM); - } - const isWindowsMdmEnabled = config?.mdm?.windows_enabled_and_configured ?? false; diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx index 0fc6eaef2f..3e04264361 100644 --- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx +++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx @@ -1367,9 +1367,9 @@ const ManageHostsPage = ({ const emptyState = () => { const emptyHosts: IEmptyTableProps = { graphicName: "empty-hosts", - header: "Devices will show up here once they’re added to Fleet.", + header: "Hosts will show up here once they’re added to Fleet.", info: - "Expecting to see devices? Try again in a few seconds as the system catches up.", + "Expecting to see hosts? Try again in a few seconds as the system catches up.", }; if (includesFilterQueryParam) { delete emptyHosts.graphicName; @@ -1377,8 +1377,8 @@ const ManageHostsPage = ({ emptyHosts.info = "Expecting to see new hosts? Try again in a few seconds as the system catches up."; } else if (canEnrollHosts) { - emptyHosts.header = "Add your devices to Fleet"; - emptyHosts.info = "Generate an installer to add your own devices."; + emptyHosts.header = "Add your hosts to Fleet"; + emptyHosts.info = "Generate an installer to add your own hosts."; emptyHosts.primaryButton = (