Windows Process Creation: BCP.EXE Used to Export SQL Data

Flags Windows executions of bcp.exe where command-line options indicate MSSQL data export via out/queryout.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Omar Khaled (@beacon_exe), MahirAli Khan (in/mahiralikhan), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2024-08-20
Updated
2026-07-31

ATT&CK techniques

Exfiltration
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Impact

What it detects

This rule identifies executions of the bcp.exe utility on Windows where the command line includes export indicators for a table or a query. Attackers may use BCP to extract stored payloads or sensitive data from a Microsoft SQL Server into an external file. It relies on Windows process creation telemetry capturing the process image name and command-line arguments.

Related detections9 linkedT1048 — drag to rearrange
Malicious Bulk Data Exfiltration via Rclone (via process_creation)
BITS Payload Downloaded via Commandline (via process_creation)
BITS Payload Downloaded via PowerShell (via powershell)
Data Exfiltration to WebDAV Share via curl Upload
Suspicious Data Exfiltration via Finger LOLBIN
Malicious Bad Apples Data Exfiltration via snmptrap OID
Suspicious rclone Masquerading as Avast Binary by The Gentlemen RaaS (via process_creation)
Windows DNS Queries to git-tanstack.com and filev2.getsession.org
Windows Process Execution: Restic Backup Tool Command-Line Indicators
Windows Process Creation: BCP.EXE Used to Export SQL Data
Pivot detection · T1048 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.