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 source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLopen/read access to ~/.bash_history | Not mapped to Sentinel yet. |
auditd:EXECVEcat|less|grep accessing .bash_history from a non-shell process | Not mapped to Sentinel yet. |
auditd:SYSCALLwrite or create file after .bash_history access | Not 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 source | In Microsoft Sentinel |
|---|---|
macos:endpointsecurityopen or read syscall to ~/.bash_history | Not mapped to Sentinel yet. |
macos:unifiedlognon-shell process tree accessing bash history | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
3 SigmaHQ community rules name it in their tags.
- Cisco Show Commands Input
- Suspicious History File Operations
- Suspicious History File Operations - Linux
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.