SYMBOLCOMMON_NAMEaka. SYNONYMS
win.longwatch (Back to overview)

LONGWATCH

Actor(s): APT34

VTCollection    

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

References
2019-08-22 ⋅ Cyware ⋅ Cyware
APT34: The Helix Kitten Cybercriminal Group Loves to Meow Middle Eastern and International Organizations
TwoFace BONDUPDATER POWRUNER QUADAGENT Helminth ISMAgent Karkoff LONGWATCH OopsIE PICKPOCKET RGDoor VALUEVAULT
2019-07-18 ⋅ FireEye ⋅ Jessica Rocchio, Matt Bromiley, Nick Schroeder, Noah Klapprodt
Hard Pass: Declining APT34’s Invite to Join Their Professional Network
LONGWATCH PICKPOCKET TONEDEAF VALUEVAULT
Yara Rules
[TLP:WHITE] win_longwatch_auto (20260917 | Detects win.longwatch.)
rule win_longwatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.longwatch."
        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.longwatch"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        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 = { c705????????dc334200 e8???????? 68???????? e8???????? 59 }
            // n = 5, score = 200
            //   c705????????dc334200     |     
            //   e8????????           |                     
            //   68????????           |                     
            //   e8????????           |                     
            //   59                   | pop                 ecx

        $sequence_1 = { 59 eb15 85db 7507 c74634d46e4200 }
            // n = 5, score = 200
            //   59                   | pop                 ecx
            //   eb15                 | jmp                 0x17
            //   85db                 | test                ebx, ebx
            //   7507                 | jne                 9
            //   c74634d46e4200       | mov                 dword ptr [esi + 0x34], 0x426ed4

        $sequence_2 = { 8b0485a00b4300 33db 8b7508 57 }
            // n = 4, score = 200
            //   8b0485a00b4300       | mov                 eax, dword ptr [eax*4 + 0x430ba0]
            //   33db                 | xor                 ebx, ebx
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   57                   | push                edi

        $sequence_3 = { 57 8bb0a0714200 8bce ff15???????? ffd6 }
            // n = 5, score = 200
            //   57                   | push                edi
            //   8bb0a0714200         | mov                 esi, dword ptr [eax + 0x4271a0]
            //   8bce                 | mov                 ecx, esi
            //   ff15????????         |                     
            //   ffd6                 | call                esi

        $sequence_4 = { 8b0485a00b4300 88540828 8b0b 8bc1 83e13f }
            // n = 5, score = 200
            //   8b0485a00b4300       | mov                 eax, dword ptr [eax*4 + 0x430ba0]
            //   88540828             | mov                 byte ptr [eax + ecx + 0x28], dl
            //   8b0b                 | mov                 ecx, dword ptr [ebx]
            //   8bc1                 | mov                 eax, ecx
            //   83e13f               | and                 ecx, 0x3f

        $sequence_5 = { e9???????? c745dc03000000 c745e010954200 e9???????? 83e80f 7451 }
            // n = 6, score = 200
            //   e9????????           |                     
            //   c745dc03000000       | mov                 dword ptr [ebp - 0x24], 3
            //   c745e010954200       | mov                 dword ptr [ebp - 0x20], 0x429510
            //   e9????????           |                     
            //   83e80f               | sub                 eax, 0xf
            //   7451                 | je                  0x53

        $sequence_6 = { 6a31 e9???????? 6a32 e9???????? 6a33 }
            // n = 5, score = 200
            //   6a31                 | push                0x31
            //   e9????????           |                     
            //   6a32                 | push                0x32
            //   e9????????           |                     
            //   6a33                 | push                0x33

        $sequence_7 = { 8bff 55 8bec 8b4d08 33c0 663b8850934200 }
            // n = 6, score = 200
            //   8bff                 | mov                 edi, edi
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   33c0                 | xor                 eax, eax
            //   663b8850934200       | cmp                 cx, word ptr [eax + 0x429350]

        $sequence_8 = { ff15???????? 663bc6 0f850f030000 ff15???????? 8bf8 }
            // n = 5, score = 200
            //   ff15????????         |                     
            //   663bc6               | cmp                 ax, si
            //   0f850f030000         | jne                 0x315
            //   ff15????????         |                     
            //   8bf8                 | mov                 edi, eax

        $sequence_9 = { 8b048da00b4300 f644382848 58 743a 668b55fc 663bd0 }
            // n = 6, score = 200
            //   8b048da00b4300       | mov                 eax, dword ptr [ecx*4 + 0x430ba0]
            //   f644382848           | test                byte ptr [eax + edi + 0x28], 0x48
            //   58                   | pop                 eax
            //   743a                 | je                  0x3c
            //   668b55fc             | mov                 dx, word ptr [ebp - 4]
            //   663bd0               | cmp                 dx, ax

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