University of Alberta
An Investigation on Explainable Graph Neural Networks and Large Language Models for Malware Analysis
Abstract
dc:description.abstractAs the cybersecurity field is evolving, improvements in malware detection systems are urgently needed as cyber threats become sophisticated. Considering the predictions of an increase in software supply chain attacks, it is necessary to deploy strong cybersecurity solutions to protect national and community interests. Although Large Language Models (LLMs) have been shown to work well in cybersecurity, particularly in analyzing threat reports, their application to directly analyze Portable Executable (PE) malware files has yet to be explored. This study pioneers the use of LLMs to assist malware analysts in classifying malware types and predicting behavioral information contained in PE files. We propose GraPE, a graph-based framework that leverages Large Language Models (LLMs) to analyze malicious PE files. GraPE enables the classification of malware types as well as analysis of suspicious behavior to justify its predictions. To remove noise and overcome the token limits of LLMs, we integrate an Explainable Graph Neural Network (XGNN) method for critical subgraph extraction from a large hierarchical graph representation of disassembled PE files. Furthermore, GraPE employs Retrieval-Augmented Generation (RAG) to incorporate relevant supplementary behavior knowledge based on graph embeddings, substantially enhancing the quality and reliability of LLM-generated analysis. Comprehensive experiments on selected subsets of the BODMAS PE malware dataset show that our method outperforms traditional machine learning-based methods in both classifying malware type and ATT&CK techniques.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Master's
- Discipline thesis:degree_discipline
- Computer Engineering
- Grantor
- University of Alberta
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Tian, Ruiqing
- Advisor dc:contributor.advisor
-
- Di, Niu (Electrical and Computer Engineering)
Subjects
dc:subject × 4Rights
dc:rights- Statement dc:rights
-
- This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- DOI dc:identifier.doi
- https://doi.org/10.7939/81729