Skip to content
Threat Feed
low advisory

Unusual Process Writing Data to an External Device Detected by Machine Learning

Elastic's Data Exfiltration Detection integration leverages machine learning to identify rare processes writing data to external devices, indicating potential data exfiltration by adversaries using benign-looking processes.

What's new

  • l1 merged source coverage: Unusual Windows Network Activity Detected by Elastic ML Rule Jul 28, 18:42 via elastic
  • l1 merged source coverage: Spike in Network Traffic To a Country Detection Jul 28, 18:41 via elastic
  • l1 merged source coverage: Network Traffic to Rare Destination Country Jul 28, 18:40 via elastic
  • l1 merged source coverage: Unusual Linux Network Port Activity Jul 28, 18:38 via elastic
  • l1 merged source coverage: Spike in Firewall Denies Machine Learning Rule Detection Jul 28, 18:36 via elastic

Elastic has released a machine learning-based detection rule designed to identify potential data exfiltration attempts. This rule, part of the Data Exfiltration Detection integration, focuses on detecting unusual or rare processes that write data to external devices. Adversaries frequently use seemingly legitimate processes to mask their data exfiltration activities, making such abnormal behavior a strong indicator of compromise. The detection relies on Elastic's Anomaly Detection feature, analyzing network and file events collected via integrations like Elastic Defend and Network Packet Capture. This capability, available for Elastic Stack version 9.4.0 and higher, helps defenders identify deviations from typical process behavior, flagging potential threats where sensitive data might be transferred out of the network via an unapproved or suspicious channel.

Attack Chain

  1. An attacker establishes initial access to a target system using various methods (e.g., phishing, exploiting a vulnerability).
  2. The attacker deploys or repurposes a benign-looking process on the compromised system.
  3. Sensitive data is identified and staged for exfiltration on the local system.
  4. The attacker leverages the seemingly legitimate process to write the staged sensitive data to an external device (e.g., USB drive, network share mapped as an external drive).
  5. The external device is removed, or the connection is terminated, completing the exfiltration of sensitive information.
  6. The unusual behavior of this rare process writing to an external device triggers an anomaly detection by Elastic's ML rule.

Impact

Successful data exfiltration can lead to severe consequences, including intellectual property theft, compromise of sensitive customer or employee data, regulatory fines due to data breaches, reputational damage, and financial losses. The targeted sectors are broad, as any organization handling valuable data is at risk. While the detection rule identifies a specific activity rather than a campaign, the impact of such exfiltration could range from minor data loss to a catastrophic breach depending on the volume and sensitivity of the data involved.

Recommendation

  • Deploy the Data Exfiltration Detection integration and configure the machine learning job ded_rare_process_writing_to_external_device_ea to leverage Elastic's anomaly detection capabilities.
  • Ensure Elastic Defend is fully installed and collecting file events on all endpoints, as indicated in the setup instructions.
  • When an alert is triggered, investigate the process name, path, and associated user account to determine if the activity is legitimate, as suggested in the investigation guide.
  • Review the external device's details and the volume and type of data being written to identify any sensitive or unusual transfers.
  • Use the provided "Investigation Guide" within the rule's note to systematically triage and analyze alerts generated by this rule.
  • Create allowlists for legitimate backup processes, data transfer applications, software updates, and IT maintenance activities to reduce false positives, as mentioned in the "False positive analysis" section.