Categories: Cyber CrimeSecurity

Leaked programming manual inspired development malware for ATMs

A document on NCR ATM API Documentation disclosed on Baidu may have helped criminals to develop malware used in the recent attacks against ATMs worldwide.

Recently Kaspersky Lab spotted a series of attacks on ATM machines which were infected by the Tyupkin malware, the malicious code is used by criminal organizations to compomise the banking machines and force them to release cash on demand, at least 50 ATMs, mainly in Eastern Europe, have been infected.

Tyupkin isn’t the unique malware used by criminals to compromise ATMs, in May 2013 researchers spotted another ATM Trojan, dubbed Padpin, meanwhile in October 2013, security experts at Symantec warned about the Ploutus that was designed with the same intent.

The blog post published by Symantec refers to a strain of Ploutus malware detected in 2013 on ATMs in Mexico and is designed to compromise a certain type of standalone ATM with just the text messages.

“The new variant was identified as Backdoor.Ploutus.B (referred to as Ploutus throughout this blog). What was interesting about this variant of Ploutus was that it allowed cybercriminals to simply send an SMS to the compromised ATM, then walk up and collect the dispensed cash. It may seem incredible, but this technique is being used in a number of places across the world at this time.”

The attack scheme is very simple, the bad actor just needs to connect the ATM to a mobile phone via USB tethering and then initiate a shared Internet connection, which then can be used to send specific SMS commands to the phone attached or hardwired inside the ATM.

“Since the phone is connected to the ATM through the USB port, the phone also draws power from the connection, which charges the phone battery. As a result, the phone will remain powered up indefinitely.”

Of course, a similar attacks request a good knowledge of the ATM architecture and of the software it runs, for this reason many security experts are worried by a news of data leakage for physical components of automated teller machines (ATMs).

A leaked programming manual for interacting with the physical components of automated teller machines might have helped malware authors to design the malicious application that were used to steal cash from ATMs in recent cases observed worldwide.

Recently eighteen ATMs were compromised in Malaysia, the criminal gangs behind the attacks has stolen nearly 3 million Malaysian Ringgit, or over US$900,000, according to a the media agencies.

The experts at F-Secure has the opportunity to analyze Padpin samples and discovered that the malicious code interacts with the Extension for Financial Services DLL library(MSXFS.dll) that is specifically used by ATMs. The library provides a special API for the communication with the ATM’s PIN pad. PadPin isn’t the unique malware used by criminals that uses the library, also the Tyupkin invokes it.

“Analyzing the code, we started wondering how the malware author knows which pin pad service name to provide to the API so that the program is able to interact with the pin pad device,” the F-Secure researchers said in a blog post.

The researchers at F-Secure hghlighed that the DLL library is not officially documented by Microsoft, this mean that attackers gain access to the information in a different way.

“It’s a valid question because the pin pad service name used in the code is quite unique and it is very unlikely one can figure out the service name without documentation.” added the expert.

Information on the Dll is available in a programmer’s reference manual from NCR, which is a popular manufacturer of ATMs and point-of-sale devices, the document was posted on an ebook site owned by Chinese online search company Baidu.

According the experts, non only malware programmers experienced in writing ATM applications may have obtained precious information by reading the leaked manual,  but also other coders.

“The documentation is helpful enough to give programmers some sample code as well,” the researchers said.

As explained in a previous post, physical defense of ATMs still represents an important deterrent against such kind of attacks, avoiding physical access to the ATMs by criminals is is possible to secure the machines.

[adrotate banner=”9″]

Pierluigi Paganini

(Security Affairs –  ATMs, cybercrime)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Cisco addressed high-severity flaws in IOS and IOS XE software

Cisco addressed multiple vulnerabilities in IOS and IOS XE software that can be exploited to…

11 hours ago

Google: China dominates government exploitation of zero-day vulnerabilities in 2023

Google's Threat Analysis Group (TAG) and Mandiant reported a surge in the number of actively…

18 hours ago

Google addressed 2 Chrome zero-days demonstrated at Pwn2Own 2024

Google addressed two zero-day vulnerabilities in the Chrome web browser that have been demonstrated during…

1 day ago

INC Ransom stole 3TB of data from the National Health Service (NHS) of Scotland

The INC Ransom extortion group hacked the National Health Service (NHS) of Scotland and is threatening…

1 day ago

CISA adds Microsoft SharePoint bug disclosed at Pwn2Own to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a Microsoft SharePoint vulnerability disclosed at the…

2 days ago

The DDR Advantage: Real-Time Data Defense

This is the advantage of Data Detection and Response (DDR) for organizations aiming to build…

2 days ago

This website uses cookies.