Sigma rule: Potential Abuse of Linux Magic System Request Key
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-dbd84c8772e4, updated 2025-05-23T00:00:00.000Z.
Rule
- Title
- Potential Abuse of Linux Magic System Request Key
- Status
- experimental
- Level
- medium
- Author
- Milad Cheraghi
- Date
- 2025-05-23
- File
- rules/linux/auditd/path/lnx_auditd_magic_system_request_key.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the potential abuse of the Linux Magic SysRq (System Request) key by adversaries with root or sufficient privileges
to silently manipulate or destabilize a system. By writing to /proc/sysrq-trigger, they can crash the system, kill processes,
or disrupt forensic analysis—all while bypassing standard logging. Though intended for recovery and debugging, SysRq can be
misused as a stealthy post-exploitation tool. It is controlled via /proc/sys/kernel/sysrq or permanently through /etc/sysctl.conf.
Log source
- product
- linux
- service
- auditd
- definition
- Required auditd configuration: -w /proc/sysrq-trigger -p wa -k sysrq -w /proc/sys/kernel/sysrq -p wa -k sysrq
Detection
selection:
type: 'PATH'
name|endswith:
# Enable
- '/sysrq'
- '/sysctl.conf'
# Execute
- '/sysrq-trigger'
condition: selectionFalse positives (as the rule lists them)
- Legitimate administrative activity
Tags
- attack.execution
- attack.t1059.004
- attack.impact
- attack.t1529
- attack.t1489
- attack.t1499
MITRE ATT&CK ids this rule names
References
- https://www.kernel.org/doc/html/v4.10/_sources/admin-guide/sysrq.txt
- https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/4/html/reference_guide/s3-proc-sys-kernel
- https://www.splunk.com/en_us/blog/security/threat-update-awfulshred-script-wiper.html
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/auditd/path/lnx_auditd_magic_system_request_key.yml
Sources and licences
SigmaHQ
"Potential Abuse of Linux Magic System Request Key" by Milad Cheraghi (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/auditd/path/lnx_auditd_magic_system_request_key.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Abuse of Linux Magic System Request Key",
entity page, dataset version ref-dbd84c8772e4, updated 2025-05-23T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ea61bb82-a5e0-42e6-8537-91d29500f1b9 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ea61bb82-a5e0-42e6-8537-91d29500f1b9, 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.