Back to search

University of Cincinnati

An LLVM-Based Attack on Neural-Network-Based Function Boundary Detection

Abstract

dc:description

Function boundary detection (FBD) is a core task in static binary analysis, enabling downstream activities such as reverse engineering and malware analysis. Recent machine-learning-based FBD systems have demonstrated strong empirical performance and in many settings outperform traditional rule-based tools such as Ghidra and IDA Pro. However, prior work has shown that neural FBD systems can be vulnerable to black-box, semantics-preserving adversarial attacks, including perturbations that rewrite inter-function padding.This thesis presents a study of the adversarial robustness of an influential neural-based FBD approach, XDA, in the Rust/Linux/ELF regime. In preliminary experiments, we find that padding-based attacks, though effective in prior C/C++/Windows/PE evaluations, degrade XDA substantially less in Rust/Linux/ELF binaries. This observation suggests that adversarial weakness in neural FBD is regime-dependent and motivated the hypothesis that XDA relies on different boundary-adjacent cues across compilation environments. To test this, we evaluate both post-compilation padding manipulation and a new semantics-preserving compiler-level perturbation implemented as an LLVM pass that modifies function prologue structure while preserving intended execution, as well as the composition of the two attacks.Our results show that, in the evaluated Rust/Linux/ELF regime, padding manipulation is a real but comparatively limited attack surface, whereas compiler-level prologue perturbation produces stronger and more consistent degradation, especially for complete function boundary recovery. Combining the two perturbations yields the most severe failures overall, reducing XDA’s start and bound F1 to near-zero across optimization levels. These findings indicate that XDA’s robustness is shaped by artifacts specific to the compiler, binary platform, and programming language, and suggest that entry-adjacent code-generation patterns are a first-order adversarial surface. To support this study, we introduce RUBIN v2, a Rust/Linux/ELF dataset, together with tooling for generating perturbed binaries for evaluating the robustness of FBD methods.

Degree

thesis:*
Name thesis:degree_name
MS
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Engineering and Applied Science: Computer Science
Grantor dc:publisher
University of Cincinnati
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Graler, Samuel Mark
Chair dc:contributor.committeechair
  • Hawkins, William

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Graler, Samuel Mark. An LLVM-Based Attack on Neural-Network-Based Function Boundary Detection. masters thesis, University of Cincinnati, 2026. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1787577302714962