Security
Framework detects hidden security flaws where Android native code meets JavaScript
Researchers present MifDroid, a new tool that analyzes information flow across the Java-JavaScript boundary in hybrid Android apps, uncovering vulnerabilities that existing analyzers miss.
A new static and dynamic analysis framework called MifDroid addresses a critical blind spot in Android security: vulnerabilities that emerge when native code and JavaScript exchange data through the WebView interface.
The Cross-Language Challenge#
Hybrid Android applications often use WebView to allow Java code on the native side to communicate with JavaScript on the web side. This architectural pattern creates information flow channels that neither traditional Java analyzers nor web-focused tools can properly examine. Existing approaches to hybrid app security either build limited call graphs without comprehensive data-flow analysis, rely on overly broad assumptions, or focus exclusively on web-side vulnerabilities—leaving cross-language exploits undetected.
How MifDroid Works#
The framework combines static and dynamic analysis strategies. It constructs a lifecycle-aware call graph specific to each WebView instance, implements a type-and-effect system that tracks data flows across the Java-JavaScript bridge, and includes a modular JavaScript analyzer. The dynamic analysis phase complements the static phase by filling gaps: static analysis alone produced 444 entries, but guided dynamic testing added 662 more, nearly doubling coverage.
Real-World Results#
Researchers tested MifDroid on 338 apps from F-Droid (a subset of 4,126 total) that use addJavascriptInterface, the primary mechanism enabling Java-JavaScript communication. The combined approach achieved a 74.5% resolution rate—compared to just 36.5% with static analysis alone. For 115 apps, static analysis yielded no bridge-related information flow at all; dynamic analysis recovered the missing data.
The tool identified 14 vulnerable cross-language information flows in the tested apps. Five of these issues have already been confirmed and fixed by app maintainers, demonstrating that the framework surfaces genuine, actionable security problems.
Why It Matters#
As hybrid development remains common in Android, tools that bridge the analysis gap between languages are essential for identifying real-world exploits that single-language scanners overlook.

