macOS
TMA-MACOS-5.1.3
Ensure Apple Mobile File Integrity (AMFI) Is Enabled
高等級 1自動化macos
說明
Apple Mobile File Integrity (AMFI) was first released in macOS 10.12. The daemon and service block attempts to run unsigned code. AMFI uses launchd, code signatures, certificates, entitlements, and provisioning profiles to create a filtered entitlement dictionary for an app. AMFI is the macOS kernel module that enforces code-signing and library validation.
檢查方式
稽核方法: Shell 指令
shell
out=$(/usr/sbin/nvram -p 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -c "amfi_get_out_of_my_way=1" || true- 預期輸出
0
修補方式
修補方法: 操作指南或基礎設施修補檔
Terminal: sudo /usr/sbin/nvram boot-args="".
屬性
- 作業系統
- macos-26
- 標籤
- macossystem-access
- 參考資料
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.3 Ensure Apple Mobile File Integrity (AMFI) Is Enabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos