This rule detects a sophisticated GRUB bootkit attack where an adversary deploys the RayInitiator component to copy and mark the LINE VIPER shellcode stub as executable during the system’s stage 3 initialization phase. SOC teams should proactively hunt for this behavior in Azure Sentinel because early-stage bootkits operate below traditional OS-level security controls, making them critical to identify before they can establish persistent root access and evade standard endpoint detection mechanisms.
rule MAL_Cisco_RayInitiator_Stage_3_LINE_VIPER_ShellCode {
meta:
author = "NCSC"
description = "Detects RayInitiator GRUB bootkit stage 3 deploy phase code that copies LINE VIPER shellcode stub and marks executable."
date = "2025-09-25"
reference = "https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/RayInitiator-LINE-VIPER/ncsc-mar-rayinitiator-line-viper.pdf"
score = 85
id = "91545ed8-b798-5c0c-a229-e7d37ed7d271"
strings:
$xc1 = {
48 89 FA 48 83 C7 40 4C 89 CE B9 D0 01 00 00 F3 A4 48
89 D7 48 83 C7 40 48 89 3A 48 C1 EF 0C 48 C1 E7 0C BA
07 00 00 00 48 C7 C6 00 20 00 00
}
condition:
$xc1
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the RayInitiator GRUB bootkit stage 3 deploy phase detection rule, including suggested filters or exclusions:
Scenario 1: Automated OS Image Provisioning via SCCM/Intune
RayInitiator process may be invoked by the deployment engine to copy boot configuration files and mark shellcode stubs as executable to finalize the GRUB bootloader setup before the OS fully boots.ccmsetup.exe (SCCM) or IntuneManagementExtension.exe. Specifically, filter out events where the parent process name matches these tools and the file path of the copied stub resides within the standard deployment staging directory (e.g., C:\Windows\CCM\Logs\Deployment).Scenario 2: Scheduled Firmware Update Jobs
dellcmd.exe, LCSU.exe, or ivanti-agent.exe. Additionally, add a condition to ignore files copied to the vendor-specific update directories (e.g., `C:\Program Files\Dell\Command Update\