[Paper Review] Automated Synthesis of Semantic Malware Signatures using Maximum Satisfiability
This paper presents Astroid, a tool that automatically synthesizes semantic malware signatures for Android malware families using maximum satisfiability (MaxSAT) to identify a maximally suspicious common subgraph (MSCS) across few malware samples. The approach enables high-accuracy, interpretable detection of both known and zero-day malware with minimal false positives, outperforming manual signatures and state-of-the-art tools.
This paper proposes a technique for automatically learning semantic malware signatures for Android from very few samples of a malware family. The key idea underlying our technique is to look for a maximally suspicious common subgraph (MSCS) that is shared between all known instances of a malware family. An MSCS describes the shared functionality between multiple Android applications in terms of inter-component call relations and their semantic metadata (e.g., data-flow properties). Our approach identifies such maximally suspicious common subgraphs by reducing the problem to maximum satisfiability. Once a semantic signature is learned, our approach uses a combination of static analysis and a new approximate signature matching algorithm to determine whether an Android application matches the semantic signature characterizing a given malware family. We have implemented our approach in a tool called ASTROID and show that it has a number of advantages over state-of-the-art malware detection techniques. First, we compare the semantic malware signatures automatically synthesized by ASTROID with manually-written signatures used in previous work and show that the signatures learned by ASTROID perform better in terms of accuracy as well as precision. Second, we compare ASTROID against two state-of-the-art malware detection tools and demonstrate its advantages in terms of interpretability and accuracy. Finally, we demonstrate that ASTROID's approximate signature matching algorithm is resistant to behavioral obfuscation and that it can be used to detect zero-day malware. In particular, we were able to find 22 instances of zero-day malware in Google Play that are not reported as malware by existing tools.
Motivation & Objective
- To address the high human cost and scalability issues of manually writing semantic malware signatures for Android malware families.
- To reduce false positives and false negatives in malware detection by identifying a maximally suspicious common subgraph (MSCS) shared across all instances of a malware family.
- To enable detection of zero-day and behaviorally obfuscated malware through approximate signature matching.
- To improve interpretability and precision over existing learning-based and signature-based malware detection techniques.
- To demonstrate that automated signature synthesis can match or exceed the performance of manually crafted signatures.
Proposed method
- The method models the problem of finding a maximally suspicious common subgraph (MSCS) as a maximum satisfiability (MaxSAT) problem, where suspicious features are weighted to prioritize high-risk patterns.
- It performs static analysis on Android apps to extract inter-component call graphs and semantic metadata, including data-flow properties, API calls, and intent filters.
- The MSCS is computed by solving a MaxSAT instance that encodes structural and semantic similarities across malware samples, with weights reflecting the suspiciousness of features.
- A novel approximate signature matching algorithm compares unknown apps against the learned MSCS, allowing for syntactic and control-flow variations due to obfuscation.
- The approach integrates with Apposcopy, enabling compatibility with existing signature-based detection pipelines.
- The tool, Astroid, is publicly available and supports rapid signature generation from as few as one to five malware samples.
Experimental results
Research questions
- RQ1Can automated synthesis of semantic malware signatures using MaxSAT outperform manually written signatures in terms of precision and accuracy?
- RQ2Can the learned signatures detect zero-day malware that existing tools miss?
- RQ3How effective is the approximate signature matching algorithm in resisting behavioral obfuscation techniques?
- RQ4Can the method scale to rare or newly emerged malware families with minimal training samples?
- RQ5Does the MaxSAT-based MSCS identification produce more interpretable and reliable signatures than existing learning-based or syntactic approaches?
Key findings
- Astroid’s automatically synthesized signatures outperformed manually-written signatures in both accuracy and precision, with significantly fewer false positives.
- The tool detected 22 previously unknown zero-day malware samples in Google Play that were not flagged by existing tools.
- The approximate signature matching algorithm successfully detected behaviorally obfuscated malware, demonstrating resilience to control-flow and data-flow transformations.
- The method required fewer than five malware samples per family, making it effective for rare or newly emerged malware families.
- The MaxSAT-based MSCS identification achieved high structural and semantic fidelity across malware instances, enabling reliable detection of shared malicious functionality.
- The integration with Apposcopy enabled seamless deployment in existing signature-based detection pipelines, enhancing tool interoperability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.