Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Sysmon Event ID 7

Sysmon Event ID 7: Image Loaded

Image loaded

Log source
Microsoft-Windows-Sysmon/Operational
How to enable it
Sysmon installed, with an ImageLoad section. Off by default
Category
Defense Evasion
Priority
Medium
Typical volume
Very high
MITRE ATT&CK

What Sysmon Event ID 7 means

Sysmon event 7 is written when a process loads a module such as a DLL. A single program start can load a hundred, so the event is off by default and should be enabled only with include rules for particular modules, folders or programs.

Within those limits it sees things that process events cannot. DLL side-loading puts malicious code inside a trusted, signed program, so the process looks perfectly clean. The only visible oddity is a module loaded from the wrong folder or without a signature.

Certain modules are informative by themselves. clr.dll in a program that is not written in .NET suggests that an assembly was loaded in memory. dbghelp.dll or comsvcs.dll in an unusual program can accompany dumping of LSASS. System.Management.Automation.dll outside powershell.exe means that PowerShell is running without its executable.

Key fields to inspect

FieldMeaningSuspicious when
Image Program that loaded the module. A signed vendor program in a user folder, which is a typical side-loading host.
ImageLoaded Path of the module. A system DLL name outside System32, or any module in a user or temporary folder.
Signed Whether the module is signed. false inside a signed program.
SignatureStatus Result of signature validation. Anything except Valid.
Signature Name of the signer. A signer different from that of the program.
OriginalFileName Name from the module's version resource. A value that differs from the name in ImageLoaded.
Hashes Hashes of the module. Known values, or one seen on a single host only.

Detection queries

Find unsigned modules with system names loaded from folders that users can write to. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=7
Signed=false
| regex ImageLoaded="(?i)\\\\(Users|ProgramData|Temp|Public)\\\\"
| regex ImageLoaded="(?i)\\\\(version|dbghelp|cryptbase|userenv|wtsapi32|dwmapi|uxtheme|winmm|propsys|secur32|wininet|msimg32)\.dll$"
| stats dc(Computer) AS hosts values(Image) AS programs values(Hashes) AS hashes BY ImageLoaded
| where hosts<=5

Microsoft Sentinel KQL

Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 7
| extend Image = extract(@'Name="Image">([^<]*)<', 1, EventData)
| extend ImageLoaded = extract(@'Name="ImageLoaded">([^<]*)<', 1, EventData)
| extend Signed = extract(@'Name="Signed">([^<]*)<', 1, EventData)
| extend Hashes = extract(@'Name="Hashes">([^<]*)<', 1, EventData)
| where Signed == "false" and ImageLoaded matches regex @"(?i)\\(Users|ProgramData|Temp|Public)\\"
| where ImageLoaded matches regex @"(?i)\\(version|dbghelp|cryptbase|userenv|wtsapi32|dwmapi|uxtheme|winmm|propsys|secur32|wininet|msimg32)\.dll$"
| summarize Hosts = dcount(Computer), Programs = make_set(Image, 10), AllHashes = make_set(Hashes, 10) by ImageLoaded
| where Hosts <= 5

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-Sysmon/Operational'; Id = 7; StartTime = (Get-Date).AddDays(-1) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
  Where-Object { $_.Signed -eq 'false' -and $_.ImageLoaded -match '\\(Users|ProgramData|Temp)\\' } |
  Select-Object Time, Image, ImageLoaded, Signed, Signature | Format-Table -AutoSize

Attack scenarios

DLL side-loading

An archive holds a signed program and a malicious version.dll. The program starts from Downloads and loads the DLL next to it instead of the one in System32. Event 1 shows a legitimate hash, and event 7 shows an unsigned module.

In-memory .NET assembly

Execute-assembly and similar features start a sacrificial process and load clr.dll into it. A native program such as notepad.exe or rundll32.exe that loads the .NET runtime is worth immediate attention.

PowerShell without powershell.exe

Tools host the PowerShell engine in their own process to avoid rules on its name. The load of System.Management.Automation.dll reveals them.

Investigation checklist

  1. Compare the module's folder with where Windows or the vendor installs it.
  2. Check the signature and hash of the module, and of the program that loaded it.
  3. Use ProcessGuid to find the process start and its parent.
  4. Look for network connections (event 3) by the same process.
  5. Count how many hosts have the module. Rare is interesting.

Common benign causes

Sysmon Event ID 7 FAQ

How do I enable Sysmon event 7 without too much noise?

Add include rules to the ImageLoad section for folders that users can write to, for unsigned modules and for specific libraries such as clr.dll and System.Management.Automation.dll. Do not log every load.

How does DLL side-loading appear in Sysmon?

As a signed program, frequently outside its normal folder, that loads a module with a system or vendor name from its own directory. The module is unsigned or has a different signer.

Does Sysmon event 7 detect reflective DLL injection?

Usually not, because reflective loading maps code manually and does not use the Windows loader. Events 8 and 10, memory scanning and unusual network activity are better sources for that.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license).