macOS
TMA-MACOS-2.3.3.9
Ensure Media Sharing Is Disabled
ThấpCấp 2Tự độngmacos
Mô tả
Starting with macOS 10.15, Apple has provided a control which permits a user to share Apple downloaded content on all Apple devices that are signed in with the same Apple Account. This allows users to share downloaded Movies, Music, or TV shows with other controlled macOS, iOS and iPadOS devices, as well as photos with Apple TVs. With this capability, guest users can also use media downloaded on the computer.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
/usr/bin/osascript -l JavaScript <<'EOS'
function run() {
let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess').objectForKey('allowMediaSharing'))
let pref2 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess').objectForKey('allowMediaSharingModification'))
if ( pref1 == 0 && pref2 == 0 ) {
return("true")
} else {
return("false")
}
}
EOS- Đầu ra mong đợi
true
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
Profile (preferred): com.apple.applicationaccess allowMediaSharing = <false/>; com.apple.applicationaccess allowMediaSharingModification = <false/>.
Thuộc tính
- Hệ điều hành
- macos-26
- Thẻ
- macossystem-settings
- Tham chiếu
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.3.3.9 Ensure Media 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 --level 2