NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detection of Early-Stage Enterprise Infection by Mining Large-Scale Log Data

Alina Oprea, Zhou Li, Ting-Fang Yen, Sang H. Chin, Sumayah A. Alrwais

TL;DR

This paper introduces a graph-theoretic framework based on belief propagation to detect early-stage enterprise malware infections, such as Advanced Persistent Threats (APTs), within massive network logs. By focusing on "rare destinations" and modeling host-domain communications as a bipartite graph, the system can catch stealthy, small-scale attacks—even those involving only a single compromised host—with high accuracy and low false-positive rates.

What Problem Does This Paper Address?

Traditional enterprise defenses like firewalls, anti-virus software, and Intrusion Detection Systems (IDS) frequently fail to detect modern cyberattacks in their early stages. Sophisticated attackers and APT groups carefully orchestrate their campaigns to maintain a low profile, often deploying custom or rapidly evolving malware variants designed specifically to evade signature-based detection.

Detecting these infections early is critical to preventing data exfiltration, but doing so at an enterprise scale presents unique challenges:

  1. Data Volume: Large enterprises generate terabytes of network log data daily, requiring highly efficient analysis methods.
  2. Limited Scope: Unlike ISPs, an enterprise only sees its own internal traffic, making global reputation-based filtering less effective.
  3. Stealth and Scale: Initial infections are often tiny, sometimes compromising just a single machine that communicates sporadically with an external Command-and-Control (C&C) server.

Methods

The authors propose a two-phase system (Training and Operation) that leverages graph theory and machine learning to uncover malicious activity without requiring prior malware samples or signatures.

Fig. 1: Overview of training and operation stages in our system for detecting enterprise infection. Training stage is on the left and operation on the right. Input data is shown in red, processing steps in blue and various outputs in black.

1. Data Reduction & "Rare Destinations"

To handle massive datasets, the system first filters out internal traffic and popular domains (e.g., Alexa top sites). It focuses exclusively on rare destinations: domains that are completely new to the network history and visited by only a handful of internal hosts. This step reduces the data volume by orders of magnitude.

2. Command-and-Control (C&C) Detector ("No-Hint" Mode)

When no prior threat intelligence is available, the system uses a novel C&C detector to find automated, periodic communications. It uses a dynamic histogram binning method to analyze the time intervals between connections, making it resilient to network delays and minor timing randomizations introduced by attackers. It combines these timing patterns with enterprise-specific features (like the popularity of User-Agent strings and web referrer info) and WHOIS data to score domains via a linear regression model.

3. Belief Propagation Framework

Once potential C&C domains or known compromised hosts are identified as "seeds," the system constructs a bipartite graph mapping internal hosts to external domains.

The Belief Propagation algorithm used to iteratively score and classify rare domains.

Using a modified Belief Propagation algorithm, the system iteratively propagates "suspiciousness" scores across the graph. If a host connects to a known bad domain, its other rare connections are scrutinized based on timing correlation, IP space proximity, and domain age, mapping out the entire infrastructure of an attack campaign.

Datasets

The framework was evaluated on two massive, distinct datasets:

  • LANL Dataset: Two months of anonymized DNS logs (1.15 TB) from Los Alamos National Laboratory. This dataset includes 20 independent, simulated APT attack campaigns designed by domain experts to serve as a benchmark.
  • AC Dataset: Two months of real-world web proxy logs (38.14 TB) collected from the border of a large enterprise with over 100,000 hosts, containing rich HTTP context data.

Key Insights and Ideas

  • The Power of Locality: Malicious domains used in the same campaign are fundamentally related. They often share proximity in IP subnets, are registered around the same time, or are accessed by a compromised host within a very tight time window. Belief propagation naturally exploits these relationships.
  • Enterprise Homogeneity as a Defense: Because enterprise software configurations are typically uniform, legitimate User-Agent strings are highly popular across the network. A rare or unique User-Agent string combined with a rare domain is a strong indicator of unauthorized or malicious software.
  • Dynamic Binning Over Static Bins: Standard statistical distance metrics fail when attackers introduce slight random variations in timing. Dynamic binning groups connection intervals flexibly, capturing the underlying automated nature of backdoors while ignoring outliers.

Key Results

  • LANL Challenge: The system excelled at the simulated APT challenge, achieving an overall 98.33% true detection rate with a remarkably low 1.67% false detection rate and a 6.25% false negative rate.
  • Real-World Enterprise Deployment: When applied to 38.14 TB of real enterprise traffic, the system flagged 375 suspicious domains over a month. Manual verification with the enterprise Security Operations Center (SOC) confirmed that 77.07% (289 domains) were genuinely malicious or suspicious.
  • Zero-Day Discoveries: Crucially, the system discovered 98 entirely new malicious domains that had completely bypassed the enterprise's state-of-the-art security tools and were not yet reported on VirusTotal.

Limitations and Future Work

While highly effective, the authors note a few avenues for evasion and future improvement:

  • Alternative Channels: Attackers could communicate over non-HTTP/HTTPS protocols, though these are typically blocked by strict enterprise firewalls.
  • Watering Hole Attacks: If an attacker compromises a highly popular, legitimate website to host their C&C infrastructure, the "rare destination" filter would inadvertently discard it.
  • Advanced Randomization: Completely randomized C&C timing patterns (without any predictable intervals) remain an open challenge for timing-based detectors.
  • Campaign Classification: The current framework flags early-stage anomalies but cannot easily distinguish between a highly targeted APT attack and a generic, mainstream malware variant without longer-term monitoring.

Summary updated

BibTeX
@inproceedings{oprea2014detection,
  author = {Alina Oprea and Zhou Li and Ting-Fang Yen and Sang H. Chin and Sumayah A. Alrwais},
  title = {{Detection of Early-Stage Enterprise Infection by Mining Large-Scale Log Data}},
  booktitle = {DSN},
  year = {2014},
  doi = {10.1109/dsn.2015.14},
}
Figure