SIA -Detecting SSH Inspection on client machines

SIA -Detecting SSH Inspection on client machines

99
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:03 PM


Objective


Enterprise firewalls or Secure Web Gateways (such as Palo Alto, Zscaler, or Fortinet) often perform inline SSH inspection on port 22.

 

When connecting to SIA SSH endpoints (e.g., tenant.ssh.cyberark.cloud), inspection proxies intercept the session and replace Idira's authentic SSH proxy server banner and host key with OpenSSH certificates generated by the firewall.

 

This breaks trusted key verification and leads to connection failures or unwanted authentication prompts.



Environment


Secure Infrastructure Access (formerly DPA) DPA for SSH

Procedure


How to Run Detection Scripts

Replace <yout-tenant> with your organization's specific SIA hostname (e.g., tenant.ssh.cyberark.cloud).

Windows (PowerShell)

  1. Open Windows Terminal or PowerShell.

  2. Run the following command:

PowerShell

$t="your-tenant.ssh.cyberark.cloud"; $b=(ssh -vvv -o BatchMode=yes $t 2>&1 | Select-String "remote software version").Line; if (-not $b) { Write-Host "[!] RESULT: FAILED (Unreachable or invalid host)" -ForegroundColor Yellow } elseif ($b -match "OpenSSH|Debian|Ubuntu|PaloAlto|Fortinet|Zscaler") { Write-Host "[-] RESULT: INTERCEPTED ($b)" -ForegroundColor Red } else { Write-Host "[+] RESULT: DIRECT ($b)" -ForegroundColor Green }

Linux / macOS (Bash)

  1. Open a Terminal window.

  2. Run the following command:

Bash
t="your-tenant.ssh.cyberark.cloud"; b=$(ssh -vvv -o BatchMode=yes "$t" 2>&1 | grep "remote software version" | sed 's/.*debug1: //'); if [ -z "$b" ]; then printf "\033[0;33m[!] RESULT: FAILED (Unreachable or invalid host)\033[0m\n"; elif echo "$b" | grep -Ei "OpenSSH|Debian|Ubuntu|PaloAlto|Fortinet|Zscaler" >/dev/null; then printf "\033[0;31m[-] RESULT: INTERCEPTED (%s)\033[0m\n" "$b"; else printf "\033[0;32m[+] RESULT: DIRECT (%s)\033[0m\n" "$b"; fi

Interpreting Results

  • [+] RESULT: DIRECT (Green Output)

    • Meaning: The SSH session reaches CyberArk directly without network interception.

    • Indicator: The remote banner prints CyberArk's unique build hash string (e.g., 0053e6d67d31f78c...) rather than generic operating system or OpenSSH identifiers.

  • [-] RESULT: INTERCEPTED (Red Output)

    • Meaning: An intermediate network firewall or proxy is actively performing Man-in-the-Middle (MitM) SSH inspection on your connection.

    • Indicator: The banner displays standard Linux distribution tags or firewall software strings.

Remediation

If the result is INTERCEPTED, contact your network administrator to create an SSH/SSL inspection bypass rule for your enterprise CyberArk SIA wildcard domain (*.ssh.cyberark.cloud) on port 22.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000l8gCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail