Sigma rule: Linux Package Uninstall

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

Rule

Title
Linux Package Uninstall
Status
test
Level
low
Author
Tuan Le (NCSGroup), Nasreddine Bencherchali (Nextron Systems)
Date
2023-03-09
File
rules/linux/process_creation/proc_creation_lnx_remove_package.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects linux package removal using builtin tools such as "yum", "apt", "apt-get" or "dpkg".

Log source

product
linux
category
process_creation

Detection

selection_yum:
    Image|endswith: '/yum'
    CommandLine|contains:
        - 'erase'
        - 'remove'
selection_apt:
    Image|endswith:
        - '/apt'
        - '/apt-get'
    CommandLine|contains:
        - 'remove'
        - 'purge'
selection_dpkg:
    Image|endswith: '/dpkg'
    CommandLine|contains:
        - '--remove '
        - ' -r '
selection_rpm:
    Image|endswith: '/rpm'
    CommandLine|contains: ' -e '
condition: 1 of selection_*

False positives (as the rule lists them)

  • Administrator or administrator scripts might delete packages for several reasons (debugging, troubleshooting).

Tags

  • attack.stealth
  • attack.t1070

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/linux/process_creation/proc_creation_lnx_remove_package.yml

Sources and licences

  • SigmaHQ

    "Linux Package Uninstall" by Tuan Le (NCSGroup), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_remove_package.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: Linux Package Uninstall",
entity page, dataset version ref-419bb144c15b, updated 2023-03-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/95d61234-7f56-465c-6f2d-b562c6fedbc4 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 95d61234-7f56-465c-6f2d-b562c6fedbc4, 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.