Anti-Forensics
Clear Browser Artifacts
Clear Command History
Clear Operating System Logs
Delete User Account
Disk Wiping
File Deletion
File Encryption
Hide Artifacts
Log Tampering
Modify Windows Registry
Physical Destruction of Storage Media
Physical Removal of Disk Storage
Steganography
System Shutdown
Timestomping
Tripwires
Uninstalling Software
Use of a Virtual Machine
- ID: AF001
- Created: 25th May 2024
- Updated: 14th June 2024
- Platforms: Windows, Linux, MacOS
- Contributor: The ITM Team
Clear Command History
A subject clears command history to prevent executed commands from being reviewed, disclosing information about the subject’s activities.
Subsections
ID | Name | Description |
---|---|---|
AF001.002 | Clear Bash History | A subject clears bash terminal command history to prevent executed commands from being reviewed, disclosing information about the subject’s activities. The Command Prompt on Windows only stores command history within the current session, once Command Prompt is closed, the history is lost. On Linux-based operating systems different terminal software may store command history in various locations, with the most common being On MacOS the Terminal utility will write command history to |
AF001.001 | Clear PowerShell History | A subject clears PowerShell command history to prevent executed commands from being reviewed, disclosing information about the subject’s activities. PowerShell stores command history in the context of a user account. This file is located at A subject can delete their own A subject may attempt to use the |
Prevention
ID | Name | Description |
---|---|---|
PV001 | No Ready System-Level Mitigation | This section cannot be readily mitigated at a system level with preventive controls since it is based on the abuse of fundamental features of the system. |
Detection
ID | Name | Description |
---|---|---|
DT054 | .bash_history Timestamp Discrepency | The .bash_history file, located within a user's directory on MacOS and Linux, is written with command history from shell sessions. If the file has a Created timestamp, but a user has used a shell utility previously, this may indicate the file was deleted and manually or automatically re-created. |
DT001 | ConsoleHost_history.txt Created Timestamp Discrepancy | Recent modifications to the |
DT002 | ConsoleHost_history.txt File Missing | If the |
DT053 | Missing .bash_history File | The .bash_history file, located within a user's directory on MacOS and Linux, is written with command history from shell sessions. If the file is missing, this could indicate that it has been deleted, if a user account has used a shell utility previously. |