# OffSet7: Suspicious Manipulation Of Default Accounts Via 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 Manipulation Of Default Accounts Via :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 Manipulation Of Default Accounts Via :selection_user_option (match)
All test lines must match (AND).
- when **Command** contains: ` user`

### BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_username (match)
All test lines must match (AND).
- when **Command** contains: ` Järjestelmänvalvoja`, ` Rendszergazda`, ` Администратор`, ` Administrateur`, ` Administrador`, ` Administratör`, ` Administrator`, ` guest`, ` DefaultAccount`, ` "Järjestelmänvalvoja"`, ` "Rendszergazda"`, ` "Администратор"`, ` "Administrateur"`, ` "Administrador"`, ` "Administratör"`, ` "Administrator"`, ` "guest"`, ` "DefaultAccount"`, ` 'Järjestelmänvalvoja'`, ` 'Rendszergazda'`, ` 'Администратор'`, ` 'Administrateur'`, ` 'Administrador'`, ` 'Administratör'`, ` 'Administrator'`, ` 'guest'`, ` 'DefaultAccount'`

### BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :filter (exclusion)
All test lines must match (AND).
- when **Command** contains: `guest`, `/active no`

## 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 Manipulation Of Default Accounts Via :selection_img, BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_user_option, BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :selection_username]) AND NOT BB:OffSet7:Suspicious Manipulation Of Default Accounts Via :filter`

## 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 '% user %' AND (LOWER(Command) LIKE '% järjestelmänvalvoja %' OR LOWER(Command) LIKE '% rendszergazda %' OR LOWER(Command) LIKE '% администратор %' OR LOWER(Command) LIKE '% administrateur %' OR LOWER(Command) LIKE '% administrador %' OR LOWER(Command) LIKE '% administratör %' OR LOWER(Command) LIKE '% administrator %' OR LOWER(Command) LIKE '% guest %' OR LOWER(Command) LIKE '% defaultaccount %' OR LOWER(Command) LIKE '% "järjestelmänvalvoja" %' OR LOWER(Command) LIKE '% "rendszergazda" %' OR LOWER(Command) LIKE '% "администратор" %' OR LOWER(Command) LIKE '% "administrateur" %' OR LOWER(Command) LIKE '% "administrador" %' OR LOWER(Command) LIKE '% "administratör" %' OR LOWER(Command) LIKE '% "administrator" %' OR LOWER(Command) LIKE '% "guest" %' OR LOWER(Command) LIKE '% "defaultaccount" %' OR LOWER(Command) LIKE '% ''järjestelmänvalvoja'' %' OR LOWER(Command) LIKE '% ''rendszergazda'' %' OR LOWER(Command) LIKE '% ''администратор'' %' OR LOWER(Command) LIKE '% ''administrateur'' %' OR LOWER(Command) LIKE '% ''administrador'' %' OR LOWER(Command) LIKE '% ''administratör'' %' OR LOWER(Command) LIKE '% ''administrator'' %' OR LOWER(Command) LIKE '% ''guest'' %' OR LOWER(Command) LIKE '% ''defaultaccount'' %')) AND (NOT((LOWER(Command) LIKE '%guest%' AND LOWER(Command) LIKE '%/active no%')))`

## 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 Manipulation Of Default Accounts Via Net.EXE (5b768e71-86f2-4879-b448-81061cbae951). Author: Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
