MITRE ATT&CK / Techniques / T1021.004

Remote Services: SSH

ID
T1021.004
Tactics
TA0008 Lateral Movement
Sub-technique of
T1021 Remote Services
Platforms
ESXi, Linux, macOS, Windows
Data sources
Process Creation, Logon Session Creation, Network Traffic Flow, Logon Session Metadata, Network Traffic Content, Command Execution
Source
attack.mitre.org
MITRE last modified
18 Sep 2026

Adversaries may use Valid Accounts to log into remote machines using Secure Shell (SSH). The adversary may then perform actions as the logged-on user.

SSH is a protocol that allows authorized users to open remote shells on other computers. Many Linux and macOS versions come with SSH installed by default, although typically disabled until the user enables it. On ESXi, SSH can be enabled either directly on the host (e.g., via vim-cmd hostsvc/enable_ssh) or via vCenter.[2][3][4] Modern versions of Windows include a built-in SSH server and client.[5] The SSH server can be configured to use standard password authentication or public-private keypairs in lieu of or in addition to a password. In this authentication scenario, the user’s public key must be in a special file on the computer running the server that lists which keypairs are allowed to login as that user (i.e., SSH Authorized Keys).

Detection

Mitigations (3)

M1018 User Account Management

Limit which user accounts are allowed to login via SSH.

M1032 Multi-factor Authentication

Require multi-factor authentication for SSH connections wherever possible, such as password protected SSH keys.

M1042 Disable or Remove Feature or Program

Disable the SSH daemon on systems that do not require it, especially ESXi servers. For macOS, ensure Remote Login is disabled under Sharing Preferences.[1]

Groups (19)

Software (5)

References

  1. Apple Unified Log Analysis Remote Login and Screen Sharing
  2. Sygnia ESXi Ransomware 2025
  3. TrendMicro ESXI Ransomware
  4. Sygnia Abyss Locker 2025
  5. Windows SSH