Linux Setgid Capability Set on a Binary via Setcap Utility
Description
Detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file. This capability allows a non privileged process to make arbitrary manipulations of group IDs (GIDs), including setting its current GID to a value that would otherwise be restricted (i.e. GID 0, the root group). This behavior can be used by adversaries to backdoor a binary in order to escalate privileges again in the future if needed.
Query · sigma
selection: Image|endswith: /setcap CommandLine|contains: cap_setgid condition: selection
Known false positives
- Unknown