Protecting an organization from today's cyber threats is not a simple but rather extensive task. The threat landscape is constantly changing, requiring a flexible approach to defense. The threats, techniques, and vulnerabilities that cybercriminals exploit may be unknown to organizations that provide protection to their users. This is a prime example of the exploitation of a critical vulnerability. An exploit that was found in the wild.
Since phishing or targeted distribution of documents is often the first step of attackers, interception of such malicious files using machine learning or collected infection indicators is an important approach in ensuring the security of an organization or user.
A few days ago we found a sample that seemed interesting to us. Therefore, we decided to delve deeper into his research and also publish this research.
|File Type||Office OpenXML Document|
This document showed very shallow detection on VirusTotal.
Despite the fact that the detection of this sample across other sources is low, our lab has marked it as malicious.
Let's dive deeper into his research and see what we find. And also what indicators and interesting functions may be present.
The document connects to the server and downloads an executable file, which it later launches.
|File Type||.NET Executable|
The executable file contains some pieces of data that are encoded in Base64.
In the illustration, we see a large data block encoded in Base64. After decoding, it appears to be a PowerShell script which then executes.
The main payload one, which is encoded in Base64, looks like this. This script decodes the dnscat2 tool from its body. And it launches it in order to build DNS tunneling by connecting to a remote server, o365updates[.]net. The program establishes a connection and waits for further commands from the remote server.
Such attacks are carried out thousands of times each day and threat actors are constantly developing new methods. Contact Us to find out how InQuest's Deep File Inspection platform can detect these malicious documents.