Basyrix SOC Response Atlas by Basyrix

Defense Impairment

T1690 — Prevent Command History Logging

Adversaries may impair command history logging to hide commands they run on a compromised system. Various command interpreters keep track of the commands users type in their terminal so that users can retrace what they have done. On Linux and macOS, command history is tracked in a file pointed to by the environment variable `HISTFILE`. When a user logs off a system, this information is flushed to a file in the user's home directory called `~/.bash_history`...

Investigate Prevent Command History Logging activity in the context of Defense Impairment: confirm scope, affected host/identity, and whether it matches expected administrative behaviour before deciding this is benign.

Platforms

ESXi, Linux, macOS, Network Devices, Windows

Priority / status

medium / draft

Evidence to collect

  • Host or resource affected
  • Account or identity involved
  • Timestamp of the activity
  • Related process, file, or network artifact
  • Any preceding or follow-on alerts