Detection rules › YARA-L

CurrentVersion Autorun Keys Modification

Severity
medium
Time window
5m
Match by
hostname
Source
github.com/chronicle/detection-rules

Detects modification of autostart extensibility point (ASEP) in registry

MITRE ATT&CK coverage

References

Event coverage

Rule body yaral

/*
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

rule currentversion_autorun_keys_modification {

  meta:
    author = "Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split)"
    description = "Detects modification of autostart extensibility point (ASEP) in registry"
    reference = "https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_set/registry_set_asep_reg_keys_modification_currentversion.yml"
    license = "https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md"
    rule_name = "CurrentVersion Autorun Keys Modification"
    rule_id = "mr_711750f0-0bf3-4c89-b771-65a1ed6aad05"
    sigma_uuid = "20f0ee37-5942-4e45-b7d5-c5b5db9df5cd"
    sigma_status = "test"
    tactic = "TA0003"
    technique = "T1547.001"
    data_source = "Sysmon Windows Registry"
    platform = "Windows"
    severity = "Medium"
    priority = "Medium"
    false_positives = "Legitimate software automatically sets up autorun keys"

  events:
    $reg.metadata.event_type = "REGISTRY_MODIFICATION"
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\software\\microsoft\\windows\\currentversion") and
    (
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\shellserviceobjectdelayload") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\run\\") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runonce\\") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runonceex\\") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runservices\\") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runservicesonce\\") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\policies\\system\\shell") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\policies\\explorer\\run") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\startup") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\shutdown") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\logon") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\logoff") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shellserviceobjects") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shelliconoverlayidentifiers") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shellexecutehooks") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\sharedtaskscheduler") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\browser helper objects") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\plap providers") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers") or
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential provider filters")
    )
    not (
        $reg.target.registry.registry_value_data = "(Empty)" or
        re.regex($reg.target.registry.registry_key, `\\NgcFirst\\ConsecutiveSwitchCount$`) nocase or
        re.regex($reg.principal.process.file.full_path, `\\AppData\\Local\\Microsoft\\OneDrive\\Update\\OneDriveSetup\.exe$`) nocase or
        re.regex($reg.principal.process.file.full_path, `\\AppData\\Roaming\\Spotify\\Spotify\.exe$`) nocase or
        re.regex($reg.principal.process.file.full_path, `\\AppData\\Local\\WebEx\\WebexHost\.exe$`) nocase or
        $reg.principal.process.file.full_path = "C:\\WINDOWS\\system32\\devicecensus.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Windows\\system32\\winsat.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files\\Microsoft OneDrive\\StandaloneUpdater\\OneDriveSetup.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files\\Microsoft OneDrive\\Update\\OneDriveSetup.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files (x86)\\Microsoft OneDrive\\Update\\OneDriveSetup.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files\\KeePass Password Safe 2\\ShInstUtil.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files\\Everything\\Everything.exe" nocase or
        $reg.principal.process.file.full_path = "C:\\Program Files (x86)\\Microsoft Office\\root\\integration\\integrator.exe" nocase or
        (
            $reg.principal.process.file.full_path = "C:\\Windows\\system32\\LogonUI.exe" nocase and
            (
                strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{d6886603-9d2f-4eb2-b667-1971041fa96b}\\") or
                strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{bec09223-b018-416d-a0ac-523971b639f5}\\") or
                strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{8af662bf-65a0-4d0a-a540-a338a999d36f}\\") or
                strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{27fbdb57-b613-4af2-9d7e-4fa7a66c21ad}\\")
            )
        ) or
        (
            (
                strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edgeupdate\\install\\") or
                strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edgewebview\\") or
                strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe")
            )
        ) or
        (
            $reg.principal.process.file.full_path = "C:\\Windows\\system32\\regsvr32.exe" nocase and
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "dropboxt") and
            re.regex($reg.target.registry.registry_value_data, `A251-47B7-93E1-CDD82E34AF8B}$`) nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Opera Browser Assistant$`) nocase and
            $reg.target.registry.registry_value_data = "C:\\Program Files\\Opera\\assistant\\browser_assistant.exe" nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\iTunesHelper$`) nocase and
            $reg.target.registry.registry_value_data = "\"C:\\Program Files\\iTunes\\iTunesHelper.exe\"" nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\zoommsirepair$`) nocase and
            $reg.target.registry.registry_value_data = "\"C:\\Program Files\\Zoom\\bin\\installer.exe\" /repair" nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Greenshot$`) nocase and
            $reg.target.registry.registry_value_data = "C:\\Program Files\\Greenshot\\Greenshot.exe" nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\GoogleDriveFS$`) nocase and
            strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\program files\\google\\drive file stream\\") and
            strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\googledrivefs.exe")
        ) or
        (
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "googledrive") and
            (
                $reg.target.registry.registry_value_data = "{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}" or
                $reg.target.registry.registry_value_data = "{A8E52322-8734-481D-A7E2-27B309EF8D56}" or
                $reg.target.registry.registry_value_data = "{C973DA94-CBDF-4E77-81D1-E5B794FBD146}" or
                $reg.target.registry.registry_value_data = "{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}"
            )
        ) or
        (
            (
                strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\windows\\system32\\cmd.exe /q /c rmdir /s /q \"c:\\users\\") or
                strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\windows\\system32\\cmd.exe /q /c del /q \"c:\\users\\")
             ) and
            strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\appdata\\local\\microsoft\\onedrive\\")
        ) or
        (
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\microsoft\\windows\\currentversion\\runonce\\{") and
            strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\appdata\\local\\package cache\\{") and
            strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "}\\python-") and
            re.regex($reg.target.registry.registry_value_data, `\.exe" /burn\.runonce$`) nocase
        ) or
        (
            (
                strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\common files\\microsoft shared\\clicktorun\\") or
                strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\common files\\microsoft shared\\clicktorun\\updates\\")
            ) and
            re.regex($reg.principal.process.file.full_path, `\\OfficeClickToRun\.exe$`) nocase
        ) or
        $reg.principal.process.file.full_path = "C:\\Program Files\\Windows Defender\\MsMpEng.exe" nocase or
        (
            re.regex($reg.principal.process.file.full_path, `\\Microsoft\\Teams\\current\\Teams\.exe$`) nocase and
            strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\microsoft\\teams\\update.exe --processstart ")
        ) or
        (
            $reg.principal.process.file.full_path = "C:\\Windows\\system32\\userinit.exe" nocase and
            $reg.target.registry.registry_value_data = "ctfmon.exe /n" nocase
        ) or
        (
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\avg\\antivirus\\setup\\") and
            (
                $reg.target.registry.registry_value_data = "\"C:\\Program Files\\AVG\\Antivirus\\AvLaunch.exe\" /gui" nocase or
                $reg.target.registry.registry_value_data = "\"C:\\Program Files (x86)\\AVG\\Antivirus\\AvLaunch.exe\" /gui" nocase or
                $reg.target.registry.registry_value_data = "{472083B0-C522-11CF-8763-00608CC02F24}" nocase
            )
        ) or
        (
            re.regex($reg.principal.process.file.full_path, `\\aurora-agent(|-64)\.exe$`) nocase and
            re.regex($reg.target.registry.registry_key, `\\Microsoft\\Windows\\CurrentVersion\\Run\\aurora-dashboard$`) nocase and
            $reg.target.registry.registry_value_data = "C:\\Program Files\\Aurora-Agent\\tools\\aurora-dashboard.exe" nocase
        ) or
        (
            re.regex($reg.target.registry.registry_key, `\\Microsoft\\Windows\\CurrentVersion\\Run\\Everything$`) nocase and
            re.regex($reg.target.registry.registry_value_data, `\\Everything\\Everything\.exe" -startup$`) nocase
        )
    )

    $reg.principal.hostname = $hostname

  match:
    $hostname over 5m

  outcome:
    //example usage of specifying test hostname to adjust risk score
    $risk_score = max(if($reg.principal.hostname = "hostname", 0, 15))
    $principal_hostname = array_distinct($reg.principal.hostname)
    $principal_process_pid = array_distinct($reg.principal.process.pid)
    $principal_process_file_full_path = array_distinct($reg.principal.process.file.full_path)
    $principal_process_product_specific_process_id = array_distinct($reg.principal.process.product_specific_process_id)
    $principal_user_userid = array_distinct($reg.principal.user.userid)
    $target_registry_key = array_distinct($reg.target.registry.registry_key)
    $target_registry_value_data = array_distinct($reg.target.registry.registry_value_data)
    $log_type = array_distinct(strings.concat($reg.metadata.log_type,"/",$reg.metadata.product_event_type))

  condition:
    $reg
}

Stages and Predicates

Stage 0: match + condition

match:
    $hostname over 5m
condition:
    $reg

Fires when at least one $reg event in the 5m window.

Stage 1: events: $reg · REGISTRY_MODIFICATION

$reg.metadata.event_type = "REGISTRY_MODIFICATION"
strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\software\\microsoft\\windows\\currentversion") and
(
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\shellserviceobjectdelayload") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\run\\") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runonce\\") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runonceex\\") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runservices\\") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\runservicesonce\\") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\policies\\system\\shell") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\policies\\explorer\\run") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\startup") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\shutdown") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\logon") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\group policy\\scripts\\logoff") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shellserviceobjects") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shelliconoverlayidentifiers") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\shellexecutehooks") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\sharedtaskscheduler") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\explorer\\browser helper objects") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\plap providers") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers") or
    strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential provider filters")
)
not (
    $reg.target.registry.registry_value_data = "(Empty)" or
    re.regex($reg.target.registry.registry_key, `\\NgcFirst\\ConsecutiveSwitchCount$`) nocase or
    re.regex($reg.principal.process.file.full_path, `\\AppData\\Local\\Microsoft\\OneDrive\\Update\\OneDriveSetup\.exe$`) nocase or
    re.regex($reg.principal.process.file.full_path, `\\AppData\\Roaming\\Spotify\\Spotify\.exe$`) nocase or
    re.regex($reg.principal.process.file.full_path, `\\AppData\\Local\\WebEx\\WebexHost\.exe$`) nocase or
    $reg.principal.process.file.full_path = "C:\\WINDOWS\\system32\\devicecensus.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Windows\\system32\\winsat.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files\\Microsoft OneDrive\\StandaloneUpdater\\OneDriveSetup.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files\\Microsoft OneDrive\\Update\\OneDriveSetup.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files (x86)\\Microsoft OneDrive\\Update\\OneDriveSetup.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files\\KeePass Password Safe 2\\ShInstUtil.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files\\Everything\\Everything.exe" nocase or
    $reg.principal.process.file.full_path = "C:\\Program Files (x86)\\Microsoft Office\\root\\integration\\integrator.exe" nocase or
    (
        $reg.principal.process.file.full_path = "C:\\Windows\\system32\\LogonUI.exe" nocase and
        (
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{d6886603-9d2f-4eb2-b667-1971041fa96b}\\") or
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{bec09223-b018-416d-a0ac-523971b639f5}\\") or
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{8af662bf-65a0-4d0a-a540-a338a999d36f}\\") or
            strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\authentication\\credential providers\\{27fbdb57-b613-4af2-9d7e-4fa7a66c21ad}\\")
        )
    ) or
    (
        (
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edgeupdate\\install\\") or
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edgewebview\\") or
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe")
        )
    ) or
    (
        $reg.principal.process.file.full_path = "C:\\Windows\\system32\\regsvr32.exe" nocase and
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "dropboxt") and
        re.regex($reg.target.registry.registry_value_data, `A251-47B7-93E1-CDD82E34AF8B}$`) nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Opera Browser Assistant$`) nocase and
        $reg.target.registry.registry_value_data = "C:\\Program Files\\Opera\\assistant\\browser_assistant.exe" nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\iTunesHelper$`) nocase and
        $reg.target.registry.registry_value_data = "\"C:\\Program Files\\iTunes\\iTunesHelper.exe\"" nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\zoommsirepair$`) nocase and
        $reg.target.registry.registry_value_data = "\"C:\\Program Files\\Zoom\\bin\\installer.exe\" /repair" nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Greenshot$`) nocase and
        $reg.target.registry.registry_value_data = "C:\\Program Files\\Greenshot\\Greenshot.exe" nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\GoogleDriveFS$`) nocase and
        strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\program files\\google\\drive file stream\\") and
        strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\googledrivefs.exe")
    ) or
    (
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "googledrive") and
        (
            $reg.target.registry.registry_value_data = "{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}" or
            $reg.target.registry.registry_value_data = "{A8E52322-8734-481D-A7E2-27B309EF8D56}" or
            $reg.target.registry.registry_value_data = "{C973DA94-CBDF-4E77-81D1-E5B794FBD146}" or
            $reg.target.registry.registry_value_data = "{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}"
        )
    ) or
    (
        (
            strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\windows\\system32\\cmd.exe /q /c rmdir /s /q \"c:\\users\\") or
            strings.starts_with(strings.to_lower($reg.target.registry.registry_value_data), "c:\\windows\\system32\\cmd.exe /q /c del /q \"c:\\users\\")
         ) and
        strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\appdata\\local\\microsoft\\onedrive\\")
    ) or
    (
        strings.contains(strings.to_lower($reg.target.registry.registry_key), "\\microsoft\\windows\\currentversion\\runonce\\{") and
        strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\appdata\\local\\package cache\\{") and
        strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "}\\python-") and
        re.regex($reg.target.registry.registry_value_data, `\.exe" /burn\.runonce$`) nocase
    ) or
    (
        (
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\common files\\microsoft shared\\clicktorun\\") or
            strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\common files\\microsoft shared\\clicktorun\\updates\\")
        ) and
        re.regex($reg.principal.process.file.full_path, `\\OfficeClickToRun\.exe$`) nocase
    ) or
    $reg.principal.process.file.full_path = "C:\\Program Files\\Windows Defender\\MsMpEng.exe" nocase or
    (
        re.regex($reg.principal.process.file.full_path, `\\Microsoft\\Teams\\current\\Teams\.exe$`) nocase and
        strings.contains(strings.to_lower($reg.target.registry.registry_value_data), "\\microsoft\\teams\\update.exe --processstart ")
    ) or
    (
        $reg.principal.process.file.full_path = "C:\\Windows\\system32\\userinit.exe" nocase and
        $reg.target.registry.registry_value_data = "ctfmon.exe /n" nocase
    ) or
    (
        strings.starts_with(strings.to_lower($reg.principal.process.file.full_path), "c:\\program files\\avg\\antivirus\\setup\\") and
        (
            $reg.target.registry.registry_value_data = "\"C:\\Program Files\\AVG\\Antivirus\\AvLaunch.exe\" /gui" nocase or
            $reg.target.registry.registry_value_data = "\"C:\\Program Files (x86)\\AVG\\Antivirus\\AvLaunch.exe\" /gui" nocase or
            $reg.target.registry.registry_value_data = "{472083B0-C522-11CF-8763-00608CC02F24}" nocase
        )
    ) or
    (
        re.regex($reg.principal.process.file.full_path, `\\aurora-agent(|-64)\.exe$`) nocase and
        re.regex($reg.target.registry.registry_key, `\\Microsoft\\Windows\\CurrentVersion\\Run\\aurora-dashboard$`) nocase and
        $reg.target.registry.registry_value_data = "C:\\Program Files\\Aurora-Agent\\tools\\aurora-dashboard.exe" nocase
    ) or
    (
        re.regex($reg.target.registry.registry_key, `\\Microsoft\\Windows\\CurrentVersion\\Run\\Everything$`) nocase and
        re.regex($reg.target.registry.registry_value_data, `\\Everything\\Everything\.exe" -startup$`) nocase
    )
)

$reg.principal.hostname = $hostname

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

StageFieldKindExcluded values
1principal.process.file.full_pathstarts_withc:\\program files\\common files\\microsoft shared\\clicktorun\\
1principal.process.file.full_pathstarts_withc:\\program files\\common files\\microsoft shared\\clicktorun\\updates\\
1principal.process.file.full_pathregex_match\OfficeClickToRun.exe$
1target.registry.registry_keycontains\\authentication\\credential providers\\{27fbdb57-b613-4af2-9d7e-4fa7a66c21ad}\\
1target.registry.registry_keycontains\\authentication\\credential providers\\{8af662bf-65a0-4d0a-a540-a338a999d36f}\\
1target.registry.registry_keycontains\\authentication\\credential providers\\{bec09223-b018-416d-a0ac-523971b639f5}\\
1target.registry.registry_keycontains\\authentication\\credential providers\\{d6886603-9d2f-4eb2-b667-1971041fa96b}\\
1principal.process.file.full_patheqC:\\Windows\\system32\\LogonUI.exe
1target.registry.registry_value_dataeq\"C:\\Program Files (x86)\\AVG\\Antivirus\\AvLaunch.exe\" /gui
1target.registry.registry_value_dataeq\"C:\\Program Files\\AVG\\Antivirus\\AvLaunch.exe\" /gui
1target.registry.registry_value_dataeq{472083B0-C522-11CF-8763-00608CC02F24}
1principal.process.file.full_pathstarts_withc:\\program files\\avg\\antivirus\\setup\\
1target.registry.registry_value_dataeq{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}
1target.registry.registry_value_dataeq{A8E52322-8734-481D-A7E2-27B309EF8D56}
1target.registry.registry_value_dataeq{C973DA94-CBDF-4E77-81D1-E5B794FBD146}
1target.registry.registry_value_dataeq{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}
1target.registry.registry_keycontainsgoogledrive
1target.registry.registry_value_datastarts_withc:\\windows\\system32\\cmd.exe /q /c del /q \"c:\\users\\
1target.registry.registry_value_datastarts_withc:\\windows\\system32\\cmd.exe /q /c rmdir /s /q \"c:\\users\\
1target.registry.registry_value_datacontains\\appdata\\local\\microsoft\\onedrive\\
1principal.process.file.full_patheqC:\\Windows\\system32\\regsvr32.exe
1target.registry.registry_keycontainsdropboxt
1target.registry.registry_value_dataregex_matchA251-47B7-93E1-CDD82E34AF8B}$
1principal.process.file.full_patheqC:\\Windows\\system32\\userinit.exe
1target.registry.registry_value_dataeqctfmon.exe /n
1principal.process.file.full_pathregex_match\Microsoft\Teams\current\Teams.exe$
1target.registry.registry_value_datacontains\\microsoft\\teams\\update.exe --processstart
1principal.process.file.full_pathregex_match\aurora-agent(|-64).exe$
1target.registry.registry_keyregex_match\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard$
1target.registry.registry_value_dataeqC:\\Program Files\\Aurora-Agent\\tools\\aurora-dashboard.exe
1target.registry.registry_keycontains\\microsoft\\windows\\currentversion\\runonce\\{
1target.registry.registry_value_datacontains\\appdata\\local\\package cache\\{
1target.registry.registry_value_datacontains}\\python-
1target.registry.registry_value_dataregex_match.exe" /burn.runonce$
1target.registry.registry_keyregex_match\Microsoft\Windows\CurrentVersion\Run\Everything$
1target.registry.registry_value_dataregex_match\Everything\Everything.exe" -startup$
1target.registry.registry_keyregex_match\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair$
1target.registry.registry_value_dataeq\"C:\\Program Files\\Zoom\\bin\\installer.exe\" /repair
1target.registry.registry_keyregex_match\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot$
1target.registry.registry_value_dataeqC:\\Program Files\\Greenshot\\Greenshot.exe
1target.registry.registry_keyregex_match\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant$
1target.registry.registry_value_dataeqC:\\Program Files\\Opera\\assistant\\browser_assistant.exe
1target.registry.registry_keyregex_match\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper$
1target.registry.registry_value_dataeq\"C:\\Program Files\\iTunes\\iTunesHelper.exe\"
1target.registry.registry_keyregex_match\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS$
1target.registry.registry_value_datacontains\\googledrivefs.exe
1target.registry.registry_value_datastarts_withc:\\program files\\google\\drive file stream\\
1principal.process.file.full_patheqC:\\Program Files (x86)\\Microsoft Office\\root\\integration\\integrator.exe
1principal.process.file.full_patheqC:\\Program Files (x86)\\Microsoft OneDrive\\Update\\OneDriveSetup.exe
1principal.process.file.full_patheqC:\\Program Files\\Everything\\Everything.exe
1principal.process.file.full_patheqC:\\Program Files\\KeePass Password Safe 2\\ShInstUtil.exe
1principal.process.file.full_patheqC:\\Program Files\\Microsoft OneDrive\\StandaloneUpdater\\OneDriveSetup.exe
1principal.process.file.full_patheqC:\\Program Files\\Microsoft OneDrive\\Update\\OneDriveSetup.exe
1principal.process.file.full_patheqC:\\Program Files\\Windows Defender\\MsMpEng.exe
1principal.process.file.full_patheqC:\\WINDOWS\\system32\\devicecensus.exe
1principal.process.file.full_patheqC:\\Windows\\system32\\winsat.exe
1principal.process.file.full_pathregex_match\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe$
1principal.process.file.full_pathregex_match\AppData\Local\WebEx\WebexHost.exe$
1principal.process.file.full_pathregex_match\AppData\Roaming\Spotify\Spotify.exe$
1principal.process.file.full_pathstarts_withc:\\program files (x86)\\microsoft\\edge\\application\\msedge.exe
1principal.process.file.full_pathstarts_withc:\\program files (x86)\\microsoft\\edgeupdate\\install\\
1principal.process.file.full_pathstarts_withc:\\program files (x86)\\microsoft\\edgewebview\\
1target.registry.registry_keyregex_match\NgcFirst\ConsecutiveSwitchCount$
1target.registry.registry_value_dataeq(Empty)

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
target.registry.registry_keycontains
  • \\authentication\\credential provider filters transforms: tolower
  • \\authentication\\credential providers transforms: tolower
  • \\authentication\\plap providers transforms: tolower
  • \\explorer\\browser helper objects transforms: tolower
  • \\explorer\\sharedtaskscheduler transforms: tolower
  • \\explorer\\shellexecutehooks transforms: tolower
  • \\explorer\\shelliconoverlayidentifiers transforms: tolower
  • \\explorer\\shellserviceobjects transforms: tolower
  • \\group policy\\scripts\\logoff transforms: tolower
  • \\group policy\\scripts\\logon transforms: tolower
  • \\group policy\\scripts\\shutdown transforms: tolower
  • \\group policy\\scripts\\startup transforms: tolower
  • \\policies\\explorer\\run transforms: tolower
  • \\policies\\system\\shell transforms: tolower
  • \\run\\ transforms: tolower
  • \\runonce\\ transforms: tolower
  • \\runonceex\\ transforms: tolower
  • \\runservices\\ transforms: tolower
  • \\runservicesonce\\ transforms: tolower
  • \\shellserviceobjectdelayload transforms: tolower
  • \\software\\microsoft\\windows\\currentversion transforms: tolower

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
risk_scoremax(if($reg.principal.hostname = "hostname", 0, 15))
principal_hostnamearray_distinct($reg.principal.hostname)
principal_process_pidarray_distinct($reg.principal.process.pid)
principal_process_file_full_patharray_distinct($reg.principal.process.file.full_path)
principal_process_product_specific_process_idarray_distinct($reg.principal.process.product_specific_process_id)
principal_user_useridarray_distinct($reg.principal.user.userid)
target_registry_keyarray_distinct($reg.target.registry.registry_key)
target_registry_value_dataarray_distinct($reg.target.registry.registry_value_data)
log_typearray_distinct(strings.concat($reg.metadata.log_type,"/",$reg.metadata.product_event_type))