NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Balancing Accuracy and Efficiency in Vehicular Network Firmware Vulnerability Detection: A Fuzzy Matching Framework with Standardized Data Serialization

Xiyu Fang, Kexun He, Yue Wu, Rui Chen, Jing ZhaoInformatics 2025

TL;DR

This paper introduces FirmPB, a novel framework for detecting vulnerabilities in vehicular network firmware that balances accuracy and efficiency. By standardizing data serialization with Protocol Buffers and employing a fuzzy matching approach for code similarity, FirmPB significantly improves detection performance in resource-constrained environments, outperforming existing methods.

What Problem Does This Paper Address?

The increasing complexity and connectivity of vehicles, forming the Internet of Vehicles (IoV), have led to a surge in firmware vulnerabilities. These vulnerabilities can have severe consequences, ranging from data breaches to safety hazards. Existing methods for detecting these vulnerabilities often struggle with the unique challenges of IoV environments: resource constraints (limited processing power and memory), diverse hardware architectures (e.g., ARM, x86, MIPS), and the need for real-time detection. Current approaches often fall into two camps: those that prioritize accuracy but are too computationally expensive, or those that are efficient but lack the precision to identify subtle vulnerabilities. Furthermore, the lack of standardized data formats between different analysis models hinders interoperability and efficiency.

Methods

FirmPB tackles these challenges through a multi-pronged approach:

  • Fuzzy Matching for Code Similarity: The core of the detection relies on a fuzzy matching analysis algorithm. This involves:
  • Binary Code Partitioning: Binary code is systematically divided into normalized segments.
  • Semantic Equivalence Mapping: These segments are analyzed to create mappings that capture semantic equivalence, extracting similarity metrics for function execution. This goes beyond simple instruction matching by considering program execution semantics.
  • Dynamic Programming and Neighborhood Search: Techniques like dynamic programming (specifically, the Longest Common Subsequence algorithm) and enhanced neighborhood search (FMENS) are used to precisely measure similarity between code fragments, even with structural variations.
  • Standardized Data Serialization with Protocol Buffers (ProtoBuf): To address the issue of cross-architecture data representation and inter-model communication, FirmPB integrates ProtoBuf.
  • Instruction Representation Framework: A standardized ProtoBuf message format is defined for instructions, ensuring consistent representation across different processor architectures (ARM, x86, MIPS).
  • "Translation Layer": ProtoBuf acts as a "translation layer" and "bridging technology," enabling seamless data exchange between different models and architectures. This significantly improves data serialization efficiency and reduces model latency.
  • ProtoBuf-Based Certificate Authentication: To enhance the reliability of vehicular network communications, a certificate authentication scheme leveraging ProtoBuf is proposed. This scheme aims to improve data serialization efficiency and the overall accuracy of the detection model.
  • Transformer Architecture: The paper utilizes a transformer model for cross-architecture basic block embedding, incorporating an encoder and decoder. This architecture is trained to learn mappings between instructions from different architectures.

Datasets

The study utilizes the publicly available MIRROR dataset, which comprises source code from five prominent C/C++ open-source projects: Binutils 2.30, Coreutils 8.29, FFmpeg n3.2.13, OpenSSL 1.1.1b, and Redis 5.0.5. Corresponding x86 and ARM assembly code datasets were generated from these repositories using the LLVM compiler infrastructure.

Key Insights and Ideas

  • Bridging the Accuracy-Efficiency Gap: The primary insight is that by combining semantic analysis with standardized data serialization, it's possible to achieve both high accuracy and efficiency in firmware vulnerability detection, even in resource-constrained environments.
  • ProtoBuf as a Universal Translator: The paper highlights ProtoBuf's effectiveness not just for efficient data transfer but as a crucial component for achieving cross-architecture compatibility in firmware analysis. It standardizes instruction representation, solving a major bottleneck.
  • Semantic Similarity is Key: Moving beyond syntactic similarity, the focus on semantic equivalence of code fragments is crucial for accurately identifying vulnerabilities that might be masked by code obfuscation or compiler optimizations.
  • The Importance of Graph Structures: The experimental results suggest that integrating graph structures (like control flow graphs) significantly enhances model performance, outperforming models that rely solely on sequence-based approaches.

Key Results

  • Superior Detection Accuracy: FirmPB achieved a high AUC (Area Under the Curve) of 0.932, outperforming traditional methods like Instruction2Vec, Word2Vec, Asm2Vec, and Palm Tree in basic block search tasks.
  • Efficient Inference Time: The framework demonstrated an inference time of 0.044 seconds, making it suitable for real-time applications.
  • Cross-Architecture Performance: The model successfully learned to map instructions between different architectures (x86 and ARM), showing strong generalization capabilities.
  • Reduced Latency in IoV: The proposed communication scheme achieved an average total overhead of approximately 40-50 milliseconds, which is within the typical latency requirements for VANET applications.
  • Scalability: FirmPB showed moderate time complexity growth with increasing analysis depth, outperforming other methods like FIRMRCA and POMP in terms of scalability.

Limitations and Future Work

  • Model Complexity vs. Efficiency: While ProtoBuf improves serialization, the relationship between model complexity and detection performance still requires deeper examination. The paper notes that prioritizing accuracy (full FirmPB) can lead to systems that are too computationally intensive for direct on-vehicle deployment, necessitating offloading solutions.
  • Hardware Constraints: The paper acknowledges that even with optimizations, highly accurate models might still be challenging to deploy directly on memory-limited IoV hardware, suggesting the need for further exploration of lightweight architectures.
  • Future Research Directions: The authors suggest future work could focus on:
  • Exploring the adaptability of detection methods across a wider range of heterogeneous platforms.
  • Integrating advanced semantic analysis techniques with deep learning to further enhance accuracy and generalization.
  • Investigating more efficient lightweight architectures for on-vehicle deployment.

Summary updated

BibTeX
@article{fang2025balancing,
  author = {Xiyu Fang and Kexun He and Yue Wu and Rui Chen and Jing Zhao},
  title = {{Balancing Accuracy and Efficiency in Vehicular Network Firmware Vulnerability Detection: A Fuzzy Matching Framework with Standardized Data Serialization}},
  journal = {Informatics},
  year = {2025},
  doi = {10.3390/informatics12030067},
}
Figure