Linux Analysis Report
nshsh4.elf

Overview

General Information

Sample name: nshsh4.elf
Analysis ID: 1579317
MD5: bd14004302eec01d48b1a9820a705a6f
SHA1: 4510501ad0c2edbddaa4ef5b15056bd9e8360977
SHA256: 7c60ccdef9d31b263c2aab0fd961a99653baf79d4c6e946e88d2cb70dd8869e4
Tags: elfuser-abuse_ch
Infos:

Detection

Mirai
Score: 68
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Yara detected Mirai
Sends malformed DNS queries
Detected TCP or UDP traffic on non-standard ports
Executes the "rm" command used to delete files or directories
Sample has stripped symbol table
Sample listens on a socket
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)

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: nshsh4.elf Avira: detected
Source: nshsh4.elf ReversingLabs: Detection: 28%
Source: nshsh4.elf Virustotal: Detection: 31% Perma Link

Networking

barindex
Source: global traffic DNS traffic detected: malformed DNS query: catvision.dyn. [malformed]
Source: global traffic DNS traffic detected: malformed DNS query: hikvision.geek. [malformed]
Source: global traffic DNS traffic detected: malformed DNS query: catlovingfools.geek. [malformed]
Source: global traffic TCP traffic: 192.168.2.23:38760 -> 212.64.215.71:12339
Source: global traffic TCP traffic: 192.168.2.23:59924 -> 80.78.26.121:18034
Source: global traffic TCP traffic: 192.168.2.23:56568 -> 37.49.226.109:4066
Source: /tmp/nshsh4.elf (PID: 6244) Socket: 127.0.0.1:1172 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: 63.211.104.140
Source: unknown TCP traffic detected without corresponding DNS query: 130.14.254.78
Source: unknown TCP traffic detected without corresponding DNS query: 11.168.200.213
Source: unknown TCP traffic detected without corresponding DNS query: 147.68.124.23
Source: unknown TCP traffic detected without corresponding DNS query: 3.64.42.118
Source: unknown TCP traffic detected without corresponding DNS query: 131.226.154.120
Source: unknown TCP traffic detected without corresponding DNS query: 208.1.162.96
Source: unknown TCP traffic detected without corresponding DNS query: 32.205.85.249
Source: unknown TCP traffic detected without corresponding DNS query: 53.141.162.93
Source: unknown TCP traffic detected without corresponding DNS query: 161.190.189.65
Source: unknown TCP traffic detected without corresponding DNS query: 206.130.136.21
Source: unknown TCP traffic detected without corresponding DNS query: 115.143.179.120
Source: unknown TCP traffic detected without corresponding DNS query: 119.140.95.65
Source: unknown TCP traffic detected without corresponding DNS query: 76.249.213.186
Source: unknown TCP traffic detected without corresponding DNS query: 9.7.150.18
Source: unknown TCP traffic detected without corresponding DNS query: 208.161.132.217
Source: unknown TCP traffic detected without corresponding DNS query: 166.37.181.185
Source: unknown TCP traffic detected without corresponding DNS query: 5.133.174.91
Source: unknown TCP traffic detected without corresponding DNS query: 46.21.37.116
Source: unknown TCP traffic detected without corresponding DNS query: 196.206.215.123
Source: unknown TCP traffic detected without corresponding DNS query: 29.245.146.125
Source: unknown TCP traffic detected without corresponding DNS query: 4.225.196.4
Source: unknown TCP traffic detected without corresponding DNS query: 115.195.93.172
Source: unknown TCP traffic detected without corresponding DNS query: 4.41.36.159
Source: unknown TCP traffic detected without corresponding DNS query: 152.247.55.62
Source: unknown TCP traffic detected without corresponding DNS query: 78.33.166.123
Source: unknown TCP traffic detected without corresponding DNS query: 89.21.251.169
Source: unknown TCP traffic detected without corresponding DNS query: 65.14.139.117
Source: unknown TCP traffic detected without corresponding DNS query: 72.91.224.126
Source: unknown TCP traffic detected without corresponding DNS query: 188.179.45.73
Source: unknown TCP traffic detected without corresponding DNS query: 202.161.112.251
Source: unknown TCP traffic detected without corresponding DNS query: 181.238.90.25
Source: unknown TCP traffic detected without corresponding DNS query: 94.251.3.188
Source: unknown TCP traffic detected without corresponding DNS query: 18.71.102.122
Source: unknown TCP traffic detected without corresponding DNS query: 202.197.78.219
Source: unknown TCP traffic detected without corresponding DNS query: 14.67.102.25
Source: unknown TCP traffic detected without corresponding DNS query: 33.126.243.129
Source: unknown TCP traffic detected without corresponding DNS query: 18.253.120.33
Source: unknown TCP traffic detected without corresponding DNS query: 163.208.65.166
Source: unknown TCP traffic detected without corresponding DNS query: 203.6.79.2
Source: unknown TCP traffic detected without corresponding DNS query: 202.140.101.130
Source: unknown TCP traffic detected without corresponding DNS query: 119.8.224.130
Source: unknown TCP traffic detected without corresponding DNS query: 208.101.213.121
Source: unknown TCP traffic detected without corresponding DNS query: 91.28.59.60
Source: unknown TCP traffic detected without corresponding DNS query: 198.138.51.143
Source: unknown TCP traffic detected without corresponding DNS query: 134.169.90.170
Source: unknown TCP traffic detected without corresponding DNS query: 3.245.221.177
Source: unknown TCP traffic detected without corresponding DNS query: 83.38.255.201
Source: unknown TCP traffic detected without corresponding DNS query: 13.79.80.193
Source: global traffic DNS traffic detected: DNS query: shitrocket.dyn
Source: global traffic DNS traffic detected: DNS query: catvision.dyn. [malformed]
Source: global traffic DNS traffic detected: DNS query: catlovingfools.geek
Source: global traffic DNS traffic detected: DNS query: hikvision.geek. [malformed]
Source: global traffic DNS traffic detected: DNS query: catlovingfools.geek. [malformed]
Source: unknown Network traffic detected: HTTP traffic on port 43928 -> 443
Source: unknown Network traffic detected: HTTP traffic on port 42836 -> 443
Source: ELF static info symbol of initial sample .symtab present: no
Source: classification engine Classification label: mal68.troj.linELF@0/0@11/0
Source: /usr/bin/dash (PID: 6210) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.LkcmSSBOTi /tmp/tmp.0L3m1Lf8Gy /tmp/tmp.o2SAY1ICZO Jump to behavior
Source: /usr/bin/dash (PID: 6219) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.LkcmSSBOTi /tmp/tmp.0L3m1Lf8Gy /tmp/tmp.o2SAY1ICZO Jump to behavior
Source: /tmp/nshsh4.elf (PID: 6244) Queries kernel information via 'uname': Jump to behavior
Source: nshsh4.elf, 6244.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp, nshsh4.elf, 6246.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp, nshsh4.elf, 6301.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp Binary or memory string: vx86_64/usr/bin/qemu-sh4/tmp/nshsh4.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/nshsh4.elf
Source: nshsh4.elf, 6244.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp, nshsh4.elf, 6246.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp, nshsh4.elf, 6301.1.00007ffd1ee48000.00007ffd1ee69000.rw-.sdmp Binary or memory string: /usr/bin/qemu-sh4
Source: nshsh4.elf, 6301.1.000055dcb813a000.000055dcb81be000.rw-.sdmp Binary or memory string: /usr/bin/vmtoolsd
Source: nshsh4.elf, 6244.1.000055dcb813a000.000055dcb81be000.rw-.sdmp, nshsh4.elf, 6246.1.000055dcb813a000.000055dcb81be000.rw-.sdmp, nshsh4.elf, 6301.1.000055dcb813a000.000055dcb81be000.rw-.sdmp Binary or memory string: U5!/etc/qemu-binfmt/sh4
Source: nshsh4.elf, 6244.1.000055dcb813a000.000055dcb81be000.rw-.sdmp, nshsh4.elf, 6246.1.000055dcb813a000.000055dcb81be000.rw-.sdmp, nshsh4.elf, 6301.1.000055dcb813a000.000055dcb81be000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/sh4
Source: nshsh4.elf, 6301.1.000055dcb813a000.000055dcb81be000.rw-.sdmp Binary or memory string: U!/usr/bin/vmtoolsd!PolicyInformation
Source: nshsh4.elf, 6301.1.00007ffd1ee48000.00007ffd1ee69000.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: nshsh4.elf, type: SAMPLE
Source: Yara match File source: 6244.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6246.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6301.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY

Remote Access Functionality

barindex
Source: Yara match File source: nshsh4.elf, type: SAMPLE
Source: Yara match File source: 6244.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6246.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6301.1.00007f19d8400000.00007f19d8410000.r-x.sdmp, type: MEMORY
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs