arrow
Return

ParserHunter: Identify parsing functions in binary code

delete2026-01-10
delete0
delete
OA
AI
M
marco scapin
F
Fabio Pinelli
L
Letterio Galletta *
DOI:10.1016/j.jss.2026.112783delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Parsing and validation functions are crucial because they process untrusted data, e.g., user inputs. Due to their complexity, these functions are highly susceptible to bugs, making them a primary target for security audits. However, identifying such functions within a binary is time-intensive and challenging, given the numerous functions typically present and the lack of source code or supporting documentation. This paper presents an AI-based methodology for identifying functions with parser-like behavior and complex processing logic within a binary. Our methodology analyzes each binary by identifying its functions, extracting their Control Flow Graphs (CFGs), and enriching them with features derived from an embedding model that captures both structural and semantic aspects of their behavior. These annotated CFGs are the input to a Graph Neural Network trained to identify parsing functions. We implement this methodology in the tool ParserHunter, which allows users to train the model on labeled data, query the model with unseen binaries, and accommodate a symbolic execution phase on the processed binary through a user interface. Our experiments on ten real-world projects from GitHub show that our tool effectively identifies parsers in binaries.
Keywords:
Binary analysis
Function identification
Graph neural network
MSSA: multi-stage semantic-aware neural network for binary code similarity detection
err2025-01-17
err0
errOAAI
errWan, Bangrui; Zhou, Jianjun; Wang, Ying; Chen, Feng; Qian, Ying
errShare
errSave
BinBench: a benchmark for x64 portable operating system interface binary function representations
err2023-06-01
err0
errOAAI
errConsole, Francesca; D'Aquanno, Giuseppe; Di Luna, Giuseppe Antonio; Querzoni, Leonardo
errShare
errSave
errShare
errSave
Learning binary codes with neural collaborative filtering for efficient recommendation systems
err2019-05-01
err49
PREAI
errLi, Yang; Wang, Suhang; Pan, Quan; Peng, Haiyun; Yang, Tao; Cambria, Erik
errShare
errSave

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
1.0W

Organization

No organization information available
Cited Papers

Cited Papers

Asteria-Pro: Enhancing Deep Learning-based Binary Code Similarity Detection by Incorporating Domain Knowledge
err2023-11-24
err16
errOAAI
errYang, Shouguo; Dong, Chaopeng; Xiao, Yang; Cheng, Yiran; Shi, Zhiqiang; Li, Zhi; Sun, Limin
errShare
errSave
SAFE: Self-Attentive Function Embeddings for Binary Similarity
err2019-06-06
err0
PREAI
errLuca Massarelli; Giuseppe Antonio Di Luna; Fabio Petroni; Roberto Baldoni; Leonardo Querzoni
errShare
errSave
Modeling Relational Data with Graph Convolutional Networks
err2018-06-03
err0
PREAI
errMichael Schlichtkrull; Thomas N. Kipf; Peter Bloem; Rianne van den Berg; Ivan Titov; Max Welling
errShare
errSave
VulANalyzeR: Explainable Binary Vulnerability Detection with Multi-task Learning and Attentional Graph Convolution
err2023-04-14
err8
PREAI
errLi, Litao; Ding, Steven H. H.; Tian, Yuan; Fung, Benjamin C. M.; Charland, Philippe; Ou, Weihan; Song, Leo; Chen, Congwei
errShare
errSave
Function Representations for Binary Similarity
err2022-07-01
err10
errOAAI
errMassarelli, Luca; Di Luna, Giuseppe Antonio; Petroni, Fabio; Querzoni, Leonardo; Baldoni, Roberto
errShare
errSave
The Graph Neural Network Model
err2009-01-01
err0
errOAAI
errF. Scarselli; M. Gori; Ah Chung Tsoi; M. Hagenbuchner; G. Monfardini
errShare
errSave
sem2vec: Semantics-aware Assembly Tracelet Embedding
err2023-05-27
err4
PREAI
errWang, Huaijin; Ma, Pingchuan; Wang, Shuai; Tang, Qiyi; Nie, Sen; Wu, Shi
errShare
errSave
Learning from Imbalanced Data
err2009-09-01
err5.5K
PREAI
errHe, Haibo; Garcia, Edwardo A.
errShare
errSave
Machine Learning-Based Analysis of Program Binaries: A Comprehensive Study
err2019-01-01
err30
errOAAI
errXue, Hongfa; Sun, Shaowen; Venkataramani, Guru; Lan, Tian
errShare
errSave
researcher View more