This detection identifies the initial activity of a RayInitiator GRUB bootkit as it scans for the “Booting the kernel” string to establish persistence at the firmware level before the operating system fully loads. Proactive hunting in Azure Sentinel is critical because this early-stage infection can evade traditional endpoint security controls, allowing adversaries to maintain undetected access and execute malicious code during every system reboot.
rule MAL_Cisco_RayInitiator_Stage_1 {
meta:
author = "NCSC"
description = "Detects RayInitiator GRUB bootkit stage 1 code that searches for the 'Booting the kernel' string."
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
license = "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"
id = "5631f2c5-5141-5039-9cd0-a35314aa0bd5"
strings:
$xc1 = {
BB 00 00 40 00 43 81 FB 00 00 60 00 0F 87 AB 00 00 00
8B 3B 81 FF 64 6F 6E 65 75 E9 83 C3 04 8B 3B 81 FF 2E 0A 42 6F 75
DC 83 C3 04 8B 3B 81 FF 6F 74 69 6E 75 CF 83 C3 04 8B 3B 81 FF 67
20 74 68 75 C2 83 C3 04 8B 3B 81 FF 65 20 6B 65 75 B5 83 C3 04 8B
3B 81 FF 72 6E 65 6C 75 A8 83 EB 14
}
condition:
$xc1
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the RayInitiator GRUB bootkit detection rule, including suggested filters and exclusions:
Scenario: Automated OS Patching via Microsoft SCCM or Ansible
sccm.exe (Configuration Manager) or ansible-runner and the event timestamp falls within a defined maintenance window (e.g., 02:00–04:00 UTC).Scenario: Virtual Machine Snapshot or Cloning Operations
vmware-tools.exe, vmsvc).Scenario: Post-Installation Configuration Scripts