Last Updated: 2021-07-09 01:44:31 UTC
by Brad Duncan (Version: 1)
On Thursday 2021-07-08, for a short while when Hancitor was initially active, if any victims clicked on a malicious link from the malspam, they would receive a XLL file instead of a malicious Word doc. I tried one of the email links in my lab and received the malicious XLL file. After other researchers reported they were receiving Word documents, I tried a few hours later and received a Word document instead.
Since November 2020, Hancitor has consistently followed specific patterns of infection activity, and my previous diary from January 2021 is typical of what I've seen. Only one change has happened recently. Since June 8th 2021, malicious spam (malspam) pushing Hancitor switched from docs.google.com links in their messages to using feedproxy.google.com URLs, which was initially reported by @James_inthe_box, @mesa_matt, and @executemalware.
I've also seen these Google feedproxy URLs used for Hancitor infections, but I had not seen the XLL files until now.
What is an XLL file?
XLL files are Excel add-in files. They're DLL files specifically designed to be run by Microsoft Excel. Think of an XLL file as an "Excel DLL."
As usual, emails for this wave of Hancitor used a DocuSign theme, and they spoofed cabanga[.]com as the sending domain. Just like in recent weeks, links went to a Google feedproxy URL.
The Google feedproxy URL leads to a malicious page on a compromised webite designed to send the initial malicious file and redirect the browser to DocuSign's website. I've described the process here and here. This process makes it appear as if the file was offered by DocuSign, when it was actually sent through a malicious web page.
Remember, this malicious activity is not caused by DocuSign. DocuSIgn is one of many companies that cybercriminals impersonate when distributing malware like Hancitor. DocuSign is aware of this long-running effort by the criminals behind Hancitor, and the company has guidelines for dealing with this sort of malicious activity.
Running the XLL
When opening the XLL file, Excel asks if you want to enable the add-in as shown below.
The default option was to leave the add-in disabled. But when I opened the XLL file in my lab enviornment, I enabled all code for the add-in. Excel immediately ran the add-in and closed. I didn't see any sort of fake template like we usually see when Hancitor uses a Word document as the initial file.
During my first infection run with the XLL file, most of the traffic followed known patterns for Hancitor and Cobalt Strike, I saw two additional URLs as noted below.
Thes two URLs returned files that were saved to my Windows client in the C:\Users\Public\ directory. The first URL returned an HTML file that was saved as res32.hta. That .hta file retrieved an EXE for Hancitor which was saved as snd32sys.exe.
Hancitor showed a build number of 0707in2_wvcr in C2 traffic caused by the EXE. During my second infection run with a Hancitor DLL, I saw a build number of 0707_wvcr,
Indicators of Compromise (IOCs)
This Github page contains 35 Google feedproxy URLs and 35 associated URLs used to send the initial malicious file. Other indicators follow.
- File size: 24,488 bytes
- File name: 0708_0112181856.xll
- File description: Excel add-in (an "Excel DLL")
- File size: 8,419 bytes
- File location: hxxp://srand04rf[.]ru/92375234.xml
- File location: C:\Users\Public\res32.hta
- File description: HTML file used to retrieve Hancitor EXE
- File size: 763,392 bytes
- File location: hxxp://srand04rf[.]ru/08.jpg
- File location: C:\Users\Public\snd32sys.exe
- File description: Hancitor EXE
- File size: 898,048 bytes
- File name: 0708_3355614568218.doc
- File description: Word doc with macros for Hancitor
- File size: 274,432 bytes
- File location: C:\Users\[username]\AppData\Roaming\Microsoft\Template\niberius.dll
- File description: Hancitor DLL
- Run method: rundll32.exe [filename],ONOQWPYIEIR
- File size: 272,910 bytes
- File location: hxxp://srand04rf[.]ru/7hfjsdfjks.exe
- File description: EXE for Ficker Stealer malware
- Note: This file was first submitted to VirusTotal on 2021-06-09.
Traffic related to Hancitor:
- 8.211.241[.]0 port 80 - srand04rf[.]ru - GET /92375234.xml
- 8.211.241[.]0 port 80 - srand04rf[.]ru - GET /08.jpg
- port 80 - api.ipify.org - GET / [not inherently malicious]
- 77.222.42[.]67 port 80 - sudepallon[.]com - POST /8/forum.php
- 194.147.78[.]155 port 80 - anspossthrly[.]ru - POST /8/forum.php
- 194.147.115[.]74 port 80 - thentabecon[.]ru - POST/8/forum.php
Traffic related to Ficker Stealer:
- 8.211.241[.]0 port 80 - srand04rf[.]ru - GET /7hfjsdfjks.exe
- port 80 - api.ipify.org - GET /?format=xml [not inherently malicious]
- 95.213.179[.]67 port 80 - pospvisis[.]com - TCP traffic
Traffic related to Cobalt Strike:
- 8.211.241[.]0 port 80 - srand04rf[.]ru - GET /0707s.bin
- 8.211.241[.]0 port 80 - srand04rf[.]ru - GET /0707.bin
- 191.101.17[.]21 port 443 - HTTPS traffic
- 191.101.17[.]21 port 80 - 191.101.17[.]21 - GET /5lyB
- 191.101.17[.]21 port 80 - 191.101.17[.]21 - GET /IE9CompatViewList.xml
- 191.101.17[.]21 port 80 - 191.101.17[.]21 - POST /submit.php?id=[9-digit number]
A pcap of the infection traffic from my first infection run (with the XLL file) can be found here.
brad [at] malware-traffic-analysis.net