USENIX Security2020Top-tier venue
Datalog Disassembly
Abstract
Disassembly is fundamental to binary analysis and rewriting. We present a novel disassembly technique that takes a stripped binary and produces reassembleable assembly code. The resulting assembly code has accurate symbolic information, providing cross-references for analysis and to enable adjustment of code and data pointers to accommodate rewriting. Our technique features multiple static analyses and heuristics in a combined Datalog implementation. We argue that Datalog's inference process is particularly well suited for disassembly and the required analyses. Our implementation and experiments support this claim. We have implemented our approach into an open-source tool called Ddisasm. In extensive experiments in which we rewrite thousands of x64 binaries we find Ddisasm is both faster and more accurate than the current state-of-the-art binary reassembling tool, Ramblr.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
38 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary cites An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary cites RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped Binary cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization cites An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization cites Ramblr: Making Reassembly Great Again
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Ramblr: Making Reassembly Great Again cites An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- StochFuzz: Sound and Cost-effective Fuzzing of Stripped Binaries by Incremental and Stochastic Rewriting cites An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- StochFuzz: Sound and Cost-effective Fuzzing of Stripped Binaries by Incremental and Stochastic Rewriting cites RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- SymLM: Predicting Function Names in Stripped Binaries via Context-Sensitive Execution-Aware Code Embeddings cites SelectiveTaint: Efficient Data Flow Tracking With Static Binary Rewriting
- SelectiveTaint: Efficient Data Flow Tracking With Static Binary Rewriting cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
- SelectiveTaint: Efficient Data Flow Tracking With Static Binary Rewriting cites Ramblr: Making Reassembly Great Again
- SelectiveTaint: Efficient Data Flow Tracking With Static Binary Rewriting cites SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
Cited by top-tier papers38
- OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao et al.S&P 2021 · 78 citations
- SymLM: Predicting Function Names in Stripped Binaries via Context-Sensitive Execution-Aware Code EmbeddingsXin Jin, Kexin Pei, Jun Yeon Won, Zhiqiang LinCCS 2022 · 56 citations
- StochFuzz: Sound and Cost-effective Fuzzing of Stripped Binaries by Incremental and Stochastic RewritingZhuo Zhang, Wei You, Guanhong Tao, Yousra Aafer et al.S&P 2021 · 53 citations
- SelectiveTaint: Efficient Data Flow Tracking With Static Binary RewritingSanchuan Chen, Zhiqiang Lin, Yinqian ZhangUSENIX Security 2021 · 45 citations
- Elipmoc: advanced decompilation of Ethereum smart contractsNeville Grech, Sifis Lagouvardos, Ilias Tsatiris, Yannis SmaragdakisOOPSLA 2022 · 40 citations
Builds on7
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens et al.S&P 2016 · 1,085 citations
- A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary LevelVictor van der Veen, Enes Göktas, Moritz Contag, Andre Pawlowski et al.S&P 2016 · 227 citations
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and SanitizationSushant Dinesh, Nathan Burow, Dongyan Xu, Mathias PayerS&P 2020 · 187 citations
- An In-Depth Analysis of Disassembly on Full-Scale x86/x64 BinariesDennis Andriesse, Xi Chen, Victor van der Veen, Asia Slowinska et al.USENIX Security 2016 · 162 citations
- Ramblr: Making Reassembly Great AgainRuoyu Wang, Yan Shoshitaishvili, Antonio Bianchi, Aravind Machiry et al.NDSS 2017 · 155 citations
Related papers
- Reassembly is Hard: A Reflection on Challenges and StrategiesHyungseok Kim, Soomin Kim, Junoh Lee, Kangkook Jee et al.USENIX Security 2023
- Disassembly as Weighted Interval Scheduling with Learned WeightsAntonio Flores-Montoya, Junghee Lim, Adam Seitz, Akshay Sood et al.S&P 2025
- Accurate Disassembly of Complex Binaries Without Use of Compiler MetadataSoumyakant Priyadarshan, Huan Nguyen, R. SekarASPLOS 2023 · 7 citations
- Egalito: Layout-Agnostic Binary RecompilationDavid Williams-King, Hidenori Kobayashi, Kent Williams-King, Graham Patterson et al.ASPLOS 2020 · 68 citations
- Debin: Predicting Debug Information in Stripped BinariesJingxuan He, Pesho Ivanov, Petar Tsankov, Veselin Raychev et al.CCS 2018 · 148 citations
