Abstract
In the evolving landscape of cybersecurity, identifying malicious domains and IP addresses requires analyzing complex relationships between entities. While Graph Neural Networks (GNNs) offer high expressiveness, their application at an internet-wide scale is often hindered by the computational costs of global inference. This paper presents HMILnet, a novel architecture utilizing Hierarchical Multiple Instance Learning to perform local graph inference. By focusing on the immediate neighborhood of a central vertex and treating it as a structured "bag" of instances, HMILnet achieves significant performance gains. Experimental results on large-scale network traffic data demonstrate a 3x improvement in Average Precision compared to single-relation models and superior scalability over traditional graph propagation methods.
1. Introduction
The detection of malicious internet entities—such as domains, IP addresses, and file hashes—is a cornerstone of modern cybersecurity. Traditional approaches rely heavily on denylists, which are reactive and struggle to keep pace with the rapid generation of new threats. Machine learning offers a proactive alternative, yet researchers face a persistent trade-off: the choice between feature-based models, which are scalable but ignore relational context, and graph-based models, which capture context but often fail to scale to the hundreds of millions of entities found in global network traffic.
2. The Scalability Challenge in Graph Inference
Graph-based detection typically models interactions as a web of relationships. Traditional algorithms, such as Probabilistic Threat Propagation (PTP), are often limited by their inability to handle heterogeneous data types (e.g., combining WHOIS records with TLS certificates) or their reliance on simple mathematical heuristics.
While Graph Neural Networks (GNNs) have emerged as a powerful tool for learning on graphs, they face significant hurdles in production environments. Running global inference on a graph with hundreds of millions of edges every time new data arrives is computationally prohibitive. There is a critical need for a system that is expressive enough to understand diverse data types but "local" enough to operate efficiently at scale.
3. HMILnet: Local Graph Inference via Hierarchical MIL
The authors propose HMILnet (Hierarchical Multiple Instance Learning network), a framework designed to bridge the gap between expressiveness and scalability through "local inference."
3.1 Neighborhood-Centric Modeling
Instead of performing inference across the entire internet graph, HMILnet focuses on the "central vertex"—the specific domain or IP being evaluated. The model treats the immediate neighborhood of this vertex as a structured database or a "bag" of instances. This shift from global state synchronization to local query-based inference allows for massive parallelization and efficiency.
3.2 Architectural Innovations
- Streamlined Subgraphs: To minimize noise and computational overhead, the model restricts its analysis to edges that lie on the shortest path to the central vertex.
- State Heterogeneity: Unlike standard GNNs where a node maintains a fixed representation, HMILnet conditions a neighbor's representation specifically on the central vertex under analysis, allowing for more nuanced relational context.
- Heterogeneous Transformation: The system transforms complex bipartite graphs (e.g., Domain-to-IP) into "Domain-to-Domain" projections. An edge is established if two domains share a common attribute, such as a registration email or a specific TLS certificate hash.
4. Experimental Setup
The researchers evaluated HMILnet using real-world datasets provided by Cisco Systems, spanning 12 weeks of network traffic. The scale of the data was substantial:
- Volume: Weekly graphs averaged 7 million vertices and 300 million edges.
- Diversity: The model incorporated 11 distinct relation types, including traffic logs (domain-client interactions), infrastructure (IP resolutions), security metadata (TLS certificate issuers), and registration data (WHOIS records).
5. Key Results and Insights
The study yielded several critical findings regarding the efficacy of local graph inference:
- Synergy of Heterogeneous Data: The inclusion of multiple relation types was the primary driver of performance. Moving from a single relation (traffic logs) to the full suite of 11 relations resulted in the Average Precision (AP) jumping from approximately 0.15 to 0.64—a 3x boost in accuracy.
- Superiority over Baselines: HMILnet consistently outperformed the Probabilistic Threat Propagation (PTP) algorithm, particularly in high-recall scenarios. This indicates a superior ability to identify malicious actors while maintaining a manageable false-positive rate.
- Generalization vs. Memorization: To ensure the model wasn't simply memorizing known threats, the authors conducted a "Grill test" by removing entire malware families from the training set. HMILnet successfully identified these unseen threats, proving it learns the underlying behavioral patterns of malicious neighborhoods.
6. Conclusion and Future Work
HMILnet demonstrates that local graph inference is a viable and powerful strategy for internet-scale cybersecurity. By treating neighborhoods as local databases, the model achieves high expressiveness without the computational burden of global GNNs.
Future research directions include moving beyond 1-step neighborhoods to explore "friends of friends" context, although this introduces additional complexity. Furthermore, there is a push toward model explainability, aiming to provide security analysts with clear justifications for why a specific entity was flagged based on its relational neighborhood.
Summary updated