mirror of
https://github.com/fleetdm/fleet
synced 2026-04-29 01:17:35 +00:00
Fixes #27477 When running the gitops command do not perform variable interpolation inside the 'description' nor the 'resolution' sections.
19 lines
No EOL
908 B
YAML
19 lines
No EOL
908 B
YAML
- name: 😊 Failing policy
|
|
platform: linux
|
|
description: This policy should always fail.
|
|
resolution: There is no resolution for this policy.
|
|
query: SELECT 1 FROM osquery_info WHERE start_time < 0;
|
|
- name: Passing policy
|
|
platform: linux,windows,darwin,chrome
|
|
description: This policy should always pass.
|
|
resolution: |
|
|
Automated method:
|
|
Ask your system administrator to deploy the following script which will ensure proper Security Auditing Retention:
|
|
cp /etc/security/audit_control ./tmp.txt; origExpire=$(cat ./tmp.txt | grep expire-after); sed "s/${origExpire}/expire-after:60d OR 5G/" ./tmp.txt > /etc/security/audit_control; rm ./tmp.txt;
|
|
query: SELECT 1;
|
|
- name: No root logins (macOS, Linux)
|
|
platform: linux,darwin
|
|
query: SELECT 1 WHERE NOT EXISTS (SELECT * FROM last
|
|
WHERE username = "root"
|
|
AND time > (( SELECT unix_time FROM time ) - 3600 ))
|
|
critical: true |