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-08-22CywareCyware
@online{cyware:20190822:apt34:3439fde, author = {Cyware}, title = {{APT34: The Helix Kitten Cybercriminal Group Loves to Meow Middle Eastern and International Organizations}}, date = {2019-08-22}, organization = {Cyware}, url = {https://cyware.com/blog/apt34-the-helix-kitten-cybercriminal-group-loves-to-meow-middle-eastern-and-international-organizations-48ae}, language = {English}, urldate = {2021-06-29} } 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-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 (20230715 | Detects win.longwatch.)
rule win_longwatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-07-11"
        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 = "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 = { 6bf630 8b0c8da00b4300 80643128fd 5f 5e }
            // n = 5, score = 200
            //   6bf630               | imul                esi, esi, 0x30
            //   8b0c8da00b4300       | mov                 ecx, dword ptr [ecx*4 + 0x430ba0]
            //   80643128fd           | and                 byte ptr [ecx + esi + 0x28], 0xfd
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi

        $sequence_1 = { 89443284 e8???????? 8b4688 8b4004 c744308890bb4200 }
            // n = 5, score = 200
            //   89443284             | mov                 dword ptr [edx + esi - 0x7c], eax
            //   e8????????           |                     
            //   8b4688               | mov                 eax, dword ptr [esi - 0x78]
            //   8b4004               | mov                 eax, dword ptr [eax + 4]
            //   c744308890bb4200     | mov                 dword ptr [eax + esi - 0x78], 0x42bb90

        $sequence_2 = { 83c408 83f8ff 7524 0f57c0 c745d0dc324200 }
            // n = 5, score = 200
            //   83c408               | add                 esp, 8
            //   83f8ff               | cmp                 eax, -1
            //   7524                 | jne                 0x26
            //   0f57c0               | xorps               xmm0, xmm0
            //   c745d0dc324200       | mov                 dword ptr [ebp - 0x30], 0x4232dc

        $sequence_3 = { 84c0 741c 85db 7507 c74634dc6e4200 }
            // n = 5, score = 200
            //   84c0                 | test                al, al
            //   741c                 | je                  0x1e
            //   85db                 | test                ebx, ebx
            //   7507                 | jne                 9
            //   c74634dc6e4200       | mov                 dword ptr [esi + 0x34], 0x426edc

        $sequence_4 = { 8b048da00b4300 894df0 8b4c3818 894dec 8b4d10 }
            // n = 5, score = 200
            //   8b048da00b4300       | mov                 eax, dword ptr [ecx*4 + 0x430ba0]
            //   894df0               | mov                 dword ptr [ebp - 0x10], ecx
            //   8b4c3818             | mov                 ecx, dword ptr [eax + edi + 0x18]
            //   894dec               | mov                 dword ptr [ebp - 0x14], ecx
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]

        $sequence_5 = { 83c40c e9???????? 8b048da00b4300 8b4df0 f644012880 745b }
            // n = 6, score = 200
            //   83c40c               | add                 esp, 0xc
            //   e9????????           |                     
            //   8b048da00b4300       | mov                 eax, dword ptr [ecx*4 + 0x430ba0]
            //   8b4df0               | mov                 ecx, dword ptr [ebp - 0x10]
            //   f644012880           | test                byte ptr [ecx + eax + 0x28], 0x80
            //   745b                 | je                  0x5d

        $sequence_6 = { 53 e8???????? 8b0cb5a00b4300 83c410 }
            // n = 4, score = 200
            //   53                   | push                ebx
            //   e8????????           |                     
            //   8b0cb5a00b4300       | mov                 ecx, dword ptr [esi*4 + 0x430ba0]
            //   83c410               | add                 esp, 0x10

        $sequence_7 = { 6a00 6a00 8d8d48ffffff c78548ffffffdc334200 e8???????? 83ec08 c745fc02000000 }
            // n = 7, score = 200
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   8d8d48ffffff         | lea                 ecx, [ebp - 0xb8]
            //   c78548ffffffdc334200     | mov    dword ptr [ebp - 0xb8], 0x4233dc
            //   e8????????           |                     
            //   83ec08               | sub                 esp, 8
            //   c745fc02000000       | mov                 dword ptr [ebp - 4], 2

        $sequence_8 = { 1bc0 83c801 85c0 745b e8???????? }
            // n = 5, score = 200
            //   1bc0                 | sbb                 eax, eax
            //   83c801               | or                  eax, 1
            //   85c0                 | test                eax, eax
            //   745b                 | je                  0x5d
            //   e8????????           |                     

        $sequence_9 = { e8???????? 8d45a8 c645fc04 50 c745a884334200 e8???????? 8b451c }
            // n = 7, score = 200
            //   e8????????           |                     
            //   8d45a8               | lea                 eax, [ebp - 0x58]
            //   c645fc04             | mov                 byte ptr [ebp - 4], 4
            //   50                   | push                eax
            //   c745a884334200       | mov                 dword ptr [ebp - 0x58], 0x423384
            //   e8????????           |                     
            //   8b451c               | mov                 eax, dword ptr [ebp + 0x1c]

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