macOS
TMA-MACOS-2.3.3.9
Ensure Media Sharing Is Disabled
Description
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.
Méthode de vérification
Méthode d'audit: Commande 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- Sortie attendue
true
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Profile (preferred): com.apple.applicationaccess allowMediaSharing = <false/>; com.apple.applicationaccess allowMediaSharingModification = <false/>.
Propriétés
- Systèmes d'exploitation
- macos-26
- Étiquettes
- macossystem-settings
- Référence
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.3.3.9 Ensure Media Sharing Is Disabled
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
tmaegis scan --target macos --level 2