Back to search

EPFL

Precise, Large-Scale, Static Binary Analysis For Android Security

Abstract

dc:description

Compiled code is generally treated as _opaque_. Yet reverse engineers routinely uncover vulnerabilities in complex native code. Although decompilers and other analysis tools have improved considerably in recent years, auditing compiled code without its corresponding source code remains expensive: reverse engineering a binary often takes substantially more effort than writing the original source code. While the number of analysis tools has grown, so has the volume of code they must cover. This is especially true on smartphones, where performance-sensitive functionality is frequently implemented in native code. However, the security implications of native code have received insufficient attention: outdated and vulnerable code remains widespread in the Android app ecosystem, and existing techniques do not scale to the number and complexity of available apps. This thesis presents domain-specific techniques that analyze substantially more code than previous approaches while maintaining high accuracy. Our methods are deliberately simple: avoiding costly, general-purpose analyses is key to their effectiveness. Our work focuses on AArch64/Android native code. First, we present _ARMore_, an efficient, robust, heuristic-free static binary rewriter for arbitrary AArch64 binaries. Pointer recovery is the problem that forces other AArch64 rewriters into heuristics; ARMore sidesteps it entirely by replicating the original code layout and transparently translating stale pointers. It instruments arbitrary closed-source binaries with negligible overhead, enabling analysts to backport mitigations and to conduct deeper security audits through coverage-guided fuzzing without source code. Second, we study the integration of native libraries into Android apps and its security implications. Native libraries bundled with apps provide performance benefits but lack the memory-safety guarantees of managed Java code. They are difficult to analyze because they interact with the rest of the runtime through the complex, stateful Java Native Interface. We present _Poirot_, a system that automatically synthesizes fuzzing harnesses for native libraries without source code by extracting the app's own native call sequences from its type-rich bytecode and replaying the app's behavior in a stripped-down Android runtime. Poirot scales to complex Play Store apps and uncovers vulnerabilities in popular applications. Third, we broaden our scope to the entire Android native-library ecosystem and survey how outdated libraries affect app security. Through a large-scale supply-chain analysis that traces binaries back to their upstream packages via exact matching rather than binary similarity, we identify the versions of most bundled native libraries and show that many apps ship code with long-known vulnerabilities. Among them are security-sensitive apps such as banking applications and cryptocurrency wallets. We manually verify that a remote attacker can trigger these vulnerabilities in dozens of popular apps. These contributions help analysts identify problematic native code in Android apps at scale. Our research shows that app vendors often neglect the security of their native dependencies and that existing defenses fail to stop motivated attackers. Improving Android security requires integrating analyses like these directly into app-store vetting, holding vendors accountable for the native code they ship.

Degree

thesis:*
Grantor dc:publisher
EPFL
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Di Bartolomeo, Luca
Contributors dc:contributor
  • Payer, Mathias Josef

Subjects

dc:subject × 10

Rights

Language dc:language
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
EPFL
Base URL
infoscience.epfl.ch/server/oai/openaire4
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Di Bartolomeo, Luca. Precise, Large-Scale, Static Binary Analysis For Android Security. EPFL, 2026. https://doi.org/10.5075/epfl-thesis-11229