kevmap

TechniquesT1552.003 › AN1085

AN1085 Analytic 1085

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

<p>A process outside of interactive shell context reads ~/.bash_history directly (e.g., using cat, less, grep), often shortly after privilege escalation or user switch (su/sudo). This may be followed by credential scanning in memory or file writes to new locations.</p>
Detects
T1552.003 Shell History
Part of
DET0385 Detect Access and Parsing of .bash_history Files for Credential Harvesting

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:SYSCALLopen/read access to ~/.bash_historyDC0055 File Access
auditd:EXECVEcat|less|grep accessing .bash_history from a non-shell processDC0032 Process Creation
auditd:SYSCALLwrite or create file after .bash_history accessDC0039 File Creation

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
UserContextFilter by users with elevated privileges or service accounts
TimeWindowCorrelate access to .bash_history within X seconds of user switch or privilege escalation
ProcessNamePatternsAdd/remove CLI utilities used to read bash history