TENET: Telegram Mini App (in)security

📅 2026-08-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究针对Telegram Mini Apps的安全风险,通过开发TENET审计工具检测到多数应用存在敏感信息明文存储等问题,并提出缓解措施。
📝 Abstract
Telegram, with over 450 million daily active users, has introduced Mini Apps---web-based applications running directly within its client. However, this integration introduces notable security risks. As we demonstrate, many Mini Apps store authentication materials---such as session tokens and wallet mnemonic phrases---in plaintext on client devices, exposing users to unauthorized access, impersonation, and financial exploitation. While insecure client-side storage is a known risk in web applications, the Telegram Mini App ecosystem presents a uniquely dangerous combination of factors absent from prior work: no platform-level security review, no storage access restrictions, a financially motivated user base handling live cryptocurrency assets, and a WebView environment that offers weaker protections than standalone browsers. To investigate this threat, we present TENET, a purpose-built auditing tool whose design decisions---pattern selection, entropy thresholds, and charset validation---are grounded in the structural properties of the secrets targeted and empirically validated against a ground-truth dataset. We screened 61 Mini Apps using a stratified, popularity-weighted sampling strategy based on popularity. Of the 37 applications that met our processing criteria and were analyzed, 30 exhibited security flaws, which we classify into three severity tiers: plaintext storage, recoverable encryption, and replayable tokens. Notably, even Telegram's official Wallet exhibits a severe vulnerability that may lead to full account compromise. Following our responsible disclosure, Telegram implemented two new secure-storage APIs, and our post-remediation verification confirmed that its official Wallet no longer exposes the recovery mnemonic in plaintext. Finally, we propose mitigation measures and best practices for both Telegram platform developers and third-party Mini App creators.
Problem

Research questions and friction points this paper is trying to address.

security risks
authentication materials
plaintext storage
Mini Apps
Telegram
Innovation

Methods, ideas, or system contributions that make the work stand out.

TENET
security audit
plaintext storage
secure-storage APIs
Mini Apps
A
Andrea Ciccotelli
King Abdullah University of Science and Technology (KAUST), Computer, Electrical and Mathematical Sciences and Engineering (CEMSE) Division, Thuwal 23955, Saudi Arabia
F
Federico Zappone
Artificialy, Lugano, Switzerland
Roberto Di Pietro
Roberto Di Pietro
IEEE Fellow; ACM Distinguished Scientist; Full Professor of Cybersecurity, KAUST
AI driven CybersecurityDistributed Systems SecurityWireless SecurityOSN Security and Privacy