Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

ABTV

11/25/2019
11:10 AM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

DePriMon: A New & Unique Way to Download Malware

ESET calls it 'a powerful, flexible and persistent tool.'

The Lambert advanced persistent threat (APT) group -- sometimes called Longhorn -- is known by security researchers to specialize in attacks against European and Middle Eastern companies. It has, since 2011 or so, infiltrated government, financial, telecoms, energy, aviation, IT and educational targets. It is assumed to be state-sponsored.

The different forms of malware used by the group have been given color-coded names. ColoredLambert, for example, has been used by the group with this downloader and is linked to the Vault 7 leak of CIA capabilities.

ESET security researchers have found that the installation technique -- which they call DePriMon -- is unique and has not been previously seen. The actual method of infection is variable, but it apparently brings the second and third stages of the malware on board to disk during the initial stage. The second stage installs itself and loads the third stage using an encrypted, hardcoded path. This path is probably configured after the first stage of the attack occurs.

The second stage registers the third-stage malware DLL as a port monitor. Now, Administrator rights are required for creating this registry key. But the registered DLL will be loaded by spoolsv.exe at startup with SYSTEM privileges.

ESET found that a continual uninstallation trigger is operative during the infection process. As they put it, "The second stage checks regularly whether there is a file in the %system32% folder with the same name as the third stage DLL file but without the '.dll' extension. This file serves as an uninstallation trigger – should DePriMon find it, it removes both this file and its own components in a secure way by overwriting the binaries and then deleting them."

The third stage is tasked with getting the main payload from the malware operators. It does things in its own way.

For command and control (C&C) communication, it uses the Microsoft implementation of SSL/TLS, Secure Channel, instead of common APIs like WinHTTP or WinInet. The connection is initialized with a Windows socket and can continue with initialization of an authenticated Security Support Provider Interface (SSPI) session with the Negotiate/NTLM SSP. After that, DePriMon uses Schannel.

The malware uses the AES encryption with three different 256-bit keys for different purposes. One key decrypts strings within the malware, and the other two are used for the configuration file.

DePriMon is downloaded to memory and executed directly from there as a DLL using the reflective DLL loading technique. It is never stored on disk, which significantly adds to its overall stealth. The configuration file is extensive and contains several interesting elements -- its encryption seems to be properly implemented and so can protect the C&C communication effectively.

In summary, ESET call this "a powerful, flexible and persistent tool designed to download a payload and execute it, and to collect some basic information about the system and its user along the way."

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 9/25/2020
Hacking Yourself: Marie Moe and Pacemaker Security
Gary McGraw Ph.D., Co-founder Berryville Institute of Machine Learning,  9/21/2020
Startup Aims to Map and Track All the IT and Security Things
Kelly Jackson Higgins, Executive Editor at Dark Reading,  9/22/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Special Report: Computing's New Normal
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
How IT Security Organizations are Attacking the Cybersecurity Problem
How IT Security Organizations are Attacking the Cybersecurity Problem
The COVID-19 pandemic turned the world -- and enterprise computing -- on end. Here's a look at how cybersecurity teams are retrenching their defense strategies, rebuilding their teams, and selecting new technologies to stop the oncoming rise of online attacks.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-15208
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, when determining the common dimension size of two tensors, TFLite uses a `DCHECK` which is no-op outside of debug compilation modes. Since the function always returns the dimension of the first tensor, malicious attackers can ...
CVE-2020-15209
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a `nullptr` buffer. This can be achieved by changing a buffer index in the flatbuffer serialization to convert a read-only tensor to a read-write one....
CVE-2020-15210
PUBLISHED: 2020-09-25
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, if a TFLite saved model uses the same tensor as both input and output of an operator, then, depending on the operator, we can observe a segmentation fault or just memory corruption. We have patched the issue in d58c96946b and ...
CVE-2020-15211
PUBLISHED: 2020-09-25
In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices f...
CVE-2020-15212
PUBLISHED: 2020-09-25
In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger writes outside of bounds of heap allocated buffers by inserting negative elements in the segment ids tensor. Users having access to `segment_ids_data` can alter `output_index` and then write to outside of `outpu...