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