VeriKQL by Kaushik Saha

T1552.003 Shell History

Credential Accesson attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0385 Detect Access and Parsing of .bash_history Files for Credential Harvesting

AN1085 Linux

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.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen/read access to ~/.bash_historyNot mapped to Sentinel yet.
auditd:EXECVEcat|less|grep accessing .bash_history from a non-shell processNot mapped to Sentinel yet.
auditd:SYSCALLwrite or create file after .bash_history accessNot mapped to Sentinel yet.

AN1086 macOS

A process or terminal command outside of standard shell utilities reads the user's .bash_history file. On macOS, unified logs or telemetry tools like EndpointSecurity (ESF) may observe file read APIs or terminal process lineage that shows non-user-initiated access.

MITRE log sourceIn Microsoft Sentinel
macos:endpointsecurityopen or read syscall to ~/.bash_historyNot mapped to Sentinel yet.
macos:unifiedlognon-shell process tree accessing bash historyNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

3 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.