macOS
TMA-MACOS15-5.3.2
Ensure all APFS and HFS+ external user storage 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. Apple introduced CoreStorage with Mac OS X 10.7 Lion. It is used as the default for formatting on macOS volumes prior to macOS 10.13 High Sierra. All HFS and CoreStorage Volumes should be encrypted. Audit: Fails when any attached external APFS/HFS+ volume reports FileVault: No; no external volumes is compliant.
檢查方式
稽核方法: Shell 指令
shell
[ -x /usr/sbin/diskutil ] || exit 1
out=$(/usr/sbin/diskutil list external | /usr/bin/grep -E 'APFS Volume|Apple_HFS|Logical Volume' | /usr/bin/awk '{print $NF}' | /usr/bin/xargs -n1 /usr/sbin/diskutil info | /usr/bin/grep -E "Volume Name|FileVault")
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-15
- 標籤
- macossystem-access
- 參考資料
- CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.3.2 Ensure all APFS and HFS+ external user storage volumes are encrypted
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos