← Back to SOC feed Coverage →

Potential Persistence Via Scrobj.dll COM Hijacking

sigma MEDIUM SigmaHQ
T1546.015
imRegistry
persistence
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 SigmaHQ →
Retrieved: 2026-05-29T11:00:00Z · Confidence: medium

Hunt Hypothesis

Detect use of scrobj.dll as this DLL looks for the ScriptletURL key to get the location of the script to execute

Detection Rule

Sigma (Original)

title: Potential Persistence Via Scrobj.dll COM Hijacking
id: fe20dda1-6f37-4379-bbe0-a98d400cae90
status: test
description: Detect use of scrobj.dll as this DLL looks for the ScriptletURL key to get the location of the script to execute
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/40b77d63808dd4f4eafb83949805636735a1fd15/atomics/T1546.015/T1546.015.md
author: frack113
date: 2022-08-20
modified: 2023-08-17
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1546.015
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: 'InprocServer32\(Default)'
        Details: 'C:\WINDOWS\system32\scrobj.dll'
    condition: selection
falsepositives:
    - Legitimate use of the dll.
level: medium

KQL (Azure Sentinel)

imRegistry
| where RegistryKey endswith "InprocServer32\\(Default)" and RegistryValueData =~ "C:\\WINDOWS\\system32\\scrobj.dll"

KQL (Microsoft 365 Defender)

DeviceRegistryEvents
| where RegistryKey endswith "InprocServer32\\(Default)" and RegistryValueData =~ "C:\\WINDOWS\\system32\\scrobj.dll"

Required Data Sources

Sentinel TableNotes
imRegistryEnsure this data connector is enabled

False Positive Guidance

MITRE ATT&CK Context

References

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_set/registry_set_persistence_scrobj_dll.yml