SYMBOLCOMMON_NAMEaka. SYNONYMS
win.equationdrug (Back to overview)

EquationDrug

Actor(s): Equation Group

VTCollection     URLhaus        

There is no description at this point.

References
2017-03-30 ⋅ Artem Baranov
EquationDrug rootkit analysis (mstcp32.sys)
EquationDrug
2015-03-11 ⋅ Kaspersky Labs ⋅ GReAT
Inside the EquationDrug Espionage Platform
EquationDrug
2015-02-16 ⋅ Kaspersky Labs ⋅ GReAT
Equation: The Death Star of Malware Galaxy
DoubleFantasy EquationDrug Fanny GROK
Yara Rules
[TLP:WHITE] win_equationdrug_auto (20260917 | Detects win.equationdrug.)
rule win_equationdrug_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.equationdrug."
        info = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.6.0"
        signator_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.equationdrug"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    /* DISCLAIMER
     * The strings used in this rule have been automatically selected from the
     * disassembly of memory dumps and unpacked files, using YARA-Signator.
     * The code and documentation is published here:
     * https://github.com/fxb-cocacoding/yara-signator
     * As Malpedia is used as data source, please note that for a given
     * number of families, only single samples are documented.
     * This likely impacts the degree of generalization these rules will offer.
     * Take the described generation method also into consideration when you
     * apply the rules in your use cases and assign them confidence levels.
     */


    strings:
        $sequence_0 = { 8b44243c 85c0 0f854effffff 8d8c24e8000000 c68424b803000000 e8???????? 8d8c24b0000000 }
            // n = 7, score = 100
            //   8b44243c             | mov                 eax, dword ptr [esp + 0x3c]
            //   85c0                 | test                eax, eax
            //   0f854effffff         | jne                 0xffffff54
            //   8d8c24e8000000       | lea                 ecx, [esp + 0xe8]
            //   c68424b803000000     | mov                 byte ptr [esp + 0x3b8], 0
            //   e8????????           |                     
            //   8d8c24b0000000       | lea                 ecx, [esp + 0xb0]

        $sequence_1 = { 51 6a01 56 c744241800000000 c744241c00000000 e8???????? 83c410 }
            // n = 7, score = 100
            //   51                   | push                ecx
            //   6a01                 | push                1
            //   56                   | push                esi
            //   c744241800000000     | mov                 dword ptr [esp + 0x18], 0
            //   c744241c00000000     | mov                 dword ptr [esp + 0x1c], 0
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10

        $sequence_2 = { 8d4c2444 c7842484000000ffffffff e8???????? 8bc6 5f 5e 5d }
            // n = 7, score = 100
            //   8d4c2444             | lea                 ecx, [esp + 0x44]
            //   c7842484000000ffffffff     | mov    dword ptr [esp + 0x84], 0xffffffff
            //   e8????????           |                     
            //   8bc6                 | mov                 eax, esi
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5d                   | pop                 ebp

        $sequence_3 = { 8d0480 8d0486 6689500c 668b542412 6689500e 8b542424 895010 }
            // n = 7, score = 100
            //   8d0480               | lea                 eax, [eax + eax*4]
            //   8d0486               | lea                 eax, [esi + eax*4]
            //   6689500c             | mov                 word ptr [eax + 0xc], dx
            //   668b542412           | mov                 dx, word ptr [esp + 0x12]
            //   6689500e             | mov                 word ptr [eax + 0xe], dx
            //   8b542424             | mov                 edx, dword ptr [esp + 0x24]
            //   895010               | mov                 dword ptr [eax + 0x10], edx

        $sequence_4 = { ff15???????? 85c0 0f84fe050000 bb02000000 8d842498000000 53 6a00 }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   0f84fe050000         | je                  0x604
            //   bb02000000           | mov                 ebx, 2
            //   8d842498000000       | lea                 eax, [esp + 0x98]
            //   53                   | push                ebx
            //   6a00                 | push                0

        $sequence_5 = { 33db 8d4c240c 899c24cc000000 e8???????? 84c0 0f8597010000 8d4c240c }
            // n = 7, score = 100
            //   33db                 | xor                 ebx, ebx
            //   8d4c240c             | lea                 ecx, [esp + 0xc]
            //   899c24cc000000       | mov                 dword ptr [esp + 0xcc], ebx
            //   e8????????           |                     
            //   84c0                 | test                al, al
            //   0f8597010000         | jne                 0x19d
            //   8d4c240c             | lea                 ecx, [esp + 0xc]

        $sequence_6 = { 56 8b742410 85f6 8bd9 7460 833e00 745b }
            // n = 7, score = 100
            //   56                   | push                esi
            //   8b742410             | mov                 esi, dword ptr [esp + 0x10]
            //   85f6                 | test                esi, esi
            //   8bd9                 | mov                 ebx, ecx
            //   7460                 | je                  0x62
            //   833e00               | cmp                 dword ptr [esi], 0
            //   745b                 | je                  0x5d

        $sequence_7 = { 51 8bce e8???????? 8b4c2420 8bc7 5f 5e }
            // n = 7, score = 100
            //   51                   | push                ecx
            //   8bce                 | mov                 ecx, esi
            //   e8????????           |                     
            //   8b4c2420             | mov                 ecx, dword ptr [esp + 0x20]
            //   8bc7                 | mov                 eax, edi
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi

        $sequence_8 = { e8???????? 8bf0 eb02 33f6 56 8d4c2450 c684249000000003 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   8bf0                 | mov                 esi, eax
            //   eb02                 | jmp                 4
            //   33f6                 | xor                 esi, esi
            //   56                   | push                esi
            //   8d4c2450             | lea                 ecx, [esp + 0x50]
            //   c684249000000003     | mov                 byte ptr [esp + 0x90], 3

        $sequence_9 = { 8d8c248c000000 c68424cc00000005 89442414 e8???????? 397c2440 7437 8b4c2430 }
            // n = 7, score = 100
            //   8d8c248c000000       | lea                 ecx, [esp + 0x8c]
            //   c68424cc00000005     | mov                 byte ptr [esp + 0xcc], 5
            //   89442414             | mov                 dword ptr [esp + 0x14], eax
            //   e8????????           |                     
            //   397c2440             | cmp                 dword ptr [esp + 0x40], edi
            //   7437                 | je                  0x39
            //   8b4c2430             | mov                 ecx, dword ptr [esp + 0x30]

    condition:
        7 of them and filesize < 449536
}
[TLP:WHITE] win_equationdrug_w0   (20170517 | EquationDrug - Backdoor driven by network sniffer - mstcp32.sys, fat32.sys)
/* EquationDrug Update 11.03.2015 - http://securelist.com/blog/research/69203/inside-the-equationdrug-espionage-platform/ */

rule win_equationdrug_w0 {
	meta:
		description = "EquationDrug - Backdoor driven by network sniffer - mstcp32.sys, fat32.sys"
		author = "Florian Roth @4nc4p"
		reference = "http://securelist.com/blog/research/69203/inside-the-equationdrug-espionage-platform/"
		date = "2015/03/11"
		hash = "26e787997a338d8111d96c9a4c103cf8ff0201ce"
		source = "https://github.com/mattulm/sfiles_yara/blob/master/malware/Equation.yar"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.equationdrug"
        malpedia_version = "20170517"
        malpedia_license = "CC BY-NC-SA 4.0"
        malpedia_sharing = "TLP:WHITE"
	strings:
		$s0 = "Microsoft(R) Windows (TM) Operating System" fullword wide
		$s1 = "\\Registry\\User\\CurrentUser\\" fullword wide
		$s3 = "sys\\mstcp32.dbg" fullword ascii
		$s7 = "mstcp32.sys" fullword wide
		$s8 = "p32.sys" fullword ascii
		$s9 = "\\Device\\%ws_%ws" fullword wide
		$s10 = "\\DosDevices\\%ws" fullword wide
		$s11 = "\\Device\\%ws" fullword wide
	condition:
		all of them
}
Download all Yara Rules