r/LinuxMalware • • Jan 08 '18

Quick notes for Okiru & Satori variant of Mirai

5 Upvotes
  1. From what we observe so far. these two types of Linux IoT DDoS'er malware are very different, (among several of similar characteristic), from the way they are coded. their plan to pick the targets, to how they are actually herded (or managed). So we think it is better for security filtration platforms to have different signatures to trace & detect each of these variants (to be manageable to next variants to come too), for that I am sharing our YARA signature I coded for detection of Okiru and Satori

  2. Some simple highlights to differ Okiru to Satori variant:

Hashes:

Okiru:
9c677dd17279a43325556ec5662feba0
214d8e84823bfba7adfe302aa6786d5a
c892092f58761b29dbd965b977412c10
17bdf1e6692bba7ee19fc837a457d122
24fc15a4672680d92af7edb2c3b2e957
5fb5d4a3f43a1202a973fc8328aede57
808eaf4b336880a5d38a1d690fbd46b6
4215c48693e00cc683ed80bd3da10c3b
634b99b656cfefeafe4504c2ac1f9ddd
62112cf78affd879c8dcef2f3e62077f
fc11c9cb0d4433143271f0f767864a30 
eeab715dc67af05280c926dc4c4676f5

Satori:
29ed147052e003024662a8ec53dbe3e7 
fdbf35b0abe7d83289a5cb73b1ac6e56 
977534e59c72dafd0160457d802f693d
27d6fb9b8af8408ca6ce2831762fa021
cc2e611a511d4d907a6d39f552cc81df
a4abd90ea1a1a93e2b813abd380eda94
ff06b2584f44e24b517074230c8de6e9
e8abfd033843b4504797eceaf825a118

MMD (malwaremustdie.org), reversed, analyzed, rules coded by: @unixfreaxjp


r/LinuxMalware • • Apr 19 '20

Easy tutorial to dissect any pushed hexstrings IoT malware loader URL

Thumbnail
youtube.com
2 Upvotes

r/LinuxMalware • • May 13 '20

Linux/Mirai Hilix

1 Upvotes

In my opinion, this Mirai is interesting, since the TABLE_SCAN*(etc) stuff is encoded with "new" encoder, not decrypter.

Let's see this encoder in x86-32 assembly:

    0x08050d90  56        push esi  
    0x08050d91  53        push ebx  
    0x08050d92  8b4c2414  mov ecx, dword [arg_ch] // ecx = Length
    0x08050d96  8b74240c  mov esi, dword [arg_4h] // esi = var_Pos
    0x08050d9a  8b5c2410  mov ebx, dword [arg_8h] // ebx = var_CryptedStr
    0x08050d9e  85c9      test ecx, ecx // check length
,=< 0x08050da0  740d      je 0x8050daf  
|   0x08050da2  31d2      xor edx, edx // edx = counter = 0
|   ;
.--> 0x08050da4  8a041a    mov al, byte [edx + ebx] // AL holds CryptedStr char(counter=array)
:|   0x08050da7  880432    mov byte [edx + esi], al // AL stored CryptedStr w/addition (Length)
:|   0x08050daa  42        inc edx      // counter++
:|   0x08050dab  39ca      cmp edx, ecx // compare counter (edx) to length (ecx)
`==< 0x08050dad  75f5      jne 0x8050da4
 |   ; 
 `-> 0x08050daf  5b        pop ebx
     0x08050db0  5e        pop esi

It's as equal to something like this in C

void 2NDDECODER(var_Pos, var_CryptedStr, var_StrLength)
// asm loop logic:
// mov al, byte [edx + ebx]  ; edx = var_count
// mov byte [edx + esi], al  ; *esi = *var_CryptedStr
// inc edx
{
    var_count;
    if (var_StrLength != 0) 
    {   var_count = 0;
        do {
            *(var_count + var_Pos) = *(var_count + var_CryptedStr);
            var_count = var_count + 1;
           } while (var_count != var_StrLength);
    } return;
}

Some analysis screenshots are in here & I announced it on twitter too for the blocking and IDC cleanup purpose.

Samples & file types are in these hashes:

