kevmap

TechniquesT1037 › AN0312

AN0312 Analytic 0312

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

<p>Detection of changes or execution of shell initialization scripts like .bashrc, .profile, or /etc/profile for persistence.</p>
Detects
T1037 Boot or Logon Initialization Scripts
Part of
DET0112 Boot or Logon Initialization Scripts Detection Strategy

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:PATHPATHDC0059 File Metadata
linux:osqueryfile_eventsDC0061 File Modification

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
FilePathInitialization script path that can differ across user and system profiles.
UserContextUser-level vs root-level configuration.
TimeWindowUseful to correlate between file change and subsequent execution.

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2022-41328Fortinet FortiOSMapped
CVE-2024-20353Cisco Adaptive Security Appliance (ASA) and Firepower Threat Defense (FTD)Mapped
CVE-2024-20359Cisco Adaptive Security Appliance (ASA) and Firepower Threat Defense (FTD)Mapped