LLM-based taint analysis reaches 0.96 F1, far surpassing FlowDroid's 0.55
Off-the-shelf LLMs can reason about Android taint flows more accurately than traditional static tools
arXiv 25 Aug 2026 Method Prototype evidence
Published as “Towards LLM-Enhanced Android Taint Analysis”
Why it matters
LLM reasoning can complement static taint analysis by uncovering leaks in scenarios where traditional models struggle, motivating hybrid analysis pipelines.
Summary
Gemini-3 Flash achieves an F1-score of 0.96 on DroidBench, far surpassing FlowDroid's 0.55. The LLM-based approach especially improves recall in hard categories such as inter-component communication, implicit flows, and reflection. On a tiny set of five real-world apps it uncovered 16 true-positive leaks that FlowDroid missed, though it also produced one hallucinated flow. The evidence is based on a single public benchmark and a very small real-world sample, so the results are preliminary.
What they found 2
- Gemini-3 Flash attains an F1-score of 0.96 versus 0.55 for FlowDroid on DroidBench.
“Gemini-3 Flash achieves an F1-score of 0.96, compared to 0.55 for FlowDroid.”
- In real-world apps the LLM identified 16 additional true-positive leaks out of 17 reported flows.
“16 out of the 17 additional flows correspond to true positives, while one was revealed to be a hallucination from the LLM.”
Caveats 4
- The LLM-based approach also misses several flows detected by FlowDroid.
- DynamicLoading category: Gemini-3 Flash F1-score is 0.00, the same as FlowDroid.
- Our approach inherits well-known limitations of LLMs, including hallucinations and non-deterministic behavior.
- In this preliminary study, we intentionally compare against the default configuration of FlowDroid to reflect a common usage scenario.
What’s new here 4
- Uses off-the-shelf LLMs without any handcrafted Android framework models.
- Employs an agentic interaction protocol (MCP) that lets the LLM iteratively explore decompiled code and native binaries.
- Demonstrates that LLM reasoning can recover taint flows missed by a traditional static analyzer.
- Provides an initial hybrid analysis perspective, suggesting selective LLM use for challenging cases.