SYMBOLCOMMON_NAMEaka. SYNONYMS
win.phandoor (Back to overview)

PhanDoor

Actor(s): Lazarus Group


There is no description at this point.

References
2018-06-23AhnLabAhnLab
@techreport{ahnlab:20180623:full:dced6a4, author = {AhnLab}, title = {{Full Discloser of Andariel, A Subgroup of Lazarus Threat Group}}, date = {2018-06-23}, institution = {AhnLab}, url = {https://global.ahnlab.com/global/upload/download/techreport/[AhnLab]Andariel_a_Subgroup_of_Lazarus%20(3).pdf}, language = {English}, urldate = {2019-12-24} } Full Discloser of Andariel, A Subgroup of Lazarus Threat Group
PhanDoor Rifdoor
Yara Rules
[TLP:WHITE] win_phandoor_auto (20230125 | Detects win.phandoor.)
rule win_phandoor_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.phandoor."
        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.phandoor"
        malpedia_rule_date = "20230124"
        malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686"
        malpedia_version = "20230125"
        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 = { 7470 833d????????00 7467 833d????????00 }
            // n = 4, score = 800
            //   7470                 | je                  0x72
            //   833d????????00       |                     
            //   7467                 | je                  0x69
            //   833d????????00       |                     

        $sequence_1 = { 5e 8b4dfc 33cd b8???????? }
            // n = 4, score = 800
            //   5e                   | pop                 esi
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   33cd                 | xor                 ecx, ebp
            //   b8????????           |                     

        $sequence_2 = { 8b96b0010000 8915???????? 8b86b4010000 a3???????? 8b8eb8010000 890d???????? 8b96bc010000 }
            // n = 7, score = 800
            //   8b96b0010000         | mov                 edx, dword ptr [esi + 0x1b0]
            //   8915????????         |                     
            //   8b86b4010000         | mov                 eax, dword ptr [esi + 0x1b4]
            //   a3????????           |                     
            //   8b8eb8010000         | mov                 ecx, dword ptr [esi + 0x1b8]
            //   890d????????         |                     
            //   8b96bc010000         | mov                 edx, dword ptr [esi + 0x1bc]

        $sequence_3 = { 0f84ba010000 833d????????00 0f84ad010000 833d????????00 }
            // n = 4, score = 800
            //   0f84ba010000         | je                  0x1c0
            //   833d????????00       |                     
            //   0f84ad010000         | je                  0x1b3
            //   833d????????00       |                     

        $sequence_4 = { 837dec00 7509 b801000000 8be5 5d c3 33c0 }
            // n = 7, score = 800
            //   837dec00             | cmp                 dword ptr [ebp - 0x14], 0
            //   7509                 | jne                 0xb
            //   b801000000           | mov                 eax, 1
            //   8be5                 | mov                 esp, ebp
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   33c0                 | xor                 eax, eax

        $sequence_5 = { 755f 807f015e 7559 8bc7 8d5001 }
            // n = 5, score = 800
            //   755f                 | jne                 0x61
            //   807f015e             | cmp                 byte ptr [edi + 1], 0x5e
            //   7559                 | jne                 0x5b
            //   8bc7                 | mov                 eax, edi
            //   8d5001               | lea                 edx, [eax + 1]

        $sequence_6 = { 0f84c3000000 833d????????00 0f84b6000000 833d????????00 0f84a9000000 }
            // n = 5, score = 800
            //   0f84c3000000         | je                  0xc9
            //   833d????????00       |                     
            //   0f84b6000000         | je                  0xbc
            //   833d????????00       |                     
            //   0f84a9000000         | je                  0xaf

        $sequence_7 = { 8b8e9c010000 53 51 ff15???????? 8b55f8 52 e8???????? }
            // n = 7, score = 800
            //   8b8e9c010000         | mov                 ecx, dword ptr [esi + 0x19c]
            //   53                   | push                ebx
            //   51                   | push                ecx
            //   ff15????????         |                     
            //   8b55f8               | mov                 edx, dword ptr [ebp - 8]
            //   52                   | push                edx
            //   e8????????           |                     

        $sequence_8 = { 33d2 3955e4 53 0f9dc2 c645fc02 8bf2 }
            // n = 6, score = 500
            //   33d2                 | xor                 edx, edx
            //   3955e4               | cmp                 dword ptr [ebp - 0x1c], edx
            //   53                   | push                ebx
            //   0f9dc2               | setge               dl
            //   c645fc02             | mov                 byte ptr [ebp - 4], 2
            //   8bf2                 | mov                 esi, edx

        $sequence_9 = { 0fb74d10 8b550c 6a00 51 52 8b5508 8bc8 }
            // n = 7, score = 500
            //   0fb74d10             | movzx               ecx, word ptr [ebp + 0x10]
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   6a00                 | push                0
            //   51                   | push                ecx
            //   52                   | push                edx
            //   8b5508               | mov                 edx, dword ptr [ebp + 8]
            //   8bc8                 | mov                 ecx, eax

        $sequence_10 = { 740b 8a4601 46 43 84c0 7409 }
            // n = 6, score = 500
            //   740b                 | je                  0xd
            //   8a4601               | mov                 al, byte ptr [esi + 1]
            //   46                   | inc                 esi
            //   43                   | inc                 ebx
            //   84c0                 | test                al, al
            //   7409                 | je                  0xb

        $sequence_11 = { 0fb74d10 8b550c 6a01 51 }
            // n = 4, score = 500
            //   0fb74d10             | movzx               ecx, word ptr [ebp + 0x10]
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   6a01                 | push                1
            //   51                   | push                ecx

        $sequence_12 = { 50 e8???????? 83c404 893e 8b4604 3bc7 740c }
            // n = 7, score = 500
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   893e                 | mov                 dword ptr [esi], edi
            //   8b4604               | mov                 eax, dword ptr [esi + 4]
            //   3bc7                 | cmp                 eax, edi
            //   740c                 | je                  0xe

        $sequence_13 = { 33ff 397e08 7e31 85ff }
            // n = 4, score = 500
            //   33ff                 | xor                 edi, edi
            //   397e08               | cmp                 dword ptr [esi + 8], edi
            //   7e31                 | jle                 0x33
            //   85ff                 | test                edi, edi

        $sequence_14 = { 3bce 7705 83f8ff 760a }
            // n = 4, score = 500
            //   3bce                 | cmp                 ecx, esi
            //   7705                 | ja                  7
            //   83f8ff               | cmp                 eax, -1
            //   760a                 | jbe                 0xc

        $sequence_15 = { 50 ffd7 83c624 833e00 75ea 85c0 7505 }
            // n = 7, score = 500
            //   50                   | push                eax
            //   ffd7                 | call                edi
            //   83c624               | add                 esi, 0x24
            //   833e00               | cmp                 dword ptr [esi], 0
            //   75ea                 | jne                 0xffffffec
            //   85c0                 | test                eax, eax
            //   7505                 | jne                 7

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