Data Destruction & Ransomware

Detects destructive operations, ransomware-like behavior, and sabotage through data wiping or encryption

8 rules in data_destruction.yml

CRITICAL: 8

Rule IDSeverityTitleDescriptionRefs
backup_deletionCRITICALBackup File DeletionDeletes backup files or directories, which is a common pre-ransomware action
database_drop_truncateCRITICALDatabase DROP/TRUNCATE Destructive CommandExecutes DROP DATABASE, DROP TABLE, or TRUNCATE commands that destroy data
disk_wipe_ddCRITICALDisk/Partition Wipe with ddUses dd to write zeros or random data to disk devices, destroying all data
lvm_vg_removeCRITICALVolume Group / Logical Volume RemovalRemoves LVM volume groups or logical volumes, destroying data
mkfs_format_deviceCRITICALFilesystem Format on Existing Devicemkfs.ext{2,3,4}/xfs/btrfs/ntfs is invoked against /dev/. Formatting a disk destroys all existing data and there is no Ansible rollback path.
ransomware_file_encryptionCRITICALFile Encryption (Ransomware Pattern)Encrypts files using openssl, gpg, or age in a pattern consistent with ransomware
recursive_delete_criticalCRITICALRecursive Delete of Critical PathsA recursive rm (short -rf or long --recursive) targets a critical system path itself (/, /boot, /etc, /var, /usr, /home, /opt, /srv, /root) or a templated segment directly beneath one (e.g. /home/{{ user }}), where an unbound variable collapses the path back to the parent and renders the host unrecoverable. Fully-literal nested paths (/home/coder/.continue/rules) are ordinary housekeeping and do not match.
shred_wipe_commandCRITICALSecure File Deletion (shred/wipe)shred or wipe command targets a file path or templated variable and overwrites the contents irrecoverably. There is no Ansible rollback once shred runs.