# OffSet7: PUA - AdFind Suspicious 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 AdFind Suspicious Execution:selection (match)
All test lines must match (AND).
- when **Command** contains: `domainlist`, `trustdmp`, `dcmodes`, `adinfo`, `-sc dclist`, `computer_pwdnotreqd`, `objectcategory=`, `-subnets -f`, `name="Domain Admins"`, `-sc u:`, `domainncs`, `dompol`, ` oudmp`, `subnetdmp`, `gpodmp`, `fspdmp`, `users_noexpire`, `computers_active`, `computers_pwdnotreqd`

## 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 AdFind Suspicious Execution:selection`

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

1. when the event matches this AQL filter query: `devicetype=12 AND (LOWER(Command) LIKE '%domainlist%' OR LOWER(Command) LIKE '%trustdmp%' OR LOWER(Command) LIKE '%dcmodes%' OR LOWER(Command) LIKE '%adinfo%' OR LOWER(Command) LIKE '%-sc dclist%' OR LOWER(Command) LIKE '%computer_pwdnotreqd%' OR LOWER(Command) LIKE '%objectcategory=%' OR LOWER(Command) LIKE '%-subnets -f%' OR LOWER(Command) LIKE '%name="domain admins"%' OR LOWER(Command) LIKE '%-sc u:%' OR LOWER(Command) LIKE '%domainncs%' OR LOWER(Command) LIKE '%dompol%' OR LOWER(Command) LIKE '% oudmp %' OR LOWER(Command) LIKE '%subnetdmp%' OR LOWER(Command) LIKE '%gpodmp%' OR LOWER(Command) LIKE '%fspdmp%' OR LOWER(Command) LIKE '%users_noexpire%' OR LOWER(Command) LIKE '%computers_active%' OR LOWER(Command) LIKE '%computers_pwdnotreqd%')`

## 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 - AdFind Suspicious Execution (9a132afa-654e-11eb-ae93-0242ac130002). Author: Janantha Marasinghe (https://github.com/blueteam0ps), FPT.EagleEye Team, omkar72, oscd.community. Licence: DRL-1.1.
