AWS CloudWatch Log Group Deletion for Defense Evasion
The deletion of AWS CloudWatch log groups, detected via CloudTrail logs, indicates a potential defense evasion attempt by adversaries aiming to remove audit trails and hinder incident response.
Attackers may delete CloudWatch log groups to remove evidence of their malicious activities within an AWS environment. This action is detected by monitoring CloudTrail logs for DeleteLogGroup events. The deletion of log groups, especially when performed outside of normal administrative tasks, can be a strong indicator of an attacker attempting to evade detection and hide their tracks. The targeting scope includes organizations leveraging AWS CloudWatch for logging and monitoring. This behavior can significantly impede incident response efforts, making it difficult to reconstruct attack timelines and identify compromised resources. Detecting and responding to such events is critical for maintaining security visibility and control within the AWS environment.
Attack Chain
- An attacker gains unauthorized access to an AWS account, potentially through compromised credentials or exploiting a vulnerability in an exposed service.
- The attacker enumerates existing CloudWatch log groups to identify those containing valuable audit or security-related logs.
- The attacker authenticates to the AWS API using stolen or generated credentials.
- The attacker issues a
DeleteLogGroupAPI call via the AWS CLI, SDK, or API directly, targeting specific log groups. The request is crafted to successfully delete the log group. - CloudTrail logs the
DeleteLogGroupevent, recording details such as the user, timestamp, and target log group. - The attacker may repeat the process to delete multiple log groups, systematically removing traces of their activity.
- The successful deletion of the CloudWatch log group removes logs crucial for forensic analysis and incident response.
- The attacker continues their malicious activities, now with a reduced risk of detection due to the absence of logs.
Impact
Successful deletion of CloudWatch log groups allows attackers to operate with significantly reduced visibility. This can lead to delayed incident detection, increased dwell time, and greater potential for data exfiltration or system compromise. Organizations relying on CloudWatch logs for security monitoring and compliance are particularly vulnerable. The impact includes hindering forensic investigations, impeding incident response efforts, and potentially violating compliance requirements.
Recommendation
- Deploy the Sigma rule
AWS CloudWatch Log Group Deletionto detect attempts to delete CloudWatch log groups based on CloudTrail events. - Investigate any detected
DeleteLogGroupevents, especially those originating from unusual IP addresses or user accounts. - Implement strict IAM policies to restrict the ability to delete CloudWatch log groups to authorized personnel only.
- Monitor CloudTrail logs for unauthorized API calls and suspicious activity related to CloudWatch.
- Enable multi-factor authentication (MFA) for all AWS accounts to reduce the risk of credential compromise.
- Review and enforce least privilege principles for all IAM roles and users.
Detection coverage 2
AWS CloudWatch Log Group Deletion
highDetects the deletion of CloudWatch log groups in AWS via CloudTrail logs.
AWS CloudWatch Log Group Deletion by Console
lowDetects the deletion of CloudWatch log groups in AWS via AWS Management Console.
Detection queries are available on the platform. Get full rules →