Detection rules › Sigma

Data Export From MSSQL Table Via BCP.EXE

Severity
medium
Author
Omar Khaled (@beacon_exe), MahirAli Khan (in/mahiralikhan), Nasreddine Bencherchali (Nextron Systems)
Source
upstream

Detects the execution of the BCP utility in order to export data from the database. Attackers were seen saving their malware to a database column or table and then later extracting it via "bcp.exe" into a file.

MITRE ATT&CK coverage

TacticTechniques
ExfiltrationT1048 Exfiltration Over Alternative Protocol

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\bcp.exe'
OriginalFileName: BCP.exe

Stage 2: all of selection_cli

or:
CommandLine|contains: ' out '
CommandLine|contains: ' queryout '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • out
  • queryout
Imageends_with
  • \bcp.exe
OriginalFileNameeq
  • BCP.exe