TMAegisBêta
Plus de règles pour macos

macOS

TMA-MACOS15-1.4

Ensure Install Application Updates from the App Store Is Enabled

MoyenneNiveau 1Automatiséemacos

Description

Ensure that application updates are installed after they are available from Apple. These updates do not require reboots or administrator privileges for end users.

Méthode de vérification

Méthode d'audit: Commande shell

shell
/usr/bin/osascript -l JavaScript <<'EOS'
function run() {
  let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.commerce').objectForKey('AutoUpdate'))
  let pref2 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.SoftwareUpdate').objectForKey('AutomaticallyInstallAppUpdates'))
  if ( pref1 == 1 || pref2 == 1 ) {
    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.SoftwareUpdate AutomaticallyInstallAppUpdates = <true/>. Terminal: sudo /usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE. GUI: System Settings > General > Software Update > i > Set Install application updates from the App Store to enabled > Done.

Propriétés

Systèmes d'exploitation
macos-15
Étiquettes
macossoftware-update
Référence
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 1.4 Ensure Install Application Updates from the App Store Is Enabled

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target macos