kevmap

TechniquesT1548.001 › AN0308

AN0308 Analytic 0308

macOS · attack.mitre.org · ATT&CK Enterprise v19.2

<p>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).</p>
Detects
T1548.001 Setuid and Setgid
Part of
DET0110 Setuid/Setgid Privilege Abuse Detection (Linux/macOS)

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
macos:unifiedlogchmod command with arguments including '+s', 'u+s', or numeric values 4000–6777DC0064 Command Execution
macos:unifiedlogexec of binary with setuid/setgid and EUID != UIDDC0034 Process Metadata

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
UserContextMonitor execution chains where UID != EUID or child process inherits root without known sudo context
ExecutionPathFocus on binaries in user-writable locations or abnormal directories
ChmodPatternTailor detection to chmod commands that imply privilege elevation via numeric mode or symbolic mode

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2023-0386Linux KernelStale