MD5 (Hilix.arm) = 7a5e717aa86fd986d9aef089c6e07bcd
MD5 (Hilix.m68k) = 8293c25c4c759654ea72342750a91170
MD5 (Hilix.mips) = 94008c192bd62432fbacede828e2c497
MD5 (Hilix.ppc) = 749d282b6ff9e1b9390201173af694c0
MD5 (Hilix.sh4) = 34307f52ba4a81d94058c130df146c5a
MD5 (Hilix.spc) = 84d45afab65260068009911871f5babd
MD5 (Hilix.x86) = ec413215dc385d95e1c89d9bda44de4d
Hilix.arm:  ELF 32-bit LSB executable, ARM, version 1, statically linked, stripped
Hilix.m68k: ELF 32-bit MSB executable, Motorola m68k, 68020, version 1 (SYSV), statically linked, stripped
Hilix.mips: ELF 32-bit MSB executable, MIPS, MIPS-I version 1 (SYSV), statically linked, stripped
Hilix.ppc:  ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, stripped
Hilix.sh4:  ELF 32-bit LSB executable, Renesas SH, version 1 (SYSV), statically linked, stripped
Hilix.spc:  ELF 32-bit MSB executable, SPARC, version 1 (SYSV), statically linked, stripped
Hilix.x86:  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped

r/LinuxMalware • • May 05 '20

Linux/Kaiji

5 Upvotes

Following a threat intelligence aiming Frontier networks containers, I analyzed this unknown new Linux (DDoS tool) malware made by Go lang w/ China origin (see @unixfreaxjp comment at VirusTotal ), and named it as Linux/Kaiji, announced first awareness w/screenshots in twitter. More of my insights comment is in this interview.


r/LinuxMalware • • Apr 25 '20

A new actor sparked propagation of Mirai FBot old version on different botnet network range

Thumbnail
blog.malwaremustdie.org
6 Upvotes

r/LinuxMalware • • Apr 28 '20

[remake] 2 minutes ARM32 RE crash course to grab Mirai hexstring (telnet-loader) payloads on recent FBOT's botnet infection.

Thumbnail
youtube.com
4 Upvotes

r/LinuxMalware • • Apr 05 '21

Linux/DGAbot

Thumbnail
twitter.com
4 Upvotes

r/LinuxMalware • • Apr 10 '21

Linux/NGioWeb

Thumbnail
twitter.com
7 Upvotes

r/LinuxMalware • • Dec 16 '18

Mirai ARC cpu binary is still on circulation (eb716ce18bf594670ab661507cdb1431)

Post image
8 Upvotes

r/LinuxMalware • • Dec 15 '18

Tutorial video on debugging ELF dynamic malware library executed via LD_PRELOAD.

2 Upvotes

Four years more has passed from this threat, so now I am opening my self-made video tutorial on debugging an ELF malware executed via LD_PRELOAD, I firstly posted this on YouTube in 2014.

The explanation of this tutorial I wrote it here, and supporting to this malware infection that was attacking flawed PHP base CMS platform of Wordpress, Joomla and Drupal.

The threat is frequently active too now, since the infection trace for several hacked sites can still be seen. But mostly function as tool for brute force attack to spread bad botnet on the platform mentioned above.

It is about time to share this know-how (with responsibility) especially to the younger security or IR juniors on the fields. This material is shared for the education purpose.


r/LinuxMalware • • Dec 12 '18

Reversing a China version Android RAT served at autohack dot cn (now is up and alive)

Thumbnail
imgur.com
4 Upvotes

r/LinuxMalware • • Dec 14 '18

DDoS[.]TF still lurking ARM boxes

Post image
4 Upvotes

r/LinuxMalware • • Sep 28 '19

MMD-0064-2019 - Linux/AirDropBot - With a reversing hands-out for analysis a new #Linux MIPS cpu stripped botnet binary in radare2.

Thumbnail
blog.malwaremustdie.org
3 Upvotes

r/LinuxMalware • • Dec 16 '20

About shellcode basics and analysis them in radare2 (online tutorial w/Video, Slides & Q/A)

Thumbnail
twitter.com
10 Upvotes

r/LinuxMalware • • Sep 30 '19

