SYMBOLCOMMON_NAMEaka. SYNONYMS
win.petrwrap (Back to overview)

PetrWrap


There is no description at this point.

References
2017-07-14MalwarebytesMalwarebytes Labs
@online{labs:20170714:keeping:0759a8b, author = {Malwarebytes Labs}, title = {{Keeping up with the Petyas: Demystifying the malware family}}, date = {2017-07-14}, organization = {Malwarebytes}, url = {https://blog.malwarebytes.com/cybercrime/2017/07/keeping-up-with-the-petyas-demystifying-the-malware-family/}, language = {English}, urldate = {2019-12-20} } Keeping up with the Petyas: Demystifying the malware family
EternalPetya GoldenEye PetrWrap Petya
2017-03-14Kaspersky LabsAnton Ivanov, Fedor Sinitsyn
@online{ivanov:20170314:petrwrap:646653c, author = {Anton Ivanov and Fedor Sinitsyn}, title = {{PetrWrap: the new Petya-based ransomware used in targeted attacks}}, date = {2017-03-14}, organization = {Kaspersky Labs}, url = {https://securelist.com/blog/research/77762/petrwrap-the-new-petya-based-ransomware-used-in-targeted-attacks/}, language = {English}, urldate = {2019-12-20} } PetrWrap: the new Petya-based ransomware used in targeted attacks
PetrWrap
Yara Rules
[TLP:WHITE] win_petrwrap_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule win_petrwrap_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-10-14"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.5.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.petrwrap"
        malpedia_rule_date = "20201014"
        malpedia_hash = "a7e3bd57eaf12bf3ea29a863c041091ba3af9ac9"
        malpedia_version = "20201014"
        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 = { 6aff 50 e8???????? 83c414 eb06 ff4e50 }
            // n = 6, score = 100
            //   6aff                 | push                -1
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c414               | add                 esp, 0x14
            //   eb06                 | jmp                 8
            //   ff4e50               | dec                 dword ptr [esi + 0x50]

        $sequence_1 = { d24ea8 dec9 0509e6c3c2 e474 9e d83f 7742 }
            // n = 7, score = 100
            //   d24ea8               | ror                 byte ptr [esi - 0x58], cl
            //   dec9                 | fmulp               st(1)
            //   0509e6c3c2           | add                 eax, 0xc2c3e609
            //   e474                 | in                  al, 0x74
            //   9e                   | sahf                
            //   d83f                 | fdivr               dword ptr [edi]
            //   7742                 | ja                  0x44

        $sequence_2 = { 75c7 ff742414 8b742424 56 56 e8???????? 8b6c245c }
            // n = 7, score = 100
            //   75c7                 | jne                 0xffffffc9
            //   ff742414             | push                dword ptr [esp + 0x14]
            //   8b742424             | mov                 esi, dword ptr [esp + 0x24]
            //   56                   | push                esi
            //   56                   | push                esi
            //   e8????????           |                     
            //   8b6c245c             | mov                 ebp, dword ptr [esp + 0x5c]

        $sequence_3 = { 85c0 0f84a1010000 8b4500 56 83b89000000000 7531 ff742430 }
            // n = 7, score = 100
            //   85c0                 | test                eax, eax
            //   0f84a1010000         | je                  0x1a7
            //   8b4500               | mov                 eax, dword ptr [ebp]
            //   56                   | push                esi
            //   83b89000000000       | cmp                 dword ptr [eax + 0x90], 0
            //   7531                 | jne                 0x33
            //   ff742430             | push                dword ptr [esp + 0x30]

        $sequence_4 = { 8bf8 0facc812 c1e70e 33d2 0bd0 8b442424 c1e912 }
            // n = 7, score = 100
            //   8bf8                 | mov                 edi, eax
            //   0facc812             | shrd                eax, ecx, 0x12
            //   c1e70e               | shl                 edi, 0xe
            //   33d2                 | xor                 edx, edx
            //   0bd0                 | or                  edx, eax
            //   8b442424             | mov                 eax, dword ptr [esp + 0x24]
            //   c1e912               | shr                 ecx, 0x12

        $sequence_5 = { 8bf8 8bce 0facc812 89542444 33d2 c1e70e 899c24f8000000 }
            // n = 7, score = 100
            //   8bf8                 | mov                 edi, eax
            //   8bce                 | mov                 ecx, esi
            //   0facc812             | shrd                eax, ecx, 0x12
            //   89542444             | mov                 dword ptr [esp + 0x44], edx
            //   33d2                 | xor                 edx, edx
            //   c1e70e               | shl                 edi, 0xe
            //   899c24f8000000       | mov                 dword ptr [esp + 0xf8], ebx

        $sequence_6 = { 89442420 8d7604 85ed 7410 3bc1 1bed 83c8ff }
            // n = 7, score = 100
            //   89442420             | mov                 dword ptr [esp + 0x20], eax
            //   8d7604               | lea                 esi, [esi + 4]
            //   85ed                 | test                ebp, ebp
            //   7410                 | je                  0x12
            //   3bc1                 | cmp                 eax, ecx
            //   1bed                 | sbb                 ebp, ebp
            //   83c8ff               | or                  eax, 0xffffffff

        $sequence_7 = { 0fb606 80b870c5460000 74e9 8b5ddc 0fb606 0fbe8070c54600 85c0 }
            // n = 7, score = 100
            //   0fb606               | movzx               eax, byte ptr [esi]
            //   80b870c5460000       | cmp                 byte ptr [eax + 0x46c570], 0
            //   74e9                 | je                  0xffffffeb
            //   8b5ddc               | mov                 ebx, dword ptr [ebp - 0x24]
            //   0fb606               | movzx               eax, byte ptr [esi]
            //   0fbe8070c54600       | movsx               eax, byte ptr [eax + 0x46c570]
            //   85c0                 | test                eax, eax

        $sequence_8 = { c3 8b3e 8bdd 8bcf ba11000000 2bdf 8b040b }
            // n = 7, score = 100
            //   c3                   | ret                 
            //   8b3e                 | mov                 edi, dword ptr [esi]
            //   8bdd                 | mov                 ebx, ebp
            //   8bcf                 | mov                 ecx, edi
            //   ba11000000           | mov                 edx, 0x11
            //   2bdf                 | sub                 ebx, edi
            //   8b040b               | mov                 eax, dword ptr [ebx + ecx]

        $sequence_9 = { 8d4530 50 ff742418 8b4118 55 ffd0 83c410 }
            // n = 7, score = 100
            //   8d4530               | lea                 eax, [ebp + 0x30]
            //   50                   | push                eax
            //   ff742418             | push                dword ptr [esp + 0x18]
            //   8b4118               | mov                 eax, dword ptr [ecx + 0x18]
            //   55                   | push                ebp
            //   ffd0                 | call                eax
            //   83c410               | add                 esp, 0x10

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