Linux Analysis Report
ehDbsf5C6M.elf

Overview

General Information

Sample name: ehDbsf5C6M.elf
renamed because original name is a hash value
Original sample name: c772f71c82ccae9115f74dc58fcdb601.elf
Analysis ID: 1417431
MD5: c772f71c82ccae9115f74dc58fcdb601
SHA1: f22397ca47cbdce53af86635114f7a61ac019bf6
SHA256: 3d572695b0e5d9e53e4fef77b63023d2cce68dd18521b88d1d7a7384857b3ccd
Tags: 32elfgafgytpowerpc
Infos:

Detection

Gafgyt, Mirai
Score: 100
Range: 0 - 100
Whitelisted: false

Signatures

Antivirus / Scanner detection for submitted sample
Found malware configuration
Malicious sample detected (through community Yara rule)
Multi AV Scanner detection for submitted file
Yara detected Gafgyt
Yara detected Mirai
Connects to many ports of the same IP (likely port scanning)
Contains symbols with names commonly found in malware
Opens /proc/net/* files useful for finding connected devices and routers
Detected TCP or UDP traffic on non-standard ports
Sample contains strings indicative of BusyBox which embeds multiple Unix commands in a single executable
Sample contains strings that are user agent strings indicative of HTTP manipulation
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)
Yara signature match

Classification

Name Description Attribution Blogpost URLs Link
Bashlite, Gafgyt Bashlite is a malware family which infects Linux systems in order to launch distributed denial-of-service attacks (DDoS). Originally it was also known under the name Bashdoor, but this term now refers to the exploit method used by the malware. It has been used to launch attacks of up to 400 Gbps. No Attribution https://malpedia.caad.fkie.fraunhofer.de/details/elf.bashlite
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: ehDbsf5C6M.elf Avira: detected
Source: ehDbsf5C6M.elf Malware Configuration Extractor: Gafgyt {"C2 url": "193.35.18.56:65490"}
Source: ehDbsf5C6M.elf Virustotal: Detection: 52% Perma Link
Source: ehDbsf5C6M.elf ReversingLabs: Detection: 47%

Spreading

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

Networking

barindex
Source: global traffic TCP traffic: 193.35.18.56 ports 0,4,5,6,9,65490
Source: global traffic TCP traffic: 192.168.2.23:32894 -> 193.35.18.56:65490
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: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
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.43
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 109.202.202.202
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
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.43
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: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown TCP traffic detected without corresponding DNS query: 193.35.18.56
Source: unknown Network traffic detected: HTTP traffic on port 43928 -> 443
Source: unknown Network traffic detected: HTTP traffic on port 42836 -> 443

System Summary

barindex
Source: ehDbsf5C6M.elf, type: SAMPLE Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6249.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6247.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: ehDbsf5C6M.elf PID: 6247, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: ehDbsf5C6M.elf PID: 6249, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: ELF static info symbol of initial sample Name: vseattack
Source: Initial sample String containing 'busybox' found: /bin/busybox
Source: Initial sample String containing 'busybox' found: LZRDskidx86?-_-=1IObeENwjmipsvlxx.arm6vlxx.armvlxx.x86_64vlxx.mipsvlxx.arm7vlxx.m68kvlxx.mpslvlxx.ppcvlxx.sh4vlxx.x86vlxx.arm5sys64.m68ksys64.x86sys64.x86_64sys64.arm6sys64.mpslsys64.spcsys64.ar64besys64.sh4sys64.aarch64sys64.i686sys64.arm7sys64.armsys64.mipssys64.arm5IObeENwjmpslIObeENwjarmIObeENwjarm4IObeENwjarm5IObeENwjarm6IObeENwjarm7.x86.x86_64.arm.arm5.arm6.arm7.mips.mipsel.sh4.ppcdvrhelperhuhudvrsupportmiraiArceusla.bot.0xc2sfuckjewishpeople.mipsfuckjewishpeoplessh.mipsHadesboatnetloligangSakuraDemonbladedemonhohohakaisoramessiahmipsmipselsh4superhx86armv7armv6i686campnig.x86nigpercx86dosbotBOTDOS@DOSBOTDOSBOTperci5perci6percmipspercmpslpercsparkpercm68kpercppcpercsh4percshpercoarmperceightysixpercmips&lperc.shCronx86anacronCronarmCronmipsCronmpslCronspcCronm68kCronppcCronsh4Cronshcnrpox(deleted)killpstreekillallbgpmaplsofarmUser-Agent:/dev/nullSTD/etc/rc.conf/proc/net/tcp/proc/self/exeUPX!/proc/net/route/etc/rc.d/rc.local/bin/shtophtopgrepbashcatnanopssshtelnetdpcbashdvarsshdcurltftpdtelnetvar/Challe
Source: ehDbsf5C6M.elf, type: SAMPLE Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: 6249.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: 6247.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: Process Memory Space: ehDbsf5C6M.elf PID: 6247, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: Process Memory Space: ehDbsf5C6M.elf PID: 6249, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c os = linux, severity = x86, creation_date = 2021-01-12, scan_context = file, memory, license = Elastic License v2, threat_name = Linux.Trojan.Gafgyt, fingerprint = a2c6beaec18ca876e8487c11bcc7a29279669588aacb7d3027d8d8df8f5bcead, id = 28a2fe0c-eed5-4c79-81e6-3b11b73a4ebd, last_modified = 2021-09-16
Source: classification engine Classification label: mal100.spre.troj.linELF@0/1@0/0
Source: /tmp/ehDbsf5C6M.elf (PID: 6247) Queries kernel information via 'uname': Jump to behavior
Source: ehDbsf5C6M.elf, 6247.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp Binary or memory string: /tmp/qemu-open.UGOJDz
Source: ehDbsf5C6M.elf, 6247.1.000055aa7c1b3000.000055aa7c263000.rw-.sdmp, ehDbsf5C6M.elf, 6249.1.000055aa7c1b3000.000055aa7c263000.rw-.sdmp Binary or memory string: !/etc/qemu-binfmt/ppc1
Source: ehDbsf5C6M.elf, 6247.1.000055aa7c1b3000.000055aa7c263000.rw-.sdmp, ehDbsf5C6M.elf, 6249.1.000055aa7c1b3000.000055aa7c263000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/ppc
Source: ehDbsf5C6M.elf, 6247.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp, ehDbsf5C6M.elf, 6249.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp Binary or memory string: /usr/bin/qemu-ppc
Source: ehDbsf5C6M.elf, 6247.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp, ehDbsf5C6M.elf, 6249.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp Binary or memory string: x86_64/usr/bin/qemu-ppc/tmp/ehDbsf5C6M.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/ehDbsf5C6M.elf
Source: ehDbsf5C6M.elf, 6247.1.00007ffd9b2ab000.00007ffd9b2cc000.rw-.sdmp Binary or memory string: U/tmp/qemu-open.UGOJDz\

Stealing of Sensitive Information

barindex
Source: Yara match File source: ehDbsf5C6M.elf, type: SAMPLE
Source: Yara match File source: ehDbsf5C6M.elf, type: SAMPLE
Source: Yara match File source: 6249.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6247.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: ehDbsf5C6M.elf PID: 6247, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: ehDbsf5C6M.elf PID: 6249, type: MEMORYSTR
Source: Initial sample User agent string found: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.1 31.5
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.3 17.34
Source: Initial sample User agent string found: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.1 11.27
Source: Initial sample User agent string found: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.1 9.83
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.3 9.25
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120. 6.94
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117. 2.31
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0. 2.31
Source: Initial sample User agent string found: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.3 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115. 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.3 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Herring/90.1.9310.1 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 OPR/105.0.0. 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.4 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.3 1.16
Source: Initial sample User agent string found: Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.169 Mobile/15E148 Safari/604.
Source: Initial sample User agent string found: Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Mobile/15E148 Safari/604.

Remote Access Functionality

barindex
Source: Yara match File source: ehDbsf5C6M.elf, type: SAMPLE
Source: Yara match File source: ehDbsf5C6M.elf, type: SAMPLE
Source: Yara match File source: 6249.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6247.1.00007fe278001000.00007fe278018000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: ehDbsf5C6M.elf PID: 6247, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: ehDbsf5C6M.elf PID: 6249, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs