mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Add macOS CIS 2.3.3.4 (Printer Sharing) (#9665)
This makes sure printer sharing is disabled on macOS using the CUPS configuration file. This script makes a change that both works and is reflected in the macOS UI, unlike many of the scripts
This commit is contained in:
parent
a57a728e10
commit
61da4d3331
2 changed files with 31 additions and 0 deletions
|
|
@ -327,6 +327,34 @@ spec:
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: policy
|
||||
spec:
|
||||
name: CIS - Ensure Printer Sharing is Disabled
|
||||
platforms: macOS
|
||||
platform: darwin
|
||||
description: |
|
||||
By enabling Printer Sharing, the computer is set up as a
|
||||
print server to accept print jobs from other computers.
|
||||
Dedicated print servers or direct IP printing should be used instead.
|
||||
Disabling Printer Sharing mitigates the risk of attackers
|
||||
attempting to exploit the print server to gain access to the system.
|
||||
resolution: |
|
||||
Graphical Method:
|
||||
1. Open System Settings
|
||||
2. Select General
|
||||
3. Select Sharing
|
||||
4. Set Printer Sharing to disabled
|
||||
query: |
|
||||
SELECT 1 WHERE NOT EXISTS (
|
||||
SELECT * FROM file_lines WHERE
|
||||
path = '/etc/cups/cupsd.conf' AND
|
||||
line LIKE '%Allow @LOCAL%'
|
||||
);
|
||||
purpose: Informational
|
||||
tags: compliance, CIS, CIS_Level1, CIS2.3.3.4
|
||||
contributors: artemist-work
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: policy
|
||||
spec:
|
||||
name: CIS - Ensure Remote Login Is Disabled
|
||||
platforms: macOS
|
||||
|
|
|
|||
3
ee/cis/macos-13/test/scripts/CIS_2.3.3.4.sh
Executable file
3
ee/cis/macos-13/test/scripts/CIS_2.3.3.4.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/bin/sudo /usr/sbin/cupsctl --no-share-printers
|
||||
Loading…
Reference in a new issue