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