MORTON: Detection of Malicious Routines in Large-Scale DNS Traffic

Hen Tzaban, Asaf Nadler, Yael Daihes, Asaf Shabtai

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.

Comparison of MORTON with related studies. MORTON focuses on device-level detection of periodic communications, distinguishing it from connection-centric or host-centric approaches.

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.

MORTON System Architecture: The pipeline consists of two phases: Training, where a neural network learns to distinguish malicious from benign frequency patterns, and Deployment, where real-time DNS traffic is processed and classified.

Experimental Evaluation

The system was evaluated using two primary datasets:

  1. Synthetic Dataset: DNS logs from 16,000 managed devices across eight corporate networks, augmented with synthetic malicious traffic mimicking frameworks like CobaltStrike and Empire.
  2. 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

BibTeX
@inproceedings{tzaban2021morton,
  author = {Hen Tzaban and Asaf Nadler and Yael Daihes and Asaf Shabtai},
  title = {{MORTON: Detection of Malicious Routines in Large-Scale DNS Traffic}},
  booktitle = {ESORICS},
  year = {2021},
  doi = {10.1007/978-3-030-88418-5\_35},
}
Figure