# OffSet7: PUA - Chisel Tunneling Tool 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:PUA Chisel Tunneling Tool Execution:selection_img (match)
All test lines must match (AND).
- when **Process Path / Process Name** ends with: `\chisel.exe`

### BB:OffSet7:PUA Chisel Tunneling Tool Execution:selection_param1 (match)
All test lines must match (AND).
- when **Command** contains: `exe client`, `exe server`

### BB:OffSet7:PUA Chisel Tunneling Tool Execution:selection_param2 (match)
All test lines must match (AND).
- when **Command** contains: `-socks5`, `-reverse`, ` r:`, `:127.0.0.1:`, `-tls-skip-verify`, `:socks`

## 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:PUA Chisel Tunneling Tool Execution:selection_img OR (ALL of [BB:OffSet7:PUA Chisel Tunneling Tool Execution:selection_param1, BB:OffSet7:PUA Chisel Tunneling Tool Execution:selection_param2])`

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

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER("Process Path") LIKE '%\chisel.exe' OR LOWER("Process Name") LIKE '%\chisel.exe') OR ((LOWER(Command) LIKE '%exe client %' OR LOWER(Command) LIKE '%exe server %') AND (LOWER(Command) LIKE '%-socks5%' OR LOWER(Command) LIKE '%-reverse%' OR LOWER(Command) LIKE '% r:%' OR LOWER(Command) LIKE '%:127.0.0.1:%' OR LOWER(Command) LIKE '%-tls-skip-verify %' OR LOWER(Command) LIKE '%:socks%')))`

## 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: PUA - Chisel Tunneling Tool Execution (8b0e12da-d3c3-49db-bb4f-256703f380e5). Author: Florian Roth (Nextron Systems). Licence: DRL-1.1.
