Reference tables / ATT&CK techniques / T1552.003
T1552.003 Shell History
- Tactics
- Credential Access
- Reports citing the ID, 90 days
- 1
- KEV CVEs mapped
- 0
- SigmaHQ rules
- 3
- Elastic, Splunk
- 2
- thrunt rules
- 0
- MITRE
- https://attack.mitre.org/techniques/T1552/003
Rules
SigmaHQ community rules
- Suspicious History File Operations - Linux (core)
- Suspicious History File Operations (core)
- Cisco Show Commands Input (core)
Elastic and Splunk rules
- Shell History File Access via Command-Line Utility (elastic)
- Linux Shell History Access Via Command Line Utility (splunk)
MITRE description
Adversaries may search the command history on compromised systems for insecurely stored credentials. On Linux and macOS systems, shells such as Bash and Zsh keep track of the commands users type on the command-line with the "history" utility. Once a user logs out, the history is flushed to the user's history file. For each user, this file resides at the same location: for example, `~/.bash_history` or `~/.zsh_history`. Typically, these files keep track of the user's last 1000 commands. On Windows, PowerShell has both a command history that is wiped after the session ends, and one that contains commands used in all sessions and is persistent. The default location for persistent history can be found in `%userprofile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt`, but command history can also be accessed with `Get-History`. Command Prompt (CMD) on Windows does not have persistent history. Users often type usernames and passwords on the command-line as parameters to programs, which then get saved to this file when they log out. Adversaries can abuse this by looking through the file for potential credentials.
Research citing this technique
Reports and advisories from the last 90 days that cite this technique.
-
2026-10-08Zscaler ThreatLabz: Suspected TraderTraitor Group Uses Trojanized Terraform Provider to Deliver Cross-Platform Malware source
Reports describing it without the ID
These use the technique’s name or a tool that is this technique. Matched on words, so check the report.
2026-11-19Socket: Hardening GitHub Actions Against Insider Threats2026-11-13Kaspersky Securelist: Ransomware at the hypervisor layer: how attackers use ESXi and vCenter features for malicious purposes2026-11-12Elastic Security Labs: 0% GPU utilization: How SANSAR hides Linux cryptomining2026-11-12Bitdefender Labs: Attackers turn NIKKE’s game launcher into malware2026-11-11Group-IB: Inside The Server: 14 Months of Offensive Cyber Operations Targeting Europe2026-10-29Sophos X-Ops: AI used in Aur0ra ransomware testing and execution2026-10-25Wiz Research: Gheist: Attempted Scaled Abuse of Stolen GitHub Tokens Stumbles2026-10-21Wiz Research: LiteLLM Compromised, Steals Credentials2026-10-21Datadog Security Labs: LiteLLM supply chain compromise: What you need to know2026-10-15Unit 42: AI-Powered Espionage Campaign Targets Government Linux Infrastructure2026-09-29Google Threat Intelligence: Defending Against Active Exploitation of Citrix NetScaler ADC and Gateway Appliances