CactusTorch Fileless Threat Abuses .NET to Infect Victims
McAfee Labs has noticed a significant shift by some actors toward using trusted Windows executables, rather than external malware, to attack systems. One of the most popular techniques is a “fileless” attack. Because these attacks are launched through reputable executables, they are hard to detect. Both consumers and corporate users can fall victim to this threat. In corporate environments, attackers use this vector to move laterally through the network.
One fileless threat, CactusTorch, uses the DotNetToJScript technique, which loads and executes malicious .NET assemblies straight from memory. These assemblies are the smallest unit of deployment of an application, such as a .dll or .exe. As with other fileless attack techniques, DotNetToJScript does not write any part of the malicious .NET assembly on a computer’s hard drive; hence traditional file scanners fail to detect these attacks.
In 2018 we have seen rapid growth in the use of CactusTorch, which can execute custom shellcode on Windows systems. The following chart shows the rise of CactusTorch variants in the wild.
Source: McAfee Labs.
The DotNetToJScript tool kit
Figure 2: CactusTorch code.
Before we dive into this code, we need to understand .NET and its COM exposure. When we install the .NET framework on any system, several .NET libraries are exposed via Microsoft’s Component Object Model (COM).
Figure 3: COM exposing the .NET library System.Security.Cryptography.FromBase64Transform.
If we look at the exposed interfaces, we can see IDispatch, which allows the COM object to be accessed from the script host or a browser.
Figure 4: Exposed interfaces in a .NET library.
To execute malicious code using the DotNetToJScript vector, an attack uses the following COM objects:
Figure 5: The class definition of the embedded serialized object.
The .NET assembly embedded in the CactusTorch script runs the following steps to execute the malicious shellcode:
- Launches a new suspended process using CreateProcessA (to host the shellcode)
- Allocates some memory with VirtualAllocEx() with an EXECUTE_READWRITE privilege
- Writes the shellcode in the target’s process memory with WriteProcessMemory()
- Creates a new thread to execute the shellcode using CreateRemoteThread()
Fileless malware takes advantage of the trust factor between security software and genuine, signed Windows applications. Because this type of attack is launched through reputable, trusted executables, these attacks are hard to detect. McAfee Endpoint Security (ENS) and Host Intrusion Prevention System (HIPS) customers are protected from this class of fileless attack through Signature ID 6118.
The author thanks the following colleagues for their help with this analysis:
- Abhishek Karnik
- Deepak Setty
- Oliver Devane
- Shruti Suman
MITRE ATT&CK techniques
- Drive-by compromise
- Scripting using Windows Script Host
- Decode information
- Command-line interface
- Process injection
The post CactusTorch Fileless Threat Abuses .NET to Infect Victims appeared first on McAfee Blogs.
Incoming search terms
- Baixa supermam para nokia no dedomil net
- dedomil cs games 240x320 samsung download
- angry birds games 240x320 dedomil
- supper man games dedomil net
- hulk vs goku game dedomil
More antivirus and malware news?
- Softbank in talks to buy Dreamworks Animation
- Exploits, malverts, ransomware, iOS – and Star Wars! [Chet Chat Podcast 228]
- Secret Apple iPhone zero-day exploit earns $1,000,000! Well, maybe…
- Snowden’s "I had the authorities to wiretap anyone" wasn’t a lie
- New products of the week 12.19.16
- Apple addresses another Wi-Fi bug with iOS 6.0.2 update
- Spam Rises Amid Lower Exploit Kit Activity in 2016: Cisco
- Microsoft System Center Operations Manager CVE-2015-2420 Cross Site Scripting Vulnerability
- News in brief: Telegram crack “fake”; superuser passwords leaked; election systems “critical infrastructure”
- How to get a politician to say just what you want to hear