Skip to main content
QUICK REVIEW

[Paper Review] Finding Tizen security bugs through whole-system static analysis

Daniel Song, Jisheng Zhao|arXiv (Cornell University)|Apr 22, 2015
Advanced Malware Detection TechniquesComputer Science39 references6 citations
TL;DR

This paper presents a whole-system static analysis framework built on LLVM to detect security vulnerabilities in Tizen, a Linux-based open-source platform for consumer devices. By extending LLVM with precise information flow and control flow analyses, the authors identify missing security checks in system libraries and dangerous data flows in apps, uncovering previously unknown flaws that could lead to exploits if unpatched.

ABSTRACT

Tizen is a new Linux-based open source platform for consumer devices including smartphones, televisions, vehicles, and wearables. While Tizen provides kernel-level mandatory policy enforcement, it has a large collection of libraries, implemented in a mix of C and C++, which make their own security checks. In this research, we describe the design and engineering of a static analysis engine which drives a full information flow analysis for apps and a control flow analysis for the full library stack. We implemented these static analyses as extensions to LLVM, requiring us to improve LLVM's native analysis features to get greater precision and scalability, including knotty issues like the coexistence of C++ inheritance with C function pointer use. With our tools, we found several unexpected behaviors in the Tizen system, including paths through the system libraries that did not have inline security checks. We show how our tools can help the Tizen app store to verify important app properties as well as helping the Tizen development process avoid the accidental introduction of subtle vulnerabilities.

Motivation & Objective

  • To address the challenge of detecting subtle security vulnerabilities in Tizen’s large C/C++ codebase, particularly in system libraries where security checks may be missing.
  • To develop a scalable and precise static analysis pipeline that supports both information flow analysis for apps and control flow analysis for system libraries.
  • To enable automated verification of app security properties in the Tizen app store, reducing false positives compared to permission-based checks.
  • To support system-level security hardening by identifying paths in libraries that bypass critical security checks.
  • To create a general-purpose, reusable analysis infrastructure that can be extended to other languages via LLVM front-ends.

Proposed method

  • Built a custom static analysis engine on top of the LLVM infrastructure to perform whole-system analysis across Tizen’s native codebase.
  • Extended LLVM’s analysis capabilities to handle complex C++ features such as inheritance and function pointer usage with high precision.
  • Implemented a whole-program information flow analysis to detect sensitive data leaks from sources like user contacts to sinks like network calls.
  • Performed control flow analysis on system libraries to identify execution paths that bypass security checks, indicating potential vulnerabilities.
  • Used trusted code annotations sparingly to guide analysis and reduce false positives, ensuring practical adoption by developers.
  • Leveraged Heap SSA form to model object-specific data flows, improving precision over traditional taint tracking.

Experimental results

Research questions

  • RQ1Can a whole-system static analysis approach detect previously unknown security flaws in Tizen’s system libraries that bypass security checks?
  • RQ2How effective is LLVM-based information flow analysis in identifying dangerous data flows in Tizen apps while minimizing false positives?
  • RQ3To what extent can static analysis detect vulnerabilities arising from unsafe C/C++ idioms, such as function pointer overwrites or buffer overruns?
  • RQ4Can the integration of static analysis into the Tizen app store pipeline improve security verification without relying solely on permission-based checks?
  • RQ5How can static analysis be made scalable and precise enough to analyze a large, complex system like Tizen’s native codebase?

Key findings

  • The analysis uncovered multiple paths in Tizen system libraries where security checks were missing, indicating potential exploitable flaws.
  • Subsequent manual analysis confirmed that higher-level software layers often compensated for these missing checks, preventing exploitation in practice.
  • The information flow analysis successfully identified non-trivial data flows from sensitive sources (e.g., user contacts) to untrusted outputs (e.g., network), which could pose privacy risks.
  • The extended LLVM infrastructure achieved high precision in handling C++ features like inheritance and function pointers, enabling accurate static analysis.
  • The toolchain demonstrated strong scalability, enabling full analysis of a substantial fraction of the Tizen codebase.
  • The authors anticipate that the precision of their analysis could enable future optimizations such as replacing dynamic dispatch with static calls, improving performance.

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.