SYMBOLCOMMON_NAMEaka. SYNONYMS
win.equationdrug (Back to overview)

EquationDrug

Actor(s): Equation Group

URLhaus        

There is no description at this point.

References
2017-03-30Artem Baranov
@online{baranov:20170330:equationdrug:7255a48, author = {Artem Baranov}, title = {{EquationDrug rootkit analysis (mstcp32.sys)}}, date = {2017-03-30}, url = {http://artemonsecurity.blogspot.com/2017/03/equationdrug-rootkit-analysis-mstcp32sys.html}, language = {English}, urldate = {2020-01-07} } EquationDrug rootkit analysis (mstcp32.sys)
EquationDrug
2015-03-11Kaspersky LabsGReAT
@online{great:20150311:inside:28cec3e, author = {GReAT}, title = {{Inside the EquationDrug Espionage Platform}}, date = {2015-03-11}, organization = {Kaspersky Labs}, url = {https://securelist.com/inside-the-equationdrug-espionage-platform/69203/}, language = {English}, urldate = {2019-12-20} } Inside the EquationDrug Espionage Platform
EquationDrug
2015-02-16Kaspersky LabsGReAT
@online{great:20150216:equation:ad81ead, author = {GReAT}, title = {{Equation: The Death Star of Malware Galaxy}}, date = {2015-02-16}, organization = {Kaspersky Labs}, url = {https://securelist.com/equation-the-death-star-of-malware-galaxy/68750/}, language = {English}, urldate = {2022-05-23} } Equation: The Death Star of Malware Galaxy
DoubleFantasy EquationDrug Fanny GROK
Yara Rules
[TLP:WHITE] win_equationdrug_auto (20220516 | Detects win.equationdrug.)
rule win_equationdrug_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-05-16"
        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 = "20220513"
        malpedia_hash = "7f4b2229e6ae614d86d74917f6d5b41890e62a26"
        malpedia_version = "20220516"
        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 = { 84c0 7502 5e c3 8b4620 8b4e40 }
            // n = 6, score = 100
            //   84c0                 | test                al, al
            //   7502                 | jne                 4
            //   5e                   | pop                 esi
            //   c3                   | ret                 
            //   8b4620               | mov                 eax, dword ptr [esi + 0x20]
            //   8b4e40               | mov                 ecx, dword ptr [esi + 0x40]

        $sequence_1 = { 81ec10020000 a1???????? 8b0d???????? 8b15???????? 53 8b9c2418020000 89442404 }
            // n = 7, score = 100
            //   81ec10020000         | sub                 esp, 0x210
            //   a1????????           |                     
            //   8b0d????????         |                     
            //   8b15????????         |                     
            //   53                   | push                ebx
            //   8b9c2418020000       | mov                 ebx, dword ptr [esp + 0x218]
            //   89442404             | mov                 dword ptr [esp + 4], eax

        $sequence_2 = { 8d4c242c 8bf0 885c246c e8???????? 8d4c2408 c744246cffffffff e8???????? }
            // n = 7, score = 100
            //   8d4c242c             | lea                 ecx, [esp + 0x2c]
            //   8bf0                 | mov                 esi, eax
            //   885c246c             | mov                 byte ptr [esp + 0x6c], bl
            //   e8????????           |                     
            //   8d4c2408             | lea                 ecx, [esp + 8]
            //   c744246cffffffff     | mov                 dword ptr [esp + 0x6c], 0xffffffff
            //   e8????????           |                     

        $sequence_3 = { 668b442418 8b4c2410 66c7021600 668b542414 66894648 894e42 66895646 }
            // n = 7, score = 100
            //   668b442418           | mov                 ax, word ptr [esp + 0x18]
            //   8b4c2410             | mov                 ecx, dword ptr [esp + 0x10]
            //   66c7021600           | mov                 word ptr [edx], 0x16
            //   668b542414           | mov                 dx, word ptr [esp + 0x14]
            //   66894648             | mov                 word ptr [esi + 0x48], ax
            //   894e42               | mov                 dword ptr [esi + 0x42], ecx
            //   66895646             | mov                 word ptr [esi + 0x46], dx

        $sequence_4 = { 56 6807060000 8d4c2408 e8???????? 8d4c2404 8bf0 c7442458ffffffff }
            // n = 7, score = 100
            //   56                   | push                esi
            //   6807060000           | push                0x607
            //   8d4c2408             | lea                 ecx, [esp + 8]
            //   e8????????           |                     
            //   8d4c2404             | lea                 ecx, [esp + 4]
            //   8bf0                 | mov                 esi, eax
            //   c7442458ffffffff     | mov                 dword ptr [esp + 0x58], 0xffffffff

        $sequence_5 = { 8b4c2410 83c208 40 3bc1 89442418 72a0 8b4c241c }
            // n = 7, score = 100
            //   8b4c2410             | mov                 ecx, dword ptr [esp + 0x10]
            //   83c208               | add                 edx, 8
            //   40                   | inc                 eax
            //   3bc1                 | cmp                 eax, ecx
            //   89442418             | mov                 dword ptr [esp + 0x18], eax
            //   72a0                 | jb                  0xffffffa2
            //   8b4c241c             | mov                 ecx, dword ptr [esp + 0x1c]

        $sequence_6 = { 894818 89481c 894820 66894824 885028 89482c 894830 }
            // n = 7, score = 100
            //   894818               | mov                 dword ptr [eax + 0x18], ecx
            //   89481c               | mov                 dword ptr [eax + 0x1c], ecx
            //   894820               | mov                 dword ptr [eax + 0x20], ecx
            //   66894824             | mov                 word ptr [eax + 0x24], cx
            //   885028               | mov                 byte ptr [eax + 0x28], dl
            //   89482c               | mov                 dword ptr [eax + 0x2c], ecx
            //   894830               | mov                 dword ptr [eax + 0x30], ecx

        $sequence_7 = { 7342 8d5604 8bcf 52 50 56 e8???????? }
            // n = 7, score = 100
            //   7342                 | jae                 0x44
            //   8d5604               | lea                 edx, [esi + 4]
            //   8bcf                 | mov                 ecx, edi
            //   52                   | push                edx
            //   50                   | push                eax
            //   56                   | push                esi
            //   e8????????           |                     

        $sequence_8 = { b80e050000 e9???????? 8b6f10 8b4714 3be8 }
            // n = 5, score = 100
            //   b80e050000           | mov                 eax, 0x50e
            //   e9????????           |                     
            //   8b6f10               | mov                 ebp, dword ptr [edi + 0x10]
            //   8b4714               | mov                 eax, dword ptr [edi + 0x14]
            //   3be8                 | cmp                 ebp, eax

        $sequence_9 = { 52 8b54240c 50 83c104 52 51 }
            // n = 6, score = 100
            //   52                   | push                edx
            //   8b54240c             | mov                 edx, dword ptr [esp + 0xc]
            //   50                   | push                eax
            //   83c104               | add                 ecx, 4
            //   52                   | push                edx
            //   51                   | push                ecx

    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