Analysis
-
max time kernel
149s -
max time network
128s -
platform
ubuntu-18.04_amd64 -
resource
ubuntu1804-amd64-20240729-en -
resource tags
arch:amd64arch:i386image:ubuntu1804-amd64-20240729-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system -
submitted
28-07-2024 23:03
Behavioral task
behavioral1
Sample
298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118
Resource
ubuntu1804-amd64-20240729-en
General
-
Target
298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118
-
Size
1.2MB
-
MD5
298049890e2f02ba6a507f8d73c7f7dc
-
SHA1
76ec00fe09b85c2cb1df9363e2919705190f35c5
-
SHA256
19ba3b2658b0bc0fed89b30286bc28c2d4296cb27c2d758f78596be138317b60
-
SHA512
1b38b290c3b12078c7cdff7f97a2ce59069671fa0f94ce72d108b0ed366567a1d038e80a0f5e204e578513c1233ca79ff5b655fef92f2ef9767322bb852aed1f
-
SSDEEP
24576:e845rGHu6gVJKG75oFpA0VWeX402y1q2rJp0:745vRVJKGtSA0VWeobu9p0
Malware Config
Signatures
-
MrBlack trojan 1 IoCs
Processes:
resource yara_rule /usr/bin/bsd-port/getty family_mrblack -
Executes dropped EXE 2 IoCs
Processes:
getty.sshdioc pid process /usr/bin/bsd-port/getty 1539 getty /usr/bin/.sshd 1566 .sshd -
Processes:
298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118gettydescription ioc process File opened for modification /etc/init.d/DbSecuritySpt 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /etc/init.d/selinux getty -
Write file to user bin folder 1 TTPs 9 IoCs
Processes:
cpcpcpcp298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118cpgettycpdescription ioc process File opened for modification /usr/bin/dpkgd/ps cp File opened for modification /usr/bin/dpkgd/ss cp File opened for modification /usr/bin/dpkgd/lsof cp File opened for modification /usr/bin/lsof cp File opened for modification /usr/bin/bsd-port/getty.lock 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /usr/bin/bsd-port/udevd.lock 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /usr/bin/bsd-port/getty cp File opened for modification /usr/bin/bsd-port/getty.lock getty File opened for modification /usr/bin/.sshd cp -
Writes file to system bin folder 1 TTPs 2 IoCs
Processes:
cpcpdescription ioc process File opened for modification /bin/ps cp File opened for modification /bin/ss cp -
Checks CPU configuration 1 TTPs 2 IoCs
Checks CPU information which indicate if the system is a virtual machine.
Processes:
getty298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118description ioc process File opened for reading /proc/cpuinfo getty File opened for reading /proc/cpuinfo 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 -
Reads system network configuration 1 TTPs 2 IoCs
Uses contents of /proc filesystem to enumerate network settings.
Processes:
298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118gettydescription ioc process File opened for reading /proc/net/dev 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for reading /proc/net/dev getty -
Reads runtime system information 25 IoCs
Reads data from /proc virtual filesystem.
Processes:
mkdirmkdirinsmodcpmkdirmkdircpcpcpmkdirmkdircpmkdirgettyinsmod298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118mkdircpcpmkdircpmkdirmkdirdescription ioc process File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems mkdir File opened for reading /proc/cmdline insmod File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems mkdir File opened for reading /proc/meminfo getty File opened for reading /proc/cmdline insmod File opened for reading /proc/meminfo 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for reading /proc/filesystems mkdir File opened for reading /proc/stat getty File opened for reading /proc/stat 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems cp File opened for reading /proc/filesystems mkdir File opened for reading /proc/filesystems mkdir -
Writes file to tmp directory 7 IoCs
Malware often drops required files in the /tmp directory.
Processes:
298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118.sshddescription ioc process File opened for modification /tmp/notify.file 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /tmp/moni.lod .sshd File opened for modification /tmp/notify.file .sshd File opened for modification /tmp/gates.lod .sshd File opened for modification /tmp/moni.lod 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /tmp/bill.lock 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 File opened for modification /tmp/gates.lod 298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118
Processes
-
/tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118/tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes1181⤵
- Modifies init.d
- Write file to user bin folder
- Checks CPU configuration
- Reads system network configuration
- Reads runtime system information
- Writes file to tmp directory
PID:1516 -
/bin/shsh -c "ln -s /etc/init.d/DbSecuritySpt /etc/rc1.d/S97DbSecuritySpt"2⤵PID:1521
-
/bin/lnln -s /etc/init.d/DbSecuritySpt /etc/rc1.d/S97DbSecuritySpt3⤵PID:1522
-
/bin/shsh -c "ln -s /etc/init.d/DbSecuritySpt /etc/rc2.d/S97DbSecuritySpt"2⤵PID:1523
-
/bin/lnln -s /etc/init.d/DbSecuritySpt /etc/rc2.d/S97DbSecuritySpt3⤵PID:1524
-
/bin/shsh -c "ln -s /etc/init.d/DbSecuritySpt /etc/rc3.d/S97DbSecuritySpt"2⤵PID:1525
-
/bin/lnln -s /etc/init.d/DbSecuritySpt /etc/rc3.d/S97DbSecuritySpt3⤵PID:1526
-
/bin/shsh -c "ln -s /etc/init.d/DbSecuritySpt /etc/rc4.d/S97DbSecuritySpt"2⤵PID:1527
-
/bin/lnln -s /etc/init.d/DbSecuritySpt /etc/rc4.d/S97DbSecuritySpt3⤵PID:1528
-
/bin/shsh -c "ln -s /etc/init.d/DbSecuritySpt /etc/rc5.d/S97DbSecuritySpt"2⤵PID:1529
-
/bin/lnln -s /etc/init.d/DbSecuritySpt /etc/rc5.d/S97DbSecuritySpt3⤵PID:1530
-
/bin/shsh -c "mkdir -p /usr/bin/bsd-port"2⤵PID:1531
-
/bin/mkdirmkdir -p /usr/bin/bsd-port3⤵
- Reads runtime system information
PID:1532 -
/bin/shsh -c "mkdir -p /usr/bin/bsd-port"2⤵PID:1533
-
/bin/mkdirmkdir -p /usr/bin/bsd-port3⤵
- Reads runtime system information
PID:1534 -
/bin/shsh -c "cp -f /tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 /usr/bin/bsd-port/getty"2⤵PID:1535
-
/bin/cpcp -f /tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 /usr/bin/bsd-port/getty3⤵
- Write file to user bin folder
- Reads runtime system information
PID:1536 -
/bin/shsh -c /usr/bin/bsd-port/getty2⤵PID:1538
-
/usr/bin/bsd-port/getty/usr/bin/bsd-port/getty3⤵
- Executes dropped EXE
- Modifies init.d
- Write file to user bin folder
- Checks CPU configuration
- Reads system network configuration
- Reads runtime system information
PID:1539 -
/bin/shsh -c "ln -s /etc/init.d/selinux /etc/rc1.d/S99selinux"4⤵PID:1547
-
/bin/lnln -s /etc/init.d/selinux /etc/rc1.d/S99selinux5⤵PID:1548
-
/bin/shsh -c "ln -s /etc/init.d/selinux /etc/rc2.d/S99selinux"4⤵PID:1549
-
/bin/lnln -s /etc/init.d/selinux /etc/rc2.d/S99selinux5⤵PID:1550
-
/bin/shsh -c "ln -s /etc/init.d/selinux /etc/rc3.d/S99selinux"4⤵PID:1551
-
/bin/lnln -s /etc/init.d/selinux /etc/rc3.d/S99selinux5⤵PID:1552
-
/bin/shsh -c "ln -s /etc/init.d/selinux /etc/rc4.d/S99selinux"4⤵PID:1553
-
/bin/lnln -s /etc/init.d/selinux /etc/rc4.d/S99selinux5⤵PID:1554
-
/bin/shsh -c "ln -s /etc/init.d/selinux /etc/rc5.d/S99selinux"4⤵PID:1555
-
/bin/lnln -s /etc/init.d/selinux /etc/rc5.d/S99selinux5⤵PID:1556
-
/bin/shsh -c "mkdir -p /usr/bin/dpkgd"4⤵PID:1557
-
/bin/mkdirmkdir -p /usr/bin/dpkgd5⤵
- Reads runtime system information
PID:1558 -
/bin/shsh -c "cp -f /bin/ps /usr/bin/dpkgd/ps"4⤵PID:1559
-
/bin/cpcp -f /bin/ps /usr/bin/dpkgd/ps5⤵
- Write file to user bin folder
- Reads runtime system information
PID:1560 -
/bin/shsh -c "mkdir -p /bin"4⤵PID:1561
-
/bin/mkdirmkdir -p /bin5⤵
- Reads runtime system information
PID:1562 -
/bin/shsh -c "mkdir -p /bin"4⤵PID:1563
-
/bin/mkdirmkdir -p /bin5⤵
- Reads runtime system information
PID:1567 -
/bin/shsh -c "cp -f /usr/bin/bsd-port/getty /bin/ps"4⤵PID:1568
-
/bin/cpcp -f /usr/bin/bsd-port/getty /bin/ps5⤵
- Writes file to system bin folder
- Reads runtime system information
PID:1569 -
/bin/shsh -c "chmod 0755 /bin/ps"4⤵PID:1570
-
/bin/chmodchmod 0755 /bin/ps5⤵PID:1571
-
/bin/shsh -c "cp -f /bin/ss /usr/bin/dpkgd/ss"4⤵PID:1572
-
/bin/cpcp -f /bin/ss /usr/bin/dpkgd/ss5⤵
- Write file to user bin folder
- Reads runtime system information
PID:1573 -
/bin/shsh -c "mkdir -p /bin"4⤵PID:1574
-
/bin/mkdirmkdir -p /bin5⤵
- Reads runtime system information
PID:1575 -
/bin/shsh -c "mkdir -p /bin"4⤵PID:1576
-
/bin/mkdirmkdir -p /bin5⤵
- Reads runtime system information
PID:1577 -
/bin/shsh -c "cp -f /usr/bin/bsd-port/getty /bin/ss"4⤵PID:1578
-
/bin/cpcp -f /usr/bin/bsd-port/getty /bin/ss5⤵
- Writes file to system bin folder
- Reads runtime system information
PID:1579 -
/bin/shsh -c "chmod 0755 /bin/ss"4⤵PID:1580
-
/bin/chmodchmod 0755 /bin/ss5⤵PID:1581
-
/bin/shsh -c "cp -f /usr/bin/lsof /usr/bin/dpkgd/lsof"4⤵PID:1582
-
/bin/cpcp -f /usr/bin/lsof /usr/bin/dpkgd/lsof5⤵
- Write file to user bin folder
- Reads runtime system information
PID:1583 -
/bin/shsh -c "mkdir -p /usr/bin"4⤵PID:1584
-
/bin/mkdirmkdir -p /usr/bin5⤵
- Reads runtime system information
PID:1585 -
/bin/shsh -c "mkdir -p /usr/bin"4⤵PID:1586
-
/bin/mkdirmkdir -p /usr/bin5⤵
- Reads runtime system information
PID:1587 -
/bin/shsh -c "cp -f /usr/bin/bsd-port/getty /usr/bin/lsof"4⤵PID:1588
-
/bin/cpcp -f /usr/bin/bsd-port/getty /usr/bin/lsof5⤵
- Write file to user bin folder
- Reads runtime system information
PID:1589 -
/bin/shsh -c "chmod 0755 /usr/bin/lsof"4⤵PID:1590
-
/bin/chmodchmod 0755 /usr/bin/lsof5⤵PID:1591
-
/bin/shsh -c "insmod /usr/bin/bsd-port/xpacket.ko"4⤵PID:1594
-
/sbin/insmodinsmod /usr/bin/bsd-port/xpacket.ko5⤵
- Reads runtime system information
PID:1595 -
/bin/shsh -c "mkdir -p /usr/bin"2⤵PID:1541
-
/bin/mkdirmkdir -p /usr/bin3⤵
- Reads runtime system information
PID:1542 -
/bin/shsh -c "mkdir -p /usr/bin"2⤵PID:1543
-
/bin/mkdirmkdir -p /usr/bin3⤵
- Reads runtime system information
PID:1544 -
/bin/shsh -c "cp -f /tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 /usr/bin/.sshd"2⤵PID:1545
-
/bin/cpcp -f /tmp/298049890e2f02ba6a507f8d73c7f7dc_JaffaCakes118 /usr/bin/.sshd3⤵
- Write file to user bin folder
- Reads runtime system information
PID:1546 -
/bin/shsh -c /usr/bin/.sshd2⤵PID:1565
-
/usr/bin/.sshd/usr/bin/.sshd3⤵
- Executes dropped EXE
- Writes file to tmp directory
PID:1566 -
/bin/shsh -c "insmod /tmp/xpacket.ko"2⤵PID:1600
-
/sbin/insmodinsmod /tmp/xpacket.ko3⤵
- Reads runtime system information
PID:1601
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
64B
MD5e47867ffb111644c75f5e21ffb6c256b
SHA191a569aa94c84e8121e4ffa737a54516c4ace7f4
SHA25687199de381962c9fe7e422cc78e0d2ee8d1553ca49a4c4d69af95cf1ae95b87c
SHA51236a57d305db2124f90a780c4c2e06405c56cb403300b9ee59522e2cbc1fe6565dab8a4a3afec6b88c6a376e9ad47e9a0be94097ce5989d6355e5fa316a6058b6
-
Filesize
36B
MD5993cc15058142d96c3daf7852c3d5ee8
SHA10950b8b391b04dd3895ea33cd3141543ebd2525d
SHA2568171d077918611803d93088409f220c66fae1c670b297e1aa5d8cbd548ce9208
SHA5120c4256c00a3710f97e92581b552682b36b62afc35fe72622c491323c618c19ea62611ac04ccafc3dfcde2254a2ebbd93b69b66795b16e36332293bed83adb928
-
Filesize
4B
MD581c8727c62e800be708dbf37c4695dff
SHA142e12cb7198394beb558db2dc1f1a862366e1045
SHA2564091f2c5c45d0cb95c6b43919f9f07f62f7f6c6fb46ca207264b2aee4ee6e4f9
SHA512a6bb8360a59413364b955cde894976b6f7401d2b07296bf964d224eef87032ac500dccc76b01c445d8e85692d555ae28d672929376e32fe9cf80bb721b9d1632
-
Filesize
4B
MD5d72fbbccd9fe64c3a14f85d225a046f4
SHA1348e495881ef4526fe8e38dba4ceaa49b829b8b2
SHA2568cca04ee02b8915f60a6b72c1faf19923aa12aafb5af89bc4bfd403dc60a836b
SHA51202107aa7dc8942af948b790560f406445e172eff5c838b73d0eb8d86e3021ff4bcbb310a5f3290b3ff6e46170cd36e2df76fc373b47e3b8e9f219c6f6e22d85f
-
Filesize
51B
MD524e3af5a5a141b05b55f5819599c7610
SHA1b27dbfa658c4dc98de080d017c159669c191345b
SHA2561d4feb162c8fea7b97ab25c407869dea5c1c7e96d4d80b7dfee2791ef0712b44
SHA512383f3381d3cda0155cd14e90d81dce186ec96356887b82554af4a426e9492d976892a1cad46e7fc6e8b6b9b064156a1d43022fdd470f4323272bcabdb29b6f7b
-
Filesize
1.2MB
MD5298049890e2f02ba6a507f8d73c7f7dc
SHA176ec00fe09b85c2cb1df9363e2919705190f35c5
SHA25619ba3b2658b0bc0fed89b30286bc28c2d4296cb27c2d758f78596be138317b60
SHA5121b38b290c3b12078c7cdff7f97a2ce59069671fa0f94ce72d108b0ed366567a1d038e80a0f5e204e578513c1233ca79ff5b655fef92f2ef9767322bb852aed1f
-
Filesize
159KB
MD5e093dc78225e2a0a25e3b137c1c1e442
SHA1c29497cfaae729eb576875e4fdfa400640ab16be
SHA2561190f4dbc7be174de8fd4096c9bf7a28eebfac937d308b7cc533be4a1240d26e
SHA512fe1cc7a65327732eaaee89f427c10239ba822430e34177842f4681068d78d404b1830d808a2a71b1efcc5f126c6d8c053512237421173aaa150e215a672da6f0
-
Filesize
130KB
MD5558edc26f8a38fa9788220b9af8a73e7
SHA13024d44e580e9c67f32f6c585d50e2a6cc9a7cac
SHA256b76435c80333d2c1fd18e0e7682f1c9dfb5da8d507e93e3c416f54b481c428d5
SHA512edaa425b441044f015e8f68fffa1664e42372d00dd0e7b0924d24ce947aa8e5f96b3bdc326fa2f8b978e3fcf638a1ceca45a223735db73f1607df66990feb56f
-
Filesize
136KB
MD51dc929b5f2cd12fe6a2fe71140d2a9e3
SHA1f9995a92bb201b1b7738a39a38570ef0c40b52d2
SHA256418aae1da62554afe9f260866267af328fd761b3fd6f90f0ea53d543e2fefc38
SHA512fbed011c595084548db440dfbe485b7d27032a44a6ae9e141fe43f31c8c524ff9347135ab035deb441fca99e5a3794f7bb9194f148aa2f60f1547a7c67d47373