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 (20220808 | Detects win.equationdrug.)
rule win_equationdrug_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-08-05"
        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 = "20220805"
        malpedia_hash = "6ec06c64bcfdbeda64eff021c766b4ce34542b71"
        malpedia_version = "20220808"
        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 = { 895c2460 e8???????? 83c404 89442418 3bc3 c644245c01 }
            // n = 6, score = 100
            //   895c2460             | mov                 dword ptr [esp + 0x60], ebx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   89442418             | mov                 dword ptr [esp + 0x18], eax
            //   3bc3                 | cmp                 eax, ebx
            //   c644245c01           | mov                 byte ptr [esp + 0x5c], 1

        $sequence_1 = { 56 6a07 8bf1 68???????? 50 89742410 e8???????? }
            // n = 7, score = 100
            //   56                   | push                esi
            //   6a07                 | push                7
            //   8bf1                 | mov                 esi, ecx
            //   68????????           |                     
            //   50                   | push                eax
            //   89742410             | mov                 dword ptr [esp + 0x10], esi
            //   e8????????           |                     

        $sequence_2 = { 7631 33ff 8b4e08 8d0439 8b0c39 894c2414 8b5008 }
            // n = 7, score = 100
            //   7631                 | jbe                 0x33
            //   33ff                 | xor                 edi, edi
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8d0439               | lea                 eax, [ecx + edi]
            //   8b0c39               | mov                 ecx, dword ptr [ecx + edi]
            //   894c2414             | mov                 dword ptr [esp + 0x14], ecx
            //   8b5008               | mov                 edx, dword ptr [eax + 8]

        $sequence_3 = { 5e 5b c3 8d4310 b902000000 bf???????? 8bf0 }
            // n = 7, score = 100
            //   5e                   | pop                 esi
            //   5b                   | pop                 ebx
            //   c3                   | ret                 
            //   8d4310               | lea                 eax, [ebx + 0x10]
            //   b902000000           | mov                 ecx, 2
            //   bf????????           |                     
            //   8bf0                 | mov                 esi, eax

        $sequence_4 = { 83c404 85ed 740c 5f 8bc5 5e 5d }
            // n = 7, score = 100
            //   83c404               | add                 esp, 4
            //   85ed                 | test                ebp, ebp
            //   740c                 | je                  0xe
            //   5f                   | pop                 edi
            //   8bc5                 | mov                 eax, ebp
            //   5e                   | pop                 esi
            //   5d                   | pop                 ebp

        $sequence_5 = { 7410 8b4c240c 51 55 57 8bc8 e8???????? }
            // n = 7, score = 100
            //   7410                 | je                  0x12
            //   8b4c240c             | mov                 ecx, dword ptr [esp + 0xc]
            //   51                   | push                ecx
            //   55                   | push                ebp
            //   57                   | push                edi
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     

        $sequence_6 = { 8d4310 8d4c2408 50 e8???????? 8d4c2408 c784242c02000000000000 e8???????? }
            // n = 7, score = 100
            //   8d4310               | lea                 eax, [ebx + 0x10]
            //   8d4c2408             | lea                 ecx, [esp + 8]
            //   50                   | push                eax
            //   e8????????           |                     
            //   8d4c2408             | lea                 ecx, [esp + 8]
            //   c784242c02000000000000     | mov    dword ptr [esp + 0x22c], 0
            //   e8????????           |                     

        $sequence_7 = { e8???????? b811030000 8b8c2498020000 5f 5e 5d 5b }
            // n = 7, score = 100
            //   e8????????           |                     
            //   b811030000           | mov                 eax, 0x311
            //   8b8c2498020000       | mov                 ecx, dword ptr [esp + 0x298]
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5d                   | pop                 ebp
            //   5b                   | pop                 ebx

        $sequence_8 = { 7413 57 e8???????? 83c404 b81f030000 5f 5e }
            // n = 7, score = 100
            //   7413                 | je                  0x15
            //   57                   | push                edi
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   b81f030000           | mov                 eax, 0x31f
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi

        $sequence_9 = { 5d b804030000 5b c20800 8b432c 85c0 7409 }
            // n = 7, score = 100
            //   5d                   | pop                 ebp
            //   b804030000           | mov                 eax, 0x304
            //   5b                   | pop                 ebx
            //   c20800               | ret                 8
            //   8b432c               | mov                 eax, dword ptr [ebx + 0x2c]
            //   85c0                 | test                eax, eax
            //   7409                 | je                  0xb

    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