Mask System Power Settings Via Systemctl

Original Source: [Sigma source]
Title: Mask System Power Settings Via Systemctl
Status: experimental
Description:Detects the use of systemctl mask to disable system power management targets such as suspend, hibernate, or hybrid sleep. Adversaries may mask these targets to prevent a system from entering sleep or shutdown states, ensuring their malicious processes remain active and uninterrupted. This behavior can be associated with persistence or defense evasion, as it impairs normal system power operations to maintain long-term access or avoid termination of malicious activity.
References:
  -https://www.man7.org/linux/man-pages/man1/systemctl.1.html
  -https://linux-audit.com/systemd/faq/what-is-the-difference-between-systemctl-disable-and-systemctl-mask/
Author: Milad Cheraghi, Nasreddine Bencherchali
Date: 2025-10-17
modified:None
Tags:
  • -'attack.persistence'
  • -'attack.impact'
  • -'attack.t1653'
Logsource:
  • category: process_creation
  • product: linux
Detection:
  selection_systemctl:
    Image|endswith: '/systemctl'
    CommandLine|contains: ' mask'
  selection_power_options:
    CommandLine|contains:
      -'suspend.target'
      -'hibernate.target'
      -'hybrid-sleep.target'

  condition:all of selection_*
Falsepositives:
  -Unlikely
Level: high