SYMBOLCOMMON_NAMEaka. SYNONYMS
win.virdetdoor (Back to overview)

virdetdoor


There is no description at this point.

References
2016-01-28ProofpointDarien Huss
@online{huss:20160128:exploring:7f85d44, author = {Darien Huss}, title = {{Exploring Bergard: Old Malware with New Tricks}}, date = {2016-01-28}, organization = {Proofpoint}, url = {https://www.proofpoint.com/us/exploring-bergard-old-malware-new-tricks}, language = {English}, urldate = {2019-12-20} } Exploring Bergard: Old Malware with New Tricks
virdetdoor APT19
Yara Rules
[TLP:WHITE] win_virdetdoor_auto (20230715 | Detects win.virdetdoor.)
rule win_virdetdoor_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-07-11"
        version = "1"
        description = "Detects win.virdetdoor."
        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.virdetdoor"
        malpedia_rule_date = "20230705"
        malpedia_hash = "42d0574f4405bd7d2b154d321d345acb18834a41"
        malpedia_version = "20230715"
        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 = { 8a0407 47 3c7c 0f8583000000 c70645000000 }
            // n = 5, score = 100
            //   8a0407               | mov                 al, byte ptr [edi + eax]
            //   47                   | inc                 edi
            //   3c7c                 | cmp                 al, 0x7c
            //   0f8583000000         | jne                 0x89
            //   c70645000000         | mov                 dword ptr [esi], 0x45

        $sequence_1 = { 85c0 75ef 8b5df4 8b45ec 897e04 8a1407 47 }
            // n = 7, score = 100
            //   85c0                 | test                eax, eax
            //   75ef                 | jne                 0xfffffff1
            //   8b5df4               | mov                 ebx, dword ptr [ebp - 0xc]
            //   8b45ec               | mov                 eax, dword ptr [ebp - 0x14]
            //   897e04               | mov                 dword ptr [esi + 4], edi
            //   8a1407               | mov                 dl, byte ptr [edi + eax]
            //   47                   | inc                 edi

        $sequence_2 = { 66ab 58 668945f0 0fb786f4010000 50 ff15???????? 668945f2 }
            // n = 7, score = 100
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   58                   | pop                 eax
            //   668945f0             | mov                 word ptr [ebp - 0x10], ax
            //   0fb786f4010000       | movzx               eax, word ptr [esi + 0x1f4]
            //   50                   | push                eax
            //   ff15????????         |                     
            //   668945f2             | mov                 word ptr [ebp - 0xe], ax

        $sequence_3 = { 837d1c00 8b4514 751a 6a00 ff7508 52 99 }
            // n = 7, score = 100
            //   837d1c00             | cmp                 dword ptr [ebp + 0x1c], 0
            //   8b4514               | mov                 eax, dword ptr [ebp + 0x14]
            //   751a                 | jne                 0x1c
            //   6a00                 | push                0
            //   ff7508               | push                dword ptr [ebp + 8]
            //   52                   | push                edx
            //   99                   | cdq                 

        $sequence_4 = { 740b c70648000000 e9???????? 6a00 }
            // n = 4, score = 100
            //   740b                 | je                  0xd
            //   c70648000000         | mov                 dword ptr [esi], 0x48
            //   e9????????           |                     
            //   6a00                 | push                0

        $sequence_5 = { c6410100 0fb64210 83f83a 0f87ce010000 ff24859e414000 c60102 e9???????? }
            // n = 7, score = 100
            //   c6410100             | mov                 byte ptr [ecx + 1], 0
            //   0fb64210             | movzx               eax, byte ptr [edx + 0x10]
            //   83f83a               | cmp                 eax, 0x3a
            //   0f87ce010000         | ja                  0x1d4
            //   ff24859e414000       | jmp                 dword ptr [eax*4 + 0x40419e]
            //   c60102               | mov                 byte ptr [ecx], 2
            //   e9????????           |                     

        $sequence_6 = { 5d c3 53 56 8bf1 832600 c7460401000000 }
            // n = 7, score = 100
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   53                   | push                ebx
            //   56                   | push                esi
            //   8bf1                 | mov                 esi, ecx
            //   832600               | and                 dword ptr [esi], 0
            //   c7460401000000       | mov                 dword ptr [esi + 4], 1

        $sequence_7 = { ff15???????? 83c40c 66c70645cc 33c0 66c7460840ff 40 66894604 }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   83c40c               | add                 esp, 0xc
            //   66c70645cc           | mov                 word ptr [esi], 0xcc45
            //   33c0                 | xor                 eax, eax
            //   66c7460840ff         | mov                 word ptr [esi + 8], 0xff40
            //   40                   | inc                 eax
            //   66894604             | mov                 word ptr [esi + 4], ax

        $sequence_8 = { 83c410 66894606 6685c0 7532 b8ffff0000 eb27 }
            // n = 6, score = 100
            //   83c410               | add                 esp, 0x10
            //   66894606             | mov                 word ptr [esi + 6], ax
            //   6685c0               | test                ax, ax
            //   7532                 | jne                 0x34
            //   b8ffff0000           | mov                 eax, 0xffff
            //   eb27                 | jmp                 0x29

        $sequence_9 = { 6bc009 0fb68410a8724000 c1e804 8985c0fdffff 83f808 0f8464ffffff 6a07 }
            // n = 7, score = 100
            //   6bc009               | imul                eax, eax, 9
            //   0fb68410a8724000     | movzx               eax, byte ptr [eax + edx + 0x4072a8]
            //   c1e804               | shr                 eax, 4
            //   8985c0fdffff         | mov                 dword ptr [ebp - 0x240], eax
            //   83f808               | cmp                 eax, 8
            //   0f8464ffffff         | je                  0xffffff6a
            //   6a07                 | push                7

    condition:
        7 of them and filesize < 106496
}
Download all Yara Rules