Detection rule
Suspicious Double Extension File Execution
Overview
Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spear phishing campaigns
- Rule id
1cdd9a09-06c9-4769-99ff-626e2b3991b8- ATT&CK techniques
- T1566.001 Phishing: Spearphishing Attachment
- Severity
- High
- Confidence
- Medium
- Origin
- SigmaHQ (community)
- SigmaHQ status
stable- Used in defense packs
- The Gentlemen, qilin, INC Ransom, Akira, safepay, rhysida, 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) · 1cdd9a09-06c9-4769-99ff-626e2b3991b8
title: Suspicious Double Extension File Execution
id: 1cdd9a09-06c9-4769-99ff-626e2b3991b8
related:
- id: 5e6a80c8-2d45-4633-9ef4-fa2671a39c5c # ParentImage/ParentCommandLine
type: similar
status: stable
description: Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spear phishing campaigns
references:
- https://blu3-team.blogspot.com/2019/06/misleading-extensions-xlsexe-docexe.html
- https://twitter.com/blackorbird/status/1140519090961825792
- https://cloud.google.com/blog/topics/threat-intelligence/cybercriminals-weaponize-fake-ai-websites
author: Florian Roth (Nextron Systems), @blu3_team (idea), Nasreddine Bencherchali (Nextron Systems)
date: 2019-06-26
modified: 2025-05-30
tags:
- attack.initial-access
- attack.t1566.001
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- ' .exe'
- '______.exe'
- '.doc.exe'
- '.doc.js'
- '.docx.exe'
- '.docx.js'
- '.gif.exe'
- '.jpeg.exe'
- '.jpg.exe'
- '.mkv.exe'
- '.mov.exe'
- '.mp3.exe'
- '.mp4.exe'
- '.pdf.exe'
- '.pdf.js'
- '.png.exe'
- '.ppt.exe'
- '.ppt.js'
- '.pptx.exe'
- '.pptx.js'
- '.rtf.exe'
- '.rtf.js'
- '.svg.exe'
- '.txt.exe'
- '.txt.js'
- '.xls.exe'
- '.xls.js'
- '.xlsx.exe'
- '.xlsx.js'
- '⠀⠀⠀⠀⠀⠀.exe' # Unicode Space Character: Braille Pattern Blank (Unicode: U+2800)
CommandLine|contains:
- ' .exe'
- '______.exe'
- '.doc.exe'
- '.doc.js'
- '.docx.exe'
- '.docx.js'
- '.gif.exe'
- '.jpeg.exe'
- '.jpg.exe'
- '.mkv.exe'
- '.mov.exe'
- '.mp3.exe'
- '.mp4.exe'
- '.pdf.exe'
- '.pdf.js'
- '.png.exe'
- '.ppt.exe'
- '.ppt.js'
- '.pptx.exe'
- '.pptx.js'
- '.rtf.exe'
- '.rtf.js'
- '.svg.exe'
- '.txt.exe'
- '.txt.js'
- '.xls.exe'
- '.xls.js'
- '.xlsx.exe'
- '.xlsx.js'
- '⠀⠀⠀⠀⠀⠀.exe' # Unicode Space Character: Braille Pattern Blank (Unicode: U+2800)
condition: selection
falsepositives:
- Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_double_extension/info.ymlQRadar 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 ((LOWER("Process Path") LIKE '% .exe' OR LOWER("Process Path") LIKE '%______.exe' OR LOWER("Process Path") LIKE '%.doc.exe' OR LOWER("Process Path") LIKE '%.doc.js' OR LOWER("Process Path") LIKE '%.docx.exe' OR LOWER("Process Path") LIKE '%.docx.js' OR LOWER("Process Path") LIKE '%.gif.exe' OR LOWER("Process Path") LIKE '%.jpeg.exe' OR LOWER("Process Path") LIKE '%.jpg.exe' OR LOWER("Process Path") LIKE '%.mkv.exe' OR LOWER("Process Path") LIKE '%.mov.exe' OR LOWER("Process Path") LIKE '%.mp3.exe' OR LOWER("Process Path") LIKE '%.mp4.exe' OR LOWER("Process Path") LIKE '%.pdf.exe' OR LOWER("Process Path") LIKE '%.pdf.js' OR LOWER("Process Path") LIKE '%.png.exe' OR LOWER("Process Path") LIKE '%.ppt.exe' OR LOWER("Process Path") LIKE '%.ppt.js' OR LOWER("Process Path") LIKE '%.pptx.exe' OR LOWER("Process Path") LIKE '%.pptx.js' OR LOWER("Process Path") LIKE '%.rtf.exe' OR LOWER("Process Path") LIKE '%.rtf.js' OR LOWER("Process Path") LIKE '%.svg.exe' OR LOWER("Process Path") LIKE '%.txt.exe' OR LOWER("Process Path") LIKE '%.txt.js' OR LOWER("Process Path") LIKE '%.xls.exe' OR LOWER("Process Path") LIKE '%.xls.js' OR LOWER("Process Path") LIKE '%.xlsx.exe' OR LOWER("Process Path") LIKE '%.xlsx.js' OR LOWER("Process Path") LIKE '%⠀⠀⠀⠀⠀⠀.exe') OR (LOWER("Process Name") LIKE '% .exe' OR LOWER("Process Name") LIKE '%______.exe' OR LOWER("Process Name") LIKE '%.doc.exe' OR LOWER("Process Name") LIKE '%.doc.js' OR LOWER("Process Name") LIKE '%.docx.exe' OR LOWER("Process Name") LIKE '%.docx.js' OR LOWER("Process Name") LIKE '%.gif.exe' OR LOWER("Process Name") LIKE '%.jpeg.exe' OR LOWER("Process Name") LIKE '%.jpg.exe' OR LOWER("Process Name") LIKE '%.mkv.exe' OR LOWER("Process Name") LIKE '%.mov.exe' OR LOWER("Process Name") LIKE '%.mp3.exe' OR LOWER("Process Name") LIKE '%.mp4.exe' OR LOWER("Process Name") LIKE '%.pdf.exe' OR LOWER("Process Name") LIKE '%.pdf.js' OR LOWER("Process Name") LIKE '%.png.exe' OR LOWER("Process Name") LIKE '%.ppt.exe' OR LOWER("Process Name") LIKE '%.ppt.js' OR LOWER("Process Name") LIKE '%.pptx.exe' OR LOWER("Process Name") LIKE '%.pptx.js' OR LOWER("Process Name") LIKE '%.rtf.exe' OR LOWER("Process Name") LIKE '%.rtf.js' OR LOWER("Process Name") LIKE '%.svg.exe' OR LOWER("Process Name") LIKE '%.txt.exe' OR LOWER("Process Name") LIKE '%.txt.js' OR LOWER("Process Name") LIKE '%.xls.exe' OR LOWER("Process Name") LIKE '%.xls.js' OR LOWER("Process Name") LIKE '%.xlsx.exe' OR LOWER("Process Name") LIKE '%.xlsx.js' OR LOWER("Process Name") LIKE '%⠀⠀⠀⠀⠀⠀.exe')) AND (LOWER(Command) LIKE '% .exe%' OR LOWER(Command) LIKE '%______.exe%' OR LOWER(Command) LIKE '%.doc.exe%' OR LOWER(Command) LIKE '%.doc.js%' OR LOWER(Command) LIKE '%.docx.exe%' OR LOWER(Command) LIKE '%.docx.js%' OR LOWER(Command) LIKE '%.gif.exe%' OR LOWER(Command) LIKE '%.jpeg.exe%' OR LOWER(Command) LIKE '%.jpg.exe%' OR LOWER(Command) LIKE '%.mkv.exe%' OR LOWER(Command) LIKE '%.mov.exe%' OR LOWER(Command) LIKE '%.mp3.exe%' OR LOWER(Command) LIKE '%.mp4.exe%' OR LOWER(Command) LIKE '%.pdf.exe%' OR LOWER(Command) LIKE '%.pdf.js%' OR LOWER(Command) LIKE '%.png.exe%' OR LOWER(Command) LIKE '%.ppt.exe%' OR LOWER(Command) LIKE '%.ppt.js%' OR LOWER(Command) LIKE '%.pptx.exe%' OR LOWER(Command) LIKE '%.pptx.js%' OR LOWER(Command) LIKE '%.rtf.exe%' OR LOWER(Command) LIKE '%.rtf.js%' OR LOWER(Command) LIKE '%.svg.exe%' OR LOWER(Command) LIKE '%.txt.exe%' OR LOWER(Command) LIKE '%.txt.js%' OR LOWER(Command) LIKE '%.xls.exe%' OR LOWER(Command) LIKE '%.xls.js%' OR LOWER(Command) LIKE '%.xlsx.exe%' OR LOWER(Command) LIKE '%.xlsx.js%' OR LOWER(Command) LIKE '%⠀⠀⠀⠀⠀⠀.exe%')QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Suspicious Double Extension File Execution- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
Building blocks
BB:OffSet7:Suspicious Double Extension File Execution:selection(match)All test lines must match (AND).Process Path / Process Nameends with:.exe,______.exe,.doc.exe,.doc.js,.docx.exe,.docx.js,.gif.exe,.jpeg.exe,.jpg.exe,.mkv.exe,.mov.exe,.mp3.exe,.mp4.exe,.pdf.exe,.pdf.js,.png.exe,.ppt.exe,.ppt.js,.pptx.exe,.pptx.js,.rtf.exe,.rtf.js,.svg.exe,.txt.exe,.txt.js,.xls.exe,.xls.js,.xlsx.exe,.xlsx.js,⠀⠀⠀⠀⠀⠀.exeCommandcontains:.exe,______.exe,.doc.exe,.doc.js,.docx.exe,.docx.js,.gif.exe,.jpeg.exe,.jpg.exe,.mkv.exe,.mov.exe,.mp3.exe,.mp4.exe,.pdf.exe,.pdf.js,.png.exe,.ppt.exe,.ppt.js,.pptx.exe,.pptx.js,.rtf.exe,.rtf.js,.svg.exe,.txt.exe,.txt.js,.xls.exe,.xls.js,.xlsx.exe,.xlsx.js,⠀⠀⠀⠀⠀⠀.exe
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: Security 4688 (with command-line auditing) or Sysmon EID 1 - when an event matches the condition built from these building blocks:
BB:OffSet7:Suspicious Double Extension File Execution:selection
Main rule, option B (AQL filter test)
- when the event matches this AQL filter query:
devicetype=12 AND ((LOWER("Process Path") LIKE '% .exe' OR LOWER("Process Path") LIKE '%______.exe' OR LOWER("Process Path") LIKE '%.doc.exe' OR LOWER("Process Path") LIKE '%.doc.js' OR LOWER("Process Path") LIKE '%.docx.exe' OR LOWER("Process Path") LIKE '%.docx.js' OR LOWER("Process Path") LIKE '%.gif.exe' OR LOWER("Process Path") LIKE '%.jpeg.exe' OR LOWER("Process Path") LIKE '%.jpg.exe' OR LOWER("Process Path") LIKE '%.mkv.exe' OR LOWER("Process Path") LIKE '%.mov.exe' OR LOWER("Process Path") LIKE '%.mp3.exe' OR LOWER("Process Path") LIKE '%.mp4.exe' OR LOWER("Process Path") LIKE '%.pdf.exe' OR LOWER("Process Path") LIKE '%.pdf.js' OR LOWER("Process Path") LIKE '%.png.exe' OR LOWER("Process Path") LIKE '%.ppt.exe' OR LOWER("Process Path") LIKE '%.ppt.js' OR LOWER("Process Path") LIKE '%.pptx.exe' OR LOWER("Process Path") LIKE '%.pptx.js' OR LOWER("Process Path") LIKE '%.rtf.exe' OR LOWER("Process Path") LIKE '%.rtf.js' OR LOWER("Process Path") LIKE '%.svg.exe' OR LOWER("Process Path") LIKE '%.txt.exe' OR LOWER("Process Path") LIKE '%.txt.js' OR LOWER("Process Path") LIKE '%.xls.exe' OR LOWER("Process Path") LIKE '%.xls.js' OR LOWER("Process Path") LIKE '%.xlsx.exe' OR LOWER("Process Path") LIKE '%.xlsx.js' OR LOWER("Process Path") LIKE '%⠀⠀⠀⠀⠀⠀.exe') OR (LOWER("Process Name") LIKE '% .exe' OR LOWER("Process Name") LIKE '%______.exe' OR LOWER("Process Name") LIKE '%.doc.exe' OR LOWER("Process Name") LIKE '%.doc.js' OR LOWER("Process Name") LIKE '%.docx.exe' OR LOWER("Process Name") LIKE '%.docx.js' OR LOWER("Process Name") LIKE '%.gif.exe' OR LOWER("Process Name") LIKE '%.jpeg.exe' OR LOWER("Process Name") LIKE '%.jpg.exe' OR LOWER("Process Name") LIKE '%.mkv.exe' OR LOWER("Process Name") LIKE '%.mov.exe' OR LOWER("Process Name") LIKE '%.mp3.exe' OR LOWER("Process Name") LIKE '%.mp4.exe' OR LOWER("Process Name") LIKE '%.pdf.exe' OR LOWER("Process Name") LIKE '%.pdf.js' OR LOWER("Process Name") LIKE '%.png.exe' OR LOWER("Process Name") LIKE '%.ppt.exe' OR LOWER("Process Name") LIKE '%.ppt.js' OR LOWER("Process Name") LIKE '%.pptx.exe' OR LOWER("Process Name") LIKE '%.pptx.js' OR LOWER("Process Name") LIKE '%.rtf.exe' OR LOWER("Process Name") LIKE '%.rtf.js' OR LOWER("Process Name") LIKE '%.svg.exe' OR LOWER("Process Name") LIKE '%.txt.exe' OR LOWER("Process Name") LIKE '%.txt.js' OR LOWER("Process Name") LIKE '%.xls.exe' OR LOWER("Process Name") LIKE '%.xls.js' OR LOWER("Process Name") LIKE '%.xlsx.exe' OR LOWER("Process Name") LIKE '%.xlsx.js' OR LOWER("Process Name") LIKE '%⠀⠀⠀⠀⠀⠀.exe')) AND (LOWER(Command) LIKE '% .exe%' OR LOWER(Command) LIKE '%______.exe%' OR LOWER(Command) LIKE '%.doc.exe%' OR LOWER(Command) LIKE '%.doc.js%' OR LOWER(Command) LIKE '%.docx.exe%' OR LOWER(Command) LIKE '%.docx.js%' OR LOWER(Command) LIKE '%.gif.exe%' OR LOWER(Command) LIKE '%.jpeg.exe%' OR LOWER(Command) LIKE '%.jpg.exe%' OR LOWER(Command) LIKE '%.mkv.exe%' OR LOWER(Command) LIKE '%.mov.exe%' OR LOWER(Command) LIKE '%.mp3.exe%' OR LOWER(Command) LIKE '%.mp4.exe%' OR LOWER(Command) LIKE '%.pdf.exe%' OR LOWER(Command) LIKE '%.pdf.js%' OR LOWER(Command) LIKE '%.png.exe%' OR LOWER(Command) LIKE '%.ppt.exe%' OR LOWER(Command) LIKE '%.ppt.js%' OR LOWER(Command) LIKE '%.pptx.exe%' OR LOWER(Command) LIKE '%.pptx.js%' OR LOWER(Command) LIKE '%.rtf.exe%' OR LOWER(Command) LIKE '%.rtf.js%' OR LOWER(Command) LIKE '%.svg.exe%' OR LOWER(Command) LIKE '%.txt.exe%' OR LOWER(Command) LIKE '%.txt.js%' OR LOWER(Command) LIKE '%.xls.exe%' OR LOWER(Command) LIKE '%.xls.js%' OR LOWER(Command) LIKE '%.xlsx.exe%' OR LOWER(Command) LIKE '%.xlsx.js%' OR LOWER(Command) LIKE '%⠀⠀⠀⠀⠀⠀.exe%')
Rule response
- Severity 7, credibility 8, 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 IN ("* .exe", "*______.exe", "*.doc.exe", "*.doc.js", "*.docx.exe", "*.docx.js", "*.gif.exe", "*.jpeg.exe", "*.jpg.exe", "*.mkv.exe", "*.mov.exe", "*.mp3.exe", "*.mp4.exe", "*.pdf.exe", "*.pdf.js", "*.png.exe", "*.ppt.exe", "*.ppt.js", "*.pptx.exe", "*.pptx.js", "*.rtf.exe", "*.rtf.js", "*.svg.exe", "*.txt.exe", "*.txt.js", "*.xls.exe", "*.xls.js", "*.xlsx.exe", "*.xlsx.js", "*⠀⠀⠀⠀⠀⠀.exe")) (CommandLine IN ("* .exe*", "*______.exe*", "*.doc.exe*", "*.doc.js*", "*.docx.exe*", "*.docx.js*", "*.gif.exe*", "*.jpeg.exe*", "*.jpg.exe*", "*.mkv.exe*", "*.mov.exe*", "*.mp3.exe*", "*.mp4.exe*", "*.pdf.exe*", "*.pdf.js*", "*.png.exe*", "*.ppt.exe*", "*.ppt.js*", "*.pptx.exe*", "*.pptx.js*", "*.rtf.exe*", "*.rtf.js*", "*.svg.exe*", "*.txt.exe*", "*.txt.js*", "*.xls.exe*", "*.xls.js*", "*.xlsx.exe*", "*.xlsx.js*", "*⠀⠀⠀⠀⠀⠀.exe*"))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
[Suspicious Double Extension File Execution]
description = Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spear phishing campaigns
search = (Image IN ("* .exe", "*______.exe", "*.doc.exe", "*.doc.js", "*.docx.exe", "*.docx.js", "*.gif.exe", "*.jpeg.exe", "*.jpg.exe", "*.mkv.exe", "*.mov.exe", "*.mp3.exe", "*.mp4.exe", "*.pdf.exe", "*.pdf.js", "*.png.exe", "*.ppt.exe", "*.ppt.js", "*.pptx.exe", "*.pptx.js", "*.rtf.exe", "*.rtf.js", "*.svg.exe", "*.txt.exe", "*.txt.js", "*.xls.exe", "*.xls.js", "*.xlsx.exe", "*.xlsx.js", "*⠀⠀⠀⠀⠀⠀.exe")) (CommandLine IN ("* .exe*", "*______.exe*", "*.doc.exe*", "*.doc.js*", "*.docx.exe*", "*.docx.js*", "*.gif.exe*", "*.jpeg.exe*", "*.jpg.exe*", "*.mkv.exe*", "*.mov.exe*", "*.mp3.exe*", "*.mp4.exe*", "*.pdf.exe*", "*.pdf.js*", "*.png.exe*", "*.ppt.exe*", "*.ppt.js*", "*.pptx.exe*", "*.pptx.js*", "*.rtf.exe*", "*.rtf.js*", "*.svg.exe*", "*.txt.exe*", "*.txt.js*", "*.xls.exe*", "*.xls.js*", "*.xlsx.exe*", "*.xlsx.js*", "*⠀⠀⠀⠀⠀⠀.exe*"))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.
imProcessCreate
| where (TargetProcessName endswith " .exe" or TargetProcessName endswith "______.exe" or TargetProcessName endswith ".doc.exe" or TargetProcessName endswith ".doc.js" or TargetProcessName endswith ".docx.exe" or TargetProcessName endswith ".docx.js" or TargetProcessName endswith ".gif.exe" or TargetProcessName endswith ".jpeg.exe" or TargetProcessName endswith ".jpg.exe" or TargetProcessName endswith ".mkv.exe" or TargetProcessName endswith ".mov.exe" or TargetProcessName endswith ".mp3.exe" or TargetProcessName endswith ".mp4.exe" or TargetProcessName endswith ".pdf.exe" or TargetProcessName endswith ".pdf.js" or TargetProcessName endswith ".png.exe" or TargetProcessName endswith ".ppt.exe" or TargetProcessName endswith ".ppt.js" or TargetProcessName endswith ".pptx.exe" or TargetProcessName endswith ".pptx.js" or TargetProcessName endswith ".rtf.exe" or TargetProcessName endswith ".rtf.js" or TargetProcessName endswith ".svg.exe" or TargetProcessName endswith ".txt.exe" or TargetProcessName endswith ".txt.js" or TargetProcessName endswith ".xls.exe" or TargetProcessName endswith ".xls.js" or TargetProcessName endswith ".xlsx.exe" or TargetProcessName endswith ".xlsx.js" or TargetProcessName endswith "⠀⠀⠀⠀⠀⠀.exe") and (TargetProcessCommandLine contains " .exe" or TargetProcessCommandLine contains "______.exe" or TargetProcessCommandLine contains ".doc.exe" or TargetProcessCommandLine contains ".doc.js" or TargetProcessCommandLine contains ".docx.exe" or TargetProcessCommandLine contains ".docx.js" or TargetProcessCommandLine contains ".gif.exe" or TargetProcessCommandLine contains ".jpeg.exe" or TargetProcessCommandLine contains ".jpg.exe" or TargetProcessCommandLine contains ".mkv.exe" or TargetProcessCommandLine contains ".mov.exe" or TargetProcessCommandLine contains ".mp3.exe" or TargetProcessCommandLine contains ".mp4.exe" or TargetProcessCommandLine contains ".pdf.exe" or TargetProcessCommandLine contains ".pdf.js" or TargetProcessCommandLine contains ".png.exe" or TargetProcessCommandLine contains ".ppt.exe" or TargetProcessCommandLine contains ".ppt.js" or TargetProcessCommandLine contains ".pptx.exe" or TargetProcessCommandLine contains ".pptx.js" or TargetProcessCommandLine contains ".rtf.exe" or TargetProcessCommandLine contains ".rtf.js" or TargetProcessCommandLine contains ".svg.exe" or TargetProcessCommandLine contains ".txt.exe" or TargetProcessCommandLine contains ".txt.js" or TargetProcessCommandLine contains ".xls.exe" or TargetProcessCommandLine contains ".xls.js" or TargetProcessCommandLine contains ".xlsx.exe" or TargetProcessCommandLine contains ".xlsx.js" or TargetProcessCommandLine contains "⠀⠀⠀⠀⠀⠀.exe")Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceProcessEvents
| where (FolderPath endswith " .exe" or FolderPath endswith "______.exe" or FolderPath endswith ".doc.exe" or FolderPath endswith ".doc.js" or FolderPath endswith ".docx.exe" or FolderPath endswith ".docx.js" or FolderPath endswith ".gif.exe" or FolderPath endswith ".jpeg.exe" or FolderPath endswith ".jpg.exe" or FolderPath endswith ".mkv.exe" or FolderPath endswith ".mov.exe" or FolderPath endswith ".mp3.exe" or FolderPath endswith ".mp4.exe" or FolderPath endswith ".pdf.exe" or FolderPath endswith ".pdf.js" or FolderPath endswith ".png.exe" or FolderPath endswith ".ppt.exe" or FolderPath endswith ".ppt.js" or FolderPath endswith ".pptx.exe" or FolderPath endswith ".pptx.js" or FolderPath endswith ".rtf.exe" or FolderPath endswith ".rtf.js" or FolderPath endswith ".svg.exe" or FolderPath endswith ".txt.exe" or FolderPath endswith ".txt.js" or FolderPath endswith ".xls.exe" or FolderPath endswith ".xls.js" or FolderPath endswith ".xlsx.exe" or FolderPath endswith ".xlsx.js" or FolderPath endswith "⠀⠀⠀⠀⠀⠀.exe") and (ProcessCommandLine contains " .exe" or ProcessCommandLine contains "______.exe" or ProcessCommandLine contains ".doc.exe" or ProcessCommandLine contains ".doc.js" or ProcessCommandLine contains ".docx.exe" or ProcessCommandLine contains ".docx.js" or ProcessCommandLine contains ".gif.exe" or ProcessCommandLine contains ".jpeg.exe" or ProcessCommandLine contains ".jpg.exe" or ProcessCommandLine contains ".mkv.exe" or ProcessCommandLine contains ".mov.exe" or ProcessCommandLine contains ".mp3.exe" or ProcessCommandLine contains ".mp4.exe" or ProcessCommandLine contains ".pdf.exe" or ProcessCommandLine contains ".pdf.js" or ProcessCommandLine contains ".png.exe" or ProcessCommandLine contains ".ppt.exe" or ProcessCommandLine contains ".ppt.js" or ProcessCommandLine contains ".pptx.exe" or ProcessCommandLine contains ".pptx.js" or ProcessCommandLine contains ".rtf.exe" or ProcessCommandLine contains ".rtf.js" or ProcessCommandLine contains ".svg.exe" or ProcessCommandLine contains ".txt.exe" or ProcessCommandLine contains ".txt.js" or ProcessCommandLine contains ".xls.exe" or ProcessCommandLine contains ".xls.js" or ProcessCommandLine contains ".xlsx.exe" or ProcessCommandLine contains ".xlsx.js" or ProcessCommandLine contains "⠀⠀⠀⠀⠀⠀.exe")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:(*\ \ \ \ \ \ .exe OR *______.exe OR *.doc.exe OR *.doc.js OR *.docx.exe OR *.docx.js OR *.gif.exe OR *.jpeg.exe OR *.jpg.exe OR *.mkv.exe OR *.mov.exe OR *.mp3.exe OR *.mp4.exe OR *.pdf.exe OR *.pdf.js OR *.png.exe OR *.ppt.exe OR *.ppt.js OR *.pptx.exe OR *.pptx.js OR *.rtf.exe OR *.rtf.js OR *.svg.exe OR *.txt.exe OR *.txt.js OR *.xls.exe OR *.xls.js OR *.xlsx.exe OR *.xlsx.js OR *⠀⠀⠀⠀⠀⠀.exe)) AND (process.command_line:(*\ \ \ \ \ \ .exe* OR *______.exe* OR *.doc.exe* OR *.doc.js* OR *.docx.exe* OR *.docx.js* OR *.gif.exe* OR *.jpeg.exe* OR *.jpg.exe* OR *.mkv.exe* OR *.mov.exe* OR *.mp3.exe* OR *.mp4.exe* OR *.pdf.exe* OR *.pdf.js* OR *.png.exe* OR *.ppt.exe* OR *.ppt.js* OR *.pptx.exe* OR *.pptx.js* OR *.rtf.exe* OR *.rtf.js* OR *.svg.exe* OR *.txt.exe* OR *.txt.js* OR *.xls.exe* OR *.xls.js* OR *.xlsx.exe* OR *.xlsx.js* OR *⠀⠀⠀⠀⠀⠀.exe*))Elastic 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 like~ ("* .exe", "*______.exe", "*.doc.exe", "*.doc.js", "*.docx.exe", "*.docx.js", "*.gif.exe", "*.jpeg.exe", "*.jpg.exe", "*.mkv.exe", "*.mov.exe", "*.mp3.exe", "*.mp4.exe", "*.pdf.exe", "*.pdf.js", "*.png.exe", "*.ppt.exe", "*.ppt.js", "*.pptx.exe", "*.pptx.js", "*.rtf.exe", "*.rtf.js", "*.svg.exe", "*.txt.exe", "*.txt.js", "*.xls.exe", "*.xls.js", "*.xlsx.exe", "*.xlsx.js", "*⠀⠀⠀⠀⠀⠀.exe")) and (process.command_line like~ ("* .exe*", "*______.exe*", "*.doc.exe*", "*.doc.js*", "*.docx.exe*", "*.docx.js*", "*.gif.exe*", "*.jpeg.exe*", "*.jpg.exe*", "*.mkv.exe*", "*.mov.exe*", "*.mp3.exe*", "*.mp4.exe*", "*.pdf.exe*", "*.pdf.js*", "*.png.exe*", "*.ppt.exe*", "*.ppt.js*", "*.pptx.exe*", "*.pptx.js*", "*.rtf.exe*", "*.rtf.js*", "*.svg.exe*", "*.txt.exe*", "*.txt.js*", "*.xls.exe*", "*.xls.js*", "*.xlsx.exe*", "*.xlsx.js*", "*⠀⠀⠀⠀⠀⠀.exe*"))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 (ends_with(process.executable, " .exe") or ends_with(process.executable, "______.exe") or ends_with(process.executable, ".doc.exe") or ends_with(process.executable, ".doc.js") or ends_with(process.executable, ".docx.exe") or ends_with(process.executable, ".docx.js") or ends_with(process.executable, ".gif.exe") or ends_with(process.executable, ".jpeg.exe") or ends_with(process.executable, ".jpg.exe") or ends_with(process.executable, ".mkv.exe") or ends_with(process.executable, ".mov.exe") or ends_with(process.executable, ".mp3.exe") or ends_with(process.executable, ".mp4.exe") or ends_with(process.executable, ".pdf.exe") or ends_with(process.executable, ".pdf.js") or ends_with(process.executable, ".png.exe") or ends_with(process.executable, ".ppt.exe") or ends_with(process.executable, ".ppt.js") or ends_with(process.executable, ".pptx.exe") or ends_with(process.executable, ".pptx.js") or ends_with(process.executable, ".rtf.exe") or ends_with(process.executable, ".rtf.js") or ends_with(process.executable, ".svg.exe") or ends_with(process.executable, ".txt.exe") or ends_with(process.executable, ".txt.js") or ends_with(process.executable, ".xls.exe") or ends_with(process.executable, ".xls.js") or ends_with(process.executable, ".xlsx.exe") or ends_with(process.executable, ".xlsx.js") or ends_with(process.executable, "⠀⠀⠀⠀⠀⠀.exe")) and (process.command_line like "* .exe*" or process.command_line like "*______.exe*" or process.command_line like "*.doc.exe*" or process.command_line like "*.doc.js*" or process.command_line like "*.docx.exe*" or process.command_line like "*.docx.js*" or process.command_line like "*.gif.exe*" or process.command_line like "*.jpeg.exe*" or process.command_line like "*.jpg.exe*" or process.command_line like "*.mkv.exe*" or process.command_line like "*.mov.exe*" or process.command_line like "*.mp3.exe*" or process.command_line like "*.mp4.exe*" or process.command_line like "*.pdf.exe*" or process.command_line like "*.pdf.js*" or process.command_line like "*.png.exe*" or process.command_line like "*.ppt.exe*" or process.command_line like "*.ppt.js*" or process.command_line like "*.pptx.exe*" or process.command_line like "*.pptx.js*" or process.command_line like "*.rtf.exe*" or process.command_line like "*.rtf.js*" or process.command_line like "*.svg.exe*" or process.command_line like "*.txt.exe*" or process.command_line like "*.txt.js*" or process.command_line like "*.xls.exe*" or process.command_line like "*.xls.js*" or process.command_line like "*.xlsx.exe*" or process.command_line like "*.xlsx.js*" or process.command_line like "*⠀⠀⠀⠀⠀⠀.exe*")Required telemetry
- Log source
product: windows · category: process_creation- Fields used
CommandLineImage
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
- Florian Roth (Nextron Systems), @blu3_team (idea), Nasreddine Bencherchali (Nextron Systems)
- Source
- SigmaHQ ·
rules/windows/process_creation/proc_creation_win_susp_double_extension.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2