[Paper Review] Too Quiet in the Library: A Study of Native Third-Party Libraries in Android
This paper introduces LibRARIAN, a binary similarity-based method (bin2sim) that identifies native libraries and their versions in Android apps with 92.53% true-positive rate and no false positives. It reveals widespread use of outdated, vulnerable native libraries in top Android apps, highlighting a critical security risk due to lack of updates despite available patches.
Android applications (apps) make avid use of third-party native libraries to increase performance and to reuse already implemented functionality. Native code can be directly executed from apps through the Java Native Interface or the Android Native Development Kit. Android developers drop precompiled native libraries into their projects, enabling their use. Unfortunately, developers are often not aware that these libraries (or their dependencies) must be updated. This results in the continuous use of outdated native libraries with unpatched security vulnerabilities years after patches are available. To assess the severity of the use of outdated and vulnerable libraries in the Android ecosystem, we study the prevalence of native libraries in the top applications of the Google Play market over time, correlating the time when native libraries are updated with the availability of security patches. A core difficulty we have to solve for this research is the identification of libraries and versions. Developers often rename or modify libraries but we require precise information about each binary. Our binary similarity metric bin2sim uses diverse features extracted from the libraries to identify and map the required information. Leveraging this bin2sim, we create an approach called LibRARIAN (LibRAry veRsion IdentificAtioN) that can accurately identify native libraries and their versions as found in Android apps with a a 92.53% true-positive rate, no false positives, and a 7.46% false-negative rate.
Motivation & Objective
- To investigate the prevalence of outdated and vulnerable native libraries in top Android apps on Google Play.
- To address the challenge of identifying native libraries and their versions when developers rename or modify them.
- To develop a precise method for library version identification in compiled Android binaries.
- To correlate library update timelines with public security patch availability to assess risk.
Proposed method
- Propose bin2sim, a binary similarity metric using diverse features extracted from native libraries to identify and map library versions.
- Design LibRARIAN, a system that leverages bin2sim to detect native libraries and their versions in Android apps with high accuracy.
- Extract static and structural features from native binaries, including symbol tables, section headers, and instruction-level patterns.
- Use a multi-stage matching pipeline to compare library binaries against a curated database of known library versions.
- Validate the method using a dataset of real-world Android applications and known library versions.
- Correlate library update times in apps with public security patch release dates to assess vulnerability exposure.
Experimental results
Research questions
- RQ1How prevalent are outdated native libraries in top Android applications on Google Play?
- RQ2To what extent do developers fail to update native libraries after security patches are released?
- RQ3How accurately can native library versions be identified in compiled Android binaries when renaming or modification is common?
- RQ4What is the time lag between public security patch release and library updates in real Android apps?
- RQ5How effective is the bin2sim metric in identifying library versions across modified or obfuscated binaries?
Key findings
- LibRARIAN achieves a 92.53% true-positive rate and 0% false-positive rate in identifying native library versions in Android apps.
- The system reports a 7.46% false-negative rate, indicating some libraries are missed but no incorrect matches are made.
- A significant number of top Android apps continue using native libraries with unpatched security vulnerabilities years after patches are released.
- Many apps do not update native libraries even after security fixes are publicly available, indicating poor maintenance practices.
- The bin2sim metric successfully identifies library versions across modified or renamed binaries, demonstrating robustness to common obfuscation techniques.
- The study reveals a systemic risk in the Android ecosystem due to the long-term use of outdated, vulnerable native libraries.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.