# OffSet7: Suspicious Double Extension File Execution

> Design for the QRadar Rule Wizard. Not an importable rule and not tested in QRadar.

- Rule type: Event rule (Local), create disabled
- 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).
- when **Process Path / Process Name** ends 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`, `⠀⠀⠀⠀⠀⠀.exe`
- when **Command** 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`

## Main rule — option A (building blocks)

1. 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`
2. 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)

1. 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.

Source rule: Suspicious Double Extension File Execution (1cdd9a09-06c9-4769-99ff-626e2b3991b8). Author: Florian Roth (Nextron Systems), @blu3_team (idea), Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
