Analysis
- max time kernel
146s - 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
06/10/2026, 05:43
Behavioral task
behavioral1
Sample
bash.elf
Resource
ubuntu1804-amd64-20260513-en
General
- Target bash.elf
- Size 109KB
- Sample261006-genrss1fld
- SHA256 f64e69b29a732cad6a023c77ba8dff6bd35fc0afef35364b367e6cd30f4b216b
- MD5 3aca8a0e2a1ce31cad826855ee3cebd8
- SHA1 204d2a2f0fd3a78f19f03e52a0dab02752093d00
- SHA512 d37d8e870f08b2946e438ce6ccbbd84d921f6e0c27143a2d926b00dc8ff2ab1fcd1c9618ffbb0d3d0265b23bd9a39f0f21da895c8435cbf833ce007d1fdbbd45
- SSDEEP 3072:YHS9r0UVKOtvsad4m3KkXP+jZBHDaSo4XRZhSvn:9KOtvPxKC+1BHDaSo4XRZhSvn
- TLSH T11BB33ACDE740D577D58319B2D29787234072EA361A1ACA05F3DBFCB4AB25184B221BED
- 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 1575 sh 1577 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 /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/a0000101c78ad8 at File opened for modification /etc/cron.d/root bash.elf - Creates/modifies environment variables 1 TTPs 4 IoCs
Creating/modifying environment variables is a common persistence mechanism.
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 - 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 1574 at - Modifies Bash startup script 2 TTPs 4 IoCs
description ioc Process 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 File opened for modification /etc/profile.d/bot.sh bash.elf - Changes its process name 2 IoCs
description ioc pid Process Changes the process name, possibly in an attempt to hide itself bash 1470 bash.elf Changes the process name, possibly in an attempt to hide itself (sysv-install) 1505 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/330/cmdline bash.elf File opened for reading /proc/513/cmdline bash.elf File opened for reading /proc/filesystems cp File opened for reading /proc/1043/cmdline bash.elf File opened for reading /proc/1054/cmdline bash.elf File opened for reading /proc/1797/cmdline bash.elf File opened for reading /proc/892/cmdline bash.elf File opened for reading /proc/897/cmdline bash.elf File opened for reading /proc/914/cmdline bash.elf File opened for reading /proc/1767/cmdline bash.elf File opened for reading /proc/1/sched systemctl File opened for reading /proc/1059/cmdline bash.elf File opened for reading /proc/1904/cmdline bash.elf File opened for reading /proc/2006/cmdline bash.elf File opened for reading /proc/self/stat systemctl File opened for reading /proc/17/cmdline bash.elf File opened for reading /proc/1842/cmdline bash.elf File opened for reading /proc/1037/cmdline bash.elf File opened for reading /proc/1795/cmdline bash.elf File opened for reading /proc/84/cmdline bash.elf File opened for reading /proc/1024/cmdline bash.elf File opened for reading /proc/1061/cmdline bash.elf File opened for reading /proc/1705/cmdline bash.elf File opened for reading /proc/1740/cmdline bash.elf File opened for reading /proc/3/cmdline bash.elf File opened for reading /proc/164/cmdline bash.elf File opened for reading /proc/1607/cmdline bash.elf File opened for reading /proc/1857/cmdline bash.elf File opened for reading /proc/filesystems systemctl File opened for reading /proc/1041/cmdline bash.elf File opened for reading /proc/1585/cmdline bash.elf File opened for reading /proc/1924/cmdline bash.elf File opened for reading /proc/933/cmdline bash.elf File opened for reading /proc/1606/cmdline bash.elf File opened for reading /proc/1649/cmdline bash.elf File opened for reading /proc/1754/cmdline bash.elf File opened for reading /proc/12/cmdline bash.elf File opened for reading /proc/406/cmdline bash.elf File opened for reading /proc/4/cmdline bash.elf File opened for reading /proc/19/cmdline bash.elf File opened for reading /proc/493/cmdline bash.elf File opened for reading /proc/1066/cmdline bash.elf File opened for reading /proc/1647/cmdline bash.elf File opened for reading /proc/14/cmdline bash.elf File opened for reading /proc/23/cmdline bash.elf File opened for reading /proc/83/cmdline bash.elf File opened for reading /proc/86/cmdline bash.elf File opened for reading /proc/952/cmdline bash.elf File opened for reading /proc/969/cmdline bash.elf File opened for reading /proc/980/cmdline bash.elf File opened for reading /proc/1937/cmdline bash.elf File opened for reading /proc/26/cmdline bash.elf File opened for reading /proc/254/cmdline bash.elf File opened for reading /proc/270/cmdline bash.elf File opened for reading /proc/660/cmdline bash.elf File opened for reading /proc/1498/cmdline bash.elf File opened for reading /proc/self/stat systemctl File opened for reading /proc/693/cmdline bash.elf File opened for reading /proc/962/cmdline bash.elf File opened for reading /proc/1611/cmdline bash.elf File opened for reading /proc/1859/cmdline bash.elf File opened for reading /proc/1933/cmdline bash.elf File opened for reading /proc/self/stat systemctl File opened for reading /proc/25/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:1468 -
/bin/shsh -c "/usr/sbin/update-rc.d bot defaults 2>/dev/null"2⤵PID:1471
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults3⤵PID:1472
-
/usr/local/sbin/systemctlsystemctl daemon-reload4⤵PID:1474
-
-
/usr/local/bin/systemctlsystemctl daemon-reload4⤵PID:1474
-
-
/usr/sbin/systemctlsystemctl daemon-reload4⤵PID:1474
-
-
/usr/bin/systemctlsystemctl daemon-reload4⤵PID:1474
-
-
/sbin/systemctlsystemctl daemon-reload4⤵PID:1474
-
-
/bin/systemctlsystemctl daemon-reload4⤵
- Reads runtime system information
PID:1474
-
-
-
-
/bin/shsh -c "/sbin/chkconfig --add bot 2>/dev/null"2⤵PID:1501
-
/sbin/chkconfig/sbin/chkconfig --add bot3⤵PID:1502
-
-
-
/bin/shsh -c "systemctl enable bot.service 2>/dev/null"2⤵PID:1503
-
/bin/systemctlsystemctl enable bot.service3⤵
- Changes its process name
PID:1504 -
/lib/systemd/systemd-sysv-install/lib/systemd/systemd-sysv-install enable bot4⤵PID:1505
-
/usr/bin/getoptgetopt -o r: --long root: -- enable bot5⤵PID:1506
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults5⤵PID:1507
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1508
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1508
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1508
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1508
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1508
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1508
-
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot enable5⤵PID:1529
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1530
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1530
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1530
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1530
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1530
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1530
-
-
-
-
-
-
/bin/shsh -c "echo \"/tmp/bash.elf\" | at now + 1 minute 2>/dev/null"2⤵PID:1572
-
/usr/bin/atat now + 1 minute3⤵
- Creates/modifies Cron job
- Schedules an At job
PID:1574
-
-
-
/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:1575 -
/bin/cpcp /tmp/bash.elf /tmp/.kworker3⤵
- Reads runtime system information
- Writes file to tmp directory
PID:1576
-
-
/bin/chmodchmod 755 /tmp/.kworker3⤵
- File and Directory Permissions Modification
PID:1577
-
-
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 109KB
- SHA256 f64e69b29a732cad6a023c77ba8dff6bd35fc0afef35364b367e6cd30f4b216b
- MD5 3aca8a0e2a1ce31cad826855ee3cebd8
- SHA1 204d2a2f0fd3a78f19f03e52a0dab02752093d00
- SHA512 d37d8e870f08b2946e438ce6ccbbd84d921f6e0c27143a2d926b00dc8ff2ab1fcd1c9618ffbb0d3d0265b23bd9a39f0f21da895c8435cbf833ce007d1fdbbd45
- SSDEEP 3072:YHS9r0UVKOtvsad4m3KkXP+jZBHDaSo4XRZhSvn:9KOtvPxKC+1BHDaSo4XRZhSvn
- TLSH T11BB33ACDE740D577D58319B2D29787234072EA361A1ACA05F3DBFCB4AB25184B221BED
- MD5 SHA1 SHA512 SSDEEP TLSH
- Path /var/spool/cron/atjobs/a0000101c78ad8
- Size 387B
- SHA256 7f11808d0c43742fa48c32419763de90a4cdab41db6a73a4373ca5b0491149c7
- MD5 787808295b9264d0646f19bd7c9ab423
- SHA1 b2b3539548d5d123ee2be235f93f0f383cb6ab49
- SHA512 1be76da7ca9a1c5721033b73a9461e2f0d084f1be7a0e4d32f28d650b0967bb18ffaefbdd73aa172a8248edd696f2c8970492b1d885390ec9bb520b687bd348c
- TLSH T180E061D9A15735A54714F9D34B19D18633C121411E5C3E17D8712337CB183DE2647067
- MD5 SHA1 SHA512 TLSH
- Path /var/spool/cron/crontabs/root
- Size 42B
- SHA256 9550c9b690d72e201a51901e54bc76ff5de177eaff8ca9d117118c1527959a58
- MD5 745933268e6137f1cce62d4829cb4309
- SHA1 58dffaa30cbf83becad5b2a665db80b75d0f0c09
- SHA512 370b340711f68ed9a303f41443693af888d7c5da5d6c9b965430c0fa2c7e6a5481b4b4f4bca42529ed58d433017a96441b3688c7d4547691ae8b3b7aa0578d53
- MD5 SHA1 SHA512