[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-496380-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-496380-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","testing-intermediate-representations-for-binary-analysis","Testing Intermediate Representations for Binary Analysis","","Binary lifting translates executable code into a high-level intermediate representation, a foundational step for binary analysis. Existing testing methods for binary lifters provide limited coverage and often rely on random test generation, leaving many semantic faults undetected. This work presents a systematic testing approach and its implementation, evaluated on three state-of-the-art lifters, uncovering 24 previously unknown semantic bugs and demonstrating the high difficulty of writing correct lifters.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/testing-intermediate-representations-for-binary-analysis/496380/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/testing-intermediate-representations-for-binary-analysis/496380.png","ImageObject",300,407,{"name":42,"@type":43},"Oliver","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-10-02",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is binary lifting and why is it important in binary analysis?","Question",{"text":63,"@type":64},"Binary lifting translates a binary executable into an intermediate representation that captures the program’s operational semantics. Many binary analysis techniques depend on this IR, so faults in the IR can invalidate downstream results.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Why do existing approaches to testing binary lifters have low coverage?",{"text":68,"@type":64},"They largely depend on random test case generation, but semantic bugs often require specific operand values. Random testing therefore misses rare trigger conditions.",{"name":70,"@type":61,"acceptedAnswer":71},"What does the paper propose to improve testing effectiveness?",{"text":72,"@type":64},"It introduces a systematic method called N-version IR testing, aiming to find semantic bugs in binary lifters without relying on randomly generated test cases.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},496380,1792188593,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":112,"preview_page_count":33,"preview_urls":145},8796095461610,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Testing Intermediate Representations for Binary Analysis  \nSoomin Kim􀀃 , Markus Faerevaag􀀃 , Minkyu Jung􀀃 , SeungIl Jung􀀃 , DongYeop Oh􀀃 , JongHyup Leey , Sang Kil Cha􀀃  \n􀀃 KAIST, Republic of Korea  \nfsoomink, mfaerevaag, hestati, sijung, oh51dy, [sangkilc](sangkilcg@kaist.ac.kr)[g](sangkilcg@kaist.ac.kr)[@kaist.ac.kr](sangkilcg@kaist.ac.kr)  \nyGachon University, Republic of Korea  \n[jonghyup@gachon.ac.kr](jonghyup@gachon.ac.kr)  \nAbstract—Binary lifting, which is to translate a binary executable to a high-level intermediate representation, is a primary step in binary analysis. Despite its importance, there are only few existing approaches to testing the correctness of binary lifters. Furthermore, the existing approaches suffer from low test coverage, because they largely depend on random test case generation. In this paper, we present the design and implementation of the ﬁrst systematic approach to testing binary lifters. We have evaluated the proposed system on 3 state-of-the-art binary lifters, and found 24 previously unknown semantic bugs. Our result demonstrates that writing a precise binary lifter is extremely difﬁcult even for those heavily tested projects.  \nI. INTRODUCTION  \nUnderstanding binary code is crucial in software engineering and security research. Source code is not available when it comes to Commercial Off-The-Shelf (COTS) software, malware, or legacy code. Even if we have access to the source code, we cannot trust it when the compiler is not in the trusted computing base [54] . Last but not least, even a trusted compiler can produce binary code that is semantically different from the source code [10] .  \nIn the past few decades, there has been much research on binary code analysis and its applications including binary instrumentation [13], [36], [40], [46], binary translation [20], software hardening [16], [26], [59], [60], software testing [9],[17], [27], CPU emulation [12], [42], malware detection [18],[33], automated reverse engineering [21], [38], [39], [52], [57], and automatic exploit generation [15] .  \nThe very ﬁrst step in binary analysis is to convert a binary executable into an Intermediate Representation (IR), which precisely represents the operational semantics of the binary code. Such a process is often referred to as binary lifting, and nearly all of the above approaches involve binary lifting either explicitly or implicitly. The converted IR is the basis for any binary analysis techniques. Therefore, any bug in the resulting IR can immediately invalidate the binary analysis results. A taint-based malware detection system [58] can report false alarms. Instrumented programs can fail or even crash. For example, a single IR bug in QEMU indeed resulted in a failure of the entire system emulation [5] .  \nUnfortunately, engineering a precise binary lifter is notoriously difﬁcult. First, the volume of an instruction set manual is too large to comprehend. For example, the manuals for Intel [2] and ARM [1] currently consist of 4,700 and 6,354 pages, respectively, at the time of writing. Even worse, the number keeps increasing as new CPU features are introduced. Furthermore, the semantics of CPU instructions are often informally (and vaguely) deﬁned in natural language. Finally, there are undeﬁned or undocumented semantics that are implemented on a real CPU. Thus, developers often write IRson a trial-and-error basis, which is error-prone.  \nDespite these issues, there has been surprisingly little effort on testing the correctness of binary lifters. The most relevant work to date is that of Martignoni et al. [43], [44], which attempted to leverage differential testing on QEMU [12] and Bochs [37] . Particularly, they compared the state between a physical and an emulated CPU after executing randomly chosen instructions on both to discover any semantic deviations.  \nAlthough their technique can be applied to testing binary lifters, it is fundamentally limited because its effectiveness largely depends on r","cbCaihq6xo7TcYpD","https://ap.wps.com/l/cbCaihq6xo7TcYpD","pdf",429797,12,"English","# Abstract\n# I. Introduction\n## Motivation and Background\n## Why Testing Binary Lifters Is Difficult\n## Related Work\n## Limitations of Random Testing\n## Research Question and Proposed Direction","[{\"question\":\"What is binary lifting and why is it important in binary analysis?\",\"answer\":\"Binary lifting translates a binary executable into an intermediate representation that captures the program’s operational semantics. Many binary analysis techniques depend on this IR, so faults in the IR can invalidate downstream results.\"},{\"question\":\"Why do existing approaches to testing binary lifters have low coverage?\",\"answer\":\"They largely depend on random test case generation, but semantic bugs often require specific operand values. Random testing therefore misses rare trigger conditions.\"},{\"question\":\"What does the paper propose to improve testing effectiveness?\",\"answer\":\"It introduces a systematic method called N-version IR testing, aiming to find semantic bugs in binary lifters without relying on randomly generated test cases.\"}]","Testing Intermediate Representations for Binary Analysis | PDF",1790931428,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/be354cd1eacfcccdc78a551b5719cc04.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/078e924f05e885e72c8331b2616bbc9d.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/28a78813b0be92817ff9639df84bda30.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/efe7eb39250b5d045986fa7628eeed35.webp",980,1268]