Name:Linux Magic SysRq Key Abuse id:22c03600-f84a-47fa-abaa-ffbe3e72c782 version:5 date:None author:Milad Cheraghi status:production type:TTP Description:Detects potential abuse of the Linux Magic SysRq (System Request) key by adversaries with root or sufficient privileges to manipulate or destabilize a system.
Writing to /proc/sysrq-trigger can crash the system, kill processes, or bypass standard logging.
Monitoring SysRq abuse helps detect stealthy post-exploitation activity.
Correlate with related EXECVE or PROCTITLE events to identify the process or user responsible for the access or modification.
Data_source:
-Linux Auditd Path
-Linux Auditd Cwd
search:`linux_auditd` (type=PATH OR type=CWD) | rex "msg=audit\([^)]*:(?<audit_id>\d+)\)"
| stats values(type) as types values(name) as names values(nametype) as nametype values(cwd) as cwd_list values(_time) as event_times by audit_id, host
| stats count min(e_time) as firstTime max(e_time) as lastTime values(nametype) as nametype by current_working_directory reconstructed_path match_count dest audit_id