kevmap

TechniquesT1620 › AN0839

AN0839 Analytic 0839

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

<p>Monitor for in-process mmap + mprotect + execve/execveat activity where memory permissions are changed from writable to executable inside the same process without a corresponding ELF on disk.</p>
Detects
T1620 Reflective Code Loading
Part of
DET0300 Detection Strategy for Reflective Code Loading

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
auditd:SYSCALLexecveDC0032 Process Creation
auditd:MMAPmemory region with RWX permissions allocatedDC0021 OS API Execution

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
ProcessNameScopeUncommon for service binaries to call memfd_create; detection tuned for high-risk processes.
RWXMemoryThresholdAdjust threshold for allowed RWX allocations to reduce false positives in JIT runtimes.