Signal Enhances Desktop Client Security After Six-Year Delay on Encryption Key Issue

by | Jul 12, 2024 | News




Join our Patreon Channel and Gain access to 70+ Exclusive Walkthrough Videos.

Patreon
Reading Time: 3 Minutes

Signal has finally addressed a critical security flaw in its desktop application, which involved storing encryption keys in plain text, making encrypted databases vulnerable. The issue, initially reported in 2018, resurfaced recently, prompting Signal to implement a fix using Electron’s SafeStorage API

Background on the Issue

In 2018, BleepingComputer highlighted a significant security flaw in Signal’s desktop application for Windows and Mac, where the encryption key for the user’s message database was stored in plain text. This database, an encrypted SQLite file, was designed to protect user messages. However, storing the encryption key as plain text in local files (%AppData%\Signal\config.json on Windows and ~/Library/Application Support/Signal/config.json on Mac) rendered this protection ineffective. Any user or program on the computer could access this key, undermining the encryption.

Decryption key in Signal's config.json on WindowsDecryption key in Signal’s config.json on Windows
Source: BleepingComputer

Initial Response from Signal

At the time, Signal dismissed the issue, asserting that the database key was never intended to be a secret and that at-rest encryption was not a claimed feature of Signal Desktop. This stance contrasted sharply with Signal’s reputation for security and privacy, drawing criticism for not addressing the flaw.

See Also: So, you want to be a hacker?
Offensive Security, Bug Bounty Courses




Discover your weakest link. Be proactive, not reactive. Cybercriminals need just one flaw to strike.

Reemergence of the Issue

The topic resurfaced when Elon Musk tweeted about unaddressed vulnerabilities in Signal, sparking renewed attention. Mobile security researchers Talal Haj Bakry and Tommy Mysk from Mysk Inc reiterated the issue, demonstrating that Signal Desktop still stored encryption keys in plain text, exposing users to potential data exfiltration.

https://x.com/mysk_co/status/1809287118235070662

Signal’s Response to Renewed Criticism

Signal President Meredith Whittaker acknowledged the flaw but downplayed its impact, noting that it required full device access by an attacker. Despite this, Whittaker’s stance seemed inconsistent with her critiques of similar security issues in other software.

The Move to Enhance Security

Amidst this renewed scrutiny, an independent developer, Tom Plant, proposed a fix using Electron’s SafeStorage API to secure the encryption key with platform-specific APIs, such as DPAPI on Windows and Keychain on macOS. Initially ignored, this proposal gained traction after the public outcry on social media.




Implementation of the Fix

Signal developers recently confirmed the implementation of SafeStorage in an upcoming Beta version. This solution aims to secure the encryption keys using the operating system’s cryptographic mechanisms. On Windows, this involves DPAPI, which offers protection against other users but still leaves potential vulnerabilities from malware running under the same user context.

Comment posted to Signal merge requestComment posted to Signal merge request

Future Measures and Legacy Key Handling

To ensure a smooth transition, Signal included a fallback mechanism allowing users to recover their databases with the legacy key if needed. This measure is temporary and will be removed after thorough testing and successful deployment of the new encryption method.

 

Are u a security researcher? Or a company that writes articles about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing? If you want to express your idea in an article contact us here for a quote: [email protected]

Source: bleepingcomputer.com

Source Link

Merch

Recent News

EXPLORE OUR STORE

Offensive Security & Ethical Hacking Course

Begin the learning curve of hacking now!


Information Security Solutions

Find out how Pentesting Services can help you.


Join our Community

Share This