@@ -4,7 +4,7 @@ integration = ["endpoint"]
4
4
maturity = " production"
5
5
min_stack_comments = " New fields added: required_fields, related_integrations, setup"
6
6
min_stack_version = " 8.3.0"
7
- updated_date = " 2023/06/22 "
7
+ updated_date = " 2023/07/25 "
8
8
9
9
[rule ]
10
10
author = [" Elastic" ]
@@ -20,21 +20,22 @@ false_positives = [
20
20
]
21
21
from = " now-9m"
22
22
index = [" auditbeat-*" , " logs-endpoint.events.*" ]
23
- language = " kuery "
23
+ language = " eql "
24
24
license = " Elastic License v2"
25
25
name = " File Permission Modification in Writable Directory"
26
26
risk_score = 21
27
27
rule_id = " 9f9a2a82-93a8-4b1a-8778-1780895626d4"
28
28
severity = " low"
29
29
tags = [" Domain: Endpoint" , " OS: Linux" , " Use Case: Threat Detection" , " Tactic: Defense Evasion" ]
30
30
timestamp_override = " event.ingested"
31
- type = " query "
31
+ type = " eql "
32
32
33
33
query = '''
34
- event.category:process and host.os.type:linux and event.type:(start or process_started) and
35
- process.name:(chmod or chown or chattr or chgrp) and
36
- process.working_directory:(/tmp or /var/tmp or /dev/shm) and
37
- not user.name:root
34
+ process where host.os.type == "linux" and event.type == "start"and
35
+ process.name in ("chmod", "chown", "chattr", "chgrp") and
36
+ process.working_directory in ("/tmp", "/var/tmp", "/dev/shm") and
37
+ not process.parent.name in ("update-motd-updates-available") and
38
+ not user.name == "root"
38
39
'''
39
40
40
41
0 commit comments