Live data from Hacker News

How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

wired.com

11–20 of 30 posts

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#11
This article [1] argues that RAM scrapers are only able to work because the point-of-sale systems are running Windows XP.

Newer versions of Windows make this exploit far more difficult [2].

[1] http://www.dailytech.com/Appalling+Negligence+DecadeOld+Wind...

[2] http://en.wikipedia.org/wiki/Address_space_layout_randomizat...

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#12
post #7

Earlier quoted context omitted.

> How RAM Scrapers Work > Once on a targeted system, RAM scrapers work by examining the list of processes that are running on the system and inspecting the memory for data that matches the structure of credit card data, such as the account number, expiration date, and other information stored on a card’s magnetic stripe. No hooking, sounds exactly like they're looking through the memory assigned to each process looki…

Okay, so, how do they harvest live data? Scan constantly? That would have a risk of missing something or of slowing down the system. I suspect that is just an oversimplification, of course, unless they post the malware in question I can't really say for sure.

That's exactly what they do. They'll call ReadProcessMemory() on every process and then use a regex + Luhn algorithm to check for credit card data. I'm sure some of the more advanced and targeted ones do use hooking, and some filter the processes to scrape by name, but a lot of malware authors are surprisingly amateur.

further reading: http://www.trendmicro.com/cloud-content/us/pdfs/security-int...

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#13
A long time ago I helped a company get their payment terminal up and running after their first consultant had spent 9 months and $30,000 not getting anything done. The code I got was astonishingly bad and I realized that these folks had no way of evaluating good or bad code, and it depressed me that this was more the 'normal' situation rather than the 'unusual' sort of situation. I hope that in today's target rich environment folks are investing a bit more care into these things but I worry that isn't the case.

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#14
post #11

This article [1] argues that RAM scrapers are only able to work because the point-of-sale systems are running Windows XP. Newer versions of Windows make this exploit far more difficult [2]. [1] http://www.dailytech.com/Appalling+Negligence+DecadeOld+Wind... [2] http://en.wikipedia.org/wiki/Address_space_layout_randomizat...

I wouldn't call a RAM scraper an exploit. ASLR isn't an effective protection against a program that reads from memory. Driver signing in newer versions of Windows is a more appropriate protection but will still fall short of stopping a motivated attacker.

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#15
post #7

Earlier quoted context omitted.

> How RAM Scrapers Work > Once on a targeted system, RAM scrapers work by examining the list of processes that are running on the system and inspecting the memory for data that matches the structure of credit card data, such as the account number, expiration date, and other information stored on a card’s magnetic stripe. No hooking, sounds exactly like they're looking through the memory assigned to each process looki…

Okay, so, how do they harvest live data? Scan constantly? That would have a risk of missing something or of slowing down the system. I suspect that is just an oversimplification, of course, unless they post the malware in question I can't really say for sure.

My guess is that 100% robustness wasn't a big concern. Getting 80% of a lot is good enough.

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#17

so are these hardware that somehow people manage to sneak and install on a store's network? How would them monitor traffic and get the credit card info? Edit: The articles does say: "Attackers installed these RAM scrapers surreptitiously on the point-of-sale systems used to scan and process credit and debit card transactions at Albertson’s and Supervalu. The tools make it easy to steal card numbers by the millions as…

The article also says:

  "RAM scrapers, by contrast, can be installed remotely on a Big Box
   retailer’s network and deployed widely to dozens of stores in a
   franchise, without an attacker ever leaving his computer. They can
   also be deleted remotely to erase crucial evidence of the crime."
The ability to remotely install and delete RAM scrapers from anywhere in the world precludes this being a hardware device.

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#18
post #2

From what I gather from the article, the systems which RAM scrapers attack were running on general purpose computers, with very similar vulnerabilities. Why isn't sensitive software like this built and audited with the same concern for reliability and security as avionics, medical equipment, SCADA, etc.? Certainly the cost in financial losses caused by these attacks makes this a pertinent question.

"Why?" Because money; of course. Did you think "lean" companies shipping "MVPs" were the only guys around shoveling shit out the door as long as it sells? Also, the medical and SCADA fields are notoriously bad at security (but have been catching up, SCADA more than medical).

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#19
The fundamental problem is that credit cards are built around a model where credit card numbers are theoretically supposed to be secret, but every random retailer has to have them to process transactions. If credit cards were electronic devices, like in Europe, rather than fancy pieces of paper with a number written on them, then fraud would drop, and retailers would be freed of a massive burden. But American banks aren't up to the task of creating that sort of infrastructure, so instead they blame it on whichever poor retailer happened to have its computers broken into.

Re: How RAM Scrapers Work: The Tool Behind the Latest Credit Card Hacks

#20
post #2

From what I gather from the article, the systems which RAM scrapers attack were running on general purpose computers, with very similar vulnerabilities. Why isn't sensitive software like this built and audited with the same concern for reliability and security as avionics, medical equipment, SCADA, etc.? Certainly the cost in financial losses caused by these attacks makes this a pertinent question.

Because the penalty is backloaded but the expense is frontloaded--and the beancounters are only concerned about the frontloaded expenses.

How much did it cost the guy who made this decision? Zero. All the cost and blame falls on the person who came after who has to clean it up.

Post reply on HN