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

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-08-05"
        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 = "20220805"
        malpedia_hash = "6ec06c64bcfdbeda64eff021c766b4ce34542b71"
        malpedia_version = "20220808"
        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 = { 6bf830 894df8 6a0a 8b048da00b4300 }
            // n = 4, score = 200
            //   6bf830               | imul                edi, eax, 0x30
            //   894df8               | mov                 dword ptr [ebp - 8], ecx
            //   6a0a                 | push                0xa
            //   8b048da00b4300       | mov                 eax, dword ptr [ecx*4 + 0x430ba0]

        $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 = { 8b0485a00b4300 8a44022b 8845fe 3c0a 746f 85c9 }
            // n = 6, score = 200
            //   8b0485a00b4300       | mov                 eax, dword ptr [eax*4 + 0x430ba0]
            //   8a44022b             | mov                 al, byte ptr [edx + eax + 0x2b]
            //   8845fe               | mov                 byte ptr [ebp - 2], al
            //   3c0a                 | cmp                 al, 0xa
            //   746f                 | je                  0x71
            //   85c9                 | test                ecx, ecx

        $sequence_4 = { 894411ec 8b42e0 8b4004 c74410e0a0bb4200 }
            // n = 4, score = 200
            //   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

        $sequence_5 = { ebb2 8bff 55 8bec 8b4508 8b4d10 }
            // n = 6, score = 200
            //   ebb2                 | jmp                 0xffffffb4
            //   8bff                 | mov                 edi, edi
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]

        $sequence_6 = { 74b0 ddd8 db2d???????? b801000000 833d????????00 0f85869e0000 ba05000000 }
            // n = 7, score = 200
            //   74b0                 | je                  0xffffffb2
            //   ddd8                 | fstp                st(0)
            //   db2d????????         |                     
            //   b801000000           | mov                 eax, 1
            //   833d????????00       |                     
            //   0f85869e0000         | jne                 0x9e8c
            //   ba05000000           | mov                 edx, 5

        $sequence_7 = { 8bc1 c1f806 83e13f 6bd130 8b0c85a00b4300 8b4514 c1e810 }
            // n = 7, score = 200
            //   8bc1                 | mov                 eax, ecx
            //   c1f806               | sar                 eax, 6
            //   83e13f               | and                 ecx, 0x3f
            //   6bd130               | imul                edx, ecx, 0x30
            //   8b0c85a00b4300       | mov                 ecx, dword ptr [eax*4 + 0x430ba0]
            //   8b4514               | mov                 eax, dword ptr [ebp + 0x14]
            //   c1e810               | shr                 eax, 0x10

        $sequence_8 = { 751f d9fa 833d????????00 0f85e39e0000 ba05000000 8d0d107b4200 e9???????? }
            // n = 7, score = 200
            //   751f                 | jne                 0x21
            //   d9fa                 | fsqrt               
            //   833d????????00       |                     
            //   0f85e39e0000         | jne                 0x9ee9
            //   ba05000000           | mov                 edx, 5
            //   8d0d107b4200         | lea                 ecx, [0x427b10]
            //   e9????????           |                     

        $sequence_9 = { 8b7dd8 83fe10 720d 8d4601 50 57 }
            // n = 6, score = 200
            //   8b7dd8               | mov                 edi, dword ptr [ebp - 0x28]
            //   83fe10               | cmp                 esi, 0x10
            //   720d                 | jb                  0xf
            //   8d4601               | lea                 eax, [esi + 1]
            //   50                   | push                eax
            //   57                   | push                edi

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