TL;DR
MORTON is a novel system that identifies compromised devices in large-scale enterprise networks by detecting periodic "heartbeat" communications in DNS traffic. By shifting the focus from individual connection pairs to the overall behavior of a device and using frequency-domain signal processing, MORTON is up to 1,000x faster than existing methods and can catch sophisticated "multistage" malware that rotates through different domains to evade detection.
What Problem Does This Paper Address?
In a modern enterprise, thousands of devices generate millions of Domain Name System (DNS) queries every day. When a device is infected with malware, it often joins a botnet and must periodically check in with a Command and Control (C&C) server for instructions—a behavior known as "beaconing."
Current detection methods face two major hurdles:
- Scale: Analyzing every single "connection pair" (a specific device talking to a specific domain) is computationally expensive. Large networks have millions of these pairs, leading to delayed detection.
- Evasion (Multistage Channels): Sophisticated malware avoids talking to just one domain. Instead, it uses Multistage Channels (MSC), rotating through a set of different hostnames. Traditional "beaconing" detectors look for periodicity between one device and one host, so they completely miss these rotating patterns.
Methods
MORTON introduces a two-phase approach—Data Processing and Classification—that treats DNS query logs like a signal to be analyzed.
- Filtering & Aggregation: First, it filters out "reputable" traffic (e.g., queries to the Alexa Top 1M or domains queried by many users locally). It then aggregates the remaining queries from a specific device into a time series (e.g., hourly query counts).
- Signal Processing (The "Aha" Moment): Instead of looking at timestamps in the time domain, MORTON applies a Discrete Fourier Transform (DFT) to calculate the Power Spectral Density (PSD). This converts the query history into a frequency spectrum. If a bot is checking in every 4 hours, a clear "spike" appears at that specific frequency, even if the bot adds "jitter" (random delays) to its timing.
- Neural Network Classification: The PSD vector is fed into a vanilla feedforward neural network. The network is trained to distinguish between the "noisy" frequency patterns of benign activity and the distinct "spikes" of malicious routines.
By classifying the device directly rather than individual connection pairs, MORTON drastically reduces the number of items it needs to process.
Datasets
The authors evaluated MORTON using two primary sources:
- Synthetic Dataset: Real DNS logs from 16,000 managed devices across eight corporate networks. Since these were "clean" environments, the researchers injected synthetic malicious traffic mimicking known frameworks like CobaltStrike and Empire to create labeled data for training.
- Real-World Unlabeled Dataset: DNS logs from two global enterprises (20,000 users) collected over one week. This was used to test MORTON’s performance against "wild" threats, with results validated via VirusTotal.
Key Insights and Ideas
- Device-Centric vs. Connection-Centric: This is the paper's most significant shift. By looking at the total output of a device, MORTON can detect a periodic routine even if the bot spreads its queries across ten different domains.
- Frequency Domain Robustness: Detecting periodicity in the time domain is hard because of network delays and intentional "jitter" added by attackers. In the frequency domain (PSD), these issues manifest as low-level noise, while the underlying periodic signal remains detectable.
- Efficiency through Aggregation: Aggregating queries into hourly windows naturally cancels out small timing variances and reduces the input size for the neural network, making the system highly scalable.
Key Results
MORTON demonstrated significant improvements over state-of-the-art methods like Baywatch and WARP:
- Superior Detection of MSC: While competitors struggled with rotating domains (AUC < 0.72), MORTON maintained high accuracy (AUC 0.85).
- Extreme Speed: MORTON processed a test set of 700,000 connection pairs in just 70 seconds. This was 100x faster than Baywatch and roughly 10,000x faster than WARP.
- Real-World Impact: In the unlabeled enterprise evaluation, MORTON achieved a 62% True Positive Rate (TPR)—nearly three times higher than the compared methods—while maintaining a very low false positive rate (2%). It successfully identified previously unreported threats like the uBlock malicious add-on and IsErik adware.
Limitations and Future Work
- Dependence on Periodicity: MORTON is specifically designed to find routine (periodic) behavior. If an attacker uses a completely irregular or "one-off" communication pattern, MORTON will likely miss it.
- Filtering Risks: The system relies on filtering out reputable domains to reduce noise. If a botnet successfully uses a high-reputation domain (like a popular cloud storage API) for C&C, it might be filtered out before reaching the PSD analysis.
- Future Directions: The authors suggest that future work could involve integrating more context (like the type of DNS record requested) or exploring how to detect malicious routines that are only active for very short durations.
Summary updated