MITRE ATT&CK / Techniques / T1021.005

Remote Services: VNC

ID
T1021.005
Tactics
TA0008 Lateral Movement
Sub-technique of
T1021 Remote Services
Platforms
Linux, Windows, macOS
Data sources
Process Creation, Logon Session Creation, Network Traffic Flow, Logon Session Metadata
Source
attack.mitre.org
MITRE last modified
25 Oct 2025

Adversaries may use Valid Accounts to remotely control machines using Virtual Network Computing (VNC). VNC is a platform-independent desktop sharing system that uses the RFB (“remote framebuffer”) protocol to enable users to remotely control another computer’s display by relaying the screen, mouse, and keyboard inputs over the network.[1]

VNC differs from Remote Desktop Protocol as VNC is screen-sharing software rather than resource-sharing software. By default, VNC uses the system's authentication, but it can be configured to use credentials specific to VNC.[2][3]

Adversaries may abuse VNC to perform malicious actions as the logged-on user such as opening documents, downloading files, and running arbitrary commands. An adversary could use VNC to remotely control and monitor a system to collect data and information to pivot to other systems within the network. Specific VNC libraries/implementations have also been susceptible to brute force attacks and memory usage exploitation.[4][5][6][7][8][9]

Detection

Mitigations (4)

M1033 Limit Software Installation

Restrict software installation to user groups that require it. A VNC server must be manually installed by the user or adversary.

M1037 Filter Network Traffic

VNC defaults to TCP ports 5900 for the server, 5800 for browser access, and 5500 for a viewer in listening mode. Filtering or blocking these ports will inhibit VNC traffic utilizing default ports.

M1042 Disable or Remove Feature or Program

Uninstall any VNC server software where not required.

M1047 Audit

Inventory workstations for unauthorized VNC server software.

Groups (4)

Software (7)

References

  1. The Remote Framebuffer Protocol
  2. MacOS VNC software for Remote Desktop
  3. VNC Authentication
  4. Hijacking VNC
  5. macOS root VNC login without authentication
  6. VNC Vulnerabilities
  7. Offensive Security VNC Authentication Check
  8. Attacking VNC Servers PentestLab
  9. Havana authentication bug