Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do you detect DNS queries to file…
Threats, Abuse & Incident Response

How do you detect DNS queries to file sharing sites such as MEGA used for exfiltration?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Threats, Abuse & Incident Response

Detect this by monitoring DNS requests for file sharing and cloud storage domains that are unusual in your environment, then correlating them with later outbound connections and large data movement. Look for repeated lookups from servers, endpoints with no business need, or hosts that suddenly start using new upload destinations. Pair DNS telemetry with proxy and endpoint process data.

Why DNS is a useful early signal for exfiltration to file sharing services

DNS is often the first place to see a host preparing to talk to a cloud or file sharing destination, especially when the domain is not part of normal business activity. A single lookup does not prove exfiltration, but repeated queries for MEGA-like services, especially from servers or endpoints that do not normally use them, can indicate staging for outbound transfer.

What matters is the pattern, not the brand name. Look for unusual domain resolution by workload, user role, time of day, and source host, then confirm whether those lookups are followed by outbound sessions, upload activity, or process execution consistent with archive-and-transfer behavior.

For an exfiltration-focused hunting view, NHIMG’s Data Exfiltration Guide covers DNS telemetry, cloud storage abuse, and the broader transfer patterns that make this type of activity detectable.

Detection improves when DNS is treated as one layer in a sequence, not a standalone alert source. If the same host also shows new web sessions, unusual proxy egress, or endpoint processes associated with archiving, sync clients, or scripted upload activity, the signal becomes much stronger.

What to look for in DNS telemetry and surrounding context

Start with outliers. A host that suddenly resolves file sharing or cloud storage domains for the first time, or resolves them far more frequently than similar systems, is more interesting than a one-off query. Repeated lookups can reflect retries, script-driven uploads, or a client repeatedly checking a destination before transfer.

Build context around the DNS event by asking three questions: does this asset normally need file sharing access, is the destination category approved, and does the timing align with a larger data movement event? If the answer to any of those is no, the lookup deserves follow-up.

The strongest cases usually combine DNS with proxy logs and endpoint activity. A DNS lookup followed by outbound connections to the same service, especially from a process that is not a browser, is more actionable than DNS alone. If you can also see large file creation, archiving, or upload tooling on the endpoint, the case becomes easier to validate.

NHIMG’s Secure File Sharing Guide is useful here because the same services that support legitimate collaboration can also be abused for external sharing and data movement.

For endpoint corroboration, NHIMG’s Sysmon Guide is a practical reference for pairing DNS query visibility with process, network, and tamper-detection telemetry.

How to reduce false positives without missing real exfiltration

File sharing and cloud storage domains are common in many environments, so simple domain matching creates noise. Reduce false positives by baselining by business unit, device class, and user population. A developer workstation, a file services server, and a locked-down finance endpoint should not all be judged against the same expected behavior.

Also separate normal collaboration from suspicious transfer. A user opening a shared document in a browser is very different from a server repeatedly resolving a consumer file sharing domain and then initiating outbound traffic to it. The more the activity resembles automated transfer, the more you should treat it as a potential exfiltration path.

Pay special attention to hosts with no business need for external file sharing, because those are the easiest places for an attacker to blend in. If the destination category is new, the source is unusual, and the volume is large, do not wait for perfect proof before escalating.

File sharing platforms can be legitimate business tools, but their collaboration features can also be abused for sharing links, external access, and disguised transfer. NHIMG’s Collaboration Tool Security Guide helps frame why these services deserve tighter monitoring than ordinary web destinations.

Risk and Threat Considerations

DNS-based exfiltration to file sharing sites is risky because it often looks like ordinary cloud use until the transfer is already underway. Attackers favor these destinations because they are trusted, widely reachable, and often permitted through egress controls that would block more obvious exfiltration channels.

Failure mechanism: The defender sees a benign-looking domain lookup but misses the follow-on sequence, repeated resolution, outbound upload, and process behavior that together indicate data staging and transfer. Environments with weak baselines or broad cloud allowlists are especially vulnerable to this failure mode.

Impact: Sensitive data can leave the environment through a destination that blends into normal traffic, reducing the chance of alerting and increasing dwell time. If the same path is used repeatedly, the attacker may establish a reliable exfiltration channel that persists even after initial discovery.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1048 — Exfiltration Over Alternative ProtocolDNS-based cloud upload is an exfiltration path that fits ATT&CK exfiltration behavior.
T1567 — Exfiltration to Cloud StorageFile sharing and cloud storage destinations are common cloud-storage exfiltration targets.
Recommendation — Map the observed DNS and transfer sequence to T1048 and hunt for alternate exfiltration channels. Hunt for upload activity to cloud storage and validate whether the destination is authorised.
NIST SP 800-53 Rev 5AU-6 — Audit Review, Analysis, and ReportingDNS, proxy, and endpoint logs must be correlated to detect suspicious exfiltration patterns.
SI-4 — System MonitoringContinuous monitoring is needed to detect unusual DNS and outbound activity tied to exfiltration.
Recommendation — Correlate DNS, proxy, and endpoint telemetry under AU-6 to surface anomalous transfer chains. Tune SI-4 monitoring to flag unusual file sharing domains and large outbound transfers.
CIS Controls v8CIS-13 — Network Monitoring and DefenseNetwork telemetry is central to spotting suspicious DNS and follow-on egress to file sharing sites.
CIS-10 — Data RecoveryExfiltration detection often triggers response and recovery actions after data loss exposure.
Recommendation — Monitor DNS and egress traffic for unexpected file sharing destinations under CIS-13. Use CIS-10 to support containment and recovery when exfiltration is confirmed.

Practitioner Guidance

What to verify: Confirm whether the source host should ever talk to file sharing or cloud storage domains, and whether the DNS activity is followed by proxy, endpoint, or firewall evidence of transfer. The most useful check is whether the same process that caused the lookup also initiated the outbound session.

What to prioritise: Focus first on servers, admin workstations, and endpoints with access to sensitive data, because unusual file sharing traffic from those systems is higher risk than the same behavior on a collaboration-heavy user device. If the host has no operational reason to use the service, treat the event as a likely investigation lead rather than a curiosity.

Practitioner takeaway: DNS is the clue, but the verdict comes from correlation, if you can connect the lookup to outbound transfer and endpoint behavior, you can separate suspicious exfiltration from routine cloud use much faster.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org