# OffSet7: PSEXEC Remote Execution File Artefact

> 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: Sysmon EID 11 (FileCreate)

## Building blocks

### BB:OffSet7:PSEXEC Remote Execution File Artefact:selection (match)
All test lines must match (AND).
- when **Filename** starts with: `C:\Windows\PSEXEC-`
- when **Filename** ends with: `.key`

## 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: Sysmon EID 11 (FileCreate)`
2. when an event matches the condition built from these building blocks: `BB:OffSet7:PSEXEC Remote Execution File Artefact:selection`

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

1. when the event matches this AQL filter query: `devicetype=12 AND LOWER(Filename) LIKE 'c:\windows\psexec-%' AND LOWER(Filename) LIKE '%.key'`

## 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: PSEXEC Remote Execution File Artefact (304afd73-55a5-4bb9-8c21-0b1fc84ea9e4). Author: Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
