SYMBOLCOMMON_NAMEaka. SYNONYMS
win.bagle (Back to overview)

Bagle


There is no description at this point.

References
2004-10-06F-SecureEro Carrera, Gergely Erdélyi
@techreport{carrera:20041006:digital:5a195e2, author = {Ero Carrera and Gergely Erdélyi}, title = {{Digital genome mapping: advanced binary malware analysis}}, date = {2004-10-06}, institution = {F-Secure}, url = {https://archive.f-secure.com/weblog/archives/carrera_erdelyi_VB2004.pdf}, language = {English}, urldate = {2021-12-31} } Digital genome mapping: advanced binary malware analysis
Bagle
Yara Rules
[TLP:WHITE] win_bagle_auto (20230125 | Detects win.bagle.)
rule win_bagle_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.bagle."
        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.bagle"
        malpedia_rule_date = "20230124"
        malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686"
        malpedia_version = "20230125"
        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 = { 59 e8???????? e2f9 59 43 83fb12 }
            // n = 6, score = 300
            //   59                   | pop                 ecx
            //   e8????????           |                     
            //   e2f9                 | loop                0xfffffffb
            //   59                   | pop                 ecx
            //   43                   | inc                 ebx
            //   83fb12               | cmp                 ebx, 0x12

        $sequence_1 = { 6a06 6a01 6a02 e8???????? 8bd8 ff7508 }
            // n = 6, score = 300
            //   6a06                 | push                6
            //   6a01                 | push                1
            //   6a02                 | push                2
            //   e8????????           |                     
            //   8bd8                 | mov                 ebx, eax
            //   ff7508               | push                dword ptr [ebp + 8]

        $sequence_2 = { 7426 6880000000 68???????? e8???????? 6a00 }
            // n = 5, score = 300
            //   7426                 | je                  0x28
            //   6880000000           | push                0x80
            //   68????????           |                     
            //   e8????????           |                     
            //   6a00                 | push                0

        $sequence_3 = { eb07 2c3e c0e002 042b aa }
            // n = 5, score = 300
            //   eb07                 | jmp                 9
            //   2c3e                 | sub                 al, 0x3e
            //   c0e002               | shl                 al, 2
            //   042b                 | add                 al, 0x2b
            //   aa                   | stosb               byte ptr es:[edi], al

        $sequence_4 = { 56 57 53 8b7508 8b7d0c 8b4d10 33db }
            // n = 7, score = 300
            //   56                   | push                esi
            //   57                   | push                edi
            //   53                   | push                ebx
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   8b7d0c               | mov                 edi, dword ptr [ebp + 0xc]
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]
            //   33db                 | xor                 ebx, ebx

        $sequence_5 = { 68???????? e8???????? 68???????? 68???????? e8???????? 6804010000 }
            // n = 6, score = 300
            //   68????????           |                     
            //   e8????????           |                     
            //   68????????           |                     
            //   68????????           |                     
            //   e8????????           |                     
            //   6804010000           | push                0x104

        $sequence_6 = { e8???????? e2f9 59 43 83fb12 7508 }
            // n = 6, score = 300
            //   e8????????           |                     
            //   e2f9                 | loop                0xfffffffb
            //   59                   | pop                 ecx
            //   43                   | inc                 ebx
            //   83fb12               | cmp                 ebx, 0x12
            //   7508                 | jne                 0xa

        $sequence_7 = { eb0b 04fc eb07 2c3e c0e002 042b aa }
            // n = 7, score = 300
            //   eb0b                 | jmp                 0xd
            //   04fc                 | add                 al, 0xfc
            //   eb07                 | jmp                 9
            //   2c3e                 | sub                 al, 0x3e
            //   c0e002               | shl                 al, 2
            //   042b                 | add                 al, 0x2b
            //   aa                   | stosb               byte ptr es:[edi], al

        $sequence_8 = { 83fb12 7508 33db 66b80d0a }
            // n = 4, score = 300
            //   83fb12               | cmp                 ebx, 0x12
            //   7508                 | jne                 0xa
            //   33db                 | xor                 ebx, ebx
            //   66b80d0a             | mov                 ax, 0xa0d

        $sequence_9 = { c745f400000000 6a06 6a01 6a02 e8???????? 8bd8 }
            // n = 6, score = 300
            //   c745f400000000       | mov                 dword ptr [ebp - 0xc], 0
            //   6a06                 | push                6
            //   6a01                 | push                1
            //   6a02                 | push                2
            //   e8????????           |                     
            //   8bd8                 | mov                 ebx, eax

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