# OffSet7: LSASS Dump Keyword In CommandLine

> 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:LSASS Dump Keyword In CommandLine:selection (match)
Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
- when **Command** contains: `lsass.dmp`, `lsass.zip`, `lsass.rar`, `Andrew.dmp`, `Coredump.dmp`, `NotLSASS.zip`, `lsass_2`, `lsassdump`, `lsassdmp`
- when **Command** contains: `lsass`, `.dmp`
- when **Command** contains: `SQLDmpr`, `.mdmp`
- when **Command** contains: `nanodump`, `.dmp`

## 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:LSASS Dump Keyword In CommandLine:selection`

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

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER(Command) LIKE '%lsass.dmp%' OR LOWER(Command) LIKE '%lsass.zip%' OR LOWER(Command) LIKE '%lsass.rar%' OR LOWER(Command) LIKE '%andrew.dmp%' OR LOWER(Command) LIKE '%coredump.dmp%' OR LOWER(Command) LIKE '%notlsass.zip%' OR LOWER(Command) LIKE '%lsass_2%' OR LOWER(Command) LIKE '%lsassdump%' OR LOWER(Command) LIKE '%lsassdmp%') OR (LOWER(Command) LIKE '%lsass%' AND LOWER(Command) LIKE '%.dmp%') OR (LOWER(Command) LIKE '%sqldmpr%' AND LOWER(Command) LIKE '%.mdmp%') OR (LOWER(Command) LIKE '%nanodump%' AND LOWER(Command) LIKE '%.dmp%'))`

## 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: LSASS Dump Keyword In CommandLine (ffa6861c-4461-4f59-8a41-578c39f3f23e). Author: E.M. Anhaus, Tony Lambert, oscd.community, Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
