File size: 4,226 Bytes
00a0971
 
 
 
 
 
 
859f4bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
configs:
- config_name: default
  data_files:
    - split: train
      path: "data/*.parquet"
---
<h1 align="center"> HiGraph: A Large-Scale Hierarchical Graph Dataset </h1>

<div align="center">

<img src="https://raw.githubusercontent.com/hzcheney/HiGraph/refs/heads/master/assets/h_logo.svg" width="100" height="100">

<p><strong>Hierarchical Graph Dataset for Malware Analysis with Function Call Graphs and Control Flow Graphs</strong></p>


 <img src="https://img.shields.io/badge/🤗%20Hugging%20Face-Datasets-yellow" alt="Hugging Face" />
                <img src="https://img.shields.io/badge/Dataset-6.17GB-blue" alt="Dataset Size" />
                <img src="https://img.shields.io/badge/Samples-595K%20FCGs-green" alt="Function Call Graphs" />
                <img src="https://img.shields.io/badge/CFGs-200M%2B-brightgreen" alt="Control Flow Graphs" />
                <img src="https://img.shields.io/badge/Period-2012--2022-orange" alt="Time Period" />
                <img src="https://img.shields.io/badge/License-CC--BY--NC--SA-red" alt="License" />

A comprehensive hierarchical graph-based dataset for malware analysis and detection.

[Overview](#overview) • [Dataset Statistics](#dataset-statistics) • [Interactive Explorer](#interactive-visualization) • [Download](#download-dataset) 

</div>

## Overview

**HiGraph** is a novel, large-scale dataset that models each application as a hierarchical graph: a local **Control Flow Graph (CFG)** capturing intra-function logic and a global **Function Call Graph (FCG)** capturing inter-function interactions.

Graph-based methods have shown great promise in malware analysis, yet the lack of large-scale, hierarchical graph datasets limits further advances in this field. This hierarchical design facilitates the development of robust detection models that are more resilient to obfuscation, model aging, and malware evolution.

<div align="center">

![Dataset Overview](https://raw.githubusercontent.com/hzcheney/HiGraph/refs/heads/master/assets/overview.png)

</div>

### Key Features

- 🔍 **Hierarchical Graph Structure**: Two-level representation with FCGs and CFGs
- 📈 **Large Scale**: 200M+ Control Flow Graphs and 595K+ Function Call Graphs
- 🏷️ **Rich Semantic Information**: Preserves crucial structural details for malware analysis
- 📊 **Comprehensive Coverage**: 11-year temporal span (2012-2022)
- 🎯 **Benchmark Ready**: Designed for advancing hierarchical graph learning in cybersecurity

## Dataset Statistics

<div align="center">



| Class | Time Period | # Apps | **Function Call Graph** || **Control Flow Graph** |||
|-------|-------------|--------|---------------------|--|--------------------|--|--|
|       |             |        | **Avg # Nodes** | **Avg # Edges** | **# Graphs** | **Avg # Nodes** | **Avg # Edges** |
| **Malicious** | 2012.01-2022.12 | 57,184 | 266.48 | 491.67 | 6,925,406 | 12.29 | 14.94 |
| **Benign** | 2012.01-2022.12 | 538,027 | 791.54 | 1,414.51 | 194,866,679 | 12.17 | 13.94 |

</div>

## Interactive Visualization

Explore the hierarchical structure of malware samples through our interactive visualization tool:

<div align="center">

🔗 **[Launch Interactive Explorer](https://higraph.org/)**

*Click to explore the complete dataset structure and sample graphs*

![Sample Function Call Graph](https://raw.githubusercontent.com/hzcheney/HiGraph/refs/heads/master/assets/explorer.png)
*Sample Function Call Graph (FCG) visualization*

</div>

## Download Dataset

Access the complete HiGraph dataset through multiple platforms:

<div align="center">

| Platform | Description | Link |
|----------|-------------|------|
| 🤗 **Hugging Face** | Primary dataset repository | [View on Hugging Face](https://huggingface.co/datasets/hzcheney/Hi-Graph/tree/main) |
| 🌐 **Project Page** | Interactive explorer | [HiGraph Explorer](https://higraph.org/) |

</div>

## Requirements
- Python >= 3.9
- torch==2.6.0
- torch-geometric==2.6.1

Install dependencies:

```bash
pip install -r requirements.txt
```

## 📄 License

This dataset is licensed under the **Creative Commons Attribution-NonCommercial-ShareAlike (CC-BY-NC-SA)** license. See the [LICENSE](LICENSE) file for details.