Skip to content

Commit 5928f58

Browse files
committed
I dont even know pt 2
1 parent adadc11 commit 5928f58

1 file changed

Lines changed: 17 additions & 20 deletions

File tree

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
1-
# ./rules/linux/file_event/file_event_lnx_new_suid_file.yml
21
title: Linux New SUID/SGID File Creation
32
id: b6f8d3a2-4c9e-4f1e-9a2b-6e7d8c9f0a1b
43
status: experimental
54
description: Detects creation or permission changes that set the SUID (set-user-ID) or SGID (set-group-ID) bits on files — commonly used by attackers for privilege escalation or persistence.
65
references:
7-
- https://attack.mitre.org/techniques/T1548/004/
6+
- https://attack.mitre.org/techniques/T1548/004/
87
author: Sesha Duraiarasan
98
date: 2025-10-09
109
tags:
11-
- attack.privilege-escalation
12-
13-
- attack.t1548
10+
- attack.privilege-escalation
11+
- attack.t1548
1412
logsource:
15-
product: linux
16-
category: file_event
13+
product: linux
14+
category: file_event
1715
detection:
18-
selection_chmod:
19-
Command|contains:
20-
- 'chmod 4755'
21-
- 'chmod 4750'
22-
- 'chmod 4777'
23-
- 'chmod 2755'
24-
- 'chmod +s'
25-
selection_tmp_paths:
16+
selection_chmod:
17+
Command|contains:
18+
- 'chmod 4755'
19+
- 'chmod 4750'
20+
- 'chmod 4777'
21+
- 'chmod 2755'
22+
- 'chmod +s'
23+
selection_tmp_paths:
2624
TargetFilename|contains:
2725
- '/tmp/'
2826
- '/usr/local/bin/'
2927
- '/opt/'
3028
- '/home/'
31-
selection_filemode:
29+
selection_filemode:
3230
FileMode|contains: 's'
33-
condition: selection_chmod or (selection_tmp_paths and selection_filemode)
31+
condition: selection_chmod or (selection_tmp_paths and selection_filemode)
3432
falsepositives:
35-
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools (consider whitelisting package manager operations or known installers).
36-
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools (consider whitelisting package manager operations or known installers)
37-
level: high
33+
- Legitimate package installs or administrative tasks that intentionally set SUID/SGID on tools
34+
level: high

0 commit comments

Comments
 (0)