Last Updated: 2016-02-05 04:34:15 UTC
by Brad Duncan (Version: 1)
I was discussing malicious spam (malspam) with a fellow security professional earlier this week. He was examining malspam with zip attachments containing .js files. This is something I've covered previously in ISC diaries [1, 2]. However, the traffic patterns he saw was somewhat different than I've seen, so I figured it's time to revisit this type of malspam.
I found 13 messages with the following subject lines during the past two days:
- Problem with the Order, Reference: #117931
- Problem with the Order, Reference: #469155
- Problem with Your Order, Reference: #543361
- Problem with Your Purchase, Reference: #629146
- Problem with Your Purchase, Reference: #913251
- Problems with the Purchase, Reference Number #568643
- Problems with Your Purchase, Reference Number #199837
- Problems with Your Purchase, Reference Number #797440
- Problems with Your Purchase, Reference: #113736
- Troubles with the Order, Reference: #719684
- Troubles with the Purchase, Reference Number #459991
- Troubles with the Purchase, Reference Number #529057
- Troubles with Your Order, Reference: #987848
Attachments names were different for each of the 13 messages:
- Ali Washington.zip
- Cary Harris.zip
- Dino Hayden.zip
- Garth Porter.zip
- Hans Fitzgerald.zip
- Harold Walter.zip
- Leonel Mcneil.zip
- Marc Harding.zip
- Nickolas Baldwin.zip
- Romeo Wright.zip
- Stanley Floyd.zip
- Ted Fields.zip
- Ward Shea.zip
Each of the attachments were zip files that contained a .js file. The .js file is typically launched by Windows Script Host (wscript.exe) when the file is double-clicked on a Windows desktop.
The script in these .js files is highly-obfuscated. ISC Handler Xavier Mertens wrote a diary on how to examine these scripts ; however, I prefer to execute the .js files and see where the traffic takes us.
Traffic and malware
Each of the scripts tried to download and execute three malware items. The HTTP requests were:
- csonegame.com - GET /img/script.php?wndz1.jpg
- csonegame.com - GET /img/script.php?wndz2.jpg
- csonegame.com - GET /img/script.php?wndz3.jpg
I tried all 13 of the extracted .js files and saw the same URL patterns.
Unfortunately, by the time I ran these .js files, the malware was no longer avialable.
Fortunately, others had already ran the malware through different online tools, and I was able to find all three items downloaded by the .js files.
script.php_wndz1.jpg - 255.5 KB (261,632 bytes) - File type: Windows EXE
script.php_wndz2.jpg - 159.5 KB (163,328 bytes) - File type: Windows EXE
script.php_wndz3.jpg - 84.5 KB (86,528 bytes) - File type: Windows EXE
Based on the callback traffic reported on the first sample, that file appears to be CryptoWall. I haven't had the time to dig into the other two items.
The malspam and malware samples can be found here. My thanks to Chris, who emailed me about this most recent wave of malspam.
If you have more information or corrections regarding our diary, please share.