Apposcopy: semantics-based detection of Android malware through static analysis

Yu Feng, Saswat Anand, Isil Dillig, Alex AikenSIGSOFT FSE 2014

TL;DR

This paper introduces Apposcopy, a novel static analysis framework for detecting Android malware that steals private user information. By combining a high-level, semantics-based signature language with a powerful inter-component call graph (ICCG) and taint analysis, Apposcopy effectively identifies malicious applications while being resilient to common obfuscation techniques.

What Problem Does This Paper Address?

The proliferation of Android malware, particularly those designed to exfiltrate sensitive user data, poses a significant threat. Existing detection methods, such as low-level signature matching and basic taint analysis, have limitations. Low-level signatures are easily circumvented by obfuscation, while taint analysis alone struggles to distinguish malicious data leaks from legitimate app functionality (e.g., an email client sharing contact information). This gap necessitates a more robust and semantically aware approach to malware detection.

Methods

Apposcopy tackles this problem with a two-pronged approach:

  • Semantics-Based Signature Language: The core innovation is a high-level Datalog-based language for defining malware signatures. These signatures describe the semantic characteristics of malware families, focusing on control-flow and data-flow properties rather than specific byte sequences. This makes them more resistant to code transformations.
  • Static Analysis Engine: To match these signatures, Apposcopy employs a sophisticated static analysis that builds an Inter-Component Call Graph (ICCG). This graph represents how different components within an Android application communicate.
  • Pointer Analysis: A precise, field- and context-sensitive Andersen-style pointer analysis is used to accurately determine which variables can point to which abstract heap objects.
  • ICCG Construction: This analysis, combined with intent analysis (tracking intent targets, actions, and data), constructs the ICCG.
  • Taint Analysis: A static taint analysis tracks the flow of sensitive data from sources (e.g., getDeviceId()) to sinks (e.g., sendTextMessage()). This is crucial for identifying data exfiltration.

The signature matching algorithm then uses the ICCG and taint analysis results to determine if an application exhibits the specified semantic properties of a known malware family.

Datasets

The paper evaluates Apposcopy on:

  • Real-world Android applications: A corpus of real-world Android applications was used.
  • Android Malware Genome Project: 1027 malware instances from this project were used for evaluation.
  • Google Play Apps: Thousands of applications from the Google Play store were analyzed to assess false positive rates.
  • Obfuscated Malware: Obfuscated versions of known malware (using ProGuard and custom obfuscations) were used to test resilience.

No new benchmarks were introduced; existing malware datasets were leveraged.

Key Insights and Ideas

  • Semantics over Syntax: The paper strongly advocates for describing malware behavior based on its semantic intent (what it does) rather than its syntactic implementation (how it's written). This is key to overcoming obfuscation.
  • ICCG as a Core Representation: The Inter-Component Call Graph is a powerful abstraction for understanding Android application structure and inter-component communication, enabling precise control-flow analysis.
  • Taint Analysis Needs Context: While taint analysis is essential for detecting data leaks, it's insufficient on its own. Apposcopy's success lies in integrating it with semantic signatures that provide context for what constitutes malicious behavior.
  • Resilience to Obfuscation: The semantic nature of the signatures and the robust static analysis pipeline make Apposcopy significantly more resistant to common obfuscation techniques compared to traditional signature-based methods.

Key Results

  • High Accuracy on Known Malware: Apposcopy achieved an overall accuracy of 90.0% on the Android Malware Genome Project dataset. When excluding the challenging BaseBridge family (which uses dynamic code loading), accuracy increased to 96.9%.
  • Low False Positives: The system demonstrated a very low false positive rate (less than 0.2% on the malware dataset), indicating its precision in distinguishing benign from malicious apps.
  • Effectiveness on Google Play: When tested on Google Play apps, Apposcopy flagged only 16 out of 11,215 apps as malware, with most of these classifications aligning with VirusTotal results.
  • Robustness to Obfuscation: Apposcopy successfully detected 100% of obfuscated malware samples, while other commercial tools struggled significantly (success rates as low as 14.3%).
  • Performance: Analysis time was moderate, averaging 275 seconds per analyzed application (18,200 lines of bytecode).

Limitations and Future Work

  • Limitations:
    • Dynamic Code Loading: Malware that heavily relies on dynamic code loading is challenging for static analysis.
  • Signature Writing Effort: While the language is high-level, writing comprehensive signatures for each malware family still requires manual effort and expertise.
  • Missing Models: The analysis relies on pre-defined models of the Android SDK. Incomplete models can lead to false negatives.
  • Future Work:
    • Improve Efficiency and Precision: Further optimization of static analyses.
  • De-obfuscation Techniques: Developing methods to automatically de-obfuscate apps to enhance resilience.
  • Automated Signature Learning: Exploring techniques to automatically learn malware signatures from labeled datasets.

Summary updated

BibTeX
@inproceedings{feng2014apposcopy,
  author = {Yu Feng and Saswat Anand and Isil Dillig and Alex Aiken},
  title = {{Apposcopy: semantics-based detection of Android malware through static analysis}},
  booktitle = {SIGSOFT FSE},
  year = {2014},
  doi = {10.1145/2635868.2635869},
}
Figure