TMAegisBeta
更多 macos 规则

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