Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-Infra-CDNMalwareStaging.

Upgrade to Pro
THREAT-Infra-CDNMalwareStaging Sumo Logic CSE · Sumo

Detect Malware Payloads Staged on Abused Legitimate CDN/File-Sharing Services in Sumo Logic CSE

Loader-as-a-service operators and commodity infostealer distributors increasingly stage second- and third-stage payloads on trusted, high-reputation CDN and file-sharing infrastructure — most commonly Discord's attachment CDN (cdn.discordapp.com / media.discordapp.net), MEGA.nz, and Telegram's file API — rather than adversary-registered domains. Because these hostnames are broadly allowlisted by web filters, blend into ordinary user traffic, and offer free, effectively anonymous hosting with no registration paperwork, actors such as Storm-1113 (DarkGate loader distribution), Lumma Stealer, and Vidar operators use them as durable staging points for stage-2 payloads delivered via malvertising, cracked-software lures, and SEO-poisoned search results. Because the domain itself is never flagged as malicious, defenders must pivot detection away from domain reputation and onto the combination of requesting process, retrieved content-type, and download cadence. Detection focuses on three pillars: (1) non-browser processes (script hosts, LOLBins, unsigned binaries) issuing HTTPS requests to these CDN hostnames, (2) executable/archive content-types being retrieved from paths that are normally used for images/media, and (3) newly-created local files immediately following such a download that are then executed.

MITRE ATT&CK

Tactic
Resource Development

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=*proxy* OR _sourceCategory=*sysmon*
| json auto
| where url matches "*cdn.discordapp.com*" or url matches "*media.discordapp.net*" or url matches "*mega.nz*" or url matches "*telegram.org*" or url matches "*t.me*"
| eval ProcessName = lower(coalesce(process_name, Image, "unknown"))
| where !matches(ProcessName, "chrome|msedge|firefox|brave|opera|discord\.exe")
| eval IsPayloadExt = if(matches(url, "\.(exe|dll|zip|rar|7z)"), "true", "false")
| eval RiskScore = if(IsPayloadExt = "true", 75, 55)
| where RiskScore >= 55
| stats count as Requests, values(url) as SampleUrls by _sourceHost, ProcessName, RiskScore
| sort by RiskScore desc
high severity medium confidence

Sumo Logic detection combining proxy and Sysmon telemetry to identify non-browser processes retrieving content from Discord CDN, MEGA, or Telegram file-hosting hostnames, with elevated scoring when the URL references a payload-style extension.

Data Sources

Proxy logsSysmon

Required Tables

_sourceCategory=*proxy*_sourceCategory=*sysmon*

False Positives & Tuning

  • Discord desktop application update and attachment retrieval
  • Legitimate MEGA/Telegram automation for file transfer
  • Browser extensions or helper processes that are not the main browser executable

Other platforms for THREAT-Infra-CDNMalwareStaging


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Non-Browser Process Requesting Discord CDN Hostname

    Expected signal: Sysmon Event ID 3 / DeviceNetworkEvents: outbound connection from powershell.exe to cdn.discordapp.com. Sysmon Event ID 11: file creation at atomic_test_dl.tmp immediately following the request.

  2. Test 2Certutil Payload-Style Retrieval Referencing Staging Host and Executable Extension

    Expected signal: Sysmon Event ID 1: certutil.exe with -urlcache -split -f and a discordapp.com URL ending in .exe in CommandLine. Sysmon Event ID 3 for the outbound connection. Request will likely 404 but the command-line pattern and connection attempt are logged regardless.

  3. Test 3MSHTA Reference to MEGA File-Hosting Archive Path

    Expected signal: Sysmon Event ID 1: mshta.exe with CommandLine containing 'mega.nz' and '.zip'. No actual network connection to MEGA occurs since the URL is embedded in an inert JavaScript comment, but the command-line telemetry is captured.

Unlock playbooks & atomic tests with Pro

Get the full detection package for THREAT-Infra-CDNMalwareStaging — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections