SYMBOLCOMMON_NAMEaka. SYNONYMS
win.keyboy (Back to overview)

KeyBoy

aka: TSSL

Actor(s): Pirate Panda


There is no description at this point.

References
2020SecureworksSecureWorks
@online{secureworks:2020:bronze:a654071, author = {SecureWorks}, title = {{BRONZE HOBART}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/bronze-hobart}, language = {English}, urldate = {2020-05-23} } BRONZE HOBART
KeyBoy Pirate Panda
2018-03-14Trend MicroJaromír Hořejší, Joey Chen, Joseph C. Chen
@online{hoej:20180314:tropic:352cf22, author = {Jaromír Hořejší and Joey Chen and Joseph C. Chen}, title = {{Tropic Trooper’s New Strategy}}, date = {2018-03-14}, organization = {Trend Micro}, url = {https://blog.trendmicro.com/trendlabs-security-intelligence/tropic-trooper-new-strategy/}, language = {English}, urldate = {2020-01-09} } Tropic Trooper’s New Strategy
KeyBoy Pirate Panda
2017-11-02PWC UKBart Parys
@online{parys:20171102:keyboys:b57094e, author = {Bart Parys}, title = {{The KeyBoys are back in town}}, date = {2017-11-02}, organization = {PWC UK}, url = {https://www.pwc.co.uk/issues/cyber-security-data-privacy/research/the-keyboys-are-back-in-town.html}, language = {English}, urldate = {2020-06-18} } The KeyBoys are back in town
KeyBoy
2016-11-17CitizenLabAdam Hulcoop, Matt Brooks, Etienne Maynier, John Scott-Railton, Masashi Crete-Nishihata
@online{hulcoop:20161117:its:b644801, author = {Adam Hulcoop and Matt Brooks and Etienne Maynier and John Scott-Railton and Masashi Crete-Nishihata}, title = {{It’s Parliamentary - KeyBoy and the targeting of the Tibetan Community}}, date = {2016-11-17}, organization = {CitizenLab}, url = {https://citizenlab.ca/2016/11/parliament-keyboy/}, language = {English}, urldate = {2019-07-11} } It’s Parliamentary - KeyBoy and the targeting of the Tibetan Community
KeyBoy
2013-06-07Rapid7 LabsClaudio Guarnieri, Mark Schloesser
@online{guarnieri:20130607:keyboy:58ebd77, author = {Claudio Guarnieri and Mark Schloesser}, title = {{KeyBoy, Targeted Attacks against Vietnam and India}}, date = {2013-06-07}, organization = {Rapid7 Labs}, url = {https://blog.rapid7.com/2013/06/07/keyboy-targeted-attacks-against-vietnam-and-india/}, language = {English}, urldate = {2019-12-20} } KeyBoy, Targeted Attacks against Vietnam and India
KeyBoy Pirate Panda
Yara Rules
[TLP:WHITE] win_keyboy_auto (20200529 | autogenerated rule brought to you by yara-signator)
rule win_keyboy_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-05-30"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.4.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.keyboy"
        malpedia_rule_date = "20200529"
        malpedia_hash = "92c362319514e5a6da26204961446caa3a8b32a8"
        malpedia_version = "20200529"
        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 / approach 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 = { 6a00 8945f2 8d45f8 50 6a0e }
            // n = 5, score = 600
            //   6a00                 | push                0
            //   8945f2               | mov                 dword ptr [ebp - 0xe], eax
            //   8d45f8               | lea                 eax, [ebp - 8]
            //   50                   | push                eax
            //   6a0e                 | push                0xe

        $sequence_1 = { 85f6 741f 6a00 ff15???????? 6a00 }
            // n = 5, score = 600
            //   85f6                 | test                esi, esi
            //   741f                 | je                  0x21
            //   6a00                 | push                0
            //   ff15????????         |                     
            //   6a00                 | push                0

        $sequence_2 = { 51 ff75d8 6a00 ff75c0 }
            // n = 4, score = 600
            //   51                   | push                ecx
            //   ff75d8               | push                dword ptr [ebp - 0x28]
            //   6a00                 | push                0
            //   ff75c0               | push                dword ptr [ebp - 0x40]

        $sequence_3 = { 72b2 8b550c 2bc6 8d8802010000 8b45f4 3bcf }
            // n = 6, score = 500
            //   72b2                 | jb                  0xffffffb4
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   2bc6                 | sub                 eax, esi
            //   8d8802010000         | lea                 ecx, [eax + 0x102]
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]
            //   3bcf                 | cmp                 ecx, edi

        $sequence_4 = { 56 8d7210 57 3990a0160000 0f84a8000000 0f1f00 }
            // n = 6, score = 500
            //   56                   | push                esi
            //   8d7210               | lea                 esi, [edx + 0x10]
            //   57                   | push                edi
            //   3990a0160000         | cmp                 dword ptr [eax + 0x16a0], edx
            //   0f84a8000000         | je                  0xae
            //   0f1f00               | nop                 dword ptr [eax]

        $sequence_5 = { 8b5d0c 8b88bc160000 0fb7bb02040000 2bf7 }
            // n = 4, score = 500
            //   8b5d0c               | mov                 ebx, dword ptr [ebp + 0xc]
            //   8b88bc160000         | mov                 ecx, dword ptr [eax + 0x16bc]
            //   0fb7bb02040000       | movzx               edi, word ptr [ebx + 0x402]
            //   2bf7                 | sub                 esi, edi

        $sequence_6 = { 85db c745fcffffffff 66894cb806 b907000000 0f45f1 }
            // n = 5, score = 500
            //   85db                 | test                ebx, ebx
            //   c745fcffffffff       | mov                 dword ptr [ebp - 4], 0xffffffff
            //   66894cb806           | mov                 word ptr [eax + edi*4 + 6], cx
            //   b907000000           | mov                 ecx, 7
            //   0f45f1               | cmovne              esi, ecx

        $sequence_7 = { e8???????? 83c420 b812000000 0f1f4000 66660f1f840000000000 }
            // n = 5, score = 500
            //   e8????????           |                     
            //   83c420               | add                 esp, 0x20
            //   b812000000           | mov                 eax, 0x12
            //   0f1f4000             | nop                 dword ptr [eax]
            //   66660f1f840000000000     | nop    word ptr [eax + eax]

        $sequence_8 = { 66d3e2 660990b8160000 83c107 8988bc160000 8b4dfc 33db 894df8 }
            // n = 7, score = 500
            //   66d3e2               | shl                 dx, cl
            //   660990b8160000       | or                  word ptr [eax + 0x16b8], dx
            //   83c107               | add                 ecx, 7
            //   8988bc160000         | mov                 dword ptr [eax + 0x16bc], ecx
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   33db                 | xor                 ebx, ebx
            //   894df8               | mov                 dword ptr [ebp - 8], ecx

        $sequence_9 = { 660106 85db 7fc4 8b5df8 8b7dfc }
            // n = 5, score = 500
            //   660106               | add                 word ptr [esi], ax
            //   85db                 | test                ebx, ebx
            //   7fc4                 | jg                  0xffffffc6
            //   8b5df8               | mov                 ebx, dword ptr [ebp - 8]
            //   8b7dfc               | mov                 edi, dword ptr [ebp - 4]

        $sequence_10 = { 8b5d0c 56 57 8b7d08 8b4f38 8b476c }
            // n = 6, score = 500
            //   8b5d0c               | mov                 ebx, dword ptr [ebp + 0xc]
            //   56                   | push                esi
            //   57                   | push                edi
            //   8b7d08               | mov                 edi, dword ptr [ebp + 8]
            //   8b4f38               | mov                 ecx, dword ptr [edi + 0x38]
            //   8b476c               | mov                 eax, dword ptr [edi + 0x6c]

        $sequence_11 = { e8???????? 6a7c 8d4580 c7857cffffff736c6d00 }
            // n = 4, score = 400
            //   e8????????           |                     
            //   6a7c                 | push                0x7c
            //   8d4580               | lea                 eax, [ebp - 0x80]
            //   c7857cffffff736c6d00     | mov    dword ptr [ebp - 0x84], 0x6d6c73

        $sequence_12 = { 7417 3dbdfeffff 7410 3db9feffff 7409 83f894 }
            // n = 6, score = 400
            //   7417                 | je                  0x19
            //   3dbdfeffff           | cmp                 eax, 0xfffffebd
            //   7410                 | je                  0x12
            //   3db9feffff           | cmp                 eax, 0xfffffeb9
            //   7409                 | je                  0xb
            //   83f894               | cmp                 eax, -0x6c

        $sequence_13 = { e9???????? bbfeffffff eb05 bbfdffffff }
            // n = 4, score = 400
            //   e9????????           |                     
            //   bbfeffffff           | mov                 ebx, 0xfffffffe
            //   eb05                 | jmp                 7
            //   bbfdffffff           | mov                 ebx, 0xfffffffd

        $sequence_14 = { 8bc2 c1e810 884106 8bc2 c1e808 884107 }
            // n = 6, score = 400
            //   8bc2                 | mov                 eax, edx
            //   c1e810               | shr                 eax, 0x10
            //   884106               | mov                 byte ptr [ecx + 6], al
            //   8bc2                 | mov                 eax, edx
            //   c1e808               | shr                 eax, 8
            //   884107               | mov                 byte ptr [ecx + 7], al

        $sequence_15 = { 8bd9 6a00 50 e8???????? 83c40c 8d85fcf7ffff }
            // n = 6, score = 400
            //   8bd9                 | mov                 ebx, ecx
            //   6a00                 | push                0
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   8d85fcf7ffff         | lea                 eax, [ebp - 0x804]

        $sequence_16 = { bf05000000 eb1b bf04000000 eb14 }
            // n = 4, score = 400
            //   bf05000000           | mov                 edi, 5
            //   eb1b                 | jmp                 0x1d
            //   bf04000000           | mov                 edi, 4
            //   eb14                 | jmp                 0x16

        $sequence_17 = { eb14 80b85201000001 bf04000000 b908000000 0f44f9 }
            // n = 5, score = 400
            //   eb14                 | jmp                 0x16
            //   80b85201000001       | cmp                 byte ptr [eax + 0x152], 1
            //   bf04000000           | mov                 edi, 4
            //   b908000000           | mov                 ecx, 8
            //   0f44f9               | cmove               edi, ecx

        $sequence_18 = { 6683f806 7404 32c9 eb02 }
            // n = 4, score = 400
            //   6683f806             | cmp                 ax, 6
            //   7404                 | je                  6
            //   32c9                 | xor                 cl, cl
            //   eb02                 | jmp                 4

        $sequence_19 = { 2408 f6d8 1ac0 24dd }
            // n = 4, score = 400
            //   2408                 | and                 al, 8
            //   f6d8                 | neg                 al
            //   1ac0                 | sbb                 al, al
            //   24dd                 | and                 al, 0xdd

        $sequence_20 = { 7207 b901000000 eb0f 3cfe 7509 }
            // n = 5, score = 400
            //   7207                 | jb                  9
            //   b901000000           | mov                 ecx, 1
            //   eb0f                 | jmp                 0x11
            //   3cfe                 | cmp                 al, 0xfe
            //   7509                 | jne                 0xb

    condition:
        7 of them and filesize < 2170880
}
[TLP:WHITE] win_keyboy_w0   (20180301 | No description)
import "pe"

rule win_keyboy_w0 {
    meta:
        author = "Florian Roth"
        reference = "http://www.pwc.co.uk/issues/cyber-security-data-privacy/research/the-keyboys-are-back-in-town.html"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.keyboy"
        malpedia_version = "20180301"
        malpedia_license = "CC BY-NC-SA 4.0"
        malpedia_sharing = "TLP:WHITE"
    strings:
        $x1 = "reg add HKLM\\%s\\Parameters /v ServiceDll /t REG_EXPAND_SZ /d \"%s\" /f" fullword ascii
        $x3 = "Internet using \\svchost.exe -k  -n 3" fullword ascii
        $x4 = "reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v SFCDisable /t REG_DWORD /d 4 /f" fullword ascii

        $s1 = "sc create %s binpath= \"%s\" Type= share Start= auto DisplayName= \"%s\"" fullword ascii
        $s2 = "ExecCmd:%s" fullword ascii
        $s3 = "szCommand : %s" fullword ascii
        $s4 = "Current user is a member of the %s\\%s group" fullword ascii
        $s5 = "icacls %s /grant administrators:F" fullword ascii
        $s6 = "Ping 127.0.0.1 goto Repeat" fullword ascii
        $s7 = "Start MoveFile %s -> %s" fullword ascii
        $s8 = "move %s\\dllcache%s %s\\dllcache\\%s" fullword ascii
        $s9 = "%s\\cmd.exe /c \"%s\"" fullword ascii
    condition:
        pe.imphash() == "68f7eced34c46808756db4b0c45fb589" or
        ( pe.exports("Insys") and pe.exports("Inuser") and pe.exports("SSSS") ) or
        1 of ($x*) or
        4 of them
}
Download all Yara Rules