JANUS:面向Android原生库的智能体跨语言模糊测试框架生成 JANUS: Agentic Cross-Language Fuzzing Harness Generation for Android Native Libraries 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-21
👁️ 预览文献
💡 AI 中文简介
Android应用通过JNI调用C/C++原生库,但闭源库的跨语言接口难以自动测试。本文提出JANUS,利用智能体工作流自动生成能处理JNI跨语言调用的模糊测试框架,通过迭代解析显式和隐式调用依赖、自底向上组装参数对象,减少人工规则依赖。在44个流行应用(含21,386个JNI方法)上,JANUS生成的有效框架数量是现有工具的5.9倍以上(6,094个),并在五家厂商预装应用中发现了6个未知漏洞。
领域软件安全与程序分析
适合谁读需要一定专业背景(软件安全、程序分析、模糊测试基础)
核心贡献1. 首个利用智能体工作流自动生成跨语言JNI感知模糊测试框架的方法,减少对手工启发式规则的依赖;2. 提出迭代解析显式/隐式跨语言调用依赖和自底向上递归组装复杂参数对象的技术,有效恢复闭源库的运行时上下文。
关键数据在44个流行应用(共21,386个JNI方法)上生成6,094个有效框架,是现有最优工具的5.9倍以上;在五家主流Android厂商预装应用中发现6个此前未知的闭源原生库漏洞。
推荐理由如果你关注Android原生库安全或模糊测试自动化,这篇工作用智能体大幅提升了跨语言测试框架的生成效率,并挖到了真实漏洞,值得一读。
关键词["模糊测试", "跨语言", "JNI", "Android原生库", "智能体", "漏洞挖掘"]

原文摘要

查看英文原文摘要

Modern Android apps extensively rely on native libraries, bridging Java/Kotlin and C/C++ through the Java Native Interface (JNI). This cross-language interoperation, however, exposes the memory-safe Android Runtime to the unsafe C/C++ world, creating an attack surface that has been repeatedly exploited for full device compromise. While fuzzing is a proven technique for vetting native libraries, state-of-the-art harness generation tools struggle to faithfully capture closed-source cross-language API usage: (i) precise program analysis across the JNI boundary does not scale, whereas lightweight approximations miss critical invocation patterns; and (ii) none tackles the construction of complex composite objects consumed by JNI methods. In this paper, we propose JANUS, the first agentic approach to synthesizing cross-language JNI-aware fuzzing harnesses for Android native libraries. JANUS iteratively resolves both explicit and implicit cross-language call dependencies to recover app-specific runtime context, and recursively assembles cross-language argument objects in a bottom-up manner. JANUS leverages an autonomous agentic workflow to reduce reliance on hand-crafted heuristics, capturing the vast landscape of hidden API usage knowledge embedded in closed-source native libraries. Evaluation on 44 popular real-world apps (such as Google and YouTube Music, covering 21,386 JNI methods total) shows that JANUS produces over 5.9 times as many valid harnesses (6,094) as state-of-the-art automatic harnessing tools. On pre-installed apps from five mainstream Android vendors (e.g., Xiaomi, Vivo, Samsung), JANUS further uncovers 6 previously unknown vulnerabilities in closed-source native libraries.