Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0110 — Setuid/Setgid Privilege Abuse Detection (Linux/macOS)
DET0110

Setuid/Setgid Privilege Abuse Detection (Linux/macOS)

2 analytic(s) · 1 technique(s) detected

Analytics

2
AN0307 Analytic 0307
Linux

Correlation of chmod operations setting setuid/setgid bits followed by privileged process execution (EUID != UID), especially from user-writable or abnormal paths.

auditd:SYSCALL chmod, execve auditd:SYSCALL execve
[UserContext] Track execution of setuid binaries where UID != EUID or executed from unexpected user context
[FilePathScope] Restrict detection to non-standard locations (e.g., /tmp, /home/*, /var/tmp)
[TimeWindow] Time delta between chmod setting setuid/gid and process execution to define a suspicious window
AN0308 Analytic 0308
macOS

Observation of chmod commands setting setuid/setgid bits, paired with launch of binaries under elevated execution context (e.g., root-owned binaries launched by unprivileged users).

macos:unifiedlog chmod command with arguments including '+s', 'u+s', or numeric values 4000–6777 macos:unifiedlog exec of binary with setuid/setgid and EUID != UID
[UserContext] Monitor execution chains where UID != EUID or child process inherits root without known sudo context
[ExecutionPath] Focus on binaries in user-writable locations or abnormal directories
[ChmodPattern] Tailor detection to chmod commands that imply privilege elevation via numeric mode or symbolic mode

Detected Techniques

1

Privilege Escalation (1)

Details

MITRE ID
DET0110
STIX ID
x-mitre-detection-strategy--bc8cd246-1521-4643-a07e-428d45093b38
Analytics
2
Techniques Detected
1
By Tactic
Privilege Escalation
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.