SYMBOLCOMMON_NAMEaka. SYNONYMS
win.longwatch (Back to overview)

LONGWATCH

Actor(s): APT34


The primary function of LONGWATCH is a keylogger that outputs keystrokes to a log.txt file in the Windows temp folder.

References
2019-07-18FireEyeMatt Bromiley, Noah Klapprodt, Nick Schroeder, Jessica Rocchio
@online{bromiley:20190718:hard:7a6144e, author = {Matt Bromiley and Noah Klapprodt and Nick Schroeder and Jessica Rocchio}, title = {{Hard Pass: Declining APT34’s Invite to Join Their Professional Network}}, date = {2019-07-18}, organization = {FireEye}, url = {https://www.fireeye.com/blog/threat-research/2019/07/hard-pass-declining-apt34-invite-to-join-their-professional-network.html}, language = {English}, urldate = {2019-12-20} } Hard Pass: Declining APT34’s Invite to Join Their Professional Network
LONGWATCH PICKPOCKET TONEDEAF VALUEVAULT
Yara Rules
[TLP:WHITE] win_longwatch_auto (20201023 | autogenerated rule brought to you by yara-signator)
rule win_longwatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-12-22"
        version = "1"
        description = "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.longwatch"
        malpedia_rule_date = "20201222"
        malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130"
        malpedia_version = "20201023"
        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 = { ba05000000 8d0d107b4200 e8???????? 5a }
            // n = 4, score = 200
            //   ba05000000           | mov                 edx, 5
            //   8d0d107b4200         | lea                 ecx, [0x427b10]
            //   e8????????           |                     
            //   5a                   | pop                 edx

        $sequence_1 = { 84c0 7473 83cf04 897de0 85ff 752a 8b55e8 }
            // n = 7, score = 200
            //   84c0                 | test                al, al
            //   7473                 | je                  0x75
            //   83cf04               | or                  edi, 4
            //   897de0               | mov                 dword ptr [ebp - 0x20], edi
            //   85ff                 | test                edi, edi
            //   752a                 | jne                 0x2c
            //   8b55e8               | mov                 edx, dword ptr [ebp - 0x18]

        $sequence_2 = { a1???????? 8b0d???????? 5f 5e 660f1f440000 668b11 663b10 }
            // n = 7, score = 200
            //   a1????????           |                     
            //   8b0d????????         |                     
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   660f1f440000         | nop                 word ptr [eax + eax]
            //   668b11               | mov                 dx, word ptr [ecx]
            //   663b10               | cmp                 dx, word ptr [eax]

        $sequence_3 = { 8b0495a00b4300 804c182d04 ff4604 eb08 }
            // n = 4, score = 200
            //   8b0495a00b4300       | mov                 eax, dword ptr [edx*4 + 0x430ba0]
            //   804c182d04           | or                  byte ptr [eax + ebx + 0x2d], 4
            //   ff4604               | inc                 dword ptr [esi + 4]
            //   eb08                 | jmp                 0xa

        $sequence_4 = { 0f85e39e0000 ba05000000 8d0d107b4200 e9???????? a90000f07f 752c }
            // n = 6, score = 200
            //   0f85e39e0000         | jne                 0x9ee9
            //   ba05000000           | mov                 edx, 5
            //   8d0d107b4200         | lea                 ecx, [0x427b10]
            //   e9????????           |                     
            //   a90000f07f           | test                eax, 0x7ff00000
            //   752c                 | jne                 0x2e

        $sequence_5 = { e9???????? c745dc03000000 eb7c c745e010954200 ebbb d9e8 8b4510 }
            // n = 7, score = 200
            //   e9????????           |                     
            //   c745dc03000000       | mov                 dword ptr [ebp - 0x24], 3
            //   eb7c                 | jmp                 0x7e
            //   c745e010954200       | mov                 dword ptr [ebp - 0x20], 0x429510
            //   ebbb                 | jmp                 0xffffffbd
            //   d9e8                 | fld1                
            //   8b4510               | mov                 eax, dword ptr [ebp + 0x10]

        $sequence_6 = { 8b5d08 c745fc00000000 8b7e10 c745f001000000 8b4310 83c007 3bf8 }
            // n = 7, score = 200
            //   8b5d08               | mov                 ebx, dword ptr [ebp + 8]
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   8b7e10               | mov                 edi, dword ptr [esi + 0x10]
            //   c745f001000000       | mov                 dword ptr [ebp - 0x10], 1
            //   8b4310               | mov                 eax, dword ptr [ebx + 0x10]
            //   83c007               | add                 eax, 7
            //   3bf8                 | cmp                 edi, eax

        $sequence_7 = { 8d45f4 64a300000000 8bf1 51 8bd6 8d4dd8 }
            // n = 6, score = 200
            //   8d45f4               | lea                 eax, [ebp - 0xc]
            //   64a300000000         | mov                 dword ptr fs:[0], eax
            //   8bf1                 | mov                 esi, ecx
            //   51                   | push                ecx
            //   8bd6                 | mov                 edx, esi
            //   8d4dd8               | lea                 ecx, [ebp - 0x28]

        $sequence_8 = { 6bc000 c7809400430002000000 6a04 58 }
            // n = 4, score = 200
            //   6bc000               | imul                eax, eax, 0
            //   c7809400430002000000     | mov    dword ptr [eax + 0x430094], 2
            //   6a04                 | push                4
            //   58                   | pop                 eax

        $sequence_9 = { 3b7ddc 0f82eefeffff eb29 8b55d4 8a07 8b0c95a00b4300 8844192e }
            // n = 7, score = 200
            //   3b7ddc               | cmp                 edi, dword ptr [ebp - 0x24]
            //   0f82eefeffff         | jb                  0xfffffef4
            //   eb29                 | jmp                 0x2b
            //   8b55d4               | mov                 edx, dword ptr [ebp - 0x2c]
            //   8a07                 | mov                 al, byte ptr [edi]
            //   8b0c95a00b4300       | mov                 ecx, dword ptr [edx*4 + 0x430ba0]
            //   8844192e             | mov                 byte ptr [ecx + ebx + 0x2e], al

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