Exploring Explicit Uncertainty for Binary Analysis (EUBA)

Michelle Leger, Michael Darling, Stephen E. Jones, Laura E. Matzen, David John Stracuzzi, A. Wilson, Denis Bueno, Matthew Christentsen, Melissa Ginaldi, David Hannasch, Scott Heidbrink, Breannan Howell, Chris Leger, Geoffrey Reedy, Alisa Rogers, Jack M. Williams2021

TL;DR

This paper introduces EUBA, a framework for explicitly representing and controlling uncertainty in binary analysis. By exposing "knobs" to analysts, EUBA aims to improve accuracy and speed in reverse engineering tasks, making powerful analysis tools more trustworthy and effective.

What Problem Does This Paper Address?

Reverse engineering (RE) is a critical but challenging task. Analysts need to understand binary code's safety and functionality quickly and accurately. However, current analysis tools often provide approximations, introducing uncertainty into their results. This uncertainty can cascade through subsequent analyses, leading to errors and a lack of trust in the tools. Analysts, especially novices, struggle to identify and manage these uncertainties, hindering their ability to tackle complex problems. The paper addresses this by proposing a way to make uncertainty explicit and controllable within binary analysis tools, aiming to empower analysts to use these tools more effectively.

Methods

The research combines expertise from binary analysis algorithms, human cognition, uncertainty quantification, verification and validation, and visualization. Key methods include:

  • Developing exploratory frameworks:
    • A pointer analysis framework for a simple mini-language to explore "loosening" and chaining of pointer analysis, and to characterize uncertainty.
  • A control flow graph (CFG) reachability characterization framework to inject uncertainty (missing information) and analyze its impact.
  • Human studies:
    • Experiments with novice and expert reverse engineers analyzing code snippets to understand how they handle uncertainty.
  • Domain-general experiments using underconstrained Sudoku puzzles to explore cognitive processes and derive guidelines for uncertainty visualization.
  • Analogy-based reasoning:
    • Exploring analogies between reverse engineering and exploratory data analysis (EDA) to understand uncertainty in manual analysis.
  • Drawing parallels between Sudoku puzzles and pointer analysis to develop domain-general tests.

Datasets

  • Hand-crafted code snippets: 24 C-like snippets designed to represent information flow problems, with precise, imprecise, or no Value-Set Analysis (VSA) information. These were used in a human study.
  • DARPA Cyber Grand Challenge (CGC) binaries: Used for novice RE exemplar activities.
  • Underconstrained Sudoku puzzles: A set of 22 puzzles used for domain-general cognitive experiments.
  • x86_sok compiler ground truth: Used for CFG reachability analysis experiments.

Key Insights and Ideas

  • Uncertainty is inherent and cascading: Binary analysis tools approximate, introducing uncertainty that propagates through the analysis pipeline.
  • "Knobs" for control: Exposing "knobs" to analysts allows them to control algorithmic uncertainty, leading to more effective RE.
  • Analogy to EDA: Reverse engineering shares similarities with exploratory data analysis, suggesting that techniques from EDA might be adapted for RE.
  • Sudoku as a proxy: Underconstrained Sudoku puzzles can serve as a useful domain-general analog for exploring cognitive processes related to analysis and uncertainty.
  • Precision vs. Imprecision: Precise VSA information improves both speed and accuracy, while imprecise VSA information improves accuracy at the cost of speed.
  • Novices benefit from VSA: VSA information, even imprecise, helps novice analysts perform more like experts.

Key Results

  • Pointer Analysis: Precise VSA information improved speed and accuracy in information flow problems. Imprecise VSA information improved accuracy but decreased speed.
  • Sudoku Experiments: Giving participants more control ("knobs") did not significantly impact their performance in domain-general Sudoku, suggesting similar approaches might be safe in binary analysis.
  • CFG Uncertainty: Preliminary results indicate that "basic" edge types (fall-through, conditional jumps, unconditional jumps) are important for CFG recovery, while indirect jumps and tail calls are problematic.
  • Human Studies: Precise VSA information led to participants adopting strategies more similar to experts.

Limitations and Future Work

  • Technical Readiness: The technical readiness of the results remains low, with a focus on knowledge sharing and experimental platforms.
  • Generalizability: The applicability of findings from simple mini-languages and Sudoku to complex, real-world binary analysis needs further investigation.
  • Uncertainty Definition: A clear, universally accepted definition of uncertainty in binary analysis is still lacking.
  • Future Work: The paper suggests numerous avenues for future research, including:
  • Developing more robust uncertainty quantification techniques.
  • Creating better visualizations for uncertainty.
  • Exploring the impact of different types of uncertainty on analysts.
  • Automating stimuli generation for experiments.
  • Investigating the role of experience in handling uncertainty.
  • Further research into the analogy between RE and EDA.

Summary updated

BibTeX
@misc{leger2021exploring,
  author = {Michelle Leger and Michael Darling and Stephen E. Jones and Laura E. Matzen and David John Stracuzzi and A. Wilson and Denis Bueno and Matthew Christentsen and Melissa Ginaldi and David Hannasch and Scott Heidbrink and Breannan Howell and Chris Leger and Geoffrey Reedy and Alisa Rogers and Jack M. Williams},
  title = {{Exploring Explicit Uncertainty for Binary Analysis (EUBA)}},
  year = {2021},
  doi = {10.2172/1832314},
}

Loading related content...

Figure