Sigma rule: Directory Removal Via Rmdir

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a6363c44073d, updated 2023-03-07T00:00:00.000Z.

Rule

Title
Directory Removal Via Rmdir
Status
test
Level
low
Author
frack113
Date
2022-01-15
Modified
2023-03-07
File
rules/windows/process_creation/proc_creation_win_cmd_rmdir_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of the builtin "rmdir" command in order to delete directories.
Adversaries may delete files left behind by the actions of their intrusion activity.
Malware, tools, or other non-native files dropped or created on a system by an adversary may leave traces to indicate to what was done within a network and how.
Removal of these files can occur during an intrusion, or as part of a post-intrusion process to minimize the adversary's footprint.

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith: '\cmd.exe'
    - OriginalFileName: 'Cmd.Exe'
selection_rmdir:
    CommandLine|contains: 'rmdir'
selection_flags:
    CommandLine|contains:
        - '/s'
        - '/q'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.stealth
  • attack.t1070.004

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_cmd_rmdir_execution.yml

Sources and licences

  • SigmaHQ

    "Directory Removal Via Rmdir" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_cmd_rmdir_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Directory Removal Via Rmdir",
entity page, dataset version ref-a6363c44073d, updated 2023-03-07T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/41ca393d-538c-408a-ac27-cf1e038be80c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 41ca393d-538c-408a-ac27-cf1e038be80c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.