win.raccoon (Back to overview)

Raccoon


Raccoon is a stealer and collects "passwords, cookies and autofill from all popular browsers (including FireFox x64), CC data, system information, almost all existing desktop wallets of cryptocurrencies".

References
https://webcache.googleusercontent.com/search?q=cache:AvJw47-V_WwJ:https://ultrahacks.org/shop/product/raccoon-stealer-onion-panel/+&cd=1&hl=en&ct=clnk&gl=ch&client=firefox-b-d
https://www.cybereason.com/blog/hunting-raccoon-stealer-the-new-masked-bandit-on-the-block
https://www.secfreaks.gr/2019/12/in-depth-analysis-of-an-infostealer-raccoon.html
Yara Rules
[TLP:WHITE] win_raccoon_auto (20190620 | autogenerated rule brought to you by yara-signator)
rule win_raccoon_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2019-07-05"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator 0.2a"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.raccoon"
        malpedia_version = "20190620"
        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 = { 8d4df4 8b18 8b7804 8d45d8 50 e8???????? }
            // n = 6, score = 300
            //   8d4df4               | lea                 ecx, [ebp - 0xc]
            //   8b18                 | mov                 ebx, dword ptr [eax]
            //   8b7804               | mov                 edi, dword ptr [eax + 4]
            //   8d45d8               | lea                 eax, [ebp - 0x28]
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_1 = { 8bc8 8bd0 eb?? 8b550c 8908 895004 5d }
            // n = 7, score = 300
            //   8bc8                 | mov                 ecx, eax
            //   8bd0                 | mov                 edx, eax
            //   eb??                 |                     
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   8908                 | mov                 dword ptr [eax], ecx
            //   895004               | mov                 dword ptr [eax + 4], edx
            //   5d                   | pop                 ebp

        $sequence_2 = { 894508 897314 ff7518 ff7514 }
            // n = 4, score = 300
            //   894508               | mov                 dword ptr [ebp + 8], eax
            //   897314               | mov                 dword ptr [ebx + 0x14], esi
            //   ff7518               | push                dword ptr [ebp + 0x18]
            //   ff7514               | push                dword ptr [ebp + 0x14]

        $sequence_3 = { 59 8d8c24a8030000 c644240f01 807c08ff2f }
            // n = 4, score = 300
            //   59                   | pop                 ecx
            //   8d8c24a8030000       | lea                 ecx, [esp + 0x3a8]
            //   c644240f01           | mov                 byte ptr [esp + 0xf], 1
            //   807c08ff2f           | cmp                 byte ptr [eax + ecx - 1], 0x2f

        $sequence_4 = { e8???????? 8b4d08 8bf0 8b45f8 8b09 890c86 8b45fc }
            // n = 7, score = 300
            //   e8????????           |                     
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   8bf0                 | mov                 esi, eax
            //   8b45f8               | mov                 eax, dword ptr [ebp - 8]
            //   8b09                 | mov                 ecx, dword ptr [ecx]
            //   890c86               | mov                 dword ptr [esi + eax*4], ecx
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]

        $sequence_5 = { 8975dc 81feffffff0f 75?? e8???????? 8d4601 50 8945e0 }
            // n = 7, score = 300
            //   8975dc               | mov                 dword ptr [ebp - 0x24], esi
            //   81feffffff0f         | cmp                 esi, 0xfffffff
            //   75??                 |                     
            //   e8????????           |                     
            //   8d4601               | lea                 eax, [esi + 1]
            //   50                   | push                eax
            //   8945e0               | mov                 dword ptr [ebp - 0x20], eax

        $sequence_6 = { 51 0fb7450e b9f07f0000 25f87f0000 663bc1 75?? }
            // n = 6, score = 300
            //   51                   | push                ecx
            //   0fb7450e             | movzx               eax, word ptr [ebp + 0xe]
            //   b9f07f0000           | mov                 ecx, 0x7ff0
            //   25f87f0000           | and                 eax, 0x7ff8
            //   663bc1               | cmp                 ax, cx
            //   75??                 |                     

        $sequence_7 = { 7d?? 8a4c30ff 8a0430 884dff 8845fe 81e2ff7f0000 }
            // n = 6, score = 300
            //   7d??                 |                     
            //   8a4c30ff             | mov                 cl, byte ptr [eax + esi - 1]
            //   8a0430               | mov                 al, byte ptr [eax + esi]
            //   884dff               | mov                 byte ptr [ebp - 1], cl
            //   8845fe               | mov                 byte ptr [ebp - 2], al
            //   81e2ff7f0000         | and                 edx, 0x7fff

    condition:
        7 of them
}
Download all Yara Rules