TMAegisベータ
macos のその他のルール

macOS

TMA-MACOS15-2.11.1

Ensure an Inactivity Interval of 15 Minutes Or Less for the Screen Saver Is Enabled

中レベル 1自動macos

説明

A locking screen saver is one of the standard security controls to limit access to a computer and the current user's session when the computer is temporarily unused or unattended. In macOS, the screen saver starts after a value is selected in the drop- down menu. 15 minutes or less is an acceptable value. Audit: Unlike the benchmark script, an unset idleTime fails (JavaScript treats null <= 900 as true).

チェック方法

監査方法: シェルコマンド

shell
/usr/bin/osascript -l JavaScript <<'EOS'
function run() {
  let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver').objectForKey('idleTime'))
  if ( timeout != null && timeout > 0 && timeout <= 900 ) {
    return("true")
  } else {
    return("false")
  }
}
EOS
期待される出力
true

修正方法

修正方法: ガイダンスまたは IaC パッチ

Profile (preferred): com.apple.screensaver idleTime = <integer><≤900></integer>.

プロパティ

オペレーティングシステム
macos-15
タグ
macossystem-settings
参照
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 2.11.1 Ensure an Inactivity Interval of 15 Minutes Or Less for the Screen Saver Is Enabled

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target macos