IncidentResponsev2

4.26 Stop Data Exfiltration

Task

Stop data exfiltration


Conditions


Standards


End State


Notes

The methods described here help prevent host-based data exfiltration. However, network-centric controls should complement host controls:

Considerations:
Blocking exfiltration can impact operations. Work closely with stakeholders and IT to minimize business disruption.


Manual Steps

Prevent Removable Media Exfiltration

Disable USB Storage (Windows)

Prevent USB Storage Device Installation
  1. Open Windows Explorer → %SystemRoot%\Inf
  2. Right-click Usbstor.pnf → Properties → Security
  3. Add users → Deny → Full Control
  4. Add SYSTEM account → Deny → Full Control
  5. Repeat for Usbstor.inf.
Disable USB Storage through Registry
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "Start" -Value 4

Disable USB Storage (macOS)

sudo kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext

Re-enable (if needed):

sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext

Disable CD/DVD Burning

Group Policy Method (Windows)

  1. Open Local Group Policy Editor.
  2. User Configuration → Administrative Templates → Windows Components → File Explorer
  3. Enable → Remove CD Burning features.

Registry Method

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoCDBurning = 1 (DWORD)

Employee Training and Awareness


Detect and Block Network-Based Exfiltration

SIEM or Network Monitoring

Splunk Query Example
index=network sourcetype=proxy OR sourcetype=firewall | stats sum(bytes_out) by dest_ip, user

Firewall / ACLs (Windows/Linux/Cloud)

iptables -A OUTPUT -p tcp --dport 443 -d <exfil_ip> -j DROP

DNS Firewall


Block Cloud Storage and SaaS Channels

Cloud IAM and Storage Controls

AWS Example
aws s3api put-bucket-policy --bucket mybucket --policy file://deny-upload-policy.json

Google Workspace


Email Exfiltration Controls


Validate Exfiltration Stoppage


Running Script Examples

Disable USB Storage (Windows)

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "start" -Value 4

Block Domain/IP on Windows Firewall

New-NetFirewallRule -DisplayName "Block Exfil IP" -Direction Outbound -RemoteAddress <IP> -Action Block

Block IP on Linux (iptables)

iptables -A OUTPUT -p tcp --dport 443 -d <exfil_ip> -j DROP

Dependencies


Other Available Tools

Tool Platform Installation Usage
Microsoft Intune Windows/macOS Cloud USB + removable media policy enforcement
CrowdStrike / SentinelOne Cross-platform Installed Detect and block malicious behavior
Splunk / Elastic / Security Onion Cross-platform Installed Monitor outbound traffic and DNS
AWS GuardDuty / CloudTrail Cloud Configured Detect exfil-related activities
iptables / pfSense Linux / Network Installed Block IPs and protocols

Operator Recommendations and Best Practices

Operator Checklist

Best Practices


References


Revision History

Date Version Description Author
2025-05-02 1.1 Merged original host-focused content and expanded with network, cloud, and SaaS controls for comprehensive operator guidance Leo