Skip to main content
QUICK REVIEW

[Paper Review] ATVHunter: Reliable Version Detection of Third-Party Libraries for Vulnerability Identification in Android Applications

Xian Zhan, Lingling Fan|arXiv (Cornell University)|Feb 16, 2021
Advanced Malware Detection TechniquesComputer Science28 references7 citations
TL;DR

ATVHunter is a static analysis system that enables precise detection of third-party library (TPL) versions in Android apps using a two-phase approach: coarse-grained control flow graph (CFG) matching followed by fine-grained opcode-level analysis. It achieves 90.55% precision and 88.79% recall in TPL version detection and identifies 53,337 vulnerabilities and 7,480 security bugs across 9,050 apps, significantly outperforming existing tools in accuracy and resilience to obfuscation.

ABSTRACT

We propose a system, named ATVHunter, which can pinpoint the precise vulnerable in-app TPL versions and provide detailed information about the vulnerabilities and TPLs. We propose a two-phase detection approach to identify specific TPL versions. Specifically, we extract the Control Flow Graphs as the coarse-grained feature to match potential TPLs in the pre-defined TPL database, and then extract opcode in each basic block of CFG as the fine-grained feature to identify the exact TPL versions. We build a comprehensive TPL database (189,545 unique TPLs with 3,006,676 versions) as the reference database. Meanwhile, to identify the vulnerable in-app TPL versions, we also construct a comprehensive and known vulnerable TPL database containing 1,180 CVEs and 224 security bugs. Experimental results show ATVHunter outperforms state-of-the-art TPL detection tools, achieving 90.55% precision and 88.79% recall with high efficiency, and is also resilient to widely-used obfuscation techniques and scalable for large-scale TPL detection. Furthermore, to investigate the ecosystem of the vulnerable TPLs used by apps, we exploit ATVHunter to conduct a large-scale analysis on 104,446 apps and find that 9,050 apps include vulnerable TPL versions with 53,337 vulnerabilities and 7,480 security bugs, most of which are with high risks and are not recognized by app developers.

Motivation & Objective

  • To address the critical gap in precise, reliable version-level detection of third-party libraries (TPLs) in Android apps.
  • To overcome limitations of existing tools that fail to identify exact TPL versions due to obfuscation, version ambiguity, and incomplete TPL databases.
  • To construct a comprehensive, publicly available database of known vulnerable TPL versions (1,180 CVEs and 224 security bugs) for accurate vulnerability identification.
  • To enable large-scale detection of vulnerable TPLs across real Android apps, revealing widespread exposure to high-risk vulnerabilities.
  • To support developers and app markets by providing actionable insights into TPL security risks and version updates.

Proposed method

  • ATVHunter uses a two-phase detection pipeline: first, it extracts control flow graphs (CFGs) as coarse-grained features to match potential TPLs against a large TPL database.
  • Second, it analyzes opcodes within each basic block of the CFG to perform fine-grained matching and identify the exact TPL version.
  • It builds a comprehensive TPL database of 189,545 unique TPLs with 3,006,676 versions, enabling broad coverage of real-world libraries.
  • It constructs a dedicated vulnerable TPL version database containing 1,180 CVEs and 224 known security bugs for accurate vulnerability correlation.
  • The system is designed to be resilient to common obfuscation techniques such as code shuffling and renaming, ensuring robust detection in obfuscated apps.
  • It leverages static analysis to avoid runtime dependencies and enables efficient, scalable processing of large-scale app corpora.

Experimental results

Research questions

  • RQ1Can a two-phase static analysis approach combining CFG-level and opcode-level features reliably detect exact TPL versions in obfuscated Android apps?
  • RQ2How effective is ATVHunter in identifying vulnerable TPL versions compared to state-of-the-art TPL detection tools in terms of precision and recall?
  • RQ3What is the true scale and risk profile of vulnerable TPL usage across real-world Android applications?
  • RQ4To what extent do existing tools fail to detect vulnerable TPL versions due to limitations in version resolution and database completeness?
  • RQ5How do app developers and app markets currently handle TPL security risks, and what role can automated tools like ATVHunter play in improving this?

Key findings

  • ATVHunter achieves 90.55% precision and 88.79% recall in detecting exact TPL versions, significantly outperforming existing tools in accuracy and robustness.
  • The system successfully identifies 53,337 vulnerabilities and 7,480 security bugs in 9,050 out of 104,446 analyzed Android apps, revealing widespread exposure to high-risk TPLs.
  • ATVHunter is resilient to common obfuscation techniques such as code shuffling and renaming, maintaining high detection accuracy even in heavily obfuscated apps.
  • The study reveals that 78% of vulnerabilities are in indirect dependencies, highlighting the need for precise version-level detection to uncover hidden risks.
  • Many developers remain unaware of vulnerable TPL versions in their apps, and existing app markets lack automated mechanisms to flag such risks, underscoring the need for tools like ATVHunter.
  • The constructed TPL and vulnerable TPL version databases (189k TPLs, 3M versions, 1.18k CVEs, 224 security bugs) are publicly available and serve as a foundational resource for future research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.