macOS
TMA-MACOS14-2.3.3.3
Ensure Printer Sharing Is Disabled
中等級 1自動化macos
說明
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.
檢查方式
稽核方法: Shell 指令
shell
out=$(/usr/sbin/cupsctl 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c "_share_printers=0" || true- 預期輸出
1
修補方式
修補方法: 操作指南或基礎設施修補檔
Graphical Method: Perform the following steps to disable Printer Sharing: 1. Open System Settings 2. Select General 3. Select Sharing 4. Set Printer Sharing to disabled Terminal Method: Run the following command to disable Printer Sharing: % /usr/bin/sudo /usr/sbin/cupsctl --no-share-printers
屬性
- 作業系統
- macos-14
- 標籤
- macossonoma
- 參考資料
- CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 2.3.3.3 Ensure Printer Sharing Is Disabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos