Detectioninformationalstable

File Deletion

Detects file deletion using "rm", "shred" or "unlink" commands which are used often by adversaries to delete files left behind by the actions of their intrusion activity

Open in Detection LabConvert ruleBuild Package
Ömer Günal, oscd.communityCreated 2020-10-07Updated 2022-09-1530aed7b6-d2c1-4eaf-9382-b6bc43e50c57linux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith:
            - '/rm'     # covers /rmdir as well
            - '/shred'
            - '/unlink'
    condition: selection
False Positives

Legitimate administration activities

MITRE ATT&CK
Rule Metadata
Rule ID
30aed7b6-d2c1-4eaf-9382-b6bc43e50c57
Status
stable
Level
informational
Type
Detection
Created
2020-10-07
Modified
2022-09-15
Path
rules/linux/process_creation/proc_creation_lnx_file_deletion.yml
Raw Tags
attack.stealthattack.t1070.004
View on GitHub