"BackOff" POS High Level Analysis: Exposing Additional Sensitive Targets and Additional Toolkits in The Cyber Criminal Arsenal
Posted by Elad Sharf on 06 August 2014 11:30 AM
Websense® Security Labs™ has received reports about the new "Point Of Sale" malware dubbed "BackOff" as published by The US Homeland Security office. We have decided to explore the activity through ThreatSeeker® Intelligence Cloud. Our research shows some interesting finds that conform with what was shared in the original "Backoff" publication, but also adds some intelligence information that sheds more light about the industries targeted in this campaign. It shows that the actors behind it could be potentially targeting more than just POS retailers, and that toolkits used in this campaign are not limited to "memory scrapers" but also include other toolkits like the infamous Zeus, Spyeye, Citadel malware, and also a worm that spreads through peripheral devices called Gamarue.
(Please note: hosts that are part of this campaign are blurred at this time to not disrupt any concurrent active investigation committed by the authorities.)
Research From The Bird's Eye View
Looking at one of the first samples according to the paper published by the US Dept. of Homeland Security (SHA1:caf546e3ee1a1d2768ec37428de1ff7032beea94), we verified the version of the malware in one of its earlier versions: 1.4 and that the command and control point was at dom<*snipped*>12.com. This command and control host seems to be one of the most popular ones in this campaign and got one of the highest numbers of hits as observed from our telemetry data.
One of the interesting observations we made is that this domain wasn't registered through any services that are meant to hide the identity of the registrant; this was unlike subsequent domains used in this campaign that were registered through an anonymizing Chinese registrar. The domain dom<*snipped*>12.com was registered on the 13th of October 2013 for one year, which ties perfectly with the start of the campaign according to the paper. Here is a snapshot of the registry information of dom<*snipped*>12.com:
Looking at Threat Intelligence sources, we've found more hosts registered by the same registrant; the activity that we've spotted involved with those domains was exclusively associated with CyberCrime (you can also find the list attached to this blog):
Lateral Targets: Retailers +
Cybercriminals Behind CVE-2013-3893 Launched Attacks Earlier Than Previously Reported; More Widespread
Posted by AlexWatson on 27 September 2013 12:29 AM
Websense Security Labs™ Websense ThreatSeeker® Intelligence Cloud has discovered that attacks utilizing the most recent Internet Explorer zero-day (CVE-2013-3893) are more prevalent than previously thought. In this write up we shall analyze the exploit code and perform analysis on the dropped malicious file.
In our previous post (Up to 70% of PCs Vulnerable to Zero-Day: CVE-2013-3893) we covered a remote code execution vulnerability (CVE-2013-3893) that exists across all versions of Internet Explorer. This vulnerability exploits the way that Internet Explorer accesses an object in memory that has been deleted or not properly allocated, allowing an attacker to execute arbitrary code affecting current users with Internet Explorer.
An exploit leveraging this vulnerability was first discovered in very targeted attacks located in Japan. First disclosed in a Wepawet security advisory on August 29th, 2013, Microsoft released a security advisory (KB2887505) providing details on the vulnerability and a Fix-It solution on September 17th, 2013. Websense researchers reviewed our third-party telemetry feeds to determine the potential attack surface and risk associated with this exploit, and determined that nearly 70% of Windows-based PCs are vulnerable. While the vulnerability can theoretically affect all versions of Internet Explorer, the exploit is targeting only users of IE8 and IE9 who are running the Windows 7 and XP operating systems.
On September 25th, 2013, at 00:39 PST, Websense real-time security analytics stopped an exploit against one of our customers (a major financial institution based in Japan) leveraging CVE-2013-3893 being hosted on a Taiwanese IP address (188.8.131.52). The exploit was hosted at the following URL (hxxp://184.108.40.206/tn/images/index.html). It is worth noting that in addition to specific analytics designed to stop this exploit, three different Websense real-time analytics protected our customers from this threat dating back for more than 3 years.
Screen shot of the exploit's obfuscated shell-code:
We were quickly able to recover the XOR key (9F) and de-obfuscate the shellcode with a clear-text attack to reveal the dropper file. While the delivery mechanisms are very similar, it is interesting to note that the URI path, IP address and image file names are different than those noted in the analysis of the Operation DeputyDog attacks, as this shell code attempts to drop "./tn/logo.jpg" from the IP address (220.127.116.11).
Analysis of the JPG file, when XORed with 0x95 reveals an executable titled "runrun.exe" (38db830da02df9cf1e467be0d5d9216b):
A clear-text attack on the logo.jpg file revealed that it is actually a Windows executable (when XORed with 0x95) with the following attributes:
$ time ~/obfuscation/xray.pl logo.jpg
Opening file: "logo.jpg"
94BC: [^95] "runrun.exe"
782C: [^95] "user32.dll"
79D6: [^95] "KERNEL32.dll"
7A14: [^95] "ADVAPI32.dll"
E0: [^95] "PE"
4D: [^95] "!This program cannot be run in DOS mode."
776C: [^95] "Microsoft Visual C++ Runtime Library"
7C76: [^95] "GetProcAddress"
The runrun.exe immediately performs a DNS lookup for login.momoshop.org
Next, runrun.exe initiates an HTTPS connection handshake to login.momoshop.org (18.104.22.168), which is terminated by the server. For some reason, the client never sends a SYN/ACK to continue the HTTPS handshake. More on this when we finish reversing the malware.
Interestingly, momoshop.org was registered on March 16, 2013, by the registrant listed above. This domain is unusually old (6 months) in the context of the other C&C domains that we have seen associated with the malware and that were registered just days before the attacks.
Websense Labs researchers are currently confirming telemetry from the ThreatSeeker network with possibly compromised Taiwanese hosts communicating to the C&C server (22.214.171.124) associated with malware variants (8aba4b5184072f2a50cbc5ecfe326701 and bd07926c72739bb7121cec8a2863ad87) dating back to July 1st, 2013, indicating that attacks from the threat actor identified in the Operation DeputyDog report may have started earlier than previously thought and may not be limited only to Japan. More on this soon.
1. We have seen the CVE-2013-3893 exploit targeting Japanese firms in the financial industry, being hosted on a Taiwanese IP address (hxxp://126.96.36.199/tn/images/index.html) as of September 25th at 00:39 PST.
2. Websense has three real-time analytics (one has been in place for nearly three years) that blocked the CVE-2013-3893 exploit from compromising customers.
3. ThreatSeeker Intelligence Cloud reports a potential victim organization in Taiwan attempting to communicate with the malicious C&C server (188.8.131.52) associated with the CVE-2013-3893 exploit as early as July 1st, 2013.
4. The C&C server above can be associated with the Bit9 compromise. The contact email address email@example.com was used to register the domain blankchair(dot)com which points to the malicious C&C server (184.108.40.206). The same email address was used to register a C&C server downloadmp3server(dot)servemp3(dot)com (220.127.116.11) associated with the Bit9 attacks.
5. Websense Threat Intelligence indicates that the threat actor's attacks were not limited only to Japan as previously reported. The use of separate IP addresses, domain registrations, and permutations to dropper locations indicates a high degree of segmentation between attacks and different teams using the same tool sets, exploits and C&C infrastructure.
The real-time analytics deployed in ACE (our Advanced Classification Engine) were able to detect and stop the attack above at three stages independent of the zero-day exploit (CVE-2013-3893) for which we had built specific protection. These analytics were able to detect the techniques used to deliver and obfuscate the exploit and malware, protecting our customer from being compromised. This is a great example of how offering protection from multiple stages of an attack can stop even highly targeted, low volume threats with cutting edge exploits.
Read more »