RuleDroid: LLM-Augmented Synthesis of Static Security Detection Rules for Android Apps
IEEE Transactions on Software Engineering · 2026-08 · 52 (8) · 2488-2506
DOI: 10.1109/tse.2026.3700217 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2026-08. Verfasst von Zhentao Xie und 6 weiteren Autor:innen. Die Arbeit nennt 62 Literaturangaben. Gefördert von: Natural Science Foundation of Shandong Province, Open Research Fund of the State Key Laboratory of Internet Architecture.
Abstract (Originalsprache)
Android’s vast ecosystem and expansive API surfaces pose a serious challenge to static application security testing (SAST) tools. Mainstream tools such as MobSF, APKHunt, and AUSERA mainly rely on manually crafted rules. Crafting these rules demands considerable effort, yet they still cannot cover every security issue. When Android introduces new APIs, changes its permission model, or revises other security policies, the rules soon fall behind. Without constant maintenance, false positives grow, and true vulnerabilities slip through. Recently released LLM-based detectors are easy to use and potentially support a wide range of vulnerability types, but their findings often lack clear explanations and suffer from high false-positive rates. In this paper, we present RuleDroid, a new framework that leverages LLMs to automatically generate Semgrep-compatible static detection rules from up-to-date official Android security documentation. RuleDroid tackles the limits of pure LLM detection by combining (i) Retrieval-Augmented Generation (RAG), which grounds model outputs in trusted documents, and (ii) a modular workflow that decomposes rule synthesis into well-defined stages. The resulting rules are then applied with proven static-analysis techniques, ensuring consistent and explainable results. We evaluated RuleDroid on three public benchmark datasets. Based on its large and precise rule set, RuleDroid achieved higher coverage and accuracy than traditional SAST tools, and sharply reduced false positives compared with direct LLM scanning. When applied to real-world apps, RuleDroid discovered multiple new vulnerabilities, resulting in 57 CVE IDs being assigned. These results show that RuleDroid combines the broad vulnerability coverage of LLMs with the precision of static analysis, delivering a fully automated docs-to-rules solution for Android security testing.
Förderung
- Natural Science Foundation of Shandong Province
- Open Research Fund of the State Key Laboratory of Internet Architecture
Zitieren
APA
Xie, Z., Chen, M., Gao, Y., Yang, S., Diao, W., Liu, X., & Zhang, K. (2026). RuleDroid: LLM-Augmented Synthesis of Static Security Detection Rules for Android Apps. IEEE Transactions on Software Engineering, 52(8), 2488-2506. https://doi.org/10.1109/tse.2026.3700217
Vancouver
Xie Z, Chen M, Gao Y, Yang S, Diao W, Liu X, et al. RuleDroid: LLM-Augmented Synthesis of Static Security Detection Rules for Android Apps. IEEE Transactions on Software Engineering. 2026;52(8):2488-2506. doi:10.1109/tse.2026.3700217
BibTeX
@article{Xie2026,
author = {Xie, Zhentao and Chen, Mingyang and Gao, Yaqi and Yang, Shishuai and Diao, Wenrui and Liu, Xiangyu and Zhang, Kehuan},
title = {RuleDroid: LLM-Augmented Synthesis of Static Security Detection Rules for Android Apps},
journal = {IEEE Transactions on Software Engineering},
year = {2026},
volume = {52},
number = {8},
pages = {2488--2506},
doi = {10.1109/tse.2026.3700217}
}
EUVIMED