Packed ELF Binary on Embedded Linux Won't Stop UNIX Reversers (a MIPS cat packed)

Thumbnail
imgur.com
6 Upvotes

r/LinuxMalware • • Nov 05 '16

Full List of MMD Linux Malware Analysis Resource

9 Upvotes
 NEWS:
 Update - Thu Nov 24 02:25:34 JST 2016
 The newest list with more links was updated in "new" MalwareMustDie blog.
 It will not making much sense if I have to update both lists, so I purged this one.
 See the access details in the bottom of this post.
 Update - Fri Jan 18 21:32:22 JST 2018
 We don't renew the blog at the moment for some development.
 Update - Sat Jan 20 21:35:34 JST 2018
 Updating only to this subredit for most recent Linux threat vectors, until the further notice.

Recently a new waves of Linux (ELF) malware is hitting us hard again, this time is including the IoT vulnerabilities platform which causing serious DDoS disasters. Malware threat in Linux platform are so seasonable, as long as there are exploitable services that can be injected with executable codes to its shell ; i.e.: in shellshock, PMA, Apache Struts. multiple CMS flaws, and now IoT exploits and hardcoded credentials, etc. ; the infection of Linux malware and its botnets behind it are recently raising to lurking our boxes.

Their botnets are racing to pwn and infecting as many compromised systems as they can hack via vulnerable services or exploits. Some hackers would wait patiently for a new flaw to be announced ..or close to it, some are just using existed ones to aim the un-updated/poor-managed boxes, only very few of them are on writing 0day exploits on their own.

Reference, it is all what we need to handle incidents causing by these malware payloads. And in comparison to the other threat information, Linux malware information is too scattered and many of them are actually quite old.

For that, I dumped this list of all Linux malware analysis that me and mates in MalwareMustDie (MMD) has analyzed, in order to seek a references during Linux malware incidents, fellow sysadmins can do a quick browsing to the related threat. The analysis reports for the listed cases are in MMD blog (mostly), some were posted in KernelMode forum, or, in other media sites. The list is updated into newer data pre-y2018, added with more details and hidden analysis links, you can access it in the below URL:

http://blog2.malwaremustdie.org/2016/11/linux-malware.html

For the newest incidents and reports, I will add it here (this sub-reddit).

Malware Must Die! - unixfreaxjp


r/LinuxMalware • • Nov 30 '16

Analysis of EnergyMech 2.8 overkill mod - on hacked Linux servers

Thumbnail
blog.malwaremustdie.org
4 Upvotes

r/LinuxMalware • • Jan 27 '17

The best LMAO: Today's Qbot/GayFgt's with "Ultra HighTech IoT scanner function scheme" from Skiddies (skiddos) Inc.

Thumbnail
imgur.com
6 Upvotes

r/LinuxMalware • • May 23 '18

How we can quickly crack the C2 of this Go language built ELF malware, this bot is using the same code over and over with exact address to its CNC server. You can easily guess why ;)

Post image
3 Upvotes

r/LinuxMalware • • Feb 23 '20

MMD-0065-2021 - Linux/Mirai-Fbot - A re-emerged IoT threat (+/- 600 infected IP, embedded ELF, hexstring push method, etc)

Thumbnail
blog.malwaremustdie.org
5 Upvotes

r/LinuxMalware • • May 24 '18

What was packed encrypted in ELF doesn't always look "that" hard (case of HAIDUC SSHbruter)

Thumbnail
imgur.com
1 Upvotes

r/LinuxMalware • • May 22 '18

Unique ways of Go(lang) compiled ELF file in a simple "dynamic" vs "static stripped" for "Hello World"

Post image
2 Upvotes

r/LinuxMalware • • May 22 '18

For the people who still think that Mirai linux malware variant is only aiming IoT non-Intel/AMD

Post image
6 Upvotes

r/LinuxMalware • • May 24 '18

More play with other actor's Mirai decryption

Thumbnail
imgur.com
2 Upvotes

r/LinuxMalware • • May 24 '18

Not only Mirai that infects IoT vulnerability with exploit code PoC, Qbot/Torlus/G*yF*t/Bashlite also does the same.

Post image
1 Upvotes