macOS
TMA-MACOS-6.3.1
Ensure Automatic Opening of Safe Files in Safari Is Disabled
中级别 1自动化macos
说明
Safari will automatically run or execute what it considers safe files. This can include installers and other files that execute on the operating system. Safari evaluates file safety by using a list of filetypes maintained by Apple. The list of files include text, image, video and archive formats that would be run in the context of the OS rather than the browser.
检查方式
审计方法: Shell 命令
shell
out=$(/usr/sbin/system_profiler SPConfigurationProfileDataType 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -E 'AutoOpenSafeDownloads' | /usr/bin/tr -d ' '- 预期输出
AutoOpenSafeDownloads=0;
修复方式
修复方法: 操作指南或基础设施补丁
Profile (preferred): com.apple.Safari AutoOpenSafeDownloads = <false/>.
属性
- 操作系统
- macos-26
- 标签
- macosapplications
- 参考
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 6.3.1 Ensure Automatic Opening of Safe Files in Safari Is Disabled
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
shell
tmaegis scan --target macos