heroui logo

History File Deletion

Sigma Rules

View Source
Summary
The 'History File Deletion' rule is designed to detect when history files, such as '.bash_history' or '.zsh_history', are deleted on Linux systems. The motivation behind this rule is that deleting such files can indicate attempts to eliminate traces of malicious activity or unauthorized commands executed by an attacker. The detection mechanism filters for processes that use commands associated with file deletion, specifically targeting 'rm', 'unlink', or 'shred'. It further narrows the search to command lines that contain or end with specific history file patterns, ensuring that the detection captures relevant deletion events while avoiding false positives generated by legitimate administrative actions. This rule aids in monitoring system integrity and enables timely responses to potential malicious activity.
Categories
  • Linux
  • Endpoint
Data Sources
  • Process
ATT&CK Techniques
  • T1552.003
Created: 2022-06-20