# OffSet7: Win Susp Computer Name Containing Samtheadmin

> 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:Win Susp Computer Name Containing Samtheadmin:selection1 (match)
All test lines must match (AND).
- when **SAM Account Name** starts with: `SAMTHEADMIN-`
- when **SAM Account Name** ends with: `$`

### BB:OffSet7:Win Susp Computer Name Containing Samtheadmin:selection2 (match)
All test lines must match (AND).
- when **Target Username** starts with: `SAMTHEADMIN-`
- when **Target Username** ends with: `$`

## 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: `(ANY of [BB:OffSet7:Win Susp Computer Name Containing Samtheadmin:selection1, BB:OffSet7:Win Susp Computer Name Containing Samtheadmin:selection2])`

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

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER("SAM Account Name") LIKE 'samtheadmin-%' AND LOWER("SAM Account Name") LIKE '%$') OR (LOWER("Target Username") LIKE 'samtheadmin-%' AND LOWER("Target Username") LIKE '%$'))`

## Rule response

- Severity 9, 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: Win Susp Computer Name Containing Samtheadmin (39698b3f-da92-4bc6-bfb5-645a98386e45). Author: elhoim. Licence: DRL-1.1.
