Chat-App Decryption Key Extraction Through Information Flow Analysis

Page view(s)
Checked on Jan 29, 2023
Chat-App Decryption Key Extraction Through Information Flow Analysis
Chat-App Decryption Key Extraction Through Information Flow Analysis
Other Titles:
Cryptology and Information Security Series
Publication Date:
21 February 2017
Zhongmin Dai, Sufatrio, Tong-Wei Chua, Dinesh Kumar Balakrishnan, Vrizlynn L. L. Thing, “Chat-App Decryption Key Extraction through Information Flow Analysis”, in Abhik Roychoudhury and Yang Liu (eds.), Proceedings of the 2nd Singapore Cyber Security R&D Conference (SG-CRC), Singapore, February 21–22, 2017, Cryptology and Information Security Series, Vol. 15, A Systems Approach to Cyber Security, pp. 3–18, IOS Press, 2017
Recent years have seen a pervasive usage of mobile-based instant messaging apps, which are popularly known as chat apps. On users' mobile devices, chat logs are usually stored encrypted. This paper is concerned with discovering the decryption key of chat-log database files as they are used by popular chat apps like WhatsApp and WeChat. We propose a systematic and generalized information-flow based approach to recovering the decryption key by taking advantage of both static and dynamic analyses. We show that, despite the employed code obfuscation techniques, we can perform the key discovery process on relevant code portions. Furthermore, to the best of our knowledge, we are the first to detail the employed string de-obfuscation, encrypted database file structure, and decryption-key formulation of the latest WhatsApp with crypt12 database. We also demonstrate how our key-extraction techniques can decrypt encrypted WhatsApp and WeChat database files that originate from a target device. Additionally, we show how we can construct a version of WhatsApp or WeChat that simulates the key generation processes of a remote target device, and recover the keys. Lastly, we analyze why our technique can work on widely-popular chat apps, and mention measures that can be adopted by chat-app developers to better protect the privacy of billions of their users.
License type:
Funding Info:

Files uploaded: