# OffSet7: Suspicious Group And Account Reconnaissance Activity Using Net.EXE

> 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 Group And Account Reconnaissance Acti: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** ends with: `\net.exe`, `\net1.exe`
- when **Filename** is equal to (case-insensitive): `net.exe`, `net1.exe`

### BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_group_root (match)
All test lines must match (AND).
- when **Command** contains: ` group`, ` localgroup`

### BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_group_flags (match)
All test lines must match (AND).
- when **Command** contains: `domain admins`, ` administrator`, ` administrateur`, `enterprise admins`, `Exchange Trusted Subsystem`, `Remote Desktop Users`, `Utilisateurs du Bureau à distance`, `Usuarios de escritorio remoto`, ` /do`

### BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:filter_group_add (exclusion)
All test lines must match (AND).
- when **Command** contains: ` /add`

### BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_accounts_root (match)
All test lines must match (AND).
- when **Command** contains: ` accounts`

### BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_accounts_flags (match)
All test lines must match (AND).
- when **Command** contains: ` /do`

## 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 Group And Account Reconnaissance Acti:selection_img AND (((ALL of [BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_group_root, BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:selection_group_flags]) AND NOT BB:OffSet7:Suspicious Group And Account Reconnaissance Acti:filter_group_add) OR (ALL of [])`

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

1. when the event matches this AQL filter query: `devicetype=12 AND (((LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe') OR (LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe')) OR (Filename IN('net.exe', 'net1.exe'))) AND ((((LOWER(Command) LIKE '% group %' OR LOWER(Command) LIKE '% localgroup %') AND (LOWER(Command) LIKE '%domain admins%' OR LOWER(Command) LIKE '% administrator%' OR LOWER(Command) LIKE '% administrateur%' OR LOWER(Command) LIKE '%enterprise admins%' OR LOWER(Command) LIKE '%exchange trusted subsystem%' OR LOWER(Command) LIKE '%remote desktop users%' OR LOWER(Command) LIKE '%utilisateurs du bureau à distance%' OR LOWER(Command) LIKE '%usuarios de escritorio remoto%' OR LOWER(Command) LIKE '% /do%')) AND (NOT(LOWER(Command) LIKE '% /add%'))) OR (LOWER(Command) LIKE '% accounts %' AND LOWER(Command) LIKE '% /do%'))`

## Rule response

- Severity 5, 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 Group And Account Reconnaissance Activity Using Net.EXE (d95de845-b83c-4a9a-8a6a-4fc802ebf6c0). Author: Florian Roth (Nextron Systems), omkar72, @svch0st, Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
