Windows File Creation: System DLL Named .dll in Uncommon Locations

Alerts on creation of .dll files named like system DLLs in unexpected Windows directories.

FreeReviewedSigma · Medium · v2
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2024-06-24
Updated
2026-07-31
title: "Windows File Creation: System DLL Named .dll in Uncommon Locations"
id: d26241cf-b5af-4638-b6db-269d425a97f6
status: test
description: This rule flags creation of new .dll files whose filename ends with specific System DLL names (e.g., secur32.dll, tdh.dll) in locations outside typical Windows system directories. Attackers may use unexpected paths to stage or sideload DLLs to increase stealth and influence application loading behavior. It relies on Windows file creation telemetry capturing the target filename and matches both the DLL name suffix and the absence of common trusted path substrings.
references:
  - Internal Research
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_creation_system_dll_files.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2024-06-24
tags:
  - attack.stealth
  - attack.t1036.005
logsource:
  category: file_event
  product: windows
detection:
  selection:
    TargetFilename|endswith:
      - \secur32.dll
      - \tdh.dll
  filter_main_generic:
    TargetFilename|contains:
      - C:\$WINDOWS.~BT\
      - C:\$WinREAgent\
      - C:\Windows\SoftwareDistribution\
      - C:\Windows\System32\
      - C:\Windows\SysWOW64\
      - C:\Windows\WinSxS\
      - C:\Windows\uus\
  condition: selection and not 1 of filter_main_*
falsepositives:
  - Third party software might bundle specific versions of system DLLs.
level: medium
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_creation_system_dll_files/info.yml
license: DRL-1.1
related:
  - id: 13c02350-4177-4e45-ac17-cf7ca628ff5e
    type: derived