Skip to main content
QUICK REVIEW

[Paper Review] SCLib: A Practical and Lightweight Defense against Component Hijacking in Android Applications

Daoyuan Wu, Yao Cheng|arXiv (Cornell University)|Jan 13, 2018
Advanced Malware Detection TechniquesComputer Science39 references5 citations
TL;DR

SCLib is a lightweight, library-based defense that enforces in-app mandatory access control to prevent component hijacking in Android apps without requiring firmware changes or app repackaging. It protects 35 risky components in 10 open-source apps with under 0.3% code overhead and under 5% performance slowdown, achieving practical security with minimal runtime cost.

ABSTRACT

Cross-app collaboration via inter-component communication is a fundamental mechanism on Android. Although it brings the benefits such as functionality reuse and data sharing, a threat called component hijacking is also introduced. By hijacking a vulnerable component in victim apps, an attack app can escalate its privilege for operations originally prohibited. Many prior studies have been performed to understand and mitigate this issue, but no defense is being deployed in the wild, largely due to the deployment difficulties and performance concerns. In this paper we present SCLib, a secure component library that performs in-app mandatory access control on behalf of app components. It does not require firmware modification or app repackaging as in previous works. The library-based nature also makes SCLib more accessible to app developers, and enables them produce secure components in the first place over fragmented Android devices. As a proof of concept, we design six mandatory policies and overcome unique implementation challenges to mitigate attacks originated from both system weaknesses and common developer mistakes. Our evaluation using ten high-profile open source apps shows that SCLib can protect their 35 risky components with negligible code footprint (less than 0.3% stub code) and nearly no slowdown to normal intra-app communications. The worst-case performance overhead to stop attacks is about 5%.

Motivation & Objective

  • To address the persistent security threat of component hijacking in Android, where malicious apps exploit insecure inter-component communication to escalate privileges.
  • To overcome the limitations of prior defenses that require OS-level modifications or app repackaging, which hinder real-world deployment.
  • To provide a practical, developer-friendly solution that integrates seamlessly into existing Android apps without requiring source code changes or recompilation beyond standard updates.
  • To minimize performance overhead while ensuring strong protection against both system-level weaknesses and common developer mistakes.

Proposed method

  • SCLib is implemented as a secure component library that enforces mandatory access control at the app level, acting on behalf of individual components.
  • It uses six predefined mandatory policies to detect and block hijacking attempts originating from both system vulnerabilities and developer errors.
  • The system performs binder analysis and caller identity verification for normal intra-app communication, introducing minimal latency.
  • For Providers, it includes SQL string filtering to prevent injection attacks, with negligible performance cost.
  • It performs manifest analysis and policy assessment at runtime to detect and block unauthorized inter-app component access.
  • In worst-case scenarios, it triggers user alert dialogs with a 10ms delay, ensuring user awareness without significant usability impact.

Experimental results

Research questions

  • RQ1Can a library-based approach effectively defend against component hijacking in Android without requiring OS modifications or app repackaging?
  • RQ2How can mandatory access control be efficiently integrated into existing Android apps with minimal performance overhead?
  • RQ3What is the impact of SCLib on normal intra-app communication and on stopping known hijacking attack vectors?
  • RQ4Can SCLib protect against both system-level weaknesses and common developer mistakes in component configuration?
  • RQ5How does SCLib balance security, performance, and usability in real-world Android applications?

Key findings

  • SCLib successfully protected 35 risky components across 10 high-profile open-source Android apps with less than 0.3% increase in code footprint.
  • The average performance overhead for normal intra-app communication was only 1.88% for Activities and 2.22% for Providers, with negligible impact on SQL injection filtering.
  • The worst-case performance overhead, including alert dialog triggering, was approximately 4.42% for Activities and 3.71% for Providers.
  • Manifest analysis and policy assessment added only 0.29ms and 0.401ms of overhead in worst-case scenarios, respectively, which is minimal.
  • SCLib's approach is practical and deployable, as it only requires recompilation—common in Android app updates—without breaking app verification or compatibility.
  • The solution effectively mitigates hijacking attacks from both system weaknesses and developer errors, with a focus on protecting only the most vulnerable components to minimize usability impact.

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.