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
Suspicious Data Exfiltration via Blat SMTP Client (via process_creation)
Suspicious blat Utility Used for SMTP Data Exfiltration
Suspicious Data Exfiltration via WinSCP Command Line in BlackSuit Ransomware
Suspicious Scheduled Task Creation for rclone Exfiltration by The Gentlemen RaaS (via process_creation)
Suspicious DNS Query for Tor Onion Domain
Possible DNS Tunneling via Excessively Long Query Name
Malicious Bulk Data Exfiltration via Rclone (via process_creation)
BITS Payload Downloaded via Commandline (via process_creation)
BITS Payload Downloaded via PowerShell (via powershell)
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.