Analysis
- max time kernel
149s - max time network
151s - 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, 06:07
Behavioral task
behavioral1
Sample
bash.elf
Resource
ubuntu1804-amd64-20260513-en
General
- Target bash.elf
- Size 109KB
- Sample261006-gvffcssw9m
- SHA256 9f27bc2b0bc6f35c1b1a282b90eb5632fdb11414865bb73a86279843aa845894
- MD5 0f9d214d2bad723be84f86306fe54731
- SHA1 81560787041b581ef3b14aa6daefd3e355b3d6dd
- SHA512 e3d13489796d68aed86810791694175c411151903b81cc3b3c8db1dd7acd5678f6156475faf53da1ec964e448c780b4dac7e727180fe556fbdb8af036ed26881
- SSDEEP 3072:YHCtzPUmSKzUtiFidYe3KpXXeTZksFDaSo4XRZhSvn:NwKzUti45K1eFkQDaSo4XRZhSvn
- TLSH T154B339CDE640D977D58319B6D29787234172FA36191ACA05F3CBFCB0AA25184B221BED
- 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 1592 sh 1594 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/a0000101c78af0 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 /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 -
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 1591 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 kde 1490 bash.elf Changes the process name, possibly in an attempt to hide itself (sysv-install) 1523 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/1/environ systemctl File opened for reading /proc/filesystems systemctl File opened for reading /proc/1/sched systemctl File opened for reading /proc/self/loginuid at File opened for reading /proc/filesystems cp File opened for reading /proc/self/stat systemctl File opened for reading /proc/self/stat systemctl File opened for reading /proc/1/sched systemctl File opened for reading /proc/cmdline systemctl File opened for reading /proc/cmdline systemctl File opened for reading /proc/filesystems systemctl File opened for reading /proc/sys/kernel/osrelease systemctl File opened for reading /proc/cmdline systemctl File opened for reading /proc/1/environ systemctl File opened for reading /proc/1/environ systemctl File opened for reading /proc/1/sched systemctl File opened for reading /proc/1/sched systemctl File opened for reading /proc/sys/kernel/osrelease systemctl File opened for reading /proc/filesystems systemctl File opened for reading /proc/filesystems systemctl File opened for reading /proc/sys/kernel/osrelease systemctl File opened for reading /proc/self/stat systemctl File opened for reading /proc/1/environ systemctl File opened for reading /proc/cmdline systemctl File opened for reading /proc/sys/kernel/osrelease systemctl File opened for reading /proc/self/stat systemctl - 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
PID:1488 -
/bin/shsh -c "/usr/sbin/update-rc.d bot defaults 2>/dev/null"2⤵PID:1491
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults3⤵PID:1492
-
/usr/local/sbin/systemctlsystemctl daemon-reload4⤵PID:1494
-
-
/usr/local/bin/systemctlsystemctl daemon-reload4⤵PID:1494
-
-
/usr/sbin/systemctlsystemctl daemon-reload4⤵PID:1494
-
-
/usr/bin/systemctlsystemctl daemon-reload4⤵PID:1494
-
-
/sbin/systemctlsystemctl daemon-reload4⤵PID:1494
-
-
/bin/systemctlsystemctl daemon-reload4⤵
- Reads runtime system information
PID:1494
-
-
-
-
/bin/shsh -c "/sbin/chkconfig --add bot 2>/dev/null"2⤵PID:1519
-
/sbin/chkconfig/sbin/chkconfig --add bot3⤵PID:1520
-
-
-
/bin/shsh -c "systemctl enable bot.service 2>/dev/null"2⤵PID:1521
-
/bin/systemctlsystemctl enable bot.service3⤵
- Changes its process name
- Reads runtime system information
PID:1522 -
/lib/systemd/systemd-sysv-install/lib/systemd/systemd-sysv-install enable bot4⤵PID:1523
-
/usr/bin/getoptgetopt -o r: --long root: -- enable bot5⤵PID:1524
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot defaults5⤵PID:1525
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1526
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1526
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1526
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1526
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1526
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1526
-
-
-
/usr/sbin/update-rc.d/usr/sbin/update-rc.d bot enable5⤵PID:1547
-
/usr/local/sbin/systemctlsystemctl daemon-reload6⤵PID:1548
-
-
/usr/local/bin/systemctlsystemctl daemon-reload6⤵PID:1548
-
-
/usr/sbin/systemctlsystemctl daemon-reload6⤵PID:1548
-
-
/usr/bin/systemctlsystemctl daemon-reload6⤵PID:1548
-
-
/sbin/systemctlsystemctl daemon-reload6⤵PID:1548
-
-
/bin/systemctlsystemctl daemon-reload6⤵
- Reads runtime system information
PID:1548
-
-
-
-
-
-
/bin/shsh -c "echo \"/tmp/bash.elf\" | at now + 1 minute 2>/dev/null"2⤵PID:1589
-
/usr/bin/atat now + 1 minute3⤵
- Creates/modifies Cron job
- Schedules an At job
- Reads runtime system information
PID:1591
-
-
-
/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:1592 -
/bin/cpcp /tmp/bash.elf /tmp/.kworker3⤵
- Reads runtime system information
- Writes file to tmp directory
PID:1593
-
-
/bin/chmodchmod 755 /tmp/.kworker3⤵
- File and Directory Permissions Modification
PID:1594
-
-
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 9f27bc2b0bc6f35c1b1a282b90eb5632fdb11414865bb73a86279843aa845894
- MD5 0f9d214d2bad723be84f86306fe54731
- SHA1 81560787041b581ef3b14aa6daefd3e355b3d6dd
- SHA512 e3d13489796d68aed86810791694175c411151903b81cc3b3c8db1dd7acd5678f6156475faf53da1ec964e448c780b4dac7e727180fe556fbdb8af036ed26881
- SSDEEP 3072:YHCtzPUmSKzUtiFidYe3KpXXeTZksFDaSo4XRZhSvn:NwKzUti45K1eFkQDaSo4XRZhSvn
- TLSH T154B339CDE640D977D58319B6D29787234172FA36191ACA05F3CBFCB0AA25184B221BED
- MD5 SHA1 SHA512 SSDEEP TLSH
- Path /var/spool/cron/atjobs/a0000101c78af0
- Size 387B
- SHA256 ed3f6cec82381e3dd1ab1c62584bc77422ef82f1d6c5132d3b6f373c7016b333
- MD5 1469f65a419df5c7cca9e7b33077c21a
- SHA1 f6c76945aaa5b5e8af33a2a574dacc0cefc900fb
- SHA512 e1407be257023be2193f72d70ef78e9774321c5a0241be446296a88b6a1c44c81b69b9296a9ac610377d59d8ba3f8e50e6cc1d1a436c26e94e1234bcf60f7945
- TLSH T1B7E02BEAA2A379A71711FAD20719C18A33C512411E5C3A068834237B8A1839E2696463
- MD5 SHA1 SHA512 TLSH
- Path /var/spool/cron/crontabs/root
- Size 42B
- SHA256 9550c9b690d72e201a51901e54bc76ff5de177eaff8ca9d117118c1527959a58
- MD5 745933268e6137f1cce62d4829cb4309
- SHA1 58dffaa30cbf83becad5b2a665db80b75d0f0c09
- SHA512 370b340711f68ed9a303f41443693af888d7c5da5d6c9b965430c0fa2c7e6a5481b4b4f4bca42529ed58d433017a96441b3688c7d4547691ae8b3b7aa0578d53
- MD5 SHA1 SHA512