Add macOS CIS 2.3.3.8 (Internet Sharing) (#9663)

This commit is contained in:
Artemis Tosini 2023-02-09 11:15:40 -05:00 committed by GitHub
parent c6e1447084
commit 6d82515b02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -447,6 +447,34 @@ spec:
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Internet Sharing Is Disabled
platforms: macOS
platform: darwin
description: |
Internet Sharing uses the open source natd process to share an internet connection with other
computers and devices on a local network. This allows the Mac to function as a router and share
the connection to other, possibly unauthorized, devices.
resolution: |
Graphical Method:
1. Open System Settings
2. Select General
3. Select Sharing
4. Set Internet Sharing to disabled
query: |
SELECT 1 WHERE NOT EXISTS (
SELECT 1 FROM plist WHERE
path = '/Library/Preferences/SystemConfiguration/com.apple.nat.plist' AND
key = 'NAT' AND
subkey = 'Enabled' AND
value = '1'
);
purpose: Informational
tags: compliance, CIS, CIS_Level1, CIS2.3.3.8
contributors: artemist-work
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Content Caching Is Disabled (MDM Required)
platforms: macOS

View file

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/sudo /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict Enabled -int 0