/
aws_defense_evasion_delete_cloudwatch_log_group.yml
67 lines (67 loc) · 2.35 KB
/
aws_defense_evasion_delete_cloudwatch_log_group.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: AWS Defense Evasion Delete CloudWatch Log Group
id: d308b0f1-edb7-4a62-a614-af321160710f
version: 1
date: '2022-07-17'
author: Gowthamaraj Rajendran, Splunk
status: production
type: TTP
description: This analytic identifies AWS `DeleteLogGroup` events in CloudTrail logs.
Attackers may evade the logging capability by deleting the log group in CloudWatch.
This will stop sending the logs and metrics to CloudWatch. When the adversary has
the right type of permissions within the compromised AWS environment, they may delete
the CloudWatch log group that is logging activities in the environment.
data_source:
- AWS CloudTrail DeleteLogGroup
search: '`cloudtrail` eventName = DeleteLogGroup eventSource = logs.amazonaws.com
userAgent !=console.amazonaws.com errorCode = success| stats count min(_time) as
firstTime max(_time) as lastTime values(requestParameters.logGroupName) as log_group_name
by src region eventName userAgent user_arn aws_account_id | `security_content_ctime(firstTime)`|
`security_content_ctime(lastTime)`| `aws_defense_evasion_delete_cloudwatch_log_group_filter`'
how_to_implement: You must install Splunk AWS Add on and enable CloudTrail logs in
your AWS Environment.
known_false_positives: While this search has no known false positives, it is possible
that an AWS admin has deleted CloudWatch logging. Please investigate this activity.
references:
- https://attack.mitre.org/techniques/T1562/008/
tags:
analytic_story:
- AWS Defense Evasion
asset_type: AWS Account
confidence: 90
impact: 100
message: User $user_arn$ has deleted a CloudWatch logging group for account id $aws_account_id$
from IP $src$
mitre_attack_id:
- T1562
- T1562.008
observable:
- name: src
type: IP Address
role:
- Attacker
- name: user_arn
type: User
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- eventName
- eventSource
- requestParameters.name
- userAgent
- aws_account_id
- src
- region
risk_score: 90
security_domain: threat
tests:
- name: True Positive Test
attack_data:
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.008/delete_cloudwatch_log_group/aws_cloudtrail_events.json
source: aws_cloudtrail
sourcetype: aws:cloudtrail
update_timestamp: true