Skip to main content
QUICK REVIEW

[Paper Review] Ripple: Reflection Analysis for Android Apps in Incomplete Information Environments

Yifei Zhang, Tian Tan|arXiv (Cornell University)|Dec 16, 2016
Advanced Malware Detection TechniquesComputer Science32 references4 citations
TL;DR

This paper introduces Ripple, the first IIE-aware static reflection analysis for Android apps that resolves reflective calls more soundly than traditional string inference by leveraging type inference under incomplete information environments. Evaluated on 17 popular apps, Ripple enables FlowDroid to detect hundreds of previously missed sensitive data leakages with low false positives.

ABSTRACT

Despite its widespread use in Android apps, reflection poses graving problems for static security analysis. Currently, string inference is applied to handle reflection, resulting in significantly missed security vulnerabilities. In this paper, we bring forward the ubiquity of incomplete information environments (IIEs) for Android apps, where some critical data-flows are missing during static analysis, and the need for resolving reflective calls under IIEs. We present Ripple, the first IIE-aware static reflection analysis for Android apps that resolves reflective calls more soundly than string inference. Validation with 17 popular Android apps from Google Play demonstrates the effectiveness of Ripple in discovering reflective targets with a low false positive rate. As a result, Ripple enables FlowDroid, a taint analysis for Android apps, to find hundreds of sensitive data leakages that would otherwise be missed. As a fundamental analysis, Ripple will be valuable for many security analysis clients, since more program behaviors can now be analyzed under IIEs.

Motivation & Objective

  • To identify and empirically study the prevalence of incomplete information environments (IIEs) in real-world Android apps, where critical data-flows for reflection analysis are missing.
  • To address the limitations of existing reflection analysis techniques—particularly string inference—that fail when class/method/field names are non-constant or null.
  • To design and implement Ripple, an IIE-aware reflection analysis that automatically infers reflective targets using type information without requiring user annotations.
  • To demonstrate Ripple’s effectiveness in improving downstream security analyses, such as taint analysis, by enabling detection of previously missed program behaviors.

Proposed method

  • Ripple models incomplete information environments (IIEs) in Android apps where reflective targets cannot be resolved via constant string inference due to missing or unknown data-flows.
  • It performs automatic type inference on reflective call sites, including those with statically unknown or null receiver objects and class/method names.
  • Ripple integrates with Soot’s Spark pointer analysis to propagate type information and infer reflective targets even when string constants are unavailable.
  • The approach subsumes standard string inference by handling both constant and non-constant string cases, including nulls, through sound over-approximation.
  • It uses flow- and context-insensitive pointer analysis to track object types and infer the actual classes, methods, or fields targeted by reflection at runtime.
  • Ripple is designed to be integrated with existing static security analysis frameworks like FlowDroid to improve code coverage and precision.

Experimental results

Research questions

  • RQ1How prevalent are incomplete information environments (IIEs) in real-world Android apps, and what are their primary sources?
  • RQ2To what extent do traditional string inference-based reflection analysis techniques fail in IIEs due to non-constant or null reflective target names?
  • RQ3Can an IIE-aware reflection analysis like Ripple improve the precision and soundness of static taint analysis in detecting sensitive data leakages?
  • RQ4How does Ripple’s type-inference-based approach compare to string inference in terms of false positive rates and detection coverage?
  • RQ5What is the impact of integrating Ripple with a downstream taint analysis tool like FlowDroid in real-world Android applications?

Key findings

  • IIEs are ubiquitous in real-world Android apps, arising from obfuscation, unsound library summaries, unmodeled Android services, and complex features like callbacks and ICC.
  • String inference-based reflection analysis misses reflective targets when class/method/field names are non-constant or null, leading to significant false negatives in security analysis.
  • Ripple successfully resolves reflective targets in IIEs by performing automatic type inference, subsuming traditional string inference and improving soundness.
  • Evaluation on 17 popular Google Play apps shows Ripple enables FlowDroid to detect hundreds of sensitive data leakages that were previously missed.
  • The integration of Ripple with FlowDroid achieves a low false positive rate while significantly improving detection coverage for security vulnerabilities.
  • Ripple’s approach is effective and scalable, demonstrating that IIE-aware reflection analysis is essential for sound and precise static security analysis in Android apps.

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.