Possible Linux Setgid Capability Set on a Binary through Setcap Utility (via process_creation)
This rule detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file. This capability enables 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 threat actors to backdoor a binary to escalate privileges again in the future if needed.
SigmalowLinuxv1
sigma
possible-linux-setgid-capability-set-on-a-binary-through-setcap-utility-via-process-creation
title: Possible Linux Setgid Capability Set on a Binary through Setcap Utility (via process_creation)
id: 4295d29f-d5c8-5df1-92e7-4d55282414fd
status: stable
description: This rule detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file. This capability enables 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 threat actors to backdoor a binary to escalate privileges again in the future if needed.
references:
- https://attack.mitre.org/techniques/T1554/
- https://attack.mitre.org/techniques/T1548/
- https://man7.org/linux/man-pages/man8/setcap.8.html
- https://dfir.ch/posts/linux_capabilities/
- https://juggernaut-sec.com/capabilities/#cap_setgid
author: Huntrule Team
date: 2026-07-09
tags:
- attack.privilege-escalation
- attack.persistence
- attack.t1548
- attack.t1554
logsource:
product: linux
category: process_creation
detection:
selection:
Image|endswith: '/setcap'
CommandLine|contains: 'cap_setgid'
condition: selection
falsepositives:
- Unknown
level: low
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.