AGChain: A Blockchain-based Gateway for Permanent, Distributed, and Secure App Delegation from Existing Mobile App Markets

Mengjie Chen, Daoyuan Wu, Xiao Yi, Jianliang Xu

Introduction

The mobile application ecosystem is currently dominated by centralized markets such as Google Play and the Apple App Store, alongside numerous third-party providers. While these platforms offer convenience, they suffer from significant limitations regarding permanence, accessibility, and security. Research indicates that approximately 13.7% of popular apps on Google Play are delisted within a single year, leading to a loss of digital heritage and functional disruption for users. Furthermore, geographic censorship and "geo-fencing" often restrict access to essential software.

Security remains a paramount concern, particularly in third-party markets. Many of these platforms still rely on insecure HTTP protocols for app downloads, exposing users to Man-In-The-Middle (MITM) attacks and the risk of downloading repackaged, malicious software.

Security status of various mobile app markets regarding download protocols.

As shown in the table above, a significant number of major markets, especially those categorized as "Web Co." or "HW Vendor" in certain regions, fail to provide secure HTTPS downloads. AGChain addresses these issues by acting as a decentralized gateway that "delegates" apps from these centralized sources to a permanent, secure infrastructure.

System Architecture and Methodology

AGChain is designed as a bridge between the existing app inventory and a decentralized trust model. Its architecture comprises a web front-end, crowdsourced server nodes, an IPFS-based storage network, and smart contracts on the Ethereum/Polygon blockchains.

Log-Based Contract Storage

To overcome the high costs associated with blockchain storage, AGChain utilizes the LOG instruction instead of standard SSTORE operations. By storing app metadata in transaction receipts—which are permanent and searchable but do not update the "world state"—the system achieves a 53x reduction in gas consumption, moving from 20,000 Gas to just 375 Gas per operation.

IPFS Consortium Network

While IPFS is often touted as a permanent storage solution, it typically only replicates files upon request. AGChain implements a "consortium" of server nodes that proactively cache and "pin" delegated apps, ensuring high availability even if the original uploader or the source market becomes unavailable.

Integrity and Security

To ensure the authenticity of delegated apps, AGChain employs a lightweight repackaging detection mechanism. By extracting the certificate serial number from an APK—a unique fingerprint tied to the developer's private key—the system can verify if an app has been tampered with. For markets using insecure HTTP, AGChain cross-references checksums from HTTPS-protected web pages or external repositories like AndroZoo.

Evaluation and Results

The system was validated using a dataset of over 8,000 Google Play apps and 15,000 pairs of original/repackaged apps.

  • Cost Efficiency: On the Polygon network, uploading app metadata costs approximately $0.002 USD, making the system highly sustainable for large-scale delegation.
  • Performance: The average download overhead introduced by the AGChain gateway is only 12% compared to direct downloads, a negligible cost for the added security and permanence.
  • Detection Accuracy: The certificate-based verification achieved 100% accuracy in identifying repackaged applications in the test dataset.

Conclusion and Future Work

AGChain demonstrates that a decentralized gateway can effectively mitigate the risks of centralized app markets without the "cold start" problem of building a new inventory from scratch. Future work will focus on integrating broader malware scanning via VirusTotal APIs and developing incentive models to encourage developers to directly upload their software to the AGChain network, potentially through subsidized gas fees.

Summary updated

BibTeX
@inproceedings{chen2024agchain,
  author = {Mengjie Chen and Daoyuan Wu and Xiao Yi and Jianliang Xu},
  title = {{AGChain: A Blockchain-based Gateway for Permanent, Distributed, and Secure App Delegation from Existing Mobile App Markets}},
  booktitle = {Distributed},
  year = {2024},
  doi = {10.1145/3709157},
}
Figure