Setuid and Setgid

Detects suspicious change of file privileges with chown and chmod commands

Sigma rule (View on GitHub)

 1title: Setuid and Setgid
 2id: c21c4eaa-ba2e-419a-92b2-8371703cbe21
 3status: test
 4description: Detects suspicious change of file privileges with chown and chmod commands
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1548.001/T1548.001.md
 7    - https://attack.mitre.org/techniques/T1548/001/
 8author: Ömer Günal
 9date: 2020-06-16
10modified: 2022-10-05
11tags:
12    - attack.persistence
13    - attack.t1548.001
14logsource:
15    product: linux
16    category: process_creation
17detection:
18    selection_root:
19        CommandLine|contains: 'chown root'
20    selection_perm:
21        CommandLine|contains:
22            - ' chmod u+s'
23            - ' chmod g+s'
24    condition: all of selection_*
25falsepositives:
26    - Legitimate administration activities
27level: low

References

Related rules

to-top