# Malware Analysis Report (MAR) - 10132963 2017-08-14 ## Notification This report is provided "as is" for informational purposes only. The Department of Homeland Security (DHS) does not provide any warranties of any kind regarding any information contained within. The DHS does not endorse any commercial product or service, referenced in this bulletin or otherwise. This document is marked TLP:WHITE. Disclosure is not limited. Sources may use TLP:WHITE when information carries minimal or no foreseeable risk of misuse, in accordance with applicable rules and procedures for public release. Subject to standard copyright rules, [TLP:WHITE information may be distributed without restriction. For more information on the Traffic Light Protocol, see http://www.us-cert.gov](http:http://www.us-cert.gov) /tlp/. ## Summary **Description** US-CERT received three files associated with the DeltaCharlie attack malware. The files are designed to conduct three types of attacks, NTP_Attack, DNS_Attack, and CGN_Attack. The files also establish backdoor command-and-control capability on the victim system. **Files** **Processed** 3 584ac94142f0b7c0df3d0adde6e661ed (mimefilter.xml_584AC94142F0B7C0DF3D0ADDE6E661ED) 5d29dfe2ea9ca8da3ff7a14fb20c5e86 (5D29DFE2EA9CA8DA3FF7A14FB20C5E86) 8f4fc2e10b6ec15a01e0af24529040dd (8F4FC2E10B6EC15A01E0AF24529040DD) **IPs** **Identified** 2 [202.126.90.89](http:202.126.90.89) [153.68.198.14](http:153.68.198.14) ----- ## Files ### 5D29DFE2EA9CA8DA3FF7A14FB20C5E86 **Details** **Name** 5D29DFE2EA9CA8DA3FF7A14FB20C5E86 **Size** 180224 **Type** PE32 executable (GUI) Intel 80386, for MS Windows **MD5** 5d29dfe2ea9ca8da3ff7a14fb20c5e86 **SHA1** 3fdf856b6fbcb23e7c3372a3f53ce26c0fe6de77 **ssdeep** 3072:9sCh49HhQS2qaWuLYyJHYnGerQJDu70cSrzdZHlIbFX:9sCh4TQqaZYyJHYGen70lzdZFSZ **Entropy** 6.13711245238 **Antivirus** **ClamAV** Win.Trojan.Agent-1388767 **Kaspersky** HackTool.Win32.Agent.aesh **Microsoft Security Essentials** Backdoor:Win32/Winsec.B!dha **TrendMicro House Call** BKDR_SCADPRV.B **TrendMicro** BKDR_SCADPRV.B **PE Information** **Compiled** 2014-12-17T14:03:38Z **PE Sections** **Name** **MD5** **Raw Size** **Entropy** (header) 6a5356bedf23ccecac180cd887c15de8 4096 0.792314879114 .text 72d9f7da3d7eb917a18954668399ce67 77824 6.14523436219 .rdata af59deeeff5d5f41ecdd092b80536d25 8192 3.96837828979 .data b994d715f522732213ea03cb2013a469 12288 4.24722552284 .rsrc 219125d84f95e9ec104a49383da7b991 77824 6.31904971708 **Packers** **Name** **Version** **Entry Point** Microsoft Visual C++ v6.0 NA NA **Relationships** (F) 5D29DFE2EA9CA8DA3FF7A14FB20C5E86 Connected_To (I) 202.126.90.89 (5d29d) (F) 5D29DFE2EA9CA8DA3FF7A14FB20C5E86 Related_To (S) Screenshot 1: Program Connection Log (5d29d) (F) 5D29DFE2EA9CA8DA3FF7A14FB20C5E86 Connected_From [(I) 153.68.198.14](http:153.68.198.14) (5d29d) **Description** This file contains three embedded resources. Two of the resources are 32bit and 64bit versions of the winpcap packet driver called npf.sys. The third resource is the program's configuration file, netplg.log. When the program is executed, it will look for any previous existence of itself by looking for the mutex '\Global\NetplugDiscovery0.7'. The malware will then install the packet driver described above based on the operating system architecture. If this is the first time the program has started, the program will create and install a new service called 'netplug". ---Begin Service Details--­ netplug Network Card Service "This service monitors the network interface, turning it off or on depending on signal, used mainly for laptos that may not always be connected." ----- When the netplug service is executed, it will load 'netplg.log'. This resource will then be stored in %System32% and contains the hard-coded [IP address, 153.68.198.14. This IP address is used to calculate the true command and control (C2) IP address by XORing the IP address](http:153.68.198.14) with the hex string 0x579C3A53 and attempting to connect to the newly created IP address on TCP Port 443. The malware generates a log file in the current directory where activity regarding the installation of the bot and the connection are stored. This file is named the same as the malware with the .log. If the malware is able to connect, it will send the log file to the C2. In this analysis, the C2 was [determined to be 202.126.90.89. See Screenshot 1. If no results are returned, the malware will terminate.](http:202.126.90.89) The malware contains an attack component that can perform the following commands: ---Begin Bot Commands-- DownExec - Downloads and executes files (calls URLDownloadToFile) ChngBotconfig - Changes the configuration of the bot BotUpdate - Updates the attack modules BotDie - Terminates the bot by calling a self-deleting batch file, msvcrt.bat [No Name] - Starts a new attack [No Name] - Stops the attack ---End Bot Commands--­ The malware is capable of conducting three different types of attacks: ---Begin Attack List--­ NTP_ATTACK - Network Time Protocol attack via UDP flood CGN_ATTACK - Carrier Grade NAT attack targeting CGN IP addresses DNS_ATTACK - Domain Name Service attack via UDP flood ---End Attack List--­ When the Network Card Service (netplug) is started, the malware will begin logging activity to the file, .log which is stored in the current directory. The log file records all installation and connection activity associated with the bot and is written in plaintext. The following is a sample of log file entries associated with the service startup: ---Log File Entries-- AtkNum: TotalPackets: Resovle DnsName Falied: --> Written if unable to resolve DNS name from configuration file __ResolveDnsName: --> Written if resolution is successful :Connecting...: --> Written during connection process :Connected --> Written if connection is successful :HS Success --> If unsuccessful the socket will be closed :Connection Failed --> Written if connection fails MyMain Started --> Service is initiated CreateService Success --> Service is successfully created StartService Success --> Service is successfully started CreateBotMutex: ERROR_ALREADY_EXISTS --> Mutex is successfully created LoadConfig Failed: ERROR_ALREADY_EXISTS --> The service is already running SERVICE_CONTROL_SHUTDOWN, error code = --> The service failed to start SetServiceStatus failed, error code = --> The service is not configured correctly **************Connection Fins... --> Written when the log is successfully sent to the C2 ---End File Entries--­ Each time the service is started, it will attempt to open and read data from the configuration file: ---Log File Entries-- ExtractPackage Failed: %d --> Written if the service fails to open the file ExtractConfig Failed: %d --> Written if the service fails to read the file ExtractPackage Success --> Written if the service successfully opens the file ExtractConfig Success --> Written if the service successfully reads the file ----- ---End File Entries-- When the service receives an attack command, the program creates a new log file called edbchk.log. This file is stored in C:\Windows \System32\catroot2\ and records all activity associated with the attack bot only. The following entries can be written to the log: ---Begin File Entries-- ############## Received Attack Cmd %d#... --> Written when the attack command is received Waiting For NTP Attack ...Remain