macOS
TMA-MACOS14-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. Apple Mobile File Integrity validates that application code is validated.
檢查方式
稽核方法: 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 Method: Run the following command to enable the Apple Mobile File Integrity service: % /usr/bin/sudo /usr/sbin/nvram boot-args=""
屬性
- 作業系統
- macos-14
- 標籤
- macossonoma
- 參考資料
- CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 5.1.3 Ensure Apple Mobile File Integrity (AMFI) Is Enabled
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos