[Paper Review] PDNS-Net: A Large Heterogeneous Graph Benchmark Dataset of Network Resolutions for Graph Learning
PDNS-Net introduces the largest publicly available heterogeneous graph dataset (447K nodes, 897K edges) for malicious domain classification using passive DNS data, enabling large-scale graph learning research. It reveals that heterogeneous GNNs outperform homogeneous models on large graphs, but performance gains are inconsistent, highlighting the need for improved models on heterogeneous data.
In order to advance the state of the art in graph learning algorithms, it is necessary to construct large real-world datasets. While there are many benchmark datasets for homogeneous graphs, only a few of them are available for heterogeneous graphs. Furthermore, the latter graphs are small in size rendering them insufficient to understand how graph learning algorithms perform in terms of classification metrics and computational resource utilization. We introduce, PDNS-Net, the largest public heterogeneous graph dataset containing 447K nodes and 897K edges for the malicious domain classification task. Compared to the popular heterogeneous datasets IMDB and DBLP, PDNS-Net is 38 and 17 times bigger respectively. We provide a detailed analysis of PDNS-Net including the data collection methodology, heterogeneous graph construction, descriptive statistics and preliminary graph classification performance. The dataset is publicly available at https://github.com/qcri/PDNS-Net. Our preliminary evaluation of both popular homogeneous and heterogeneous graph neural networks on PDNS-Net reveals that further research is required to improve the performance of these models on large heterogeneous graphs.
Motivation & Objective
- To address the scarcity of large, publicly available heterogeneous graph datasets for graph learning research.
- To construct a real-world, large-scale heterogeneous graph from passive DNS data for malicious domain classification.
- To enable benchmarking of both homogeneous and heterogeneous graph neural networks on a dataset of unprecedented size.
- To identify performance gaps and research challenges in graph learning on large heterogeneous graphs.
- To provide a foundation for advancing research in imbalanced classification, adversarial robustness, and explainability on real-world network graphs.
Proposed method
- Constructed PDNS-Net from a seed set of 20,354 malicious domains collected from VirusTotal and passive DNS resolution data from Farsight Security.
- Built a heterogeneous graph with node types (domains, IPs) and edge types (domain resolves to IP, subdomain relationship) using DNS resolution patterns.
- Applied data sampling (Leskovec and Faloutsos, 2006) to create a smaller version, mPDNS-Net, for model evaluation and scalability testing.
- Used PyTorch Geometric (PyG) to implement and train multiple GNN variants, including homogeneous (GCN, GraphSAGE, GAT) and heterogeneous models (HGT, HeteroSAGE, HeteroGAT).
- Mapped node features across different types into a shared embedding space by merging features of same dimension and padding missing dimensions with zeros.
- Trained models with Adam optimizer (5×10⁻³ lr, 1×10⁻³ weight decay) over 200 epochs using two GNN layers (64 hidden units) and a final linear classifier.
Experimental results
Research questions
- RQ1How do homogeneous and heterogeneous GNN models perform on a large-scale heterogeneous graph like PDNS-Net?
- RQ2Does increasing graph size lead to improved classification performance for both homogeneous and heterogeneous GNNs?
- RQ3Why do homogeneous GNNs underperform on large heterogeneous graphs despite their scalability?
- RQ4Can heterogeneous GNNs achieve significantly better performance than homogeneous models on large, real-world network graphs?
- RQ5What are the key challenges in deploying existing GNN models on large, real-world heterogeneous graphs for network security tasks?
Key findings
- PDNS-Net is 38× larger than IMDB and 17× larger than DBLP, making it the largest public heterogeneous graph dataset for graph learning.
- Heterogeneous GNNs (e.g., HeteroGAT) achieved 94% F1-score and 96% AUC on PDNS-Net, outperforming homogeneous models like GCN (77% F1, 77% AUC).
- On the larger PDNS-Net dataset, heterogeneous models showed significant performance gains, but homogeneous models did not, indicating a scalability or representation mismatch.
- HeteroSAGE and HeteroGAT achieved 93% accuracy and 94% F1-score on PDNS-Net, demonstrating the effectiveness of heterogeneous message passing on large graphs.
- The marginal performance improvement of heterogeneous models on the smaller mPDNS-Net suggests that current models are not yet optimized for small heterogeneous graphs.
- The false positive rate (FPR) of HeteroGAT was only 6% on PDNS-Net, indicating strong robustness in malicious domain detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.