This hypothesis targets the presence of StarForce driver protection technology, which adversaries may leverage to maintain persistent low-level access to system resources and protect malicious code from detection. Proactively hunting for this driver in Azure Sentinel helps identify potential supply chain compromises or legacy software dependencies that could serve as a foothold for advanced persistent threats within the environment.
rule StarForce_Protection_Driver_Protection_Technology: PEiD
{
strings:
$a = { 57 68 ?? 0D 01 00 68 00 ?? ?? 00 E8 50 ?? FF FF 68 ?? ?? ?? 00 68 ?? ?? ?? 00 68 ?? ?? ?? 00 68 ?? ?? ?? 00 68 ?? ?? ?? 00 }
condition:
$a at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Legacy Game or Software Installation/Uninstallation:
sfdrv.sys or similar) is loaded into the kernel during the installation wizard or removed during uninstallation, triggering the YARA rule.msiexec.exe, setup.exe, or uninst.exe and the file path contains \StarForce\ or \SF\. Alternatively, whitelist the specific driver name sfdrv.sys if the organization has confirmed it is only used by known legacy applications.Scheduled Maintenance or Patching Jobs:
svchost.exe running a specific service, or a custom .exe in a known maintenance folder like C:\ProgramData\CorpMaint\). Exclude if the parent process is a known service host or maintenance tool and the driver load occurs within a defined time window for scheduled jobs.Virtual Machine Snapshot or Restore Operations: