Linux Analysis Report
Okami.arm4.elf

Overview

General Information

Sample name: Okami.arm4.elf
Analysis ID: 1467997
MD5: c4ce8ebb4f0728f64149891d1b5a5944
SHA1: 0be7bab32107ab35c2e41e3a7fcb8c6e4e92d444
SHA256: 86ef40bcc6d1fd69e9566677c0f684a4abd13d66d478faafa6fcc6cc40d01e82
Infos:

Detection

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

Signatures

Antivirus / Scanner detection for submitted sample
Malicious sample detected (through community Yara rule)
Multi AV Scanner detection for submitted file
Yara detected Mirai
Detected TCP or UDP traffic on non-standard ports
Executes the "rm" command used to delete files or directories
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
Uses the "uname" system call to query kernel version information (possible evasion)
Yara signature match

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: Okami.arm4.elf Avira: detected
Source: Okami.arm4.elf Virustotal: Detection: 63% Perma Link
Source: global traffic TCP traffic: 192.168.2.23:37056 -> 93.123.85.246:6963
Source: unknown TCP traffic detected without corresponding DNS query: 54.171.230.55
Source: unknown TCP traffic detected without corresponding DNS query: 93.123.85.246
Source: unknown TCP traffic detected without corresponding DNS query: 93.123.85.246
Source: unknown TCP traffic detected without corresponding DNS query: 93.123.85.246
Source: unknown TCP traffic detected without corresponding DNS query: 93.123.85.246
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: 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: Okami.arm4.elf String found in binary or memory: http://fast.no/support/crawler.asp)
Source: Okami.arm4.elf String found in binary or memory: http://feedback.redkolibri.com/
Source: Okami.arm4.elf String found in binary or memory: http://www.baidu.com/search/spider.htm)
Source: Okami.arm4.elf String found in binary or memory: http://www.baidu.com/search/spider.html)
Source: Okami.arm4.elf String found in binary or memory: http://www.billybobbot.com/crawler/)
Source: unknown Network traffic detected: HTTP traffic on port 443 -> 33606
Source: unknown Network traffic detected: HTTP traffic on port 33606 -> 443
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: Okami.arm4.elf, type: SAMPLE Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6252.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6256.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: 6254.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: Okami.arm4.elf PID: 6252, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: Okami.arm4.elf PID: 6254, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Process Memory Space: Okami.arm4.elf PID: 6256, type: MEMORYSTR Matched rule: Linux_Trojan_Gafgyt_28a2fe0c Author: unknown
Source: Initial sample String containing 'busybox' found: pkill -9 busybox
Source: Initial sample String containing 'busybox' found: rm -rf /tmp/* /var/* /var/run/* /var/tmp/*rm -rf /var/log/wtmprm -rf /tmp/*rm -rf /bin/netstatiptables -Fpkill -9 busyboxpkill -9 perlpkill -9 pythonservice iptables stop/sbin/iptables -F; /sbin/iptables -Xservice firewalld stoprm -rf ~/.bash_historyhistory -c;history -wBIG_ENDIANLITTLE_ENDIANBIG_ENDIAN_WLITTLE_ENDIAN_WUNKNOWN/[ INFECTED ] Arch: %s || Type: %s]DUP
Source: Okami.arm4.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: 6252.1.00007f1780017000.00007f1780028000.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: 6256.1.00007f1780017000.00007f1780028000.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: 6254.1.00007f1780017000.00007f1780028000.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: Okami.arm4.elf PID: 6252, 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: Okami.arm4.elf PID: 6254, 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: Okami.arm4.elf PID: 6256, 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: mal72.troj.linELF@0/1@0/0
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: /home/firmware/build/temp-armv4l/gcc-core/gcc/config/arm/lib1funcs.asm
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/_memcpy.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/bcopy.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/memcpy.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/memmove.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/memset.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/strcmp.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/string/arm/strlen.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/sysdeps/linux/arm/crt1.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/sysdeps/linux/arm/crti.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/sysdeps/linux/arm/crtn.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/sysdeps/linux/arm/sigrestorer.S
Source: Okami.arm4.elf ELF static info symbol of initial sample: libc/sysdeps/linux/arm/vfork.S
Source: /usr/bin/dash (PID: 6226) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.XLbxa6EPTW /tmp/tmp.bKEOEJRMDG /tmp/tmp.RzYC6aniur Jump to behavior
Source: /usr/bin/dash (PID: 6227) Rm executable: /usr/bin/rm -> rm -f /tmp/tmp.XLbxa6EPTW /tmp/tmp.bKEOEJRMDG /tmp/tmp.RzYC6aniur Jump to behavior
Source: /tmp/Okami.arm4.elf (PID: 6252) Queries kernel information via 'uname': Jump to behavior
Source: Okami.arm4.elf, 6252.1.00005567ef6d2000.00005567ef800000.rw-.sdmp, Okami.arm4.elf, 6254.1.00005567ef6d2000.00005567ef800000.rw-.sdmp, Okami.arm4.elf, 6256.1.00005567ef6d2000.00005567ef800000.rw-.sdmp Binary or memory string: gU!/etc/qemu-binfmt/arm
Source: Okami.arm4.elf, 6252.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp, Okami.arm4.elf, 6254.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp, Okami.arm4.elf, 6256.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp Binary or memory string: zx86_64/usr/bin/qemu-arm/tmp/Okami.arm4.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/Okami.arm4.elf
Source: Okami.arm4.elf, 6252.1.00005567ef6d2000.00005567ef800000.rw-.sdmp, Okami.arm4.elf, 6254.1.00005567ef6d2000.00005567ef800000.rw-.sdmp, Okami.arm4.elf, 6256.1.00005567ef6d2000.00005567ef800000.rw-.sdmp Binary or memory string: /etc/qemu-binfmt/arm
Source: Okami.arm4.elf, 6252.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp, Okami.arm4.elf, 6254.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp, Okami.arm4.elf, 6256.1.00007ffecdd7e000.00007ffecdd9f000.rw-.sdmp Binary or memory string: /usr/bin/qemu-arm

Stealing of Sensitive Information

barindex
Source: Yara match File source: Okami.arm4.elf, type: SAMPLE
Source: Yara match File source: 6252.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6256.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6254.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6252, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6254, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6256, type: MEMORYSTR
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Source: Initial sample User agent string found: Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16
Source: Initial sample User agent string found: Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201
Source: Initial sample User agent string found: Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko
Source: Initial sample User agent string found: Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/20111216 Firefox/9.0 Fennec/9.0
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5
Source: Initial sample User agent string found: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.60
Source: Initial sample User agent string found: Mozilla/5.0 (iPad; U; CPU OS 5_1 like Mac OS X) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10 UCBrowser/3.4.3.532
Source: Initial sample User agent string found: Mozilla/5.0 (Nintendo WiiU) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.4.2.12 NintendoBrowser/4.3.1.11264.US
Source: Initial sample User agent string found: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0
Source: Initial sample User agent string found: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; pl) Opera 11.00
Source: Initial sample User agent string found: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; en) Opera 11.00
Source: Initial sample User agent string found: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; ja) Opera 11.00
Source: Initial sample User agent string found: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; cn) Opera 11.00
Source: Initial sample User agent string found: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; fr) Opera 11.00
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Source: Initial sample User agent string found: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Source: Initial sample User agent string found: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Source: Initial sample User agent string found: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36

Remote Access Functionality

barindex
Source: Yara match File source: Okami.arm4.elf, type: SAMPLE
Source: Yara match File source: 6252.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6256.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: 6254.1.00007f1780017000.00007f1780028000.r-x.sdmp, type: MEMORY
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6252, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6254, type: MEMORYSTR
Source: Yara match File source: Process Memory Space: Okami.arm4.elf PID: 6256, type: MEMORYSTR
  • No. of IPs < 25%
  • 25% < No. of IPs < 50%
  • 50% < No. of IPs < 75%
  • 75% < No. of IPs