T1578.003 - Delete Cloud Instance#
An adversary may delete a cloud instance after they have performed malicious activities in an attempt to evade detection and remove evidence of their presence. Deleting an instance or virtual machine can remove valuable forensic artifacts and other evidence of suspicious behavior if the instance is not recoverable.
An adversary may also Create Cloud Instance and later terminate the instance after achieving their objectives.(Citation: Mandiant M-Trends 2020)
Atomic Tests:#
Currently, no tests are available for this technique.
Detection#
The deletion of a new instance or virtual machine is a common part of operations within many cloud environments. Events should then not be viewed in isolation, but as part of a chain of behavior that could lead to other activities. For example, detecting a sequence of events such as the creation of an instance, mounting of a snapshot to that instance, and deletion of that instance by a new user account may indicate suspicious activity.
In AWS, CloudTrail logs capture the deletion of an instance in the TerminateInstances
event, and in Azure the deletion of a VM may be captured in Azure activity logs.(Citation: AWS CloudTrail Search)(Citation: Azure Activity Logs) Google’s Admin Activity audit logs within their Cloud Audit logs can be used to detect the usage of gcloud compute instances delete
to delete a VM.(Citation: Cloud Audit Logs)