# OffSet7: Impacket PsExec 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 channel)

## Building blocks

### BB:OffSet7:Impacket PsExec Execution:selection1 (match)
All test lines must match (AND).
- when **Event ID** is equal to (case-insensitive): `5145`
- when **Share Name** is equal to (case-insensitive): `\\\\\*\\IPC$`
- when **custom property for RelativeTargetName** contains: `RemCom_stdin`, `RemCom_stdout`, `RemCom_stderr` — No QRadar property mapped for "RelativeTargetName": create a custom event property (regex or JSON) on the DSM first.

## 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 channel)`
2. when an event matches the condition built from these building blocks: `BB:OffSet7:Impacket PsExec Execution:selection1`

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

Not available: the AQL conversion failed for this rule.

## 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

- AQL conversion failed (field 'RelativeTargetName' is not supported); only the building-block design is available.
- 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: Impacket PsExec Execution (32d56ea1-417f-44ff-822b-882873f5f43b). Author: Bhabesh Raj. Licence: DRL-1.1.
