This commit is contained in:
Sharon Katz 2023-01-26 16:53:58 -05:00 committed by GitHub
parent 86c2b9ada0
commit aa513e722c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -738,6 +738,37 @@ spec:
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Security Auditing Is Enabled
platforms: macOS
platform: darwin
description: |
macOS's audit facility, auditd, receives notifications from the kernel when certain system calls, such as open, fork, and exit, are made. These notifications are captured and written to an audit log.
resolution: |
Automated method:
Ask your system administrator to deploy the following script which will enable security auditing:
/usr/bin/sudo /bin/launchctl load -w
/System/Library/LaunchDaemons/com.apple.auditd.plist
query: |
SELECT 1 where exists (
SELECT
l.program, l.label, l.program_arguments,
p.path, p.name , p.cmdline
FROM
launchd AS l
INNER JOIN processes AS p
ON (l.program = p.path)
where
(l.label = "com.apple.auditd")
AND
(l.program_arguments = p.cmdline)
);
purpose: Informational
tags: compliance, CIS, CIS_Level1, CIS3.1
contributors: lucasmrod
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Bonjour Advertising Services Is Disabled (MDM Required)
platforms: macOS

View file

@ -0,0 +1,7 @@
#!/bin/bash
/usr/bin/sudo /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.auditd.plist
# For Testing: After the above command executed:
# This will stop the service: /usr/bin/sudo /bin/launchctl stop com.apple.auditd
# This will start the service: /usr/bin/sudo /bin/launchctl start com.apple.auditd