Monet: A User-Oriented Behavior-Based Malware Variants Detection System for Android

Mingshen Sun, Xiaolei Li, John C. S. Lui, Richard T. B. Ma, Zhenkai Liang · DOI

TL;DR

Monet is a dual-layered detection system that identifies Android malware variants by combining static logic structures with real-time behavior. By representing an app’s core actions as a "Runtime Behavior Graph," it achieves 99% detection accuracy and remains resilient against sophisticated code obfuscation that typically baffles traditional anti-virus engines.

What Problem Does This Paper Address?

The Android ecosystem is under constant siege, with roughly one million new malware samples discovered every quarter. However, there is a catch: over 98% of these are not "new" in the creative sense—they are variants or derivatives of known malware families.

Malware authors use "transformation attacks" (like renaming classes, encrypting strings, or reordering instructions) to change the file's digital signature while keeping the malicious logic intact. Existing solutions fall into two camps, both with flaws:

  1. Static Analysis: Fast but easily bypassed by simple code obfuscation.
  2. Dynamic Analysis: More robust but often heavy on battery life or prone to "false alarms" that annoy users.

The authors of Monet sought a "user-oriented" middle ground: a system lightweight enough to run on a phone that provides high-fidelity detection without draining the battery.

Methods

Monet uses a hybrid approach that splits the workload between a client app (on the phone) and a backend server. Its core innovation is the Runtime Behavior Signature (RBS), which consists of two parts:

  • Runtime Behavior Graph (RBG): This is a directed graph where nodes represent app components (like Activities or Services) and edges represent "Binder" calls (the way Android components talk to each other).
  • Suspicious System Call Set (SSS): A log of potentially dangerous low-level actions, specifically socket() (network access) and execve() (executing external programs).

The Secret Sauce: Graph Decoupling

Because many Android threats are "repackaged" (malicious code injected into a popular benign app), the resulting behavior graph is a messy mix of good and evil. Monet uses a Graph Decoupling algorithm to strip away standard system components and isolate disconnected subgraphs. This allows the backend to compare only the "suspicious" parts of the graph against known malware families using a Graph Edit Distance algorithm.

To capture this data without modifying the phone's firmware, the authors implemented:

  1. JNI Hooking: To intercept high-level Java-to-Native calls.
  2. Loadable Kernel Module (LKM): To intercept low-level system calls directly in the Linux kernel.

Datasets

The researchers evaluated Monet using a massive collection of samples:

  • Malware: 3,723 samples drawn from the Android Malware Genome Project, DroidAnalytics, and the Contagio minidump.
  • Benign: The top 500 apps from the Google Play Store to test for false positives.
  • Transformation Benchmarks: 45 obfuscated versions of a custom malware (o5android) generated using tools like ADAM and DroidChameleon.

Key Insights and Ideas

  • Behavior is Harder to Hide than Code: While a hacker can easily change a variable name or encrypt a string, the sequence of events required to steal a contact list or send a premium SMS remains remarkably consistent across variants.
  • The "Skeleton" Matters: By generating a "Static Behavior Graph" (SBG) at installation and then "completing" it with runtime data, Monet creates a structural fingerprint that is much harder to forge than a simple text-based signature.
  • Efficiency through B+ Trees: To make graph matching scalable, the backend uses a B+ tree to index malware signatures by the number of nodes in their graphs. This allows the server to skip comparing a 10-node suspicious graph against a 200-node malware signature, drastically speeding up detection.

Key Results

  • High Accuracy: Monet achieved ~99% accuracy in detecting variants within the DroidKungfu family.
  • Obfuscation Resilience: It successfully detected 40 out of 45 malware samples that had undergone 12 different types of transformation attacks (the 5 misses were due to the transformations crashing the app itself).
  • Low Overhead: The system is remarkably "quiet." It incurs only a 7% performance overhead and a 3.2% to 5.5% battery drain, making it practical for daily use on consumer devices.
  • Fast Detection: The total time to detect a sample (including data transmission to the server) is typically under three seconds.

Limitations and Future Work

The authors acknowledge a significant hurdle: Android 5.0 (Lollipop). This version introduced the Android Runtime (ART), which uses Ahead-of-Time (AOT) compilation. The authors' current method of intercepting Binder calls via the Dalvik virtual machine may not translate directly to ART.

Additionally, the system relies on "triggering" the malware. If a malicious payload only activates under very specific conditions (e.g., on a specific date), a one-minute runtime scan might miss it. Future work involves improving automatic behavior triggering to ensure more comprehensive coverage.

Summary updated

BibTeX
@article{sun2017monet,
  author = {Mingshen Sun and Xiaolei Li and John C. S. Lui and Richard T. B. Ma and Zhenkai Liang},
  title = {{Monet: A User-Oriented Behavior-Based Malware Variants Detection System for Android}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2017},
  doi = {10.1109/tifs.2016.2646641},
}
Figure