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 (20220411 | Detects win.longwatch.)
rule win_longwatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-04-08"
        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 = "20220405"
        malpedia_hash = "ecd38294bd47d5589be5cd5490dc8bb4804afc2a"
        malpedia_version = "20220411"
        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 = { 0fb704853cad4200 8d048538a44200 50 8d8590faffff 03c7 }
            // n = 5, score = 200
            //   0fb704853cad4200     | movzx               eax, word ptr [eax*4 + 0x42ad3c]
            //   8d048538a44200       | lea                 eax, dword ptr [eax*4 + 0x42a438]
            //   50                   | push                eax
            //   8d8590faffff         | lea                 eax, dword ptr [ebp - 0x570]
            //   03c7                 | add                 eax, edi

        $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 = { 8b4804 8d41f8 894411f4 8b42e8 8b4004 c74410e8a0bb4200 8b42e8 }
            // n = 7, score = 200
            //   8b4804               | mov                 ecx, dword ptr [eax + 4]
            //   8d41f8               | lea                 eax, dword ptr [ecx - 8]
            //   894411f4             | mov                 dword ptr [ecx + edx - 0xc], eax
            //   8b42e8               | mov                 eax, dword ptr [edx - 0x18]
            //   8b4004               | mov                 eax, dword ptr [eax + 4]
            //   c74410e8a0bb4200     | mov                 dword ptr [eax + edx - 0x18], 0x42bba0
            //   8b42e8               | mov                 eax, dword ptr [edx - 0x18]

        $sequence_3 = { 8b0c8da00b4300 c644112800 85f6 740c }
            // n = 4, score = 200
            //   8b0c8da00b4300       | mov                 ecx, dword ptr [ecx*4 + 0x430ba0]
            //   c644112800           | mov                 byte ptr [ecx + edx + 0x28], 0
            //   85f6                 | test                esi, esi
            //   740c                 | je                  0xe

        $sequence_4 = { 7515 8b45fc 81784858f74200 7409 ff7048 e8???????? 59 }
            // n = 7, score = 200
            //   7515                 | jne                 0x17
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   81784858f74200       | cmp                 dword ptr [eax + 0x48], 0x42f758
            //   7409                 | je                  0xb
            //   ff7048               | push                dword ptr [eax + 0x48]
            //   e8????????           |                     
            //   59                   | pop                 ecx

        $sequence_5 = { 56 50 57 ff15???????? 8bcb e8???????? 84c0 }
            // n = 7, score = 200
            //   56                   | push                esi
            //   50                   | push                eax
            //   57                   | push                edi
            //   ff15????????         |                     
            //   8bcb                 | mov                 ecx, ebx
            //   e8????????           |                     
            //   84c0                 | test                al, al

        $sequence_6 = { 8b4804 8d41f8 894411ec 8b42e0 8b4004 c74410e0a0bb4200 8b42e0 }
            // n = 7, score = 200
            //   8b4804               | mov                 ecx, dword ptr [eax + 4]
            //   8d41f8               | lea                 eax, dword ptr [ecx - 8]
            //   894411ec             | mov                 dword ptr [ecx + edx - 0x14], eax
            //   8b42e0               | mov                 eax, dword ptr [edx - 0x20]
            //   8b4004               | mov                 eax, dword ptr [eax + 4]
            //   c74410e0a0bb4200     | mov                 dword ptr [eax + edx - 0x20], 0x42bba0
            //   8b42e0               | mov                 eax, dword ptr [edx - 0x20]

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

        $sequence_8 = { 6a2d e9???????? 6a2e e9???????? 6a20 }
            // n = 5, score = 200
            //   6a2d                 | push                0x2d
            //   e9????????           |                     
            //   6a2e                 | push                0x2e
            //   e9????????           |                     
            //   6a20                 | push                0x20

        $sequence_9 = { 740c 8b0cb5f8344200 46 85c9 75f0 }
            // n = 5, score = 200
            //   740c                 | je                  0xe
            //   8b0cb5f8344200       | mov                 ecx, dword ptr [esi*4 + 0x4234f8]
            //   46                   | inc                 esi
            //   85c9                 | test                ecx, ecx
            //   75f0                 | jne                 0xfffffff2

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