Setuid and Setgid

 Original Source: [Sigma source]
Title: Setuid and Setgid
Status: test
Description:Detects suspicious change of file privileges with chown and chmod commands
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1548.001/T1548.001.md
Author: Ömer Günal
Date: 2020-06-16
modified:2022-10-05
Tags:
  • -'attack.persistence'
  • -'attack.privilege-escalation'
  • -'attack.t1548.001'
Logsource:
  • product: linux
  • category: process_creation
Detection:
  selection_root:
    CommandLine|contains: 'chown root'
  selection_perm:
    CommandLine|contains:
      -' chmod u+s'
      -' chmod g+s'

  condition:all of selection_*
Falsepositives:
  -Legitimate administration activities
Level: low