SYMBOLCOMMON_NAMEaka. SYNONYMS
win.hamweq (Back to overview)

Hamweq


There is no description at this point.

References
2020-07-13Youtube (OALabs)Sergei Frankoff, OALabs
@online{frankoff:20200713:how:fd519be, author = {Sergei Frankoff and OALabs}, title = {{How To Sinkhole A Botnet}}, date = {2020-07-13}, organization = {Youtube (OALabs)}, url = {https://www.youtube.com/watch?v=FAFuSO9oAl0}, language = {English}, urldate = {2020-07-16} } How To Sinkhole A Botnet
Hamweq
2020-05-31Nullteilerfrei BlogLars Wallenborn
@online{wallenborn:20200531:string:53b78a9, author = {Lars Wallenborn}, title = {{String Obfuscation in the Hamweq IRC-bot}}, date = {2020-05-31}, organization = {Nullteilerfrei Blog}, url = {https://blag.nullteilerfrei.de/2020/05/31/string-obfuscation-in-the-hamweq-irc-bot/}, language = {English}, urldate = {2020-06-05} } String Obfuscation in the Hamweq IRC-bot
Hamweq
2020-05-30Youtube (OALabs)Sergei Frankoff
@online{frankoff:20200530:irc:a711f6e, author = {Sergei Frankoff}, title = {{IRC Botnet Reverse Engineering Part 1 - Preparing Binary for Analysis in IDA PRO}}, date = {2020-05-30}, organization = {Youtube (OALabs)}, url = {https://www.youtube.com/watch?v=JPvcLLYR0tE}, language = {English}, urldate = {2020-06-05} } IRC Botnet Reverse Engineering Part 1 - Preparing Binary for Analysis in IDA PRO
Hamweq
2011-06-03CERT Polska / NASKCERT.PL
@techreport{certpl:20110603:botnet:fd65588, author = {CERT.PL}, title = {{Botnet Hamweq - analiza}}, date = {2011-06-03}, institution = {CERT Polska / NASK}, url = {https://www.cert.pl/wp-content/uploads/2011/06/201106_hamweq.pdf}, language = {Polish}, urldate = {2019-11-28} } Botnet Hamweq - analiza
Hamweq
Yara Rules
[TLP:WHITE] win_hamweq_auto (20230715 | Detects win.hamweq.)
rule win_hamweq_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-07-11"
        version = "1"
        description = "Detects win.hamweq."
        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.hamweq"
        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 = { 51 ff7508 ff9094000000 85c0 7424 395df8 }
            // n = 6, score = 200
            //   51                   | push                ecx
            //   ff7508               | push                dword ptr [ebp + 8]
            //   ff9094000000         | call                dword ptr [eax + 0x94]
            //   85c0                 | test                eax, eax
            //   7424                 | je                  0x26
            //   395df8               | cmp                 dword ptr [ebp - 8], ebx

        $sequence_1 = { 8d8500feffff 50 ff5148 8b4e08 8b06 ff7138 }
            // n = 6, score = 200
            //   8d8500feffff         | lea                 eax, [ebp - 0x200]
            //   50                   | push                eax
            //   ff5148               | call                dword ptr [ecx + 0x48]
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ff7138               | push                dword ptr [ecx + 0x38]

        $sequence_2 = { 8b06 53 6a06 6a02 53 53 }
            // n = 6, score = 200
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   53                   | push                ebx
            //   6a06                 | push                6
            //   6a02                 | push                2
            //   53                   | push                ebx
            //   53                   | push                ebx

        $sequence_3 = { 8bf8 85ff 897df8 0f84a7070000 ff35???????? }
            // n = 5, score = 200
            //   8bf8                 | mov                 edi, eax
            //   85ff                 | test                edi, edi
            //   897df8               | mov                 dword ptr [ebp - 8], edi
            //   0f84a7070000         | je                  0x7ad
            //   ff35????????         |                     

        $sequence_4 = { ff75e8 ff55f4 85c0 0f85a0000000 8b45dc }
            // n = 5, score = 200
            //   ff75e8               | push                dword ptr [ebp - 0x18]
            //   ff55f4               | call                dword ptr [ebp - 0xc]
            //   85c0                 | test                eax, eax
            //   0f85a0000000         | jne                 0xa6
            //   8b45dc               | mov                 eax, dword ptr [ebp - 0x24]

        $sequence_5 = { 83fb01 7228 8b3e 8d4508 6a00 50 8d85e4f1ffff }
            // n = 7, score = 200
            //   83fb01               | cmp                 ebx, 1
            //   7228                 | jb                  0x2a
            //   8b3e                 | mov                 edi, dword ptr [esi]
            //   8d4508               | lea                 eax, [ebp + 8]
            //   6a00                 | push                0
            //   50                   | push                eax
            //   8d85e4f1ffff         | lea                 eax, [ebp - 0xe1c]

        $sequence_6 = { 8d4580 8b0b 50 ff5154 }
            // n = 4, score = 200
            //   8d4580               | lea                 eax, [ebp - 0x80]
            //   8b0b                 | mov                 ecx, dword ptr [ebx]
            //   50                   | push                eax
            //   ff5154               | call                dword ptr [ecx + 0x54]

        $sequence_7 = { ff5020 33c0 eb0f 8d8dfcfdffff 6a02 51 }
            // n = 6, score = 200
            //   ff5020               | call                dword ptr [eax + 0x20]
            //   33c0                 | xor                 eax, eax
            //   eb0f                 | jmp                 0x11
            //   8d8dfcfdffff         | lea                 ecx, [ebp - 0x204]
            //   6a02                 | push                2
            //   51                   | push                ecx

        $sequence_8 = { 3ad0 742d 8b4c2414 8bd6 2bd1 8a19 3ad8 }
            // n = 7, score = 200
            //   3ad0                 | cmp                 dl, al
            //   742d                 | je                  0x2f
            //   8b4c2414             | mov                 ecx, dword ptr [esp + 0x14]
            //   8bd6                 | mov                 edx, esi
            //   2bd1                 | sub                 edx, ecx
            //   8a19                 | mov                 bl, byte ptr [ecx]
            //   3ad8                 | cmp                 bl, al

        $sequence_9 = { 50 53 ff55f4 85c0 0f85bd040000 8b45f0 }
            // n = 6, score = 200
            //   50                   | push                eax
            //   53                   | push                ebx
            //   ff55f4               | call                dword ptr [ebp - 0xc]
            //   85c0                 | test                eax, eax
            //   0f85bd040000         | jne                 0x4c3
            //   8b45f0               | mov                 eax, dword ptr [ebp - 0x10]

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