Skip to content

Commit

Permalink
Merge PR #4906 from @fornotes - Update and add new dll sideloading rules
Browse files Browse the repository at this point in the history
update: Potential System DLL Sideloading From Non System Locations - Add new entries to increase coverage
new: Potential DLL Sideloading Of DbgModel.DLL
new: Potential DLL Sideloading Of MpSvc.DLL
new: Potential DLL Sideloading Of MsCorSvc.DLL 

---------

Co-authored-by: nasbench <8741929+nasbench@users.noreply.github.com>
  • Loading branch information
fornotes and nasbench authored Jul 11, 2024
1 parent c2915a6 commit d4cb9fd
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 113 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Potential DLL Sideloading Of DBGHELP.DLL
id: 6414b5cd-b19d-447e-bb5e-9f03940b5784
status: test
description: Detects DLL sideloading of "dbghelp.dll"
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)
Expand Down
32 changes: 32 additions & 0 deletions rules/windows/image_load/image_load_side_load_dbgmodel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
title: Potential DLL Sideloading Of DbgModel.DLL
id: fef394cd-f44d-4040-9b18-95d92fe278c0
status: experimental
description: Detects potential DLL sideloading of "DbgModel.dll"
references:
- https://hijacklibs.net/entries/microsoft/built-in/dbgmodel.html
author: Gary Lobermier
date: 2024/07/11
tags:
- attack.defense_evasion
- attack.t1574.002
logsource:
product: windows
category: image_load
detection:
selection:
ImageLoaded|endswith: '\dbgmodel.dll'
filter_main_generic:
ImageLoaded|startswith:
- 'C:\Windows\System32\'
- 'C:\Windows\SysWOW64\'
- 'C:\Windows\WinSxS\'
filter_main_optional_windbg:
ImageLoaded|startswith: 'C:\Program Files\WindowsApps\Microsoft.WinDbg_'
filter_main_optional_windows_kits:
ImageLoaded|startswith:
- 'C:\Program Files (x86)\Windows Kits\'
- 'C:\Program Files\Windows Kits\'
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
Loading

0 comments on commit d4cb9fd

Please sign in to comment.