Skip to main content
QUICK REVIEW

[Paper Review] Discovering Flaws in Security-Focused Static Analysis Tools for Android using Systematic Mutation

Richard Bonett, Kaushal Kafle|arXiv (Cornell University)|Jun 25, 2018
Advanced Malware Detection TechniquesComputer Science68 references14 citations
TL;DR

This paper proposes the Mutation-based Soundness Evaluation (μSE) framework to systematically uncover undocumented unsound design flaws in Android static analysis tools by injecting security-relevant code mutations. Applying μSE to data leak detection tools revealed 13 hidden flaws in a major tool, all of which propagated to dependent tools, with one flaw successfully fixed in collaboration with developers.

ABSTRACT

Mobile application security has been one of the major areas of security research in the last decade. Numerous application analysis tools have been proposed in response to malicious, curious, or vulnerable apps. However, existing tools, and specifically, static analysis tools, trade soundness of the analysis for precision and performance, and are hence soundy. Unfortunately, the specific unsound choices or flaws in the design of these tools are often not known or well-documented, leading to a misplaced confidence among researchers, developers, and users. This paper proposes the Mutation-based soundness evaluation ($\\mu$SE) framework, which systematically evaluates Android static analysis tools to discover, document, and fix, flaws, by leveraging the well-founded practice of mutation analysis. We implement $\\mu$SE as a semi-automated framework, and apply it to a set of prominent Android static analysis tools that detect private data leaks in apps. As the result of an in-depth analysis of one of the major tools, we discover 13 undocumented flaws. More importantly, we discover that all 13 flaws propagate to tools that inherit the flawed tool. We successfully fix one of the flaws in cooperation with the tool developers. Our results motivate the urgent need for systematic discovery and documentation of unsound choices in soundy tools, and demonstrate the opportunities in leveraging mutation testing in achieving this goal.

Motivation & Objective

  • To address the lack of systematic evaluation of unsound design choices in security-focused static analysis tools for Android.
  • To identify and document undocumented flaws in widely used static analysis tools that compromise soundness.
  • To demonstrate that flawed design choices in one tool can propagate to other tools that inherit its logic.
  • To provide a semi-automated framework that enables researchers and developers to detect, analyze, and fix such flaws.
  • To promote transparency and robustness in static analysis tools by leveraging mutation testing from software engineering.

Proposed method

  • The μSE framework generates security operators tailored to specific analysis goals, such as detecting private data leaks or SSL vulnerabilities.
  • These operators are injected into real Android applications to create mutants representing targeted unwanted behaviors.
  • A dynamic execution engine (EE) is used to determine which mutants are executable and thus should be detectable by the target tool.
  • Mutants that are not detected by the static analysis tool are flagged for manual analysis to identify underlying flaws in the tool’s design.
  • The framework applies a semi-automated workflow that filters out non-executable mutants to reduce analyst workload.
  • The method is validated by applying μSE to prominent static analysis tools, including FlowDroid and IccTA, for data leak detection.

Experimental results

Research questions

  • RQ1What types of undocumented unsound design choices exist in security-focused static analysis tools for Android?
  • RQ2How do flaws in one static analysis tool propagate to other tools that reuse or inherit its logic?
  • RQ3Can mutation analysis be effectively adapted to systematically evaluate the soundness of static analysis tools in the context of Android security?
  • RQ4To what extent can the μSE framework detect and expose flaws that are missed by traditional testing approaches?
  • RQ5How can the framework be used to improve tool transparency and guide developers in fixing identified flaws?

Key findings

  • The μSE framework successfully uncovered 13 undocumented flaws in a widely used open-source Android static analysis tool for detecting private data leaks.
  • All 13 flaws were found to propagate to other tools that inherit the logic of the flawed tool, indicating a systemic risk in the ecosystem.
  • One of the identified flaws was successfully fixed in collaboration with the tool’s developers, demonstrating the framework’s practical utility.
  • The study revealed that many unsound design choices in static analysis tools are neither documented nor known to tool designers, leading to misplaced confidence in their correctness.
  • The framework significantly reduces manual effort by dynamically eliminating non-executable mutants, enabling efficient analysis of undetected mutants.
  • The results highlight the urgent need for systematic evaluation and documentation of unsound choices in static analysis tools to improve their reliability and security.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.