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

macOS

TMA-MACOS15-5.6

Ensure the "root" Account Is Disabled

高レベル 1自動macos

説明

The root account is a superuser account that has access privileges to perform any actions and read/write to any file on the computer. With some versions of Linux, the system administrator may commonly use the root account to perform administrative functions. Previous versions of the benchmark included a graphical check for the audit and remediation as well as a different Terminal command for the remediation.

チェック方法

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

shell
out=$(/usr/bin/dscl . -read /Users/root AuthenticationAuthority 2>&1)
printf '%s\n' "$out" | /usr/bin/grep -q "No such key: AuthenticationAuthority" && echo compliant
期待される出力
compliant

修正方法

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

Terminal: sudo /usr/bin/fdesetup remove -user root 2>/dev/null ; sudo /usr/bin/dscl /Local/Default delete /Users/root AuthenticationAuthority.

プロパティ

オペレーティングシステム
macos-15
タグ
macossystem-access
参照
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.6 Ensure the "root" Account Is Disabled

このホストをチェック

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

shell
tmaegis scan --target macos