Skip to content

Commit f85dc59

Browse files
Cleaning up policies (#25850)
In support of this issue: fleetdm/confidential#8791
1 parent 4233937 commit f85dc59

12 files changed

+37
-273
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- name: Collect operating system information
2+
description: "Collects operating system information from all devices enrolled in Fleet"
3+
query: SELECT * FROM os_version;
4+
interval: 3600 # Every 1 hour
5+
observer_can_run: true
6+
automations_enabled: true
7+
logging: snapshot
8+
platform: darwin,linux,windows,chrome
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- name: Linux - Enable disk encryption
1+
- name: Linux - Disk encryption enabled
22
query: SELECT 1 FROM mounts m, disk_encryption d WHERE m.device_alias = d.name AND d.encrypted = 1 AND m.path = '/';
33
critical: false
44
description: This policy checks if disk encryption is enabled.
5-
resolution: As an IT admin, deploy an image that includes disk encryption.
5+
resolution: Disk encryption can only be configured during initial operating system install. Please re-install your operating system ensuring disk encryption is enabled.
66
platform: linux
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- name: macOS - No 1Password emergency kit stored in desktop, documents, or downloads folders
2+
query: SELECT 1 WHERE
3+
NOT EXISTS (
4+
SELECT 1 FROM file WHERE
5+
filename LIKE '%Emergency Kit%.pdf' AND
6+
(path LIKE '/Users/%/Desktop/%' OR path LIKE '/Users/%/Documents/%' OR path LIKE '/Users/%/Downloads/%' OR path LIKE '/Users/Shared/%')
7+
);
8+
critical: false
9+
description: Looks for PDF files with file names typically used by 1Password for emergency recovery kits. To protect the performance of your devices, the search is one level deep and limited to the Desktop, Documents, Downloads, and Shared folders.
10+
resolution: Delete 1Password emergency kits from your computer, and empty the trash. 1Password emergency kits should only be printed and stored in a physically secure location.
11+
platform: darwin
12+

it-and-security/lib/macos/policies/cis.yml

-105
This file was deleted.

it-and-security/lib/macos/policies/device-health.yml

-67
This file was deleted.

it-and-security/lib/macos/policies/update-firefox.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: macOS - Update Firefox
1+
- name: macOS - Firefox up to date
22
query: SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE name = 'Firefox.app') OR EXISTS (SELECT 1 FROM apps WHERE name = 'Firefox.app' AND version_compare(bundle_short_version, '134.0.2') >= 0);
33
critical: false
44
description: The host may have an outdated or non-existent version of Firefox, potentially risking security vulnerabilities or compatibility issues.

it-and-security/lib/macos/policies/update-slack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: macOS - Update Slack
1+
- name: macOS - Slack up to date
22
query: SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM apps WHERE name = 'Slack.app') OR EXISTS (SELECT 1 FROM apps WHERE name = 'Slack.app' AND version_compare(bundle_short_version, '4.42.116') >= 0);
33
critical: false
44
description: The host may be running an outdated version of Slack, which could pose security vulnerabilities or compatibility issues.

it-and-security/lib/windows/policies/cis.yml

-58
This file was deleted.

it-and-security/lib/windows/policies/device-health.yml

-31
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- name: Windows - Antivirus signatures up to date
2+
query: SELECT 1 from windows_security_center wsc CROSS JOIN windows_security_products wsp WHERE antivirus = 'Good' AND type = 'Antivirus' AND signatures_up_to_date=1;
3+
critical: false
4+
description: Checks the status of antivirus and signature updates from the Windows Security Center.
5+
resolution: "Run all available Windows updates."
6+
platform: windows
7+

it-and-security/teams/workstations-canary.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ controls:
122122
- path: ../lib/windows/scripts/install-bitdefender.ps1
123123
- path: ../lib/windows/scripts/enable-ms-defender.ps1
124124
policies:
125-
- path: ../lib/macos/policies/device-health.yml
125+
- path: ../lib/macos/policies/1password-emergency-kit-check.yml
126126
- path: ../lib/macos/policies/update-firefox.yml
127127
- path: ../lib/macos/policies/update-slack.yml
128128
- path: ../lib/macos/policies/latest-macos.yml
129-
- path: ../lib/windows/policies/device-health.yml
130-
- path: ../lib/linux/policies/linux-device-health.yml
129+
- path: ../lib/windows/policies/windows-device-health.yml
130+
- path: ../lib/linux/policies/disk-encryption-check.yml
131131
queries:
132132
- path: ../lib/macos/queries/collect-failed-login-attempts.yml
133133
- path: ../lib/all/queries/collect-fleetd-information.yml

it-and-security/teams/workstations.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,11 @@ controls:
8383
- path: ../lib/windows/scripts/remove-fleetd.ps1
8484
- path: ../lib/windows/scripts/turn-off-mdm.ps1
8585
policies:
86-
- path: ../lib/macos/policies/device-health.yml
86+
- path: ../lib/macos/policies/1password-emergency-kit-check.yml
8787
- path: ../lib/macos/policies/update-firefox.yml
88-
- path: ../lib/macos/policies/cis.yml
8988
- path: ../lib/macos/policies/latest-macos.yml
90-
- path: ../lib/windows/policies/device-health.yml
91-
- path: ../lib/windows/policies/cis.yml
92-
- path: ../lib/linux/policies/linux-device-health.yml
89+
- path: ../lib/windows/policies/windows-device-health.yml
90+
- path: ../lib/linux/policies/disk-encryption-check.yml
9391
queries:
9492
- path: ../lib/macos/queries/collect-failed-login-attempts.yml
9593
- path: ../lib/all/queries/collect-usb-devices.yml

0 commit comments

Comments
 (0)