/
aws_defense_evasion_delete_cloudtrail.yml
66 lines (66 loc) · 2.31 KB
/
aws_defense_evasion_delete_cloudtrail.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
name: AWS Defense Evasion Delete Cloudtrail
id: 82092925-9ca1-4e06-98b8-85a2d3889552
version: 1
date: '2022-07-13'
author: Bhavin Patel, Splunk
status: production
type: TTP
description: This analytic identifies AWS `DeleteTrail` events within CloudTrail logs.
Adversaries often try to impair their target's defenses by stopping their malicious
activity from being logged, so that they may operate with stealth and avoid detection.
When the adversary has the right type of permissions in the compromised AWS environment,
they may delete the the entire cloudtrail that is logging activities in the environment.
data_source:
- AWS CloudTrail DeleteTrail
search: '`cloudtrail` eventName = DeleteTrail eventSource = cloudtrail.amazonaws.com
userAgent !=console.amazonaws.com errorCode = success| stats count min(_time) as
firstTime max(_time) as lastTime values(requestParameters.name) as deleted_cloudtrail_name
by src region eventName userAgent user_arn aws_account_id | `security_content_ctime(firstTime)`|
`security_content_ctime(lastTime)`| `aws_defense_evasion_delete_cloudtrail_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 stopped cloudTrail 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 delete a CloudTrail logging for account id $aws_account_id$
from IP $src$
mitre_attack_id:
- T1562.008
- T1562
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/stop_delete_cloudtrail/aws_cloudtrail_events.json
sourcetype: aws:cloudtrail
source: aws_cloudtrail