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 (20220516 | Detects win.hamweq.)
rule win_hamweq_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-05-16"
        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 = "20220513"
        malpedia_hash = "7f4b2229e6ae614d86d74917f6d5b41890e62a26"
        malpedia_version = "20220516"
        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 = { 8d8dfcfdffff 6a02 51 ff5038 8b06 8d8dfcfdffff 51 }
            // n = 7, score = 200
            //   8d8dfcfdffff         | lea                 ecx, [ebp - 0x204]
            //   6a02                 | push                2
            //   51                   | push                ecx
            //   ff5038               | call                dword ptr [eax + 0x38]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8d8dfcfdffff         | lea                 ecx, [ebp - 0x204]
            //   51                   | push                ecx

        $sequence_1 = { 85c0 7e4c 8b4e08 8b06 33ed ff31 ff5044 }
            // n = 7, score = 200
            //   85c0                 | test                eax, eax
            //   7e4c                 | jle                 0x4e
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   33ed                 | xor                 ebp, ebp
            //   ff31                 | push                dword ptr [ecx]
            //   ff5044               | call                dword ptr [eax + 0x44]

        $sequence_2 = { ff55e0 85c0 7447 8d85d8fdffff 50 ff75f4 ff55ec }
            // n = 7, score = 200
            //   ff55e0               | call                dword ptr [ebp - 0x20]
            //   85c0                 | test                eax, eax
            //   7447                 | je                  0x49
            //   8d85d8fdffff         | lea                 eax, [ebp - 0x228]
            //   50                   | push                eax
            //   ff75f4               | push                dword ptr [ebp - 0xc]
            //   ff55ec               | call                dword ptr [ebp - 0x14]

        $sequence_3 = { ff30 ff15???????? 50 6a00 53 ff55ec }
            // n = 6, score = 200
            //   ff30                 | push                dword ptr [eax]
            //   ff15????????         |                     
            //   50                   | push                eax
            //   6a00                 | push                0
            //   53                   | push                ebx
            //   ff55ec               | call                dword ptr [ebp - 0x14]

        $sequence_4 = { 51 57 ff5060 85c0 7504 85ff 7505 }
            // n = 7, score = 200
            //   51                   | push                ecx
            //   57                   | push                edi
            //   ff5060               | call                dword ptr [eax + 0x60]
            //   85c0                 | test                eax, eax
            //   7504                 | jne                 6
            //   85ff                 | test                edi, edi
            //   7505                 | jne                 7

        $sequence_5 = { 751e 8b3e 8d859cfdffff 53 50 ff5744 50 }
            // n = 7, score = 200
            //   751e                 | jne                 0x20
            //   8b3e                 | mov                 edi, dword ptr [esi]
            //   8d859cfdffff         | lea                 eax, [ebp - 0x264]
            //   53                   | push                ebx
            //   50                   | push                eax
            //   ff5744               | call                dword ptr [edi + 0x44]
            //   50                   | push                eax

        $sequence_6 = { ff7508 ff5020 8b4e08 8b06 ffb180010000 8d8decfeffff 51 }
            // n = 7, score = 200
            //   ff7508               | push                dword ptr [ebp + 8]
            //   ff5020               | call                dword ptr [eax + 0x20]
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ffb180010000         | push                dword ptr [ecx + 0x180]
            //   8d8decfeffff         | lea                 ecx, [ebp - 0x114]
            //   51                   | push                ecx

        $sequence_7 = { 0f8426010000 8b4e08 8b06 ffb180000000 ff33 ff504c }
            // n = 6, score = 200
            //   0f8426010000         | je                  0x12c
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ffb180000000         | push                dword ptr [ecx + 0x80]
            //   ff33                 | push                dword ptr [ebx]
            //   ff504c               | call                dword ptr [eax + 0x4c]

        $sequence_8 = { 8bd8 57 ffd6 ff35???????? 8945e0 57 ffd6 }
            // n = 7, score = 200
            //   8bd8                 | mov                 ebx, eax
            //   57                   | push                edi
            //   ffd6                 | call                esi
            //   ff35????????         |                     
            //   8945e0               | mov                 dword ptr [ebp - 0x20], eax
            //   57                   | push                edi
            //   ffd6                 | call                esi

        $sequence_9 = { 83c009 42 eb9b c3 56 8b742408 }
            // n = 6, score = 200
            //   83c009               | add                 eax, 9
            //   42                   | inc                 edx
            //   eb9b                 | jmp                 0xffffff9d
            //   c3                   | ret                 
            //   56                   | push                esi
            //   8b742408             | mov                 esi, dword ptr [esp + 8]

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