# OffSet7: Suspicious File Execution From Internet Hosted WebDav Share

> 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 File Execution From Internet Hosted W:selection_img (match)
Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
- when **Process Path / Process Name** contains: `\cmd.exe`
- when **Filename** is equal to (case-insensitive): `Cmd.EXE`

### BB:OffSet7:Suspicious File Execution From Internet Hosted W:selection_base (match)
All test lines must match (AND).
- when **Command** contains: ` net use http`, `& start /b`, `\DavWWWRoot\`

### BB:OffSet7:Suspicious File Execution From Internet Hosted W:selection_ext (match)
All test lines must match (AND).
- when **Command** contains: `.exe`, `.dll`, `.bat`, `.vbs`, `.ps1`

## 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: `(ALL of [BB:OffSet7:Suspicious File Execution From Internet Hosted W:selection_img, BB:OffSet7:Suspicious File Execution From Internet Hosted W:selection_base, BB:OffSet7:Suspicious File Execution From Internet Hosted W:selection_ext])`

## Main rule — option B (AQL filter test)

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER("Process Path") LIKE '%\cmd.exe%' OR LOWER("Process Name") LIKE '%\cmd.exe%') OR Filename='Cmd.EXE') AND (LOWER(Command) LIKE '% net use http%' AND LOWER(Command) LIKE '%& start /b %' AND LOWER(Command) LIKE '%\davwwwroot\%') AND (LOWER(Command) LIKE '%.exe %' OR LOWER(Command) LIKE '%.dll %' OR LOWER(Command) LIKE '%.bat %' OR LOWER(Command) LIKE '%.vbs %' OR LOWER(Command) LIKE '%.ps1 %')`

## Rule response

- Severity 7, 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.

Source rule: Suspicious File Execution From Internet Hosted WebDav Share (f0507c0f-a3a2-40f5-acc6-7f543c334993). Author: pH-T (Nextron Systems). Licence: DRL-1.1.
