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

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2021-06-10"
        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 = "20210604"
        malpedia_hash = "be09d5d71e77373c0f538068be31a2ad4c69cfbd"
        malpedia_version = "20210616"
        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 = { ffb048010000 ff5744 50 8b4608 ffb048010000 }
            // n = 5, score = 200
            //   ffb048010000         | push                dword ptr [eax + 0x148]
            //   ff5744               | call                dword ptr [edi + 0x44]
            //   50                   | push                eax
            //   8b4608               | mov                 eax, dword ptr [esi + 8]
            //   ffb048010000         | push                dword ptr [eax + 0x148]

        $sequence_1 = { ff576c 8b06 53 ff500c 5f 5e 33c0 }
            // n = 7, score = 200
            //   ff576c               | call                dword ptr [edi + 0x6c]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   53                   | push                ebx
            //   ff500c               | call                dword ptr [eax + 0xc]
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   33c0                 | xor                 eax, eax

        $sequence_2 = { ff35???????? 898570ffffff 53 ffd6 ff35???????? }
            // n = 5, score = 200
            //   ff35????????         |                     
            //   898570ffffff         | mov                 dword ptr [ebp - 0x90], eax
            //   53                   | push                ebx
            //   ffd6                 | call                esi
            //   ff35????????         |                     

        $sequence_3 = { 56 8b7508 8b5d10 57 8b4608 }
            // n = 5, score = 200
            //   56                   | push                esi
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   8b5d10               | mov                 ebx, dword ptr [ebp + 0x10]
            //   57                   | push                edi
            //   8b4608               | mov                 eax, dword ptr [esi + 8]

        $sequence_4 = { 51 8b4e04 53 56 ff7108 53 53 }
            // n = 7, score = 200
            //   51                   | push                ecx
            //   8b4e04               | mov                 ecx, dword ptr [esi + 4]
            //   53                   | push                ebx
            //   56                   | push                esi
            //   ff7108               | push                dword ptr [ecx + 8]
            //   53                   | push                ebx
            //   53                   | push                ebx

        $sequence_5 = { 0f844e040000 8d4de4 51 ff75fc 6800104000 50 53 }
            // n = 7, score = 200
            //   0f844e040000         | je                  0x454
            //   8d4de4               | lea                 ecx, dword ptr [ebp - 0x1c]
            //   51                   | push                ecx
            //   ff75fc               | push                dword ptr [ebp - 4]
            //   6800104000           | push                0x401000
            //   50                   | push                eax
            //   53                   | push                ebx

        $sequence_6 = { ff5038 8b4e08 8b06 ffb140010000 8d8decfeffff }
            // n = 5, score = 200
            //   ff5038               | call                dword ptr [eax + 0x38]
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ffb140010000         | push                dword ptr [ecx + 0x140]
            //   8d8decfeffff         | lea                 ecx, dword ptr [ebp - 0x114]

        $sequence_7 = { c644070401 83c708 81ffe0010000 7c89 5f }
            // n = 5, score = 200
            //   c644070401           | mov                 byte ptr [edi + eax + 4], 1
            //   83c708               | add                 edi, 8
            //   81ffe0010000         | cmp                 edi, 0x1e0
            //   7c89                 | jl                  0xffffff8b
            //   5f                   | pop                 edi

        $sequence_8 = { 45 ff31 ff5044 3be8 7ce2 }
            // n = 5, score = 200
            //   45                   | inc                 ebp
            //   ff31                 | push                dword ptr [ecx]
            //   ff5044               | call                dword ptr [eax + 0x44]
            //   3be8                 | cmp                 ebp, eax
            //   7ce2                 | jl                  0xffffffe4

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

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