README docs identify Android malware source code with 96.3% accuracy
A README-only classifier can distinguish malware from benign Android repositories with 96.28% accuracy and 1.06% false positive rate
AI/ML arXiv 15 Jun 2026 Benchmark Prototype evidence
Published as “MASCOT-Android: A Curated Dataset and Automated Collection Pipeline for Android Malware Source Code Specimens”
Why it matters
The dataset and README-based pipeline enable scalable collection and analysis of Android malware source code, facilitating research on malware evolution, detection, and LLM influence.
Summary
The README-only LinearSVC model classifies Android malware repositories with 96.28% accuracy and 1.06% false-positive rate, but a real-world deployment shows a performance gap due to more complex READMEs. Import statements are the most discriminative symbolic feature for malware detection, while comments and names add little. LLM-assisted code traces are observed in some specimens. Evidence is based on a 1,093-sample curated dataset and local 5-fold cross-validation.
What they found 3
- README-only classifier achieves high accuracy and low false-positive rate
“Model 1 achieves an overall average accuracy of 96.28%, a Macro-F1 score of 94.95%, and an FPR of 1.06% for classifying README files as malicious or benign.”
- Import statements provide strong discriminative signals for detection
“This result suggests that, compared to other source-level symbolic components, library dependencies, package information, and API-related information reflected by import statements provide strong discriminative signals for malware detection.”
- LLM assistance traces are present in some Android malware source code
“LLM generation probability of p= 0.9990. GPTZero 4.4b classifies the file as mainly human-written but still identifies 13 LLM traces, suggesting that it may have been revised or polished with LLM assistance, as shown in Figure 6.”
Caveats 4
- The one-week deployment study reveals a gap between local and realworld performance, suggesting that README files in the real world are more complex than those in the local test set.
- First, in the described MASCOT-Android dataset, all malicious source code specimens are collected from GitHub.
- Second, due to the lack of an LLM detector specifically designed for source code recently, the visualization in section 5 may reflect only overall trends rather than reliable specimen-level evidence.
- Finally, while preprocessing README files, we preserved some structural information using special characters, such as square brackets, to indicate a figure. This method cannot preserve the actual content represented by these structures, such as figures.
What’s new here 4
- Uses only repository README files to detect malware source code at scale.
- Provides a curated Android malware source-code dataset (1,093 specimens) with manual review.
- Analyzes the impact of different symbolic code components on detection performance.
- Investigates LLM assistance in malware development via code-reuse graphs.