{"id":"c172b7b5-f3a1-4af2-90b7-822c63df86cb","title":"Mask System Power Settings Via Systemctl","description":"Detects the use of systemctl mask to disable system power management targets such as suspend, hibernate, or hybrid sleep.\nAdversaries may mask these targets to prevent a system from entering sleep or shutdown states, ensuring their malicious processes remain active and uninterrupted.\nThis 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.\n","author":"Milad Cheraghi, Nasreddine Bencherchali","status":"experimental","level":"high","date":"2025-10-17","modified":"","tags":["attack.persistence","attack.impact","attack.t1653"],"technique_ids":["T1653"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Unlikely"],"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/"],"source_path":"rules/linux/process_creation/proc_creation_lnx_systemctl_mask_power_settings.yml","source_sha256":"aec63f66cbd94bcd4ec70447c5f915e1f8df028accf9a750599dc1e4028a8223","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_systemctl_mask_power_settings.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Mask System Power Settings Via Systemctl\nid: c172b7b5-f3a1-4af2-90b7-822c63df86cb\nstatus: experimental\ndescription: |\n    Detects the use of systemctl mask to disable system power management targets such as suspend, hibernate, or hybrid sleep.\n    Adversaries may mask these targets to prevent a system from entering sleep or shutdown states, ensuring their malicious processes remain active and uninterrupted.\n    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.\nauthor: Milad Cheraghi, Nasreddine Bencherchali\ndate: 2025-10-17\nreferences:\n    - https://www.man7.org/linux/man-pages/man1/systemctl.1.html\n    - https://linux-audit.com/systemd/faq/what-is-the-difference-between-systemctl-disable-and-systemctl-mask/\ntags:\n    - attack.persistence\n    - attack.impact\n    - attack.t1653\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_systemctl:\n        Image|endswith: '/systemctl'\n        CommandLine|contains: ' mask'\n    selection_power_options:\n        CommandLine|contains:\n            - 'suspend.target'\n            - 'hibernate.target'\n            - 'hybrid-sleep.target'\n    condition: all of selection_*\nfalsepositives:\n    - Unlikely\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1653","id":"T1653","name":"Power Settings","page":"techniques/enterprise/T1653/"}],"data_path":"data/detection-rules/c172b7b5-f3a1-4af2-90b7-822c63df86cb.json","kind":"sigma"}
