[Trend Micro](https://www.trendmicro.com/) [About TrendLabs Security Intelligence Blog](https://blog.trendmicro.com/trendlabs-security-intelligence/about-us/) [Home » Malware » Shadow Force Uses DLL Hijacking, Targets South Korean Company](https://blog.trendmicro.com/trendlabs-security-intelligence/) # Shadow Force Uses DLL Hijacking, Targets South Korean Company [Posted on:September 9, 2015 at 1:00 am](https://blog.trendmicro.com/trendlabs-security-intelligence/2015/09/) [Posted in:Malware, Targeted Attacks](https://blog.trendmicro.com/trendlabs-security-intelligence/category/malware/) Author: [Dove Chiu (Threat Researcher)](https://blog.trendmicro.com/trendlabs-security-intelligence/author/dovechiu/) 0 What sort of interest would a businessman have in a news agency? That was the question that arose from our recent investigation on an attack that appears to target a media agency in South Korea. Shadow Force is a new backdoor that replaces a DLL called by a particular Windows service. Once that backdoor is open, the attacker can use one or more tools to open up further holes or cause damage. This type of backdoor attack has been previously documented by Trend Micro in a [blog post in May.](http://blog.trendmicro.com/trendlabs-security-intelligence/attack-gains-foothold-against-east-asian-government-through-auto-start/) **_Beginnings of an attack_** The attack begins when the Windows OS starts the Microsoft Distributed Transaction Coordinator (MSDTC) service, which coordinates transactions that span multiple resource managers, such as databases, message queues, and file systems. When the target computer joins a domain, once the MSDTC service starts, it will search the registry. _Figure 1. MSDTC service DLL plugins_ Specifically, the MTxOCI component in MSDTC service searches for three DLLs: oci.dll, SQLLib80.dll, and _xa80.dll. oci.dll isn’t normally found on the computer, but in this case, the hacker has created a backdoor_ component, renamed it to oci.dll, and placed it in %SystemRoot%\system32\. Once the oci.dll is in place, the hacker uses a remote job command to kill the MSDTC service (taskkill /im msdtc.exe /f), causing MSDTC to reload itself. This time, however, it looks for and finds the oci.dll. Calling this DLL opens up Shadow Force. ----- _Figure 2. The kill command kills the MSDTC service, causing it to restart_ This simple technique bypasses forensics tools such as autorun.exe, and makes live detection and remediation more difficult. **_Analysis of Shadow Force_** Shadow Force has several different variations, both in DLL and EXE formats and in a 32-bit or 64-bit implementations. The type of variation will rely on installe.exe, the file that downloads and installs Shadow Force on the computer. If install.exe runs in 32-bit mode, it will download SuperBot.exe. If it runs in 64-bit mode, it will download SuperBotx64.exe. _Figure 3. Strings in the Shadow Force install.exe downloader_ ----- (irc[.]itembuy[.]org) like a normal IRC bot. _Figure 4. The version string inside the Shadow Force 32-bit EXE version_ The DLL version of Shadow Force uses another type of attack. Rather than connect to a C&C server, it uses a [port-reuse technique by downloading and installing the file npf.sys. The npf.sys file (downloaded by Shadow](http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp-backdoor-use-in-targeted-attacks.pdf) Force as a part of its function) comes from famous open source project [Wireshark, a well-known network](https://www.wireshark.org/) protocol analyzer. Therefore, the npf.sys has a valid signature and can be loaded in Windows, to be used in capturing network packets. Connecting to Shadow Force requires a specific password in the correct format. _Figure 5. With port-reuse, the attacker is able to get in through an open port in the firewall and the client, just_ _as legitimate users would_ Once an attacker has gained access to a client system on an otherwise protected network, there are a number of tools that are available to exploit systems, networks, and beyond. These include fileh.exe, latinfect.exe, and aio.exe. More information about these tools, along with information about the presumed attacker can be found in the [technical brief.](http://documents.trendmicro.com/assets/pdf/shadow-force-technical-brief.pdf) [Trend Micro Custom Defense solutions can protect organizations from this type of backdoor attack. These](http://www.trendmicro.com/us/business/cyber-security/) solutions provide in-depth contextual analysis and insight that help IT administrators properly identify suspicious behavior on individual computers and on the network, such as the access to computers and servers. Tags: [APTbackdoorshadow forceSouth Korea](https://blog.trendmicro.com/trendlabs-security-intelligence/tag/apt/) -----