SYMBOLCOMMON_NAMEaka. SYNONYMS
win.bernhardpos (Back to overview)

BernhardPOS


There is no description at this point.

References
2015-07-14Nick Hoffman
@online{hoffman:20150714:bernhardpos:c1e10e7, author = {Nick Hoffman}, title = {{BernhardPOS}}, date = {2015-07-14}, url = {https://securitykitten.github.io/2015/07/14/bernhardpos.html}, language = {English}, urldate = {2020-01-08} } BernhardPOS
BernhardPOS
Yara Rules
[TLP:WHITE] win_bernhardpos_auto (20201023 | autogenerated rule brought to you by yara-signator)
rule win_bernhardpos_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-12-22"
        version = "1"
        description = "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.bernhardpos"
        malpedia_rule_date = "20201222"
        malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130"
        malpedia_version = "20201023"
        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 = { 0f840a010000 8d85ecfbffff 50 682a020000 68???????? 8b8df0fbffff }
            // n = 6, score = 200
            //   0f840a010000         | je                  0x110
            //   8d85ecfbffff         | lea                 eax, [ebp - 0x414]
            //   50                   | push                eax
            //   682a020000           | push                0x22a
            //   68????????           |                     
            //   8b8df0fbffff         | mov                 ecx, dword ptr [ebp - 0x410]

        $sequence_1 = { c1e008 0345fc 8b4d08 0fbe11 }
            // n = 4, score = 200
            //   c1e008               | shl                 eax, 8
            //   0345fc               | add                 eax, dword ptr [ebp - 4]
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   0fbe11               | movsx               edx, byte ptr [ecx]

        $sequence_2 = { 0fbe5415f8 33ca 8b4508 0345f4 8808 ebc7 5f }
            // n = 7, score = 200
            //   0fbe5415f8           | movsx               edx, byte ptr [ebp + edx - 8]
            //   33ca                 | xor                 ecx, edx
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   0345f4               | add                 eax, dword ptr [ebp - 0xc]
            //   8808                 | mov                 byte ptr [eax], cl
            //   ebc7                 | jmp                 0xffffffc9
            //   5f                   | pop                 edi

        $sequence_3 = { 8945fc 8b45fc 8b4d08 03483c 894df4 }
            // n = 5, score = 200
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   03483c               | add                 ecx, dword ptr [eax + 0x3c]
            //   894df4               | mov                 dword ptr [ebp - 0xc], ecx

        $sequence_4 = { 50 ff15???????? 50 8d8dc4feffff }
            // n = 4, score = 200
            //   50                   | push                eax
            //   ff15????????         |                     
            //   50                   | push                eax
            //   8d8dc4feffff         | lea                 ecx, [ebp - 0x13c]

        $sequence_5 = { c645ff00 b801000000 c1e000 034508 50 ff15???????? b901000000 }
            // n = 7, score = 200
            //   c645ff00             | mov                 byte ptr [ebp - 1], 0
            //   b801000000           | mov                 eax, 1
            //   c1e000               | shl                 eax, 0
            //   034508               | add                 eax, dword ptr [ebp + 8]
            //   50                   | push                eax
            //   ff15????????         |                     
            //   b901000000           | mov                 ecx, 1

        $sequence_6 = { 6689855cfeffff 6a35 ff15???????? 6689855efeffff }
            // n = 4, score = 200
            //   6689855cfeffff       | mov                 word ptr [ebp - 0x1a4], ax
            //   6a35                 | push                0x35
            //   ff15????????         |                     
            //   6689855efeffff       | mov                 word ptr [ebp - 0x1a2], ax

        $sequence_7 = { 50 6a04 6a40 b904000000 }
            // n = 4, score = 200
            //   50                   | push                eax
            //   6a04                 | push                4
            //   6a40                 | push                0x40
            //   b904000000           | mov                 ecx, 4

        $sequence_8 = { 0f8535010000 6a40 6800300000 682b020000 6a00 }
            // n = 5, score = 200
            //   0f8535010000         | jne                 0x13b
            //   6a40                 | push                0x40
            //   6800300000           | push                0x3000
            //   682b020000           | push                0x22b
            //   6a00                 | push                0

        $sequence_9 = { 8b45f4 83c001 8945f4 8b4508 50 ff15???????? }
            // n = 6, score = 200
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]
            //   83c001               | add                 eax, 1
            //   8945f4               | mov                 dword ptr [ebp - 0xc], eax
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   50                   | push                eax
            //   ff15????????         |                     

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