T1021.008: Direct Cloud VM Connections

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, AWS EC2 Instance Connect, and AWS System Manager..

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. These connections typically provide direct console access to the VM rather than the execution of scripts (i.e., Cloud Administration Command).

Detection

IDDS0028Data source and componentLogon Session: Logon Session CreationDescription

Monitor cloud audit logs and host logs for logon session events. These can be found in CloudTrail, Unified Audit Logs, Windows Event Logs and /var/log/auth.log or /var/log/secure for Linux systems.

Mitigation

IDM1018NameUser Account ManagementDescription

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

IDM1042NameDisable or Remove Feature or ProgramDescription

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