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 (20200817 | autogenerated rule brought to you by yara-signator)
rule win_hamweq_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-08-17"
        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.hamweq"
        malpedia_rule_date = "20200817"
        malpedia_hash = "8c895fd01eccb47a6225bcb1a3ba53cbb98644c5"
        malpedia_version = "20200817"
        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 = { 8d8d00feffff 57 51 ff5048 8b4e08 }
            // n = 5, score = 200
            //   8d8d00feffff         | lea                 ecx, [ebp - 0x200]
            //   57                   | push                edi
            //   51                   | push                ecx
            //   ff5048               | call                dword ptr [eax + 0x48]
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]

        $sequence_1 = { 8d8d9cfdffff 51 ff75f4 ff501c 8b06 8d4df8 }
            // n = 6, score = 200
            //   8d8d9cfdffff         | lea                 ecx, [ebp - 0x264]
            //   51                   | push                ecx
            //   ff75f4               | push                dword ptr [ebp - 0xc]
            //   ff501c               | call                dword ptr [eax + 0x1c]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8d4df8               | lea                 ecx, [ebp - 8]

        $sequence_2 = { 80f940 7403 40 ebf2 8a08 80e940 f6d9 }
            // n = 7, score = 200
            //   80f940               | cmp                 cl, 0x40
            //   7403                 | je                  5
            //   40                   | inc                 eax
            //   ebf2                 | jmp                 0xfffffff4
            //   8a08                 | mov                 cl, byte ptr [eax]
            //   80e940               | sub                 cl, 0x40
            //   f6d9                 | neg                 cl

        $sequence_3 = { ff5048 e9???????? 8b4d10 8b5514 }
            // n = 4, score = 200
            //   ff5048               | call                dword ptr [eax + 0x48]
            //   e9????????           |                     
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]
            //   8b5514               | mov                 edx, dword ptr [ebp + 0x14]

        $sequence_4 = { 7409 c745fc01000000 eb33 8d45e0 8b0e 50 8d459c }
            // n = 7, score = 200
            //   7409                 | je                  0xb
            //   c745fc01000000       | mov                 dword ptr [ebp - 4], 1
            //   eb33                 | jmp                 0x35
            //   8d45e0               | lea                 eax, [ebp - 0x20]
            //   8b0e                 | mov                 ecx, dword ptr [esi]
            //   50                   | push                eax
            //   8d459c               | lea                 eax, [ebp - 0x64]

        $sequence_5 = { 50 8d45e0 50 ff750c 56 e8???????? 83c410 }
            // n = 7, score = 200
            //   50                   | push                eax
            //   8d45e0               | lea                 eax, [ebp - 0x20]
            //   50                   | push                eax
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   56                   | push                esi
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10

        $sequence_6 = { 890f 803900 7503 832700 837d1008 }
            // n = 5, score = 200
            //   890f                 | mov                 dword ptr [edi], ecx
            //   803900               | cmp                 byte ptr [ecx], 0
            //   7503                 | jne                 5
            //   832700               | and                 dword ptr [edi], 0
            //   837d1008             | cmp                 dword ptr [ebp + 0x10], 8

        $sequence_7 = { 6a40 57 50 ff15???????? }
            // n = 4, score = 200
            //   6a40                 | push                0x40
            //   57                   | push                edi
            //   50                   | push                eax
            //   ff15????????         |                     

        $sequence_8 = { 2d701e4000 57 50 6a00 }
            // n = 4, score = 200
            //   2d701e4000           | sub                 eax, 0x401e70
            //   57                   | push                edi
            //   50                   | push                eax
            //   6a00                 | push                0

        $sequence_9 = { ff5054 8b06 6808270000 ff5010 }
            // n = 4, score = 200
            //   ff5054               | call                dword ptr [eax + 0x54]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   6808270000           | push                0x2708
            //   ff5010               | call                dword ptr [eax + 0x10]

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