heroui logo

Linux Package Uninstall

Sigma Rules

View Source
Summary
This detection rule identifies the removal of Linux packages using standard package management tools such as `yum`, `apt`, `apt-get`, and `dpkg`. The rule inspects process creation events for specific command-line arguments that indicate package removal actions. It captures four different selections for various package managers: `yum`, `apt` (and its derivatives), `dpkg`, and `rpm`. Each selection checks if the corresponding process image ends with the relevant tool name and whether the command line contains keywords linked to package removal. The logic states that if any of the selections are met, it raises an alert. It accounts for false positives, particularly those that arise from legitimate administrative activities where packages may be removed for debugging or troubleshooting purposes.
Categories
  • Linux
  • Endpoint
Data Sources
  • Process
Created: 2023-03-09