Detection rules › Sigma

Potential DLL Sideloading Of DBGHELP.DLL

Status
test
Severity
medium
Log source
category image_load, product windows
Author
Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research)
Source
github.com/SigmaHQ/sigma

Detects potential DLL sideloading of "dbghelp.dll"

Known false positives

  • Legitimate applications loading their own versions of the DLL mentioned in this rule

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule body

title: Potential DLL Sideloading Of DBGHELP.DLL
id: 6414b5cd-b19d-447e-bb5e-9f03940b5784
status: test
description: Detects potential DLL sideloading of "dbghelp.dll"
references:
    - https://hijacklibs.net/ # For list of DLLs that could be sideloaded (search for dlls mentioned here in there)
author: Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research)
date: 2022-10-25
modified: 2025-10-07
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith: '\dbghelp.dll'
    filter_main_generic:
        ImageLoaded|startswith:
            - 'C:\Program Files (x86)\'
            - 'C:\Program Files\'
            - 'C:\Windows\SoftwareDistribution\'
            - 'C:\Windows\System32\'
            - 'C:\Windows\SystemTemp\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\WinSxS\'
    filter_optional_anaconda:
        ImageLoaded|endswith:
            - '\Anaconda3\Lib\site-packages\vtrace\platforms\windll\amd64\dbghelp.dll'
            - '\Anaconda3\Lib\site-packages\vtrace\platforms\windll\i386\dbghelp.dll'
    filter_optional_epicgames:
        ImageLoaded|endswith:
            - '\Epic Games\Launcher\Engine\Binaries\ThirdParty\DbgHelp\dbghelp.dll'
            - '\Epic Games\MagicLegends\x86\dbghelp.dll'
    filter_optional_opera:
        ImageLoaded|contains: 'opera\Opera Installer Temp\opera_package'
        ImageLoaded|endswith: '\assistant\dbghelp.dll'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate applications loading their own versions of the DLL mentioned in this rule
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    ImageLoaded|endswith: '\dbghelp.dll'

Stage 2: not filter_main_generic

filter_main_generic:
    ImageLoaded|startswith:
        - 'C:\Program Files (x86)\'
        - 'C:\Program Files\'
        - 'C:\Windows\SoftwareDistribution\'
        - 'C:\Windows\System32\'
        - 'C:\Windows\SystemTemp\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Windows\WinSxS\'

Stage 3: not filter_optional_*

filter_optional_anaconda:
    ImageLoaded|endswith:
        - '\Anaconda3\Lib\site-packages\vtrace\platforms\windll\amd64\dbghelp.dll'
        - '\Anaconda3\Lib\site-packages\vtrace\platforms\windll\i386\dbghelp.dll'
filter_optional_epicgames:
    ImageLoaded|endswith:
        - '\Epic Games\Launcher\Engine\Binaries\ThirdParty\DbgHelp\dbghelp.dll'
        - '\Epic Games\MagicLegends\x86\dbghelp.dll'
filter_optional_opera:
    ImageLoaded|contains: 'opera\Opera Installer Temp\opera_package'
    ImageLoaded|endswith: '\assistant\dbghelp.dll'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImageLoadedstarts_withC:\Program Files (x86)\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files (x86)\"
ImageLoadedstarts_withC:\Program Files\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files\"
ImageLoadedstarts_withC:\Windows\SoftwareDistribution\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\SoftwareDistribution\"
ImageLoadedstarts_withC:\Windows\SysWOW64\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\SysWOW64\"
ImageLoadedstarts_withC:\Windows\System32\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\System32\"
ImageLoadedstarts_withC:\Windows\SystemTemp\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\SystemTemp\"
ImageLoadedstarts_withC:\Windows\WinSxS\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\WinSxS\"
ImageLoadedends_with\assistant\dbghelp.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\assistant\dbghelp.dll"
ImageLoadedmatchopera\Opera Installer Temp\opera_packageexcludes:ImageLoaded field:"ImageLoaded" value:"opera\Opera Installer Temp\opera_package"
ImageLoadedends_with\Anaconda3\Lib\site-packages\vtrace\platforms\windll\amd64\dbghelp.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\Anaconda3\Lib\site-packages\vtrace\platforms\windll\amd64\dbghelp.dll"
ImageLoadedends_with\Anaconda3\Lib\site-packages\vtrace\platforms\windll\i386\dbghelp.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\Anaconda3\Lib\site-packages\vtrace\platforms\windll\i386\dbghelp.dll"
ImageLoadedends_with\Epic Games\Launcher\Engine\Binaries\ThirdParty\DbgHelp\dbghelp.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\Epic Games\Launcher\Engine\Binaries\ThirdParty\DbgHelp\dbghelp.dll"
ImageLoadedends_with\Epic Games\MagicLegends\x86\dbghelp.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\Epic Games\MagicLegends\x86\dbghelp.dll"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImageLoadedends_with
  • \dbghelp.dll corpus 6 (sigma 6)
field:"ImageLoaded" kind:ends_with value:"\dbghelp.dll"