MITRE ATT&CK / Techniques / T1021.008

Remote Services: Direct Cloud VM Connections

ID
T1021.008
Tactics
TA0008 Lateral Movement
Sub-technique of
T1021 Remote Services
Platforms
IaaS
Data sources
Logon Session Creation, Process Creation
Source
attack.mitre.org
MITRE last modified
16 Apr 2025

Adversaries may leverage Valid Accounts to log directly into accessible cloud hosted compute infrastructure through cloud native methods. Many cloud providers offer interactive connections to virtual infrastructure that can be accessed through the Cloud API, such as Azure Serial Console[1], AWS EC2 Instance Connect[2][3], and AWS System Manager.[4].

Methods of authentication for these connections can include passwords, application access tokens, or SSH keys. These cloud native methods may, by default, allow for privileged access on the host with SYSTEM or root level access.

Adversaries may utilize these cloud native methods to directly access virtual infrastructure and pivot through an environment.[5] These connections typically provide direct console access to the VM rather than the execution of scripts (i.e., Cloud Administration Command).

Detection

Mitigations (2)

M1018 User Account Management

Limit which users are allowed to access compute infrastructure via cloud native methods.

M1042 Disable or Remove Feature or Program

If direct virtual machine connections are not required for administrative use, disable these connection types where feasible.

References

  1. Azure Serial Console
  2. EC2 Instance Connect
  3. lucr-3: Getting SaaS-y in the cloud
  4. AWS System Manager
  5. SIM Swapping and Abuse of the Microsoft Azure Serial Console