Linux Package Removal via yum, apt, dpkg, or rpm Commands

Detects package uninstall activity on Linux via yum, apt/apt-get, dpkg, or rpm based on command-line removal flags.

FreeReviewedSigma · Low · v2
Product
linux
Category
process_creation
Author
Tuan Le (NCSGroup), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-03-09
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule flags Linux processes invoking package manager binaries (yum, apt/apt-get, dpkg, or rpm) with command-line arguments that indicate package removal. Attackers may remove software or artifacts to reduce traces or disrupt defenses, making package removal activity noteworthy for investigation. It relies on process creation telemetry, including the executable path and command-line arguments, to match removal-related keywords.

Related detections9 linkedT1070 — drag to rearrange
Suspicious Browser History Wipe via Rundll32 ClearMyTracksByProcess (via process_creation)
USN Change Journal Deletion via Fsutil (via process_creation)
Suspicious Salesforce Query History Deletion Anti-Forensics
Suspicious Browser History Clearing via RunDll32 InetCpl ClearMyTracksByProcess (via process_creation)
Suspicious Clearing of hosts.deny Access Restrictions on Linux
Windows Process Creation: Command-Line Deletion of IIS Logs
Kubernetes Audit: Deleted Events
Windows Tomcat Log File Deletion Indicating Possible Forensic Evidence Destruction
Windows Event Log EVTX File Deletion in winevt\Logs
Linux Package Removal via yum, apt, dpkg, or rpm Commands
Pivot detection · T1070 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.