paper-with-me

홈 › Papers

VEXIR2Vec: An Architecture-Neutral Embedding Framework for Binary Similarity

2023-12-01 · S. VenkataKeerthy, Soumya Banerjee, Sayan Dey, Yashas Andaluri, Raghul PS, Subrahmanyam Kalyanasundaram, Fernando Magno Quintão Pereira, Ramakrishna Upadrasta

Binary similarity involves determining whether two binary programs exhibit similar functionality, often originating from the same source code. In this work, we propose VexIR2Vec, an approach for binary similarity using VEX-IR, an architecture-neutral Intermediate Representation (IR). We extract the embeddings from sequences of basic blocks, termed peepholes, derived by random walks on the control-flow graph. The peepholes are normalized using transformations inspired by compiler optimizations. The VEX-IR Normalization Engine mitigates, with these transformations, the architectural and compiler-induced variations in binaries while exposing semantic similarities. We then learn the vocabulary of representations at the entity level of the IR using the knowledge graph embedding techniques in an unsupervised manner. This vocabulary is used to derive function embeddings for similarity assessment using VexNet, a feed-forward Siamese network designed to position similar functions closely and separate dissimilar ones in an n-dimensional space. This approach is amenable for both diffing and searching tasks, ensuring robustness against Out-Of-Vocabulary (OOV) issues. We evaluate VexIR2Vec on a dataset comprising 2.7M functions and 15.5K binaries from 7 projects compiled across 12 compilers targeting x86 and ARM architectures. In diffing experiments, VexIR2Vec outperforms the nearest baselines by $40\%$, $18\%$, $21\%$, and $60\%$ in cross-optimization, cross-compilation, cross-architecture, and obfuscation settings, respectively. In the searching experiment, VexIR2Vec achieves a mean average precision of $0.76$, outperforming the nearest baseline by $46\%$. Our framework is highly scalable and is built as a lightweight, multi-threaded, parallel library using only open-source tools. VexIR2Vec is $3.1$-$3.5 \times$ faster than the closest baselines and orders-of-magnitude faster than other tools.

📄 PDF Abstract BibTeX arXiv:2312.00507

Code (1)

systemsecuritystorm/awesome-binary-similarity 공식 구현

Tasks

Graph EmbeddingKnowledge Graph Embedding

Methods 이 논문이 사용한 방법론

Siamese Network 설명 없음
Library 설명 없음

Similar Papers 제목 키워드 기반

Binary Self-Selective Voting Rules

2025-06-18 · Héctor Hermida-Rivera, Toygar T. Kerman

This paper introduces a novel binary stability property for voting rules-called binary self-selectivity-by which a society considering whether to replace its voting rule using itself in pairwise elections will choose not…

Beyond Binary Gender Labels: Revealing Gender Biases in LLMs through Gender-Neutral Name Predictions

2024-07-07 · Zhiwen You, Haejin Lee, Shubhanshu Mishra, Sullam Jeoung 외

Name-based gender prediction has traditionally categorized individuals as either female or male based on their names, using a binary classification system. That binary approach can be problematic in the cases of gender-n…

Binary ClassificationGender PredictionPrediction

A Cross-Architecture Instruction Embedding Model for Natural Language Processing-Inspired Binary Code Analysis

2018-12-23 · Kimberly Redmond, Lannan Luo, Qiang Zeng

Given a closed-source program, such as most of proprietary software and viruses, binary code analysis is indispensable for many tasks, such as code plagiarism detection and malware analysis. Today, source code is very of…

Malware Analysis

On the Language Neutrality of Pre-trained Multilingual Representations

2020-04-09 · Findings of the Association for Computational Linguistics 2020 · Jindřich Libovický, Rudolf Rosa, Alexander Fraser

Multilingual contextual embeddings, such as multilingual BERT and XLM-RoBERTa, have proved useful for many multi-lingual tasks. Previous work probed the cross-linguality of the representations indirectly using zero-shot …

Language IdentificationTransfer LearningWord Alignment

TAPAS at SemEval-2021 Task 9: Reasoning over tables with intermediate pre-training

2021-04-02 · SEMEVAL 2021 · Thomas Müller, Julian Martin Eisenschlos, Syrine Krichene

We present the TAPAS contribution to the Shared Task on Statement Verification and Evidence Finding with Tables (SemEval 2021 Task 9, Wang et al. (2021)). SEM TAB FACT Task A is a classification task of recognizing if a …

Binary Classification