macOS
TMA-MACOS-5.3.1
Ensure all internal user storage APFS volumes are encrypted
高级别 1自动化macos
说明
Apple developed the APFS (Apple File System) structure primarily for flash and solid- state drives. This file structure was first made available in 10.12 and then became the default in 10.13. macOS computers generally have several volumes created as part of APFS formatting, including Preboot, Recovery and Virtual Memory (VM), as well as traditional user disks. Audit: Fails when any internal APFS user volume (Preboot, Recovery and VM excluded) reports FileVault: No.
检查方式
审计方法: Shell 命令
shell
[ -x /usr/sbin/diskutil ] || exit 1
out=$(/usr/sbin/diskutil list internal | /usr/bin/grep 'APFS Volume' | /usr/bin/awk '{print $NF}' | /usr/bin/xargs -n1 /usr/sbin/diskutil info | /usr/bin/grep -E "Volume Name|FileVault" | /usr/bin/sed '/Preboot/{N;d;}' | /usr/bin/sed '/Recovery/{N;d;}' | /usr/bin/sed '/VM/{N;d;}')
if printf '%s\n' "$out" | /usr/bin/grep -qE 'FileVault: +No'; then printf '%s\n' "$out"; else echo compliant; fi- 预期输出
compliant
修复方式
修复方法: 操作指南或基础设施补丁
Use Disk Utility to erase a user disk and format as APFS (Encrypted).
属性
- 操作系统
- macos-26
- 标签
- macossystem-access
- 参考
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.3.1 Ensure all internal user storage APFS volumes are encrypted
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
shell
tmaegis scan --target macos