Abstract
MORTON is a novel system designed to identify compromised devices in large-scale enterprise networks by detecting periodic "heartbeat" communications in DNS traffic. By shifting the focus from individual connection pairs to aggregate device behavior and utilizing frequency-domain signal processing, MORTON achieves up to 1,000x speed improvements over existing methods. It effectively identifies sophisticated "multistage" malware that rotates through various domains to evade traditional detection.
Introduction
In modern enterprise environments, thousands of devices generate millions of Domain Name System (DNS) queries daily. Infected devices often join botnets, requiring periodic check-ins with Command and Control (C&C) servers—a behavior known as "beaconing."
Current detection methods face significant hurdles in scale and evasion. Analyzing every "connection pair" (device-to-domain) is computationally prohibitive for large networks. Furthermore, sophisticated malware utilizes Multistage Channels (MSC), rotating through different hostnames to break the periodicity observed by traditional connection-centric detectors.
Methodology
MORTON introduces a two-phase approach—Data Processing and Classification—that treats DNS query logs as signals for frequency analysis.
Filtering and Aggregation
The system first filters out reputable traffic (e.g., Alexa Top 1M) and aggregates remaining queries from specific devices into time-series data, such as hourly query counts.
Signal Processing and Classification
Instead of time-domain analysis, MORTON applies a Discrete Fourier Transform (DFT) to calculate the Power Spectral Density (PSD). This converts query history into a frequency spectrum where periodic "heartbeats" appear as distinct spikes, even in the presence of "jitter" (random timing delays). These PSD vectors are then classified by a feedforward neural network.
Experimental Evaluation
The system was evaluated using two primary datasets:
- Synthetic Dataset: DNS logs from 16,000 managed devices across eight corporate networks, augmented with synthetic malicious traffic mimicking frameworks like CobaltStrike and Empire.
- Real-World Dataset: Logs from two global enterprises (20,000 users) collected over one week, validated via VirusTotal.
Key Results
MORTON demonstrated significant performance gains over state-of-the-art methods like Baywatch and WARP:
- MSC Detection: Maintained an AUC of 0.85, whereas competitors struggled with rotating domains (AUC < 0.72).
- Efficiency: Processed 700,000 connection pairs in 70 seconds—100x faster than Baywatch and 10,000x faster than WARP.
- Real-World Impact: Achieved a 62% True Positive Rate (TPR) in unlabeled enterprise data, identifying previously unreported threats like the uBlock malicious add-on.
Discussion and Limitations
MORTON's primary strength lies in its device-centric approach and frequency-domain robustness. By aggregating device output, it captures periodic routines that span multiple domains. However, the system is specifically tuned for periodic behavior; irregular or one-off communication patterns may go undetected. Additionally, the reliance on reputation-based filtering means that C&C traffic utilizing high-reputation domains could potentially be bypassed.
Conclusion
MORTON provides a scalable and robust solution for detecting periodic malicious routines in DNS traffic. Its ability to handle multistage channels and its extreme computational efficiency make it a viable tool for real-time monitoring in large-scale enterprise networks.
Summary updated