# OffSet7: VeeamBackup Database Credentials Dump Via Sqlcmd.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:VeeamBackup Database Credentials Dump Via Sqlcmd:selection_tools (match)
All test lines must match (AND).
- when **Process Path / Process Name** ends with: `\sqlcmd.exe`

### BB:OffSet7:VeeamBackup Database Credentials Dump Via Sqlcmd:selection_query (match)
All test lines must match (AND).
- when **Command** contains: `SELECT`, `TOP`, `[VeeamBackup].[dbo].[Credentials]`

## 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:VeeamBackup Database Credentials Dump Via Sqlcmd:selection_tools, BB:OffSet7:VeeamBackup Database Credentials Dump Via Sqlcmd:selection_query])`

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

1. when the event matches this AQL filter query: `devicetype=12 AND (LOWER("Process Path") LIKE '%\sqlcmd.exe' OR LOWER("Process Name") LIKE '%\sqlcmd.exe') AND (LOWER(Command) LIKE '%select%' AND LOWER(Command) LIKE '%top%' AND LOWER(Command) LIKE '%[veeambackup].[dbo].[credentials]%')`

## 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: VeeamBackup Database Credentials Dump Via Sqlcmd.EXE (b57ba453-b384-4ab9-9f40-1038086b4e53). Author: frack113. Licence: DRL-1.1.
