{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T17:58:09Z","timestamp":1794333489278,"version":"4.9.0"},"reference-count":32,"publisher":"Association for Computing Machinery (ACM)","issue":"ISSTA","license":[{"start":{"date-parts":[[2025,6,22]],"date-time":"2025-06-22T00:00:00Z","timestamp":1750550400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/publication-rights-and-licensing-policy"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,22]]},"abstract":"<jats:p>Detecting vulnerabilities in binary files is a challenging task in cybersecurity, particularly when source code is unavailable and the compilation process and its parameters are unknown. Existing deep learning-based detection methods often rely on knowing a binary\u2019s specific compilation settings, which may limit their ability to perform well on other types of binaries. In this research, we provide a thorough comparison of assembly representation and LLVM-IR to identify which representation is more robust and suitable when compilation parameters are unknown. The choice of representation significantly influences detection accuracy. Another contribution of this paper is the use of CodeBERT, a transformer-based model, as a classification tool for detecting vulnerabilities in scenarios where the compilation process is unknown. This study applies transformer models to the task of multi-class vulnerability detection in the LLVM-IR domain, with a focus on binary-derived representations. While recent research has explored the use of transformers for vulnerability analysis in source code and raw binary instruction streams, systematic evaluation as a classifier at the LLVMIR level remains limited. Prior work has commonly relied on RNN-based methods, which are considered state-of-the-art for this task; however, these models struggle to capture long-range dependencies effectively. To address this limitation, we extend transformer-based classification to LLVM-IR produced from binaries and provide a comprehensive evaluation in this setting. Our results highlight the potential of this approach to strengthen system security across diverse binary configurations.<\/jats:p>","DOI":"10.1145\/3728903","type":"journal-article","created":{"date-parts":[[2025,6,22]],"date-time":"2025-06-22T10:53:21Z","timestamp":1750589601000},"page":"618-639","source":"Crossref","is-referenced-by-count":3,"title":["Robust Vulnerability Detection across Compilations: LLVM-IR vs. Assembly with Transformer Model"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-2268-0712","authenticated-orcid":false,"given":"Rony","family":"Shir","sequence":"first","affiliation":[{"name":"Ben-Gurion University of the Negev, beer sheva, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-5673-2687","authenticated-orcid":false,"given":"Priyanka","family":"Surve","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev, beer sheva, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9641-128X","authenticated-orcid":false,"given":"Yuval","family":"Elovici","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev, beer sheva, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0630-4059","authenticated-orcid":false,"given":"Asaf","family":"Shabtai","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev, beer sheva, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,22]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.csa.2024.100061"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.1145\/3529836.3529926"},{"key":"e_1_3_1_4_2","unstructured":"Avast Software.2024. RetDec: Retargetable Decompiler. https:\/\/github.com\/avast\/retdec. Accessed: 2024-10-27."},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549135"},{"key":"e_1_3_1_6_2","doi-asserted-by":"crossref","first-page":"103165","DOI":"10.1016\/j.cose.2023.103165","article-title":"ROMEO: A binary vulnerability detection dataset for exploring Juliet through the lens of assembly language","volume":"128","author":"Brust Clemens-Alexander","year":"2023","unstructured":"Clemens-Alexander Brust, Tim Sonnekalb, and Bernd Gruner. 2023. ROMEO: A binary vulnerability detection dataset for exploring Juliet through the lens of assembly language. Computers & Security 128 (2023), 103165.","journal-title":"Computers & Security"},{"key":"e_1_3_1_7_2","doi-asserted-by":"crossref","unstructured":"Yaniv David Nimrod Partush and Eran Yahav. 2016. Statistical similarity of binaries. Acm sigplan notices 51 6 (2016) 266\u2013280.","DOI":"10.1145\/2980983.2908126"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3296957.3177157"},{"key":"e_1_3_1_9_2","doi-asserted-by":"crossref","first-page":"1039","DOI":"10.1109\/ICMLA55696.2022.00173","volume-title":"2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA)","author":"Diwan Ashita","year":"2022","unstructured":"Diwan, Ashita and Li, Miles Q and Fung, Benjamin CM. 2022. VDGraph2Vec: Vulnerability Detection in Assembly Code using Message Passing Neural Networks. In 2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA). IEEE, 1039\u20131046."},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1002\/9780470050118.ecse071"},{"key":"e_1_3_1_11_2","unstructured":"Iz Beltagy and Matthew E. Peters and Arman Cohan. 2020. Longformer: The Long-Document Transformer. arXiv:2004.05150 (2020)."},{"key":"e_1_3_1_12_2","doi-asserted-by":"crossref","unstructured":"Litao Li Steven HH Ding Yuan Tian Benjamin CM Fung Philippe Charland Weihan Ou Leo Song and Congwei Chen. 2023. VulANalyzeR: Explainable Binary Vulnerability Detection with Multi-task Learning and Attentional Graph Convolution. ACM Transactions on Privacy and Security 26 3 (2023) 1\u201325.","DOI":"10.1145\/3585386"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.cose.2023.103500"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.cose.2020.102032"},{"key":"e_1_3_1_15_2","unstructured":"LLVM Project. 2024. Arm Cross Compilation With Clang. https:\/\/llvm.org\/docs\/HowToCrossCompileLLVM.html. Accessed: 2024-10-27."},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3460945.3464952"},{"key":"e_1_3_1_17_2","first-page":"1","volume-title":"2024 Cyber Awareness and Research Symposium (CARS)","author":"McCully Gary A","year":"2024","unstructured":"Gary A McCully, John D Hastings, Shengjie Xu, and Adam Fortier. 2024. Bi-directional transformers vs. word2vec: Discovering vulnerabilities in lifted compiled code. In 2024 Cyber Awareness and Research Symposium (CARS). IEEE, 1\u20138."},{"key":"e_1_3_1_18_2","unstructured":"MITRE Corporation 2024. Common Weakness Enumeration (CWE). MITRE Corporation. https:\/\/cwe.mitre.org\/ Accessed: March 22 2024."},{"key":"e_1_3_1_19_2","unstructured":"NIST. 2024. SARD: Software Assurance Reference Dataset. https:\/\/samate.nist.gov\/SARD\/testsuite.php. Accessed: 2024-10-27."},{"key":"e_1_3_1_20_2","unstructured":"OpenAI. 2024. GPT-4o mini: advancing cost-efficient intelligence. https:\/\/openai.com\/index\/gpt-4o-mini-advancingcost-efficient-intelligence\/. Accessed: 2025-02-23."},{"key":"e_1_3_1_21_2","unstructured":"OWASP Foundation. 2021. Software and Data Integrity Failures - OWASP Top Ten 2021. https:\/\/owasp.org\/Top10\/A08_2021-Software_and_Data_Integrity_Failures\/. Accessed: 2024-10-30."},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE.2019.00024"},{"key":"e_1_3_1_23_2","first-page":"162","volume-title":"Proceedings of the 23rd IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM)","author":"Peng Tao","year":"2023","unstructured":"Tao Peng, Shixu Chen, Fei Zhu, Junwei Tang, Junping Liu, and Xinrong Hu. 2023. PTLVD: Program Slicing and Transformer-Based Line-Level Vulnerability Detection System. In Proceedings of the 23rd IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM). IEEE, 162\u2013173."},{"key":"e_1_3_1_24_2","unstructured":"Alex Richardson. 2024. Juliet Test Suite for C\/C++. https:\/\/github.com\/arichardson\/juliet-test-suite-c. Accessed: 2024-10-28."},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-30122-3_28"},{"key":"e_1_3_1_26_2","first-page":"458","volume-title":"Proceedings of the European Conference on Cyber Warfare and Security","author":"Spanier Adam","year":"2023","unstructured":"Adam Spanier and William Mahoney. 2023. Static Vulnerability Analysis Using Intermediate Representations: A Literature Review. In Proceedings of the European Conference on Cyber Warfare and Security, Vol. 22. Academic Conferences International Limited, Athens, Greece, 458\u2013465."},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2020.106289"},{"key":"e_1_3_1_28_2","first-page":"5998","article-title":"Attention is All You Need","volume":"30","author":"Vaswani Ashish","year":"2017","unstructured":"Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, \u0141ukasz Kaiser, and Illia Polosukhin. 2017. Attention is All You Need. Advances in Neural Information Processing Systems 30 (2017), 5998\u20136008.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2023.3289001"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.cose.2021.102286"},{"key":"e_1_3_1_31_2","author":"Zeng Bin","year":"2012","unstructured":"Bin Zeng. 2012. Static analysis on binary code. Technical Report. Tech. rep. Tech-report, 2012 (cit. on pp. 17, 22, 23).","journal-title":"Static analysis on binary code"},{"key":"e_1_3_1_32_2","doi-asserted-by":"crossref","unstructured":"Zhangyin Feng and Daya Guo and Duyu Tang and Nan Duan and Xiaocheng Feng and Ming Gong and Linjun Shou and Bing Qin and Ting Liu and Daxin Jiang and Ming Zhou. 2020. CodeBERT: A Pre-Trained Model for Programming and Natural Languages. arXiv:2002.08155 [cs.CL]","DOI":"10.18653\/v1\/2020.findings-emnlp.139"},{"key":"e_1_3_1_33_2","first-page":"160","volume-title":"Proceedings of the 2019 2nd International Conference on Algorithms, Computing and Artificial Intelligence (ACAI)","author":"Zheng Jianyun","year":"2019","unstructured":"Jianyun Zheng, Jianmin Pang, Xiaochuan Zhang, Xin Zhou, MingLiang Li, and Jun Wang. 2019. Recurrent Neural Network Based Binary Code Vulnerability Detection. In Proceedings of the 2019 2nd International Conference on Algorithms, Computing and Artificial Intelligence (ACAI). ACM, Sanya, China, 160\u2013165."}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3728903","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T13:55:06Z","timestamp":1787493306000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3728903"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,22]]},"references-count":32,"journal-issue":{"issue":"ISSTA","published-print":{"date-parts":[[2025,6,22]]}},"alternative-id":["10.1145\/3728903"],"URL":"https:\/\/doi.org\/10.1145\/3728903","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,22]]}}}