Linux Analysis Report
na.elf

Overview

General Information

Sample name: na.elf
Analysis ID: 1528819
MD5: 5ea3839ef4effebf0c57e18742d1d284
SHA1: a8a3949d509f75217c347dda38c42f1ab53156fc
SHA256: 64d671e954c370655d61855ba22381f9bbd929ac713322765686619cebeac480
Tags: elfuser-abuse_ch
Infos:

Detection

Score: 72
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Executes itself again with its parent PID as an argument (indicative of hampering debugging)
Executes the "iptables" command to insert, remove and/or manipulate rules
Opens /proc/net/* files useful for finding connected devices and routers
Sample deletes itself
Creates hidden files and/or directories
ELF contains segments with high entropy indicating compressed/encrypted content
Enumerates processes within the "proc" file system
Executes commands using a shell command-line interpreter
Executes the "iptables" command used for managing IP filtering and manipulation
Reads the 'hosts' file potentially containing internal network hosts
Sample contains only a LOAD segment without any section mappings
Uses the "uname" system call to query kernel version information (possible evasion)

Classification

AV Detection

barindex
Source: na.elf Avira: detected
Source: na.elf ReversingLabs: Detection: 63%
Source: na.elf Virustotal: Detection: 64% Perma Link

Spreading

barindex
Source: /tmp/na.elf (PID: 5553) Opens: /proc/net/route Jump to behavior

Networking

barindex
Source: /bin/sh (PID: 5565) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 23 -j DROP Jump to behavior
Source: /bin/sh (PID: 5576) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 7547 -j DROP Jump to behavior
Source: /bin/sh (PID: 5582) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5555 -j DROP Jump to behavior
Source: /bin/sh (PID: 5588) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5358 -j DROP Jump to behavior
Source: /bin/sh (PID: 5594) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -D INPUT -j CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5600) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -X CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5603) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -I INPUT -p udp --dport 21170 -j ACCEPT Jump to behavior
Source: /bin/sh (PID: 5565) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 23 -j DROP Jump to behavior
Source: /bin/sh (PID: 5576) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 7547 -j DROP Jump to behavior
Source: /bin/sh (PID: 5582) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5555 -j DROP Jump to behavior
Source: /bin/sh (PID: 5588) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5358 -j DROP Jump to behavior
Source: /bin/sh (PID: 5594) Iptables executable: /usr/sbin/iptables -> iptables -D INPUT -j CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5600) Iptables executable: /usr/sbin/iptables -> iptables -X CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5603) Iptables executable: /usr/sbin/iptables -> iptables -I INPUT -p udp --dport 21170 -j ACCEPT Jump to behavior
Source: /tmp/na.elf (PID: 5555) Reads hosts file: /etc/hosts Jump to behavior
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 127.0.0.1
Source: unknown UDP traffic detected without corresponding DNS query: 127.0.0.1
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: 1.1.1.1
Source: global traffic DNS traffic detected: DNS query: router.utorrent.com
Source: global traffic DNS traffic detected: DNS query: router.bittorrent.com
Source: global traffic DNS traffic detected: DNS query: daisy.ubuntu.com
Source: LOAD without section mappings Program segment: 0x100000
Source: classification engine Classification label: mal72.spre.evad.linELF@0/2@58/0

Persistence and Installation Behavior

barindex
Source: /bin/sh (PID: 5565) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 23 -j DROP Jump to behavior
Source: /bin/sh (PID: 5576) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 7547 -j DROP Jump to behavior
Source: /bin/sh (PID: 5582) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5555 -j DROP Jump to behavior
Source: /bin/sh (PID: 5588) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5358 -j DROP Jump to behavior
Source: /bin/sh (PID: 5594) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -D INPUT -j CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5600) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -X CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5603) Iptables executable using switch for changing the iptables rules: /usr/sbin/iptables -> iptables -I INPUT -p udp --dport 21170 -j ACCEPT Jump to behavior
Source: /tmp/na.elf (PID: 5555) Directory: /tmp/.p Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/5386/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/5386/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/231/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/110/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/111/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/233/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/112/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/113/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/235/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/114/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1333/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1333/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/115/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1695/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1695/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/116/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/117/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/118/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/911/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/119/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/914/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/917/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/917/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/10/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/11/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/12/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/13/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/14/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/15/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/16/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/17/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/18/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/19/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1591/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1591/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/120/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/121/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/243/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/122/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/123/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/2/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1588/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1588/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/124/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/3/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/246/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/125/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/4/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/126/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/5/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1585/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1585/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/127/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/6/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/128/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/7/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/800/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/800/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/129/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/8/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/9/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/802/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/802/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/3886/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/3886/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/803/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/803/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/804/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/804/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/20/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/3407/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/3407/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/21/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/22/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/23/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/24/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/25/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/26/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/27/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/28/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/29/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1484/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1484/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/490/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/490/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/250/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/251/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/130/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/131/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/132/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/133/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1479/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1479/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/378/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/258/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/259/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/931/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/931/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1595/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/1595/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/812/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/812/fd Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/933/cmdline Jump to behavior
Source: /tmp/na.elf (PID: 5555) File opened: /proc/933/fd Jump to behavior
Source: /tmp/na.elf (PID: 5559) Shell command executed: sh -c "iptables -A INPUT -p tcp --destination-port 23 -j DROP" Jump to behavior
Source: /tmp/na.elf (PID: 5571) Shell command executed: sh -c "iptables -A INPUT -p tcp --destination-port 7547 -j DROP" Jump to behavior
Source: /tmp/na.elf (PID: 5577) Shell command executed: sh -c "iptables -A INPUT -p tcp --destination-port 5555 -j DROP" Jump to behavior
Source: /tmp/na.elf (PID: 5583) Shell command executed: sh -c "iptables -A INPUT -p tcp --destination-port 5358 -j DROP" Jump to behavior
Source: /tmp/na.elf (PID: 5589) Shell command executed: sh -c "iptables -D INPUT -j CWMP_CR" Jump to behavior
Source: /tmp/na.elf (PID: 5595) Shell command executed: sh -c "iptables -X CWMP_CR" Jump to behavior
Source: /tmp/na.elf (PID: 5601) Shell command executed: sh -c "iptables -I INPUT -p udp --dport 21170 -j ACCEPT" Jump to behavior
Source: /bin/sh (PID: 5565) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 23 -j DROP Jump to behavior
Source: /bin/sh (PID: 5576) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 7547 -j DROP Jump to behavior
Source: /bin/sh (PID: 5582) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5555 -j DROP Jump to behavior
Source: /bin/sh (PID: 5588) Iptables executable: /usr/sbin/iptables -> iptables -A INPUT -p tcp --destination-port 5358 -j DROP Jump to behavior
Source: /bin/sh (PID: 5594) Iptables executable: /usr/sbin/iptables -> iptables -D INPUT -j CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5600) Iptables executable: /usr/sbin/iptables -> iptables -X CWMP_CR Jump to behavior
Source: /bin/sh (PID: 5603) Iptables executable: /usr/sbin/iptables -> iptables -I INPUT -p udp --dport 21170 -j ACCEPT Jump to behavior
Source: submitted sample Stderr: iptables v1.8.4 (legacy): Couldn't load target `CWMP_CR':No such file or directoryTry `iptables -h' or 'iptables --help' for more information.iptables: No chain/target/match by that name.: exit code = 0

Hooking and other Techniques for Hiding and Protection

barindex
Source: /tmp/na.elf (PID: 5555) File: /tmp/na.elf Jump to behavior
Source: na.elf Submission file: segment LOAD with 7.9794 entropy (max. 8.0)
Source: /tmp/na.elf (PID: 5551) Queries kernel information via 'uname': Jump to behavior
Source: na.elf, 5551.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp, na.elf, 5553.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-mips/tmp/na.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/na.elf
Source: na.elf, 5551.1.00005557ada4b000.00005557adad2000.rw-.sdmp, na.elf, 5553.1.00005557ada4b000.00005557adad2000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/mips
Source: na.elf, 5553.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp Binary or memory string: /tmp/qemu-open.wB9V57
Source: na.elf, 5551.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp, na.elf, 5553.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp Binary or memory string: /usr/bin/qemu-mips
Source: na.elf, 5553.1.00007fffd7a68000.00007fffd7a89000.rw-.sdmp Binary or memory string: WU/tmp/qemu-open.wB9V57
Source: na.elf, 5551.1.00005557ada4b000.00005557adad2000.rw-.sdmp, na.elf, 5553.1.00005557ada4b000.00005557adad2000.rw-.sdmp Binary or memory string: WU!/etc/qemu-binfmt/mips

Anti Debugging

barindex
Source: /tmp/na.elf (PID: 5577) Process with PPID: /bin/sh -> sh -c "iptables -A INPUT -p tcp --destination-port 5555 -j DROP" Jump to behavior
No contacted IP infos