# OffSet7: Suspicious Reg Add BitLocker

> 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 Reg Add BitLocker:selection (match)
All test lines must match (AND).
- when **Command** contains: `REG`, `ADD`, `\SOFTWARE\Policies\Microsoft\FVE`, `/v`, `/f`
- when **Command** contains: `EnableBDEWithNoTPM`, `UseAdvancedStartup`, `UseTPM`, `UseTPMKey`, `UseTPMKeyPIN`, `RecoveryKeyMessageSource`, `UseTPMPIN`, `RecoveryKeyMessage`

## 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 Reg Add BitLocker:selection`

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

1. when the event matches this AQL filter query: `devicetype=12 AND (LOWER(Command) LIKE '%reg%' AND LOWER(Command) LIKE '%add%' AND LOWER(Command) LIKE '%\software\policies\microsoft\fve%' AND LOWER(Command) LIKE '%/v%' AND LOWER(Command) LIKE '%/f%') AND (LOWER(Command) LIKE '%enablebdewithnotpm%' OR LOWER(Command) LIKE '%useadvancedstartup%' OR LOWER(Command) LIKE '%usetpm%' OR LOWER(Command) LIKE '%usetpmkey%' OR LOWER(Command) LIKE '%usetpmkeypin%' OR LOWER(Command) LIKE '%recoverykeymessagesource%' OR LOWER(Command) LIKE '%usetpmpin%' OR LOWER(Command) LIKE '%recoverykeymessage%')`

## 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 Reg Add BitLocker (0e0255bf-2548-47b8-9582-c0955c9283f5). Author: frack113. Licence: DRL-1.1.
