Risk
11/7/2013
02:53 PM
50%
50%

WhatsApp Security To Be Spotlighted At Black Hat Regional Conference

A researcher offers up a way to increase security for users of the WhatsApp messenger service

Usually, the talks at Black Hat are more likely to revolve around compromising security and privacy. At the Black Hat Regional Summit in Brazil later this month, however, one researcher will take the opposite tack and look to add new layers of security to protect users of the WhatsApp messenger service.

WhatsApp is a cross-platform instant messaging service for Google Android, BlackBerry, Apple iOS, Nokia Series 40, Symbian S60, and Microsoft Windows Phone. Besides text messaging, users can send each other images, video, and audio messages. But the question that bugged security researcher Jaime Sanchez is just how safe messaging can be in an age of government monitoring.

WhatsApp's security has taken hits before in regard to privacy and security. For example, the company was criticized by some for using International Mobile Equipment Identity (IMEI) numbers, a situation the company has reportedly fixed. Last month, a Dutch researcher reported the company uses the same cipher stream for outgoing and incoming messages. At the time, the company criticized the report, calling an attack on the issue "theoretical."

WhatsApp did not respond to a request for comment before publication. For Sanchez, the main objective of his research was to ensure the exchange of messages can happen in a way that could not be affected by an external hacker.

"The first layer of security involves adding secure encryption to the client," Sanchez says. "If an attacker intercepts the messages, or any governments try to intercept our messages at WhatsApp's server, they won't find any legible information. Only recipients that know the password and algorithm chosen will be able to decrypt the original message.

"In the second layer, we give a certain level of anonymity to the conversation by using fake/anonymous accounts and intermediate communication nodes. We ensure that there is no direct communication between the mobile phone and the server."

The final piece of the puzzle involves modifying the inner workings of the application, routing all traffic and messages to Sanchez's own XMPP server, and only using the original WhatsApp servers to send fake data.

"We analyze every message we send and proceed to decipher the message using the custom encryption algorithm," he says. "Then we extract the plaintext message to send it to the XMPP server with this data: < recipient > ? < whatsapp_message_ id > ? < message > . The program will replace every character in the original text with our wildcard character, so the original message will never pass through WhatsApp's servers."

This step is necessary or the destination will reject its messages, he adds.

Finally, the recipient receives a message full of wildcard characters, queries the XMPP server, and replaces it with the original text, he says.

Though the research was started with a rooted Google Android device, it was discovered that the techniques could work for all platforms. The advantage of using a rooted Android is that software can be ported over to work natively inside the Android phone, while using other platforms requires an external device to make the real-time modifications, he explains.

"We wanted to protect all of our rights and liberties, so we developed this technique to be used in a manner completely transparent for the users and completely customizable," he adds. "The main impact on society is providing a way to prevent prying eyes of governments and private corporations from analyzing our data and exchange of information for their own benefit.

"It can be adapted to add new layers of security/privacy to Instant Messaging systems widely used on mobile devices. The process will involve anonymizing and encrypting the data [text, pictures, videos, etc.] exchanged between users so that when they reach an application's servers, they won't be in 'plain text' and will only be legible for the people inside the conversation."

Sanchez's presentation is scheduled for Nov. 27.

Have a comment on this story? Please click "Add Your Comment" below. If you'd like to contact Dark Reading's editors directly, send us a message.

*A previous version of the story misspelled the researcher's name. Brian Prince is a freelance writer for a number of IT security-focused publications. Prior to becoming a freelance reporter, he worked at eWEEK for five years covering not only security, but also a variety of other subjects in the tech industry. Before that, he worked as a ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
anon3179375368
50%
50%
anon3179375368,
User Rank: Apprentice
4/14/2015 | 2:54:33 PM
Pending Review
This comment is waiting for review by our moderators.
anon0850402881
50%
50%
anon0850402881,
User Rank: Apprentice
7/17/2014 | 3:58:43 AM
apy app
these kind of mobile spy apps could monitor messages.
I have used Mobile Spy to spy my boyfriend's phone to find the truth. Unlucky, he did do it.

Bprince
50%
50%
Bprince,
User Rank: Ninja
11/12/2013 | 2:27:34 PM
re: WhatsApp Security To Be Spotlighted At Black Hat Regional Conference
Sorry about that. Typo. Will be fixed shortly. :)
darkerreading
50%
50%
darkerreading,
User Rank: Strategist
11/12/2013 | 9:57:01 AM
re: WhatsApp Security To Be Spotlighted At Black Hat Regional Conference
You misspelled the researcher's name! It's J-A-I-M-E, not Jamie. Swap the M and the I. Please! :)

His name is in Spanish. So, it's hai-meh, not jay-mee.
Guest
50%
50%
Guest,
User Rank: Apprentice
11/8/2013 | 9:13:10 AM
re: WhatsApp Security To Be Spotlighted At Black Hat Regional Conference
Thanks for the great article! I'll publish all the info, source code and some tutorials of my talk at Back Hat Sao Paulo. You can follow my twitter account @segofensiva to stay updated.
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
5 Security Technologies to Watch in 2017
Emerging tools and services promise to make a difference this year. Are they on your company's list?
Flash Poll
New Best Practices for Secure App Development
New Best Practices for Secure App Development
The transition from DevOps to SecDevOps is combining with the move toward cloud computing to create new challenges - and new opportunities - for the information security team. Download this report, to learn about the new best practices for secure application development.
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2013-7445
Published: 2015-10-15
The Direct Rendering Manager (DRM) subsystem in the Linux kernel through 4.x mishandles requests for Graphics Execution Manager (GEM) objects, which allows context-dependent attackers to cause a denial of service (memory consumption) via an application that processes graphics data, as demonstrated b...

CVE-2015-4948
Published: 2015-10-15
netstat in IBM AIX 5.3, 6.1, and 7.1 and VIOS 2.2.x, when a fibre channel adapter is used, allows local users to gain privileges via unspecified vectors.

CVE-2015-5660
Published: 2015-10-15
Cross-site request forgery (CSRF) vulnerability in eXtplorer before 2.1.8 allows remote attackers to hijack the authentication of arbitrary users for requests that execute PHP code.

CVE-2015-6003
Published: 2015-10-15
Directory traversal vulnerability in QNAP QTS before 4.1.4 build 0910 and 4.2.x before 4.2.0 RC2 build 0910, when AFP is enabled, allows remote attackers to read or write to arbitrary files by leveraging access to an OS X (1) user or (2) guest account.

CVE-2015-6333
Published: 2015-10-15
Cisco Application Policy Infrastructure Controller (APIC) 1.1j allows local users to gain privileges via vectors involving addition of an SSH key, aka Bug ID CSCuw46076.

Dark Reading Radio
Archived Dark Reading Radio
In past years, security researchers have discovered ways to hack cars, medical devices, automated teller machines, and many other targets. Dark Reading Executive Editor Kelly Jackson Higgins hosts researcher Samy Kamkar and Levi Gundert, vice president of threat intelligence at Recorded Future, to discuss some of 2016's most unusual and creative hacks by white hats, and what these new vulnerabilities might mean for the coming year.