Introduction
Malware detection in the Android ecosystem typically relies on two distinct paradigms: signature-based detection and learning-based classification. Signature-based methods, while highly interpretable and reliable, often require security experts to spend weeks manually reverse-engineering code to produce a single pattern. Learning-based methods offer automation but frequently function as "black boxes," making it difficult for analysts to understand why an app was flagged. Furthermore, these models require massive datasets, which are often unavailable for new or rare malware families.
ASTROID addresses this "data hunger" and "interpretability gap" by automatically generating human-readable "semantic signatures" for Android malware families using as few as two samples. By framing signature generation as a Maximum Satisfiability (MaxSAT) problem, ASTROID identifies the most suspicious shared behaviors across applications, creating detectors that are more accurate than manual signatures and more resilient to obfuscation than traditional machine learning models.
Methodology: Automated Synthesis
The core of ASTROID is a technique for synthesizing semantic malware signatures from Inter-component Call Graphs (ICCGs).
- Graph Representation: Apps are represented as ICCGs that include semantic metadata. This metadata captures critical information such as data-flow (e.g., "Device ID flows to Internet") and sensitive API calls (e.g., "sendSMS").
- The MSCS Problem: To find a signature, the tool identifies a Maximally Suspicious Common Subgraph (MSCS). This is a pattern that appears in all provided malware samples (ensuring commonality) while containing the most "suspicious" features (ensuring detection power).
- MaxSAT Reduction: Finding the MSCS is computationally intensive. ASTROID solves this by reducing the search to a MaxSAT problem. It employs hard constraints to ensure the signature is a valid subgraph present in all samples and soft constraints to maximize a "suspiciousness score" based on how rarely those features appear in benign applications.
- Approximate Matching: Recognizing that obfuscation can break exact matches, ASTROID calculates a similarity score. If a new application contains a significant portion (e.g., 80%) of a known malware signature, it is flagged as an obfuscated variant.
Key Insights
- Relative Suspiciousness: ASTROID weights features by their rarity. A data flow from "SubscriberID to Internet" is a much stronger signal if it appears in 0.1% of benign apps but 100% of malware samples, compared to a common "Activity" transition.
- Lexicographical Optimization: The authors prioritize different types of suspicious behaviors. Intent filters (how apps are triggered) are prioritized over API calls, which in turn are prioritized over data-flows. This hierarchy guides the MaxSAT solver toward the most meaningful malicious patterns.
- Interpretability: Because the output is a graph of components and flows, a human analyst can immediately interpret the malware's logic—for instance, identifying a receiver that waits for a
BOOT_COMPLETEDsignal to leak device identifiers.
Evaluation and Results
The researchers evaluated ASTROID using the Android Malware Genome Project (1,260 samples), a corpus of over 10,000 Google Play Store apps, and additional samples from Symantec and McAfee.
- Superior Performance: ASTROID’s automatically generated signatures achieved 93.8% accuracy, outperforming the 90% accuracy of manually written signatures from previous state-of-the-art research.
- Few-Shot Success: Unlike traditional models like DREBIN that struggle with small datasets, ASTROID reaches high accuracy with just 2 to 5 samples.
- Zero-Day Detection: Through approximate matching, ASTROID successfully identified 22 instances of zero-day malware on the Google Play Store that were previously undetected.
- Obfuscation Resilience: While standard exact-matching tools saw detection rates drop to 61% against obfuscated code, ASTROID maintained a 94.3% detection rate.
Conclusion and Future Work
ASTROID demonstrates that semantic signatures can be synthesized automatically with high precision and low data requirements. However, the tool's effectiveness is tied to the precision of the underlying static analysis (APPOSCOPY). Future work will focus on improving the handling of dynamic code loading—where apps download malicious payloads post-installation—and expanding the signature database to further enhance zero-day detection.
Summary updated