TMAegisBeta
更多 macos 规则

macOS

TMA-MACOS-2.6.6

Ensure FileVault Is Enabled

高级别 1自动化macos

说明

FileVault secures a system's data by automatically encrypting its boot volume and requiring a password or recovery key to access it. FileVault should be used with a saved escrow key to ensure that the owner can decrypt their data if the password is lost. FileVault may also be enabled using command line using the fdesetup command. Audit: Requires FileVault On and the com.apple.MCX dontAllowFDEDisable profile key (the benchmark requires the profile).

检查方式

审计方法: Shell 命令

shell
s=$(/usr/bin/fdesetup status 2>/dev/null) || exit 1
p=$(/usr/bin/osascript -l JavaScript <<'EOS'
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.MCX').objectForKey('dontAllowFDEDisable').js
EOS
)
if printf '%s' "$s" | /usr/bin/grep -q "FileVault is On" && [ "$p" = true ]; then echo compliant; else echo "$s dontAllowFDEDisable=${p:-unset}"; fi
预期输出
compliant

修复方式

修复方法: 操作指南或基础设施补丁

Profile (preferred): com.apple.MCX dontAllowFDEDisable = <true/>. GUI: System Settings > Security & Privacy > Turn On.

属性

操作系统
macos-26
标签
macossystem-settings
参考
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.6.6 Ensure FileVault Is Enabled

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target macos