Event ID 7: Image Loaded
Sysmon Event 7 logs DLL (Dynamic Link Library) loading into processes, capturing which DLLs are loaded, their file paths, and cryptographic hashes. This event is critical for detecting DLL injection, DLL side-loading, and reflective DLL injection used by attackers and malware.
- Channel
- Microsoft-Windows-Sysmon/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- Very high
- Provider
- Microsoft-Windows-Sysmon
- Needs a SACL
- No
To have this event
- Sysmon installed, with a configuration that includes this event type.
- Commonly disabled or heavily filtered in public baseline configurations; check yours.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| UtcTime | UTC timestamp of image load |
| ProcessGuid | Process GUID that loaded the image |
| ProcessId | Process ID |
| Image | Process executable path |
| ImageLoaded | Full path to the loaded DLL/module |
| FileVersion | File version of the loaded image |
| Description | Description from image metadata |
| Product | Product name |
| Company | Company name |
| OriginalFileName | Original filename (detects renamed DLLs) |
| Hashes | File hashes of the loaded image |
| Signed | Whether the image is digitally signed |
| Signature | Signer name |
| SignatureStatus | Signature validation status |
In an investigation
Sysmon Event 7 provides visibility into Dynamic Link Library loading, tracking when executable code in the form of DLLs is loaded into running processes. This event captures the process loading the DLL, the full path and filename of the loaded DLL, cryptographic hashes, digital signature information, and the image base address in memory. DLL loading is a fundamental Windows mechanism that threat actors frequently exploit through techniques like DLL injection (forcing malicious DLLs into legitimate processes), DLL side-loading (placing malicious DLLs alongside legitimate applications), DLL hijacking (exploiting DLL search order), and reflective DLL injection (loading DLLs directly from memory without touching disk). Security analysts use Event 7 to detect these sophisticated evasion techniques by monitoring for unsigned or invalidly signed DLLs, DLLs loading from suspicious paths like Temp directories or user profiles, unusual DLLs loading into system processes, and DLLs with known malicious hashes. The event enables detection of fileless malware that loads malicious code directly into memory, advanced persistent threats using custom DLLs for espionage, and commodity malware using process injection to hide from security tools. Because Event 7 can generate substantial log volume in active environments, security teams often configure Sysmon to exclude common legitimate DLLs while focusing on suspicious loading patterns. The event is particularly valuable when investigating memory-based attacks where traditional file-based detection fails, as it provides evidence of malicious code execution even when no malicious files exist on disk.
What it can reveal
- Unsigned DLLs or those with invalid signatures loading into system processes indicate injection attacks
- DLLs loading from unusual paths like AppData, Temp, or user Downloads folders suggest malware
- Reflective loading patterns where DLL paths don't match file system locations reveal memory-resident threats
- Cobalt Strike and other frameworks have distinctive DLL signatures and hash values observable in Event 7
- DLLs with randomized or obfuscated names loading into browsers or Office apps often indicate exploitation
How to detect with it
Configure Sysmon Event 7 filtering to exclude known-good Microsoft-signed DLLs while capturing potentially malicious loading activity. This reduces log volume while maintaining security visibility. Alert on unsigned DLLs loading into sensitive processes like lsass.exe, browsers, or Office applications. Monitor for DLLs loading from suspicious directories particularly Temp, AppData, public folders, and network shares. Create hash-based detection for known malicious DLLs and regularly update with threat intelligence. Track DLLs with suspicious naming patterns including random alphanumeric strings or names mimicking legitimate system DLLs. Correlate Event 7 with process creation (Event 1) to understand the execution chain that led to suspicious DLL loading. Implement behavioral analysis to identify processes that suddenly load unusual numbers or types of DLLs compared to baseline behavior. Comprehensive Sysmon configuration examples and filtering best practices will be provided in future documentation.
Attack patterns
- Cobalt Strike beacon DLLs have specific export characteristics and hash ranges visible in Sysmon Event 7 during post-exploitation
- Emotet malware uses DLL injection extensively, visible through Event 7 capturing unsigned DLLs loading into legitimate Windows processes
- APT groups employ custom espionage DLLs that side-load alongside legitimate applications, detectable through anomalous DLL loading patterns
Compared withEvent 7 should be carefully filtered to avoid overwhelming log volume. Focus on unsigned DLLs, unusual load paths, and suspicious processes. Combine with Event 8 (CreateRemoteThread) for complete injection detection.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=7)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
- T1574.001 DLL Search Order Hijacking
- T1574.004 Dylib Hijacking
- T1574.006 Dynamic Linker Hijacking
- T1547.001 Registry Run Keys / Startup Folder
- T1547.002 Authentication Package
- T1547.003 Time Providers
- T1547.004 Winlogon Helper DLL
- T1547.005 Security Support Provider
- T1547.008 LSASS Driver
- T1547.010 Port Monitors
- T1547.012 Print Processors
- T1546.009 AppCert DLLs
- T1546.010 AppInit DLLs
- T1546.011 Application Shimming
- T1546.012 Image File Execution Options Injection
- T1546.015 Component Object Model Hijacking
- T1505.002 Transport Agent
- T1505.004 IIS Components
- T1505.005 Terminal Services DLL
- T1218.010 Regsvr32
- T1218.011 Rundll32
- T1556.002 Password Filter DLL
- T1556.008 Network Provider DLL
- T1574.012 COR_PROFILER
- T1574.013 KernelCallbackTable
- T1574.014 AppDomainManager
Related events
Common questions
- What does Windows event ID 7 mean?
- Sysmon Event 7 logs DLL (Dynamic Link Library) loading into processes, capturing which DLLs are loaded, their file paths, and cryptographic hashes. This event is critical for detecting DLL injection, DLL side-loading, and reflective DLL injection used by attackers and malware.
- Is event 7 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 7 recorded?
- In the Microsoft-Windows-Sysmon/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderSysmon Event 7 logs DLL (Dynamic Link Library) loading into processes, capturing which DLLs are loaded, their file paths, and cryptographic hashes. This event is critical for detecting DLL injection, DLL side-loading, and reflective DLL injection used by attackers and malware.