FirstFallout Exploit Kit has been observed since August 2018. It is very popular and used in many attack campaigns. However, around the end of 2018 Fallout was no longer observed. It was a short break, he came back soon.
He came back and contained several changes.
- Using Let's Encrypt
2. Landing Page
- Changed code to generate code for exploitation
- Changed shellcode
- Using PowerShell
- Bypass AMSI
In this article, I will look into these changes in detail.
HTTPSFallout began using HTTPS. This may make analysis and detection a bit more difficult. He uses Let's Encrypt.
All such processing is obfuscated in the new landing page. But you don't have to be afraid of it. Its obfuscation is very simple.
It will look like this if you clean it up.
Let's read in turn. The first line extracts necessary data from HTML. Decode this string to generate exploitation code. The second line defines the table of Custom Base64.
The next two functions are Custom Base64. This has not changed since the past.
Next Fallout is creating an embed element. Although src is encoded, it becomes a URL by decoding it. This reads the exploitation SWF of CVE-2018-15982.
Finally Fallout is creating a script element. VBScript text is the decoded version of HTML data read in line 1. This reads the exploitation code of CVE-2018-8174.
CVE-2018-8174The code is exactly the same as PoC. shellcode has been updated.
Looking at shellcode, it contains encrypted data at the end. Run it on CreateProcessA.
Data is encrypted by RC4.
The key is hard-coded, and when you decode it using it, you get such PowerShell code.
Decoding Base64 and formatting it look like this:
The first line is a technique to Bypass Anti Malware Scan Interface. Matt Graeber tweeted in 2016.
Next, the C # code is defined. When it shapes it, it looks like this. This will define CreateProcess.[Ref].Assembly.GetType('https://t.co/Kwfd9odrBv.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)— Matt Graeber (@mattifestation) 2016年5月25日
Next is the process of downloading and saving malware. Previously it was encrypted with RC4, but now it is an exe file.
Finally, run the malware by CreateProcess.
CVE-2018-15982In this update CVE-2018-15982 has been added to Fallout.
However, this is the same as PoC. Shellcode is the original but it is the same algorithm as the one already explained in 8174.
It is slightly different only in the final PowerShell code. Instead of executing malware with CreateProcess like 8174, it is running with Invoke-Expression.
ConclusionFallout made an interesting update such as exploiting CVE-2018-15982, downloading and executing malware with PowerShell by bypassing Anti Malware Scan Interface. 15982 has also been exploited in other exploit kits such as Underminer. Please pay attention to them.