Analysis
- max time kernel
149s - max time network
149s - platform
ubuntu-18.04_amd64 - resource
ubuntu1804-amd64-20260513-en - resource tags
arch:amd64arch:i386image:ubuntu1804-amd64-20260513-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system - submitted
15/09/2026, 06:10
Behavioral task
behavioral1
Sample
bash.elf
Resource
ubuntu1804-amd64-20260513-en
General
- Target bash.elf
- Size 88KB
- Sample260915-gw92csscnc
- SHA256 7eb420b8676a35cc75e252c37cd1d70fdf1c9f0ce83574696dd2516a293bb28f
- MD5 50cd9ff04eb8b19d8c442fa312fdd748
- SHA1 4db5e1fd5f66c166163ea4d7e9de08deeea50f4d
- SHA512 efe1b2ba0cf3a30f6854409721a32f315c0ad08c6dcb1b3ac69ed0aa7790425c8c12eb0eceaf262632c8d74c3a6e3c5846e177fbdfdee115d4c31ad595028506
- SSDEEP 1536:P6VtUnMUPURNTsPEFGs9EB0D3dz3OK8eDyniS0QImnVg/0EpYD+Pi/5qQ7Hhidn:P6bVUPURNTBFGCEB0Dtz3bjD3UVgcE+q
- TLSH T11C934AC2A741D9B3E18316B506E79B211232FD3A1A1B9E49F35C3CF4AF150847326BAD
- MD5 SHA1 SHA512 SSDEEP TLSH
Malware Config
Extracted
-
gafgyt
-
64.89.160.222:55487
Signatures
- Detected Gafgyt variant 1 IoCs
resource yara_rule behavioral1/files/fstream-10.dat family_gafgyt - File and Directory Permissions Modification 1 TTPs 2 IoCs
Adversaries may modify file or directory permissions to evade defenses.
pid Process 1620 sh 1622 chmod - Creates/modifies Cron job 1 TTPs 5 IoCs
Cron allows running tasks on a schedule, and is commonly used for malware persistence.
description ioc Process File opened for modification /etc/cron.d/root bash.elf File opened for modification /var/spool/cron/crontabs/root bash.elf File opened for modification /etc/crontab bash.elf File opened for modification /var/spool/cron/atjobs/.SEQ at File opened for modification /var/spool/cron/atjobs/a0000101c714d3 at - Creates/modifies environment variables 1 TTPs 4 IoCs
Creating/modifying environment variables is a common persistence mechanism.
description ioc Process File opened for modification /root/.profile bash.elf File opened for modification /root/.bash_profile bash.elf File opened for modification /etc/profile.d/bot.sh bash.elf File opened for modification /root/.bashrc bash.elf - Enumerates running processes
Discovers information about currently running processes on the system
-
description ioc Process File opened for modification /etc/init.d/S99bot bash.elf File opened for modification /etc/init.d/bot bash.elf - Modifies rc script 2 TTPs 2 IoCs
Adding/modifying system rc scripts is a common persistence mechanism.
description ioc Process File opened for modification /etc/rc.local bash.elf File opened for modification /etc/rc.d/rc.local bash.elf - Modifies systemd 2 TTPs 1 IoCs
Adds/ modifies systemd service files. Likely to achieve persistence.
description ioc Process File opened for modification /etc/systemd/system/bot.service bash.elf - Reads system routing table 1 TTPs 1 IoCs
Gets active network interfaces from /proc virtual filesystem.
description ioc Process File opened for reading /proc/net/route bash.elf - Schedules an At job 1 TTPs 1 IoCs
Schedules a job to be run using the at command.
pid Process 1619 at - Modifies Bash startup script 2 TTPs 4 IoCs
description ioc Process File opened for modification /etc/profile.d/bot.sh bash.elf File opened for modification /root/.bashrc bash.elf File opened for modification /root/.profile bash.elf File opened for modification /root/.bash_profile bash.elf - Changes its process name 2 IoCs
description ioc pid Process Changes the process name, possibly in an attempt to hide itself ntp 1514 bash.elf Changes the process name, possibly in an attempt to hide itself (sysv-install) 1550 systemctl - 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/route bash.elf -
description ioc Process File opened for reading /proc/179/cmdline bash.elf File opened for reading /proc/1051/cmdline bash.elf File opened for reading /proc/1795/cmdline bash.elf File opened for reading /proc/self/loginuid at File opened for reading /proc/5/cmdline bash.elf File opened for reading /proc/18/cmdline bash.elf File opened for reading /proc/492/cmdline bash.elf File opened for reading /proc/1869/cmdline bash.elf File opened for reading /proc/1665/cmdline bash.elf File opened for reading /proc/1965/cmdline bash.elf File opened for reading /proc/503/cmdline bash.elf File opened for reading /proc/2/cmdline bash.elf File opened for reading /proc/78/cmdline bash.elf File opened for reading /proc/1092/cmdline bash.elf File opened for reading /proc/1906/cmdline bash.elf File opened for reading /proc/1910/cmdline bash.elf File opened for reading /proc/self/stat systemctl File opened for reading /proc/170/cmdline bash.elf File opened for reading /proc/213/cmdline bash.elf File opened for reading /proc/466/cmdline bash.elf File opened for reading /proc/1673/cmdline bash.elf File opened for reading /proc/1/environ systemctl File opened for reading /proc/self/stat systemctl File opened for reading /proc/172/cmdline bash.elf File opened for reading /proc/1110/cmdline bash.elf File opened for reading /proc/sys/kernel/osrelease systemctl File opened for reading /proc/174/cmdline bash.elf File opened for reading /proc/532/cmdline bash.elf File opened for reading /proc/1813/cmdline bash.elf File opened for reading /proc/1955/cmdline bash.elf File opened for reading /proc/1968/cmdline bash.elf File opened for reading /proc/1/sched systemctl File opened for reading /proc/1542/cmdline bash.elf File opened for reading /proc/175/cmdline bash.elf File opened for reading /proc/183/cmdline bash.elf File opened for reading /proc/943/cmdline bash.elf File opened for reading /proc/2063/cmdline bash.elf File opened for reading /proc/1/sched systemctl File opened for reading /proc/137/cmdline bash.elf File opened for reading /proc/926/cmdline bash.elf File opened for reading /proc/1755/cmdline bash.elf File opened for reading /proc/1/sched systemctl File opened for reading /proc/988/cmdline bash.elf File opened for reading /proc/1033/cmdline bash.elf File opened for reading /proc/1822/cmdline bash.elf File opened for reading /proc/1908/cmdline bash.elf File opened for reading /proc/filesystems systemctl File opened for reading /proc/filesystems cp File opened for reading /proc/919/cmdline bash.elf File opened for reading /proc/1817/cmdline bash.elf File opened for reading /proc/13/cmdline bash.elf File opened for reading /proc/507/cmdline bash.elf File opened for reading /proc/985/cmdline bash.elf File opened for reading /proc/1005/cmdline bash.elf File opened for reading /proc/1666/cmdline bash.elf File opened for reading /proc/27/cmdline bash.elf File opened for reading /proc/36/cmdline bash.elf File opened for reading /proc/542/cmdline bash.elf File opened for reading /proc/cmdline systemctl File opened for reading /proc/10/cmdline bash.elf File opened for reading /proc/1068/cmdline bash.elf File opened for reading /proc/1075/cmdline bash.elf File opened for reading /proc/1629/cmdline bash.elf File opened for reading /proc/1681/cmdline bash.elf - Writes file to tmp directory 1 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/.kworker cp
Processes
-
/tmp/bash.elf/tmp/bash.elf1⤵
- Creates/modifies Cron job
- Creates/modifies environment variables
- Modifies init.d
- Modifies rc script
- Modifies systemd
- Reads system routing table
- Modifies Bash startup script
- Changes its process name
- Reads system network configuration
- Reads runtime system information
PID:1512 -
/bin/shsh -c "/usr/sbin/update-rc.d bot defaults 2>/dev/null"2⤵PID:1515
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults3⤵PID:1516
-
/usr/local/sbin/systemctlsystemctl daemon-reload4⤵PID:1517
-
-
/usr/local/bin/systemctlsystemctl daemon-reload4⤵PID:1517
-
-
/usr/sbin/systemctlsystemctl daemon-reload4⤵PID:1517
-
-
/usr/bin/systemctlsystemctl daemon-reload4⤵PID:1517
-
-
/sbin/systemctlsystemctl daemon-reload4⤵PID:1517
-
-
/bin/systemctlsystemctl daemon-reload4⤵
- Reads runtime system information
PID:1517
-
-
-
-
/bin/shsh -c "/sbin/chkconfig --add bot 2>/dev/null"2⤵PID:1546
-
/sbin/chkconfig/sbin/chkconfig --add bot3⤵PID:1547
-
-
-
/bin/shsh -c "systemctl enable bot.service 2>/dev/null"2⤵PID:1548
-
/bin/systemctlsystemctl enable bot.service3⤵
- Changes its process name
- Reads runtime system information
PID:1549 -
/lib/systemd/systemd-sysv-install/lib/systemd/systemd-sysv-install enable bot4⤵PID:1550
-
/usr/bin/getoptgetopt -o r: --long root: -- enable bot5⤵PID:1551
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults5⤵PID:1552
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1553
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1553
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1553
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1553
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1553
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1553
-
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot enable5⤵PID:1574
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1576
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1576
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1576
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1576
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1576
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1576
-
-
-
-
-
-
/bin/shsh -c "echo \"/tmp/bash.elf\" | at now + 1 minute 2>/dev/null"2⤵PID:1617
-
/usr/bin/atat now + 1 minute3⤵
- Creates/modifies Cron job
- Schedules an At job
- Reads runtime system information
PID:1619
-
-
-
/bin/shsh -c "cp /tmp/bash.elf /tmp/.kworker 2>/dev/null; chmod 755 /tmp/.kworker 2>/dev/null"2⤵
- File and Directory Permissions Modification
PID:1620 -
/bin/cpcp /tmp/bash.elf /tmp/.kworker3⤵
- Reads runtime system information
- Writes file to tmp directory
PID:1621
-
-
/bin/chmodchmod 755 /tmp/.kworker3⤵
- File and Directory Permissions Modification
PID:1622
-
-
Network
MITRE ATT&CK Enterprise v16
Persistence
Boot or Logon Autostart Execution
4XDG Autostart Entries
1Boot or Logon Initialization Scripts
2RC Scripts
2Create or Modify System Process
1Systemd Service
1Event Triggered Execution
1Unix Shell Configuration Modification
1Hijack Execution Flow
1Path Interception by PATH Environment Variable
1Scheduled Task/Job
2At
1Cron
1Privilege Escalation
Boot or Logon Autostart Execution
4XDG Autostart Entries
1Boot or Logon Initialization Scripts
2RC Scripts
2Create or Modify System Process
1Systemd Service
1Event Triggered Execution
1Unix Shell Configuration Modification
1Hijack Execution Flow
1Path Interception by PATH Environment Variable
1Scheduled Task/Job
2At
1Cron
1Replay Monitor
Loading Replay Monitor...
Downloads
- Path /etc/cron.d/root
- Size 47B
- SHA256 c88ea3860096f5cd7055fe40623650fea8d816d9c1c48fb59cf1446b6284a5fb
- MD5 524924e9337588e2ac8747eb3666d215
- SHA1 cbd38375d6ce5d6a913a3dd759c76dcaee0d17ca
- SHA512 10636c674685448386f65b65da2d1796dae0ab18a7162f2032f7b7d4babca6eddb02e90c83b4251c83525cb71f9d6146bc75947c039b3b9f65eb0a13ccc96aab
- MD5 SHA1 SHA512
- Path /etc/init.d/S99bot
- Size 82B
- SHA256 41dda35d0890a2f3c8fd444f9261a786e4fae64fa1c5ab877795e81accbb9857
- MD5 da0bfe241b9c925c281ccbdab36aeadd
- SHA1 6a9d9737e108525f6fb117f962110815891f28e4
- SHA512 f7af01d8ec8d2de0795e4ff16404e9adfc963a687a8881e9a23218bf833d32a3dd66984c80eada05b1ce7193b45af92f46b3fb2dc0ec373a1ba0110059dca16a
- TLSH T17AA0128144D3DE102D34244C192033040310320840045733040471E1D043D634268050
- MD5 SHA1 SHA512 TLSH
- Path /etc/init.d/bot
- Size 212B
- SHA256 2ec6941247a8c08a1dd7b43c06e1acf6ec8061c1e173d087e9cfa3dc43fdf157
- MD5 9aaccd845426722ebbd62f4071801cb5
- SHA1 005575ed9f58cb46afc561661ad78e36b9327113
- SHA512 aa7e99f9364a2253afdb63a53bc0d028b3c459261b6941ec57dfbe8292ed221dc0e7c9d82cf73bd2a6a2cac293a99d62160703cbac99fa8970eba0da77f40f63
- TLSH T1DED022831246F71F1B0900C10610E6A1AD02C3052103E13FB01C23F0A7B7747FA3D298
- MD5 SHA1 SHA512 TLSH
- Path /etc/profile.d/bot.sh
- Size 44B
- SHA256 7c2ea42d5ddf05e66b82e9f73cd19c48f0537cd455371aebaf1c19f4eef3e36d
- MD5 9c6cdc60c2dda4dc7c6d19ca2591f028
- SHA1 6d5a9687c12e847c4e54be6dcdcc4b1e4000cfc9
- SHA512 25dde766ebb81cbe5d426890d0898db31f126277a3adacd09f544358b52b00ac7521ea4c616a34195fc3c0c81d93980864db8ad7df61c923650203ce656ac1f9
- MD5 SHA1 SHA512
- Path /etc/rc.local
- Size 16B
- SHA256 2d6135d61f7653c351fceedecee4de747c2b16c31fb652bf2d8bd33b85f4d16b
- MD5 633e40445bd27d85bc461da7bff08dcb
- SHA1 dfab46584fba08bd32731a6af75b0df15fd960fd
- SHA512 c7e07e14bb34791a0b5cb1cdb90f7682981daef257111790aefa1f856b3c903a54bce9f8a86e6f0ea20f0ae5c2c9b056ad256fff2aad024e107b557e61563d8c
- MD5 SHA1 SHA512
- Path /etc/systemd/system/bot.service
- Size 172B
- SHA256 58953975b936aa6358da491074cb4d94cca3ba8cf30716491d72f59b8359cf8e
- MD5 430eff26dd2485359ee93789a04190bd
- SHA1 08b47d81b0021ad73ffaf59b2844c1fb1b1688c1
- SHA512 27ffe9d2b3d4b16b8dfe7122f621aac3daa632be4e4d11c3e1583fe27b0c944fbf9373f94c80f0febf51cea13bfea16262faae9dfcd2323833e3de2c0ea8f9a1
- TLSH T1B9C0C023593124E08A0B35E1EE332B000C30000007CD21300BE0201581D018242219ED
- MD5 SHA1 SHA512 TLSH
- Path /root/.bash_profile
- Size 35B
- SHA256 457cbc1f01d3875f8fa4bdd025c83d17eb635ecf2ba67448c36eca0e8defb105
- MD5 55974eb64c30eafea276093d6ad8059a
- SHA1 fdd2966b031c9ef1cbb4088436b8e4dc4eeadaef
- SHA512 3599ea977e3770b78e29efa4546057e8ab6ff694add59a6236a48029a5d6b5c79630c4df70870234d0ff8fcb1c6e83f8d4673c26bb7d778f8a99b669312f4885
- MD5 SHA1 SHA512
- Path /tmp/.kworker
- Size 88KB
- SHA256 7eb420b8676a35cc75e252c37cd1d70fdf1c9f0ce83574696dd2516a293bb28f
- MD5 50cd9ff04eb8b19d8c442fa312fdd748
- SHA1 4db5e1fd5f66c166163ea4d7e9de08deeea50f4d
- SHA512 efe1b2ba0cf3a30f6854409721a32f315c0ad08c6dcb1b3ac69ed0aa7790425c8c12eb0eceaf262632c8d74c3a6e3c5846e177fbdfdee115d4c31ad595028506
- SSDEEP 1536:P6VtUnMUPURNTsPEFGs9EB0D3dz3OK8eDyniS0QImnVg/0EpYD+Pi/5qQ7Hhidn:P6bVUPURNTBFGCEB0Dtz3bjD3UVgcE+q
- TLSH T11C934AC2A741D9B3E18316B506E79B211232FD3A1A1B9E49F35C3CF4AF150847326BAD
- MD5 SHA1 SHA512 SSDEEP TLSH
- Path /var/spool/cron/atjobs/a0000101c714d3
- Size 387B
- SHA256 e49638259d400b2d8f9cd2350897e53be375827e4782eef5dcda1b9b3aac7dff
- MD5 291e324d8597477891a219cb29079737
- SHA1 abce818d9dc064a05a9698834f0b272c7bb468a6
- SHA512 6a69bdc756abb2e27f28d630eae43d8d3f2561a5c15a53d6d613322408726c43f7c4c825793f11bc16460eb8d0d64251a16885dcbcf5ff891e06620cc9c00548
- TLSH T1C6E061DAA29335B44715F9E31709D58B33C612012D6C7E038870237BCF5439F265B023
- MD5 SHA1 SHA512 TLSH
- Path /var/spool/cron/crontabs/root
- Size 42B
- SHA256 9550c9b690d72e201a51901e54bc76ff5de177eaff8ca9d117118c1527959a58
- MD5 745933268e6137f1cce62d4829cb4309
- SHA1 58dffaa30cbf83becad5b2a665db80b75d0f0c09
- SHA512 370b340711f68ed9a303f41443693af888d7c5da5d6c9b965430c0fa2c7e6a5481b4b4f4bca42529ed58d433017a96441b3688c7d4547691ae8b3b7aa0578d53
- MD5 SHA1 SHA512