#!/usr/bin/env bash set -euo pipefail section() { printf '\n== %s ==\n' "$1" } section "macOS" sw_vers echo "Модель: $(sysctl -n hw.model 2>/dev/null || echo 'неизвестно')" section "FileVault" if command -v fdesetup >/dev/null 2>&1; then fdesetup status || true else echo "fdesetup не найден." fi section "Gatekeeper" if command -v spctl >/dev/null 2>&1; then spctl --status || true else echo "spctl не найден." fi section "System Integrity Protection" if command -v csrutil >/dev/null 2>&1; then csrutil status || true else echo "csrutil не найден." fi section "Application Firewall" firewall="/usr/libexec/ApplicationFirewall/socketfilterfw" if [[ -x "$firewall" ]]; then "$firewall" --getglobalstate || true "$firewall" --getstealthmode || true else echo "socketfilterfw не найден." fi section "Итог" echo "Проверьте, что FileVault включён, Gatekeeper активен, SIP не отключён." echo "Для включения защиты используйте Системные настройки, а не этот отчёт."