Port 902 is the VMware ESXi host client and console port used by vSphere Client for VM console access (VMRC) and NFC data transfers. VMware uses port 902 for the legacy thick client connection and virtual machine console proxy. Restrict to management networks – exposed ESXi management ports enable full hypervisor compromise.
Port Number
902
Protocol
TCP
Service
VMware Authentication / Console
Range
IANA Registered (1024–49151)
Check which management ports are open (427 should be closed)
nmap -p 902,443,427 --open esxi-hostList ESXi local accounts (check for unauthorized accounts)
esxcli system account listAudit ESXi firewall rulesets (check for overly permissive rules)
esxcli network firewall ruleset list | grep -i enabledCheck if lockdown mode is enabled (should be 'normal' or 'strict')
vim-cmd hostsvc/hostsummary | grep -i lockdownvmware-cmd -l
esxcli network firewall ruleset list
nmap -p 902 esxi-hostPort 902 has been used by VMware since ESX 2.x (early 2000s) for the VM console protocol and NFC (Network File Copy). ESXi's attack surface increased dramatically as ransomware groups discovered that many organizations expose ESXi management to the internet. The ESXiArgs campaign (February 2023) was a mass exploitation event – automated scanning for port 427 (SLP) led to RCE on unpatched ESXi 6.x/7.x hosts, encrypting VMs for ransom.
How do I protect ESXi from ransomware?
1. Never expose ports 443/902/427 to the internet (ESXi management on isolated VLAN only). 2. Patch immediately (ESXi 7.0U3/8.0 fix CVE-2021-21974). 3. Disable SLP: /etc/init.d/slpd stop && esxcli network firewall ruleset set -e false -r CIMSLP. 4. Enable lockdown mode (restricts direct host access, forces vCenter-only management). 5. Disable SSH when not actively debugging. 6. Strong root password (20+ chars). 7. VM-level backups stored off-host (Veeam, Commvault).
What is port 902 used for exactly?
Port 902 serves two functions: (1) Virtual Machine Remote Console (VMRC) – keyboard/mouse/screen access to VMs, used by vCenter/Workstation to display VM consoles. (2) Network File Copy (NFC) – transfers VM disk files (VMDK), ISO images, and OVF templates during provisioning, cloning, and vMotion. Both use authenticated TLS but the authentication is only as strong as the ESXi root password or vCenter service account.