SigmaHQ/rules/linux/lnx_setgid_setuid.yml
2020-07-13 01:36:20 +03:00

24 lines
684 B
YAML

title: Setuid and Setgid
id: c21c4eaa-ba2e-419a-92b2-8371703cbe21
description: Detects suspicious change of file privileges with chown and chmod commands
references:
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1166/T1166.md
- https://attack.mitre.org/techniques/T1166/
author: Ömer Günal
date: 2020/06/16
tags:
- attack.persistence
level: low
logsource:
product: linux
detection:
selection1:
- '*chown root*'
selection2:
- '* chmod u+s*'
selection3:
- '* chmod g+s*'
condition: (selection1 and selection2) or (selection1 and selection3)
falsepositives:
- Legitimate administration activities