TMAegisBeta
Thêm quy tắc cho macos

macOS

TMA-MACOS15-2.3.3.10

Ensure Bluetooth Sharing Is Disabled

Trung bìnhCấp 1Tự độngmacos

Mô tả

Bluetooth Sharing allows files to be exchanged with Bluetooth-enabled devices. This setting only disables the receiving of files and requires both devices to be paired through Bluetooth as well as accepted by the receiver. This setting does not disable the ability to send files from the device to another paired Bluetooth device. Audit: Checks PrefKeyServicesEnabled for every local user (UID > 500); an unset key is the off-by-default state.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
ul=$(/usr/bin/dscl . -list /Users UniqueID 2>/dev/null) || exit 1
bad=""
for u in $(printf '%s\n' "$ul" | /usr/bin/awk '$2 > 500 {print $1}'); do
  v=$(/usr/bin/sudo -u "$u" /usr/bin/defaults -currentHost read com.apple.Bluetooth PrefKeyServicesEnabled 2>/dev/null)
  [ -n "$v" ] && [ "$v" != 0 ] && bad="$bad $u"
done
if [ -z "$bad" ]; then echo compliant; else echo "Bluetooth Sharing enabled for:$bad"; fi
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Terminal: sudo -u <username> /usr/bin/defaults -currentHost write com.apple.Bluetooth PrefKeyServicesEnabled -bool false ; sudo -u firstuser /usr/bin/defaults -currentHost write com.apple.Bluetooth PrefKeyServicesEnabled -bool false. GUI: System Settings > General > Sharing > Set Bluetooth Sharing to disabled.

Thuộc tính

Hệ điều hành
macos-15
Thẻ
macossystem-settings
Tham chiếu
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 2.3.3.10 Ensure Bluetooth Sharing Is Disabled

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target macos