VB2014 preview: Swipe away, we're watching you

Posted by   Virus Bulletin on   Sep 2, 2014

Hong Kei Chan and Liang Huang describe the various aspects and the evolution of point-of-sale malware.

In the weeks running up to VB2014 (the 24th Virus Bulletin International Conference), we are looking at some of the research that will be presented at the event. Today, we look at the paper 'Swipe away, we're watching you', by Fortinet researchers Hong Kei Chan and Liang Huang.

We Europeans will see many familiar names among the local shops when we travel to Seattle: retail chain Target, crafts store Michaels, department store Neiman Marcus, fast-food restaurant Dairy Queen, Asia-themed restaurant P. F. Chang. Names that are all familiar from the recent security news: they have all suffered data breaches via their payment terminals in the past year.

Point-of-sale (PoS) malware has existed for more than half a decade, but the aforementioned data breaches have made it a prime concern for retail CTOs and CFOs alike. Only a few weeks ago, US-CERT issued an advisory about 'Backoff', yet another kind of PoS malware (analysed by SpiderLabs here). Cybercriminals have always gone where the money is; by targeting PoS terminals, they are able to obtain very many credit card numbers at once.

In the first part of their paper, Kei and Liang take a bird's-eye view of PoS malware and describe the three stages of a typical PoS malware attack.

  The two 'tracks' on a card's magnetic strip that the malware is looking for.

First, the malware reads raw memory data into buffers. While for the terminal to be PCI compliant, the credit card data needs to be encrypted before being transmitted over the Internet, for a short period the numbers are stored unencrypted in volatile memory.

This raw memory data contains a lot of noise and in the second stage of the attack, the PoS malware uses a number of methods to filter card numbers and other relevant data from this noise.

Finally, the data is sent to a command and control server, often encrypted and sometimes even using Tor, using techniques not dissimilar to what those seen in malware targeting home and office PCs.

  Dexter sending encrypted and then Base64-encoded data to a C&C server using HTTP POST.

In the second part of the paper, the authors zoom in one on particular PoS malware family, 'Dexter', and show how it has evolved over time.

From a relatively basic version with a compilation date of March 2011, to the most recent version ('Misto'), first compiled at the beginning of 2014, the paper shows in great detail how Dexter has evolved over time. For instance, earlier versions of the malware would search the memory of all but a few 'blacklisted' processes, while Misto only parses memory of a few targeted processes.

However, Misto doesn't have all the features of its predecessors (for instance, it lacks a keylogger), giving the authors cause to wonder if it has been branched off from an early version of Dexter.

The fact that credit card payments can be checked in real time over the Internet has proved very useful for smaller and larger shop owners alike. However, this also provide criminals with a new attack vector which, especially when cards lack EMV ('Chip-and-PIN'), they are all too eager to exploit.

In their presentation, Kei and Liang will include a live demonstration of PoS-malware in action.

Registration for VB2014 is still open.

Posted on 02 September 2014 by Martijn Grooten



Latest posts:

In memoriam: Prof. Ross Anderson

We were very sorry to learn of the passing of Professor Ross Anderson a few days ago.

In memoriam: Dr Alan Solomon

We were very sorry to learn of the passing of industry pioneer Dr Alan Solomon earlier this week.

New paper: Nexus Android banking botnet – compromising C&C panels and dissecting mobile AppInjects

In a new paper, researchers Aditya K Sood and Rohit Bansal provide details of a security vulnerability in the Nexus Android botnet C&C panel that was exploited in order to gather threat intelligence, and present a model of mobile AppInjects.

New paper: Collector-stealer: a Russian origin credential and information extractor

In a new paper, F5 researchers Aditya K Sood and Rohit Chaturvedi present a 360 analysis of Collector-stealer, a Russian-origin credential and information extractor.

VB2021 localhost videos available on YouTube

VB has made all VB2021 localhost presentations available on the VB YouTube channel, so you can now watch - and share - any part of the conference freely and without registration.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.