Detection rule
Potential DCOM InternetExplorer.Application DLL Hijack
Overview
Detects potential DLL hijack of "iertutil.dll" found in the DCOM InternetExplorer.Application Class over the network
- Rule id
2f7979ae-f82b-45af-ac1d-2b10e93b0baa- ATT&CK techniques
- T1021.002 Remote Services: SMB/Windows Admin Shares, T1021.003 Remote Services: Distributed Component Object Model
- Severity
- Critical
- Confidence
- Low
- Origin
- SigmaHQ (community)
- SigmaHQ status
test- Used in defense packs
- The Gentlemen, qilin, safepay, Play, everest, nightspire
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- SIEM-validatedRun in a real SIEM, with a recorded result.
1 of 1 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.
Detection logic and queries
Queries are shown exactly as generated. Test them in your environment before you deploy them.
Sigma
Sigma (YAML) · 2f7979ae-f82b-45af-ac1d-2b10e93b0baa
title: Potential DCOM InternetExplorer.Application DLL Hijack
id: 2f7979ae-f82b-45af-ac1d-2b10e93b0baa
related:
- id: e554f142-5cf3-4e55-ace9-a1b59e0def65
type: obsolete
- id: f354eba5-623b-450f-b073-0b5b2773b6aa
type: similar
status: test
description: Detects potential DLL hijack of "iertutil.dll" found in the DCOM InternetExplorer.Application Class over the network
references:
- https://threathunterplaybook.com/hunts/windows/201009-RemoteDCOMIErtUtilDLLHijack/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g, Open Threat Research (OTR), wagga
date: 2020-10-12
modified: 2022-12-18
tags:
- attack.lateral-movement
- attack.t1021.002
- attack.t1021.003
logsource:
product: windows
category: file_event
detection:
selection:
Image: System
TargetFilename|endswith: '\Internet Explorer\iertutil.dll'
condition: selection
falsepositives:
- Unknown
level: criticalQRadar AQL
IBM QRadar AQL (hunting query)Hunting query
Hunting search for the Log Activity tab or the API. It is not a QRadar rule.
AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).
SELECT * FROM events WHERE devicetype=12 AND ("Process Path"='System' OR "Process Name"='System') AND LOWER(Filename) LIKE '%\internet explorer\iertutil.dll'QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Potential DCOM InternetExplorer.Application DLL Hijack- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Sysmon EID 11 (FileCreate)
Building blocks
BB:OffSet7:Potential DCOM InternetExplorer Application DLL :selection(match)All test lines must match (AND).Process Path / Process Nameis equal to (case-insensitive):SystemFilenameends with:\Internet Explorer\iertutil.dll
Main rule, option A (building blocks)
- when the event(s) were detected by one or more of these log source types:
Microsoft Windows Security Event Log DSM: Sysmon EID 11 (FileCreate) - when an event matches the condition built from these building blocks:
BB:OffSet7:Potential DCOM InternetExplorer Application DLL :selection
Main rule, option B (AQL filter test)
- when the event matches this AQL filter query:
devicetype=12 AND ("Process Path"='System' OR "Process Name"='System') AND LOWER(Filename) LIKE '%\internet explorer\iertutil.dll'
Rule response
- Severity 9, credibility 6, relevance 7
- Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
- Respond no more than once per 30 minutes per Log Source (tune per environment)
Limitations
- QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.
Splunk
Splunk SPLSearch
Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.
Image="System" TargetFilename="*\\Internet Explorer\\iertutil.dll"Splunk savedsearches.conf stanzaScheduled search template
Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.
[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now
[Potential DCOM InternetExplorer.Application DLL Hijack]
description = Detects potential DLL hijack of "iertutil.dll" found in the DCOM InternetExplorer.Application Class over the network
search = Image="System" TargetFilename="*\\Internet Explorer\\iertutil.dll"Microsoft Sentinel
Microsoft Sentinel KQL (ASIM)Hunting query
Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.
imFileEvent
| where TargetFilePath =~ "System" and TargetFileName endswith "\\Internet Explorer\\iertutil.dll"Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceFileEvents
| where InitiatingProcessFolderPath =~ "System" and FolderPath endswith "\\Internet Explorer\\iertutil.dll"Elastic
Elastic Lucene (ECS)Hunting query
Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.
process.executable:System AND file.path:*\\Internet\ Explorer\\iertutil.dllElastic EQL (ECS)Hunting query
EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.
any where process.executable:"System" and file.path:"*\\Internet Explorer\\iertutil.dll"Elastic ES|QL (ECS)Hunting query
ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.
from * metadata _id, _index, _version | where process.executable=="System" and ends_with(file.path, "\\Internet Explorer\\iertutil.dll")Required telemetry
- Log source
product: windows · category: file_event- Fields used
ImageTargetFilename
False positives
- Unknown
Investigation and response
No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.
References
Author and attribution
- Author
- Roberto Rodriguez @Cyb3rWard0g, Open Threat Research (OTR), wagga
- Source
- SigmaHQ ·
rules/windows/file/file_event/file_event_win_dcom_iertutil_dll_hijack.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2