Source: https://swgbar.com/zh-CN/guides/palo-alto-globalprotect-prisma-ssl-decryption-mac/
Language: zh-CN

# Mac 上的 Palo Alto GlobalProtect 与 Prisma Access SSL 解密：检测与绕过

检测 Palo Alto GlobalProtect 或 Prisma Access 是否正在 Mac 上执行 SSL Forward Proxy 解密（区别于仅 VPN 隧道转发），并对比按域名绕过 SWG、Decryption Exclusions 与 CA 信任配置。

SWG bar · 更新日期 2026年11月23日

要确认 **Palo Alto GlobalProtect** 或 **Prisma Access** 是否正在你的 Mac 上解密 HTTPS 流量，请打开 **SWG bar → 概览**（或运行 `swgbar overview`），核实**域名劫持占比**是否大于 `0%`，以及**中间人证书**列表中是否出现企业的 **Forward Trust CA**（或 Palo Alto / Prisma Access 中级 CA）。若要在获授权的 Mac 上为单个出错主机名绕过 Palo Alto SSL 解密，请打开 **SWG bar → 域名**，选中该主机名并开启**绕过 SWG**（或运行 `swgbar bypass enable <domain>`）。

许多 Mac 开发者误以为只要连上 **GlobalProtect**，所有 HTTPS 连接就一定会被解密——或者相反，以为 VPN 隧道永远不会解密 TLS。实际上，GlobalProtect 会通过 macOS 虚拟接口（`utun`）或 Prisma Access Explicit Proxy 将流量牵引至 **PAN-OS Next-Generation Firewall** 或 **Prisma Access** 安全节点，再由安全策略按 URL 分类与目标地址选择性地执行 **SSL Forward Proxy** 解密。

## 1\. 区分 GlobalProtect VPN 隧道与主动 SSL Forward Proxy 解密

由于 macOS MDM 已将企业的 Palo Alto **Forward Trust** 根证书推送到 `/Library/Keychains/System.keychain`，即使正在发生 HTTPS Break-and-Inspect 解密重签，浏览器依然会显示正常的绿色或中性锁形图标。请逐域名确认流量究竟只是经隧道转发，还是已被实际解密：

*   **使用 SWG bar 持续监测**：[安装 SWG bar](<https://swgbar.com/zh-CN/install/>)（macOS 14+，Apple 芯片，提供 14 个使用日免费试用），然后访问或请求目标主机。打开 **SWG bar → 域名**或运行 `swgbar probe <domain>`：
    *   显示**公共路径**且出口网卡为`虚拟网卡`，说明 GlobalProtect 仅在通过 `utun` 隧道转发数据包，Prisma Access / PAN-OS **并未**对该主机名解密 TLS。
    *   显示由企业 Forward Trust CA 签发的**已确认**拦截状态，说明 **SSL Forward Proxy** 正在主动终止并重签该主机名的 TLS 证书。
*   **在终端快速抽检**：

```
openssl s_client -connect api.github.com:443 -servername api.github.com </dev/null 2>/dev/null | openssl x509 -noout -issuer -subject
```

如果 `issuer=` 显示企业内部 CA 或 Palo Alto / Prisma Forward Trust CA，而非公共签发机构（例如 DigiCert、Let’s Encrypt 或 Google Trust Services），则说明该域名已开启 SSL 解密。如需更深入的排查步骤，请阅读[macOS VPN 虚拟网卡与 SWG HTTPS 检查对比](<https://swgbar.com/zh-CN/guides/macos-vpn-virtual-interface-vs-swg-inspection/>)和[在 Mac 上使用 OpenSSL 与 security verify-cert 验证 TLS 证书](<https://swgbar.com/zh-CN/guides/verify-tls-certificates-openssl-security-verify-cert-macos/>)。

## 2\. 为什么 GlobalProtect 会导致现代 Mac 应用异常——以及强杀它为何无效

Palo Alto SSL Forward Proxy 解密在 macOS 上常引发以下几类典型故障：

*   **证书固定应用与 mTLS 校验失败**：即便 MDM 已在系统钥匙串中信任 Forward Trust 根证书，启用证书固定（certificate pinning）的客户端与双向 TLS（mTLS）应用仍会拒绝重签后的证书（详见[证书固定与 mTLS 在 SWG 检查下为何失效](<https://swgbar.com/zh-CN/guides/certificate-pinning-mtls-swg-inspection-macos/>)）。
*   **现代 TLS 1.3 / 后量子密钥交换兼容性问题（`decrypt-unsupport-param`）**：采用混合后量子 TLS 密钥交换（如 ML-KEM / Kyber）的新版 Chrome、Electron、`Cursor` 和 `VS Code`，在较旧的 PAN-OS SSL Decryption Profile 下容易触发握手重置。
*   **Always-On GlobalProtect（`PanGPS` / `PanGPA`）难以手动关闭**：在 MDM 托管的 Mac 上，GlobalProtect 通常会隐藏“断开连接”按钮或通过 LaunchDaemons 自动重连；取消勾选 macOS Wi-Fi 代理设置对 GlobalProtect 的 `utun` 隧道同样无效，而强杀 VPN 进程还会直接切断企业内网资源访问。

## 3\. 在 macOS 上应对 Palo Alto / Prisma Access SSL 解密的三种实用方案

| 方案 | 控制方 | 是否保持 GlobalProtect 与内网 VPN 正常运行？ | 最适用场景 |
| --- | --- | --- | --- |
| **按域名绕过 SWG（`SWG bar`）** | 本地 Mac 用户（获授权网络中） | 是——仅将选定主机名经由 Mac 的物理`硬件网卡` IPv4 接口路由 | 无需断开 GlobalProtect，即可立即缓解证书固定应用、TLS 1.3 握手错误或开发 API 的单域名故障（详见[如何在 Mac 上绕过 SWG](<https://swgbar.com/zh-CN/guides/how-to-bypass-swg/>)） |
| **Panorama / Strata Cloud Manager（`Decryption Exclusions` / `No-Decrypt` 策略）** | 企业 IT / 网络安全团队 | 是 | 在 **Objects → Decryption → Decryption Exclusions** 配置全公司永久豁免、添加 **No-Decrypt** 策略规则，或升级 PAN-OS SSL Decryption Profile（详见[SWG 绕过与 TLS 解密例外对比](<https://swgbar.com/zh-CN/guides/swg-bypass-vs-tls-exception/>)） |
| **导出并在 CLI 运行时中信任 Palo Alto Forward Trust Root CA** | 本地开发者 | 是（流量仍保持解密） | 公司策略强制要求全隧道解密，且 `git`、`npm`、`brew`、`Python`、`Claude Code` 或 `Cursor` 报 `unable to get local issuer certificate` |

## 4\. 开启单域名绕过或信任 Palo Alto Forward Trust CA

### 方案 A：使用 SWG bar 开启单域名绕过（获授权时）

1.  打开 **SWG bar → 域名**，找到出错的准确主机名（请注意认证、API 与 CDN 端点分别对应不同主机名——详见[多域名 SSO、API 与 CDN 绕过指南](<https://swgbar.com/zh-CN/guides/multi-domain-sso-api-cdn-swg-bypass/>)），在**绕过 SWG**一行点击**开启**，或运行 `swgbar bypass enable <domain>`。
2.  等待状态变为**绕过中**，然后重启受影响的浏览器标签页、IDE 或 CLI 会话，使连接池在物理`硬件网卡` IPv4 接口上直接建立新连接。
3.  运行 `swgbar probe <domain>` 验证已观测到源站服务器的公共证书链。注意：如果 GlobalProtect 启用了严格的全隧道防火墙规则并丢弃经物理`硬件网卡`的直接 IPv4 出站流量，请运行 `swgbar bypass disable <domain>` 立即恢复正常的 GlobalProtect 路由，并改用方案 B 或向团队申请 Panorama Decryption Exclusion。

### 方案 B：为 CLI 与 AI 工具配置信任 Palo Alto Forward Trust CA

当企业策略要求保持全隧道解密时，请从“钥匙串访问”导出组织的 Palo Alto / Prisma Forward Trust 根证书 PEM 文件（可在 **SWG bar → 证书**中查看准确的 CA 名称），并为开发运行时配置信任：

```
# Node.js、npm、Claude Code、Cursor
export NODE_EXTRA_CA_CERTS="$HOME/.certs/palo-alto-forward-trust.pem"

# Python（pip、requests）、OpenSSL、Homebrew curl
export SSL_CERT_FILE="$HOME/.certs/palo-alto-forward-trust.pem"
export REQUESTS_CA_BUNDLE="$HOME/.certs/palo-alto-forward-trust.pem"
export CURL_CA_BUNDLE="$HOME/.certs/palo-alto-forward-trust.pem"

# Git
git config --global http.sslCAInfo "$HOME/.certs/palo-alto-forward-trust.pem"
```

涵盖 Homebrew、Docker Desktop、Python、Node.js、Claude Code 与 Cursor 的完整配置说明，请阅读[Mac 在 SWG 下的 Homebrew、Docker、Python 与 Node.js CA 信任配置](<https://swgbar.com/zh-CN/guides/homebrew-docker-python-node-ca-trust-swg-macos/>)和[修复 Mac 上 Claude Code 与 Cursor 证书错误](<https://swgbar.com/zh-CN/guides/ai-coding-agents-claude-code-cursor-swg-macos/>)。

macOS 14+ · Apple Silicon

## 别再盲猜公司 SWG 解密了哪些域名。

SWG bar 在 Mac 菜单栏实时检测 HTTPS 解密，并支持单域名一键绕过，同时保持公司 VPN 与 SSO 正常工作。

[$0 开启 14 天免费试用](<https://swgbar.com/releases/2.4.12/SWGBar-macOS-arm64.pkg>) [诊断 TLS 报错](<https://swgbar.com/zh-CN/tools/tls-error-decoder/>) [免费 Chrome 扩展](<https://chromewebstore.google.com/detail/bidclnlfneemkkdeanlcbpjfdalelmbf>)

## 继续阅读

*   [如何在 Mac 上绕过 SWG（单域名一键绕过与 CLI 命令）](<https://swgbar.com/zh-CN/guides/how-to-bypass-swg/>)
*   [如何在 Mac 上绕过 SSL 检查（企业 SWG 单域名绕过指南）](<https://swgbar.com/zh-CN/guides/bypass-ssl-inspection-mac/>)
*   [如何在 macOS 上绕过 HTTPS 与 TLS 检查（Break-and-Inspect 指南）](<https://swgbar.com/zh-CN/guides/bypass-https-tls-inspection-mac/>)
*   [如何在 Mac 上绕过企业代理与 SWG SSL 检查](<https://swgbar.com/zh-CN/guides/bypass-corporate-proxy-ssl-inspection-mac/>)
*   [如何判断我的电脑是否被 SWG 劫持（Mac 上检测 HTTPS/SSL 检查）](<https://swgbar.com/zh-CN/guides/detect-https-inspection/>)
*   [如何检查公司或办公 Mac 是否正在拦截 HTTPS（SSL 检查排查）](<https://swgbar.com/zh-CN/guides/check-if-work-mac-intercepting-https/>)
*   [公司在工作 Mac 上能看到我的浏览记录、无痕模式和个人账号吗？](<https://swgbar.com/zh-CN/guides/can-employer-see-browsing-history-incognito-work-mac/>)
*   [Mac SSL 检查检测工具：菜单栏实时侦测 HTTPS 拦截](<https://swgbar.com/zh-CN/guides/ssl-inspection-checker-mac/>)
*   [Mac 上的 Zscaler SSL 检查：如何检测并按域名绕过](<https://swgbar.com/zh-CN/guides/zscaler-ssl-inspection-bypass-mac/>)
*   [如何在 Mac 上关闭或绕过 Zscaler（当防篡改保护将其锁定时）](<https://swgbar.com/zh-CN/guides/disable-turn-off-zscaler-on-mac/>)
*   [Mac 上的 Cloudflare WARP 与 Zero Trust TLS 检查：检测与绕过](<https://swgbar.com/zh-CN/guides/cloudflare-warp-tls-inspection-mac/>)
*   [Mac 上的 Netskope SSL 检查：检测解密与单域名绕过指南](<https://swgbar.com/zh-CN/guides/netskope-ssl-inspection-bypass-mac/>)
*   [Mac 上的 Cisco Umbrella SSL 检查：检测解密并按域名绕过](<https://swgbar.com/zh-CN/guides/cisco-umbrella-ssl-inspection-bypass-mac/>)
*   [Mac 上的 Fortinet FortiClient 与 FortiGate（Fortinet\_CA\_SSL）检查：检测与绕过](<https://swgbar.com/zh-CN/guides/fortinet-forticlient-ssl-inspection-bypass-mac/>)
*   [修复 Mac 上 Git 与 npm 的 'unable to get local issuer certificate' / SELF\_SIGNED\_CERT\_IN\_CHAIN 报错](<https://swgbar.com/zh-CN/guides/fix-git-npm-unable-to-get-local-issuer-certificate-mac/>)
*   [修复 Mac 上 Python 'CERTIFICATE\_VERIFY\_FAILED' 与 Docker 'x509: certificate signed by unknown authority' 报错](<https://swgbar.com/zh-CN/guides/fix-python-docker-certificate-verify-failed-x509-mac/>)
*   [修复 Mac 上 GitHub Copilot、OpenAI Codex 与 Gemini CLI 的 SSL 证书错误（Zscaler / SWG）](<https://swgbar.com/zh-CN/guides/fix-codex-copilot-gemini-cli-ssl-certificate-error-mac/>)
*   [SWG bar 中的“已确认”与“疑似”HTTPS 检查状态解析](<https://swgbar.com/zh-CN/guides/confirmed-vs-suspected-https-inspection/>)
*   [在 SWG bar 中检查中间人根证书与签发机构](<https://swgbar.com/zh-CN/guides/inspect-mitm-root-certificates-macos/>)
*   [Mac 上的企业 SWG 与 MDM HTTPS 解密检查解析](<https://swgbar.com/zh-CN/guides/enterprise-swg-https-inspection-macos/>)
*   [SWG 绕过与 TLS 解密例外（Break-and-Inspect）对比](<https://swgbar.com/zh-CN/guides/swg-bypass-vs-tls-exception/>)
*   [在 Mac 上为多域名 Web 应用、SSO、CDN 与 API 配置 SWG 绕过](<https://swgbar.com/zh-CN/guides/multi-domain-sso-api-cdn-swg-bypass/>)
*   [排查 Mac 上 SWG 绕过的“恢复中”“已暂停”与连接错误](<https://swgbar.com/zh-CN/guides/troubleshoot-swg-bypass-recovering-paused-macos/>)
*   [macOS VPN 虚拟网卡与 SWG HTTPS 检查对比](<https://swgbar.com/zh-CN/guides/macos-vpn-virtual-interface-vs-swg-inspection/>)
*   [为什么证书固定（Pinning）应用与 mTLS 在 SWG 检查下会失效](<https://swgbar.com/zh-CN/guides/certificate-pinning-mtls-swg-inspection-macos/>)
*   [修复 Mac 终端 CLI 与 AI 工具中的 SWG TLS/SSL 证书错误](<https://swgbar.com/zh-CN/guides/swg-tls-certificate-errors-macos/>)
*   [Mac 在 SWG 下的 Homebrew、Docker、Python 与 Node.js CA 信任配置](<https://swgbar.com/zh-CN/guides/homebrew-docker-python-node-ca-trust-swg-macos/>)
*   [修复 Mac 上 Claude Code 与 Cursor 的 'unable to get local issuer certificate' 报错（SWG 与 MCP）](<https://swgbar.com/zh-CN/guides/ai-coding-agents-claude-code-cursor-swg-macos/>)
*   [在 Mac 上使用 openssl 与 security verify-cert 验证 TLS 证书](<https://swgbar.com/zh-CN/guides/verify-tls-certificates-openssl-security-verify-cert-macos/>)
*   [SWG bar 权限、本地隐私与 TLS 探测限额说明](<https://swgbar.com/zh-CN/guides/macos-network-extension-privacy-probe-limits/>)
*   [SWG bar 如何检查 HTTPS 解密](<https://swgbar.com/zh-CN/how-it-works/>)
*   [下载并安装 Mac 版 SWG bar（macOS 14+）](<https://swgbar.com/zh-CN/install/>)
*   [检测 SSL 与 HTTPS 检查的 Chrome 扩展（SWG bar 配套插件）](<https://swgbar.com/zh-CN/chrome-extension/>)
*   [SWG bar CLI 使用指南](<https://swgbar.com/zh-CN/cli/>)
*   [SWG bar MCP 使用指南](<https://swgbar.com/zh-CN/mcp/>)
*   [SWG bar 版本信息](<https://swgbar.com/zh-CN/releases/>)
*   [关于 SWG bar](<https://swgbar.com/zh-CN/about/>)
