imjp14k.dll
There are executables that allowimjp14k.dll to be DLL hijacked.Expected Locations
The fileimjp14k.dll is normally found in the following paths:
%SYSTEM32%%SYSWOW64%%PROGRAMFILES%\Common Files\Microsoft Shared\IME14\SHARED
Vulnerable Executables
DLL Sideloading (1 EXE)
By copying (and optionally renaming) any of the following vulnerable applications to a user-writeable folder, alongside a malicious
imjp14k.dll, arbitrary code can be executed through it.
Detection
Below a sample Sigma rule that will find processes that loadedimjp14k.dll located in a folder that is not one of the expected locations (see above).
title: Possible DLL Hijacking of imjp14k.dll
id: 1912701b-7371-48a3-5678-5b9ff8552736
status: experimental
description: Detects possible DLL hijacking of imjp14k.dll by looking for suspicious image loads, loading this DLL from unexpected locations.
references:
- https://hijacklibs.net/entries/microsoft/external/imjp14k.html
author: "Wietze Beukema"
date: 2024-09-08
tags:
- attack.defense_evasion
- attack.T1574.001
logsource:
product: windows
category: image_load
detection:
selection:
ImageLoaded: '*\imjp14k.dll'
filter:
ImageLoaded:
- 'c:\windows\system32\\*'
- 'c:\windows\syswow64\\*'
- 'c:\program files\Common Files\Microsoft Shared\IME14\SHARED\\*'
- 'c:\program files (x86)\Common Files\Microsoft Shared\IME14\SHARED\\*'
condition: selection and not filter
falsepositives:
- False positives are likely. This rule is more suitable for hunting than for generating detections.title: Possible preparation for imjp14k.dll DLL Hijacking
id: 1912702b-7371-48a3-5678-5b9ff8552736
status: experimental
description: Detects possible DLL hijacking of imjp14k.dll by looking for suspicious file writes of this DLL, to unexpected locations.
references:
- https://hijacklibs.net/entries/microsoft/external/imjp14k.html
author: "Wietze Beukema"
date: 2024-09-08
tags:
- attack.defense_evasion
- attack.T1574.001
logsource:
product: windows
category: file_event
detection:
selection:
TargetFileName: '*\imjp14k.dll'
filter:
TargetFileName:
- 'c:\windows\system32\\*'
- 'c:\windows\syswow64\\*'
- 'c:\program files\Common Files\Microsoft Shared\IME14\SHARED\\*'
- 'c:\program files (x86)\Common Files\Microsoft Shared\IME14\SHARED\\*'
- 'c:\windows\winsxs\*'
- 'c:\$windows.~bt\*'
- 'c:\windows\softwaredistribution\*'
condition: selection and not filter
falsepositives:
- False positives are likely. This rule is more suitable for hunting than for generating detections.Note that this rule is also included in the Detection Content Feeds that comprise all DLL Hijacking entries part of HijackLibs.
FAQs
Why should I care about this?
DLL Hijacking enables the execution of malicious code through a signed and/or trusted executable. Defensive measures such as AV and EDR solutions may not pick up on this activity out of the box, and allow-list applications such as AppLocker may not block the execution of the untrusted code. There are numerous examples of threat actors that have been observed to leaverage DLL Hijacking to achieve their objectives. As such, this project wants to encourage you to monitor for unusual activity involvingimjp14k.dll.
How do I abuse this vulnerability?
As a red teamer, you will have to compile your own version ofimjp14k.dll. There are various guides on how this can be achieved.