1/ In the last few weeks, we have investigated various infections with the malware dubbed "Raspberry Robin" by RedCanary.
As described by Microsoft and observed in our own investigations, the infections lead to further malware, in our case, Agent Tesla. 🧵
2/ Raspberry Robin uses msiexec.exe to download a malicious MSI package, using short domain names, as described in [1].
In addition, we observed port 8080 in the corresponding network request in all infections examined - a good indicator for #hunting in the firewall logs.
3/ @Kostastsale tweeted a regex for hunting these C2 requests and @felixaime a link to a repository consisting of Raspberry Robin domains (also called QNAP Worm). [3][4]
The domains contacted by our infected machines are also listed on the IOC inventory 👌 (passive DNS, anyone?)
4/ "Inclusion of a string of random alphanumeric characters as the URL subdirectory, frequently followed by the victim's hostname and username" [1].
5/ In all our incidents, the network request over msiexec used unencrypted HTTP, and the hostname and username were always part of the GET request.
If your company assigns the hostnames according to a specific pattern, search for hostnames in the proxy logs using a regex.
6/ Further, dllhost.exe, rundll32.exe, and regsvr32.exe have established (unencrypted) connections to TOR sites. Example:
rundll32.exe has initiated a HTTP connection to 212.186.71[.]38/tor/server/fp/ece1073ca9f22e30b024fc3bebc901b39a4552a5
Again, check your proxy logs. 🕵️♀️
7/ In some cases, we have also seen that the infection wrote a DLL in a random ProgramData directory and setup a persistence via scheduled task - the same behavior described by Microsoft [2].
Example:
8/ msiexec.exe created a scheduled task:
Name:
'Microsoft\Windows\RemoteApp and Desktop Connections Update\odbcaReady'.
9/ Red Canary has published various Atomic Red team tests to simulate the detections for Rasperry Robin.
The tactic "Emulating Command Prompt reading and executing the contents of a CMD file" has changed in our cases and would probably no longer work. 🤔
10/ This atomic was developed specifically to emulate Raspberry Robin. It uses the "standard-in" command prompt feature (cmd /R <) to read and execute a file via cmd.exe.
1/ USB-Malware, part 2: Even though the Andromeda botnet was busted years ago, we still see infected USB sticks in corporate networks equipped with malicious code which tries to infect the host. 🧵
1/ We received a PDF from a third party, created from an Excel workbook. The document was forwarded to a customer and rejected by two different mail gateways due to a "macro detection".
However, the original workbook does not contain a macro. Why is the PDF rejected anyway? 🧵
2/ With the command pdf-parser.py -a -O $filename (from @DidierStevens), we can display the elements in the PDF document.
In fact, a JavaScript object is present in the PDF document.
3/ We can display the JavaScript code with the following command line:
python pdf-parser.py -k /JavaScript -O $filename
Which doesn't look like very readable code, though 🤔
1/ "They tried to stay stealthy and used the sysinternal's procdump tool, renamed in error.log to bypass Windows Defender detection and dump lsass process memory" [1]
A similar trick was presented by @mrd0x in November 2021. [2]
2/ This technique does not work as of today (well, yesterday) and generates a Defender AV alert on my test machine.
Pay attention to the detection name, which is "HackTool" in the screenshot below.
3/ I can't stress enough how awesome @cyb3rops' AV cheat sheet is, which lists the Highly Relevant AV Keywords, with "HackTool" at the top (newest version here [3]).
As a system admin or SOC analyst, when seeing these keywords in an alert, the alert should be prioritized. 🚒🧯