TMAegis
Mais regras para macos

TMA-MACOS-2.13.3

Ensure Automatic Login Is Disabled

AltaNível 1Automatizadamacos

Descrição

The automatic login feature saves a user's system access credentials and bypasses the login screen. Instead, the system automatically loads to the user's desktop screen.

Como é verificado

Método de auditoria: Comando shell

shell
/usr/bin/osascript -l JavaScript <<'EOS'
function run() {
  let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.loginwindow').objectForKey('com.apple.login.mcx.DisableAutoLoginClient'))
  let pref2 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.loginwindow').objectForKey('autoLoginUser'))
  if ( pref1 == 1 || pref2 == null ) {
    return("true")
  } else {
    return("false")
  }
}
EOS
Saída esperada
true

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Profile (preferred): com.apple.loginwindow com.apple.login.mcx.DisableAutoLoginClient = <true/>. Terminal: sudo /usr/bin/defaults delete /Library/Preferences/com.apple.loginwindow autoLoginUser. GUI: System Settings > Users & Groups > Set Automatic login in as... to Off.

Propriedades

Sistemas operacionais
macos-26
Tags
macossystem-settings
Referência
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.13.3 Ensure Automatic Login Is Disabled

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target macos