← Back to SOC feed Coverage →

RegSubDat code features

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-06-28T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries modifying registry subkeys to embed specific code features that may indicate early-stage persistence or configuration changes within Windows endpoints. Proactively hunting for these subtle registry alterations in Azure Sentinel allows the SOC team to distinguish legitimate administrative updates from stealthy attacker behaviors before they escalate into more severe incidents.

YARA Rule

rule RegSubDatCode : RegSubDat Family 
{
    meta:
        description = "RegSubDat code features"
        author = "Seth Hardy"
        last_modified = "2014-07-14"
    
    strings:
        // decryption loop
        $ = { 80 34 3? 99 40 (3D FB 65 00 00 | 3B C6) 7? F? }
        // push then pop values
        $ = { 68 FF FF 7F 00 5? }
        $ = { 68 FF 7F 00 00 5? }
    
    condition:
        all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

False Positive Guidance

Here are 5 specific false positive scenarios for the RegSubDat detection rule in an enterprise environment, including suggested filters and exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/MALW_Regsubdat.yar