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 (20201023 | autogenerated rule brought to you by yara-signator)
rule win_petrwrap_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.petrwrap"
        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 = { 8a80a0514300 8806 83c408 46 837df000 75e3 85ff }
            // n = 7, score = 100
            //   8a80a0514300         | mov                 al, byte ptr [eax + 0x4351a0]
            //   8806                 | mov                 byte ptr [esi], al
            //   83c408               | add                 esp, 8
            //   46                   | inc                 esi
            //   837df000             | cmp                 dword ptr [ebp - 0x10], 0
            //   75e3                 | jne                 0xffffffe5
            //   85ff                 | test                edi, edi

        $sequence_1 = { 8b4c2428 83c410 c70101000000 eb07 ff4f04 8b4c2418 837f0400 }
            // n = 7, score = 100
            //   8b4c2428             | mov                 ecx, dword ptr [esp + 0x28]
            //   83c410               | add                 esp, 0x10
            //   c70101000000         | mov                 dword ptr [ecx], 1
            //   eb07                 | jmp                 9
            //   ff4f04               | dec                 dword ptr [edi + 4]
            //   8b4c2418             | mov                 ecx, dword ptr [esp + 0x18]
            //   837f0400             | cmp                 dword ptr [edi + 4], 0

        $sequence_2 = { 50 e8???????? 6a14 8d842484000000 50 8d442468 }
            // n = 6, score = 100
            //   50                   | push                eax
            //   e8????????           |                     
            //   6a14                 | push                0x14
            //   8d842484000000       | lea                 eax, [esp + 0x84]
            //   50                   | push                eax
            //   8d442468             | lea                 eax, [esp + 0x68]

        $sequence_3 = { 42 03f2 3bf2 b801000000 0f42f8 8b442414 }
            // n = 6, score = 100
            //   42                   | inc                 edx
            //   03f2                 | add                 esi, edx
            //   3bf2                 | cmp                 esi, edx
            //   b801000000           | mov                 eax, 1
            //   0f42f8               | cmovb               edi, eax
            //   8b442414             | mov                 eax, dword ptr [esp + 0x14]

        $sequence_4 = { e8???????? 83c414 33c0 5f 5b 83c40c }
            // n = 6, score = 100
            //   e8????????           |                     
            //   83c414               | add                 esp, 0x14
            //   33c0                 | xor                 eax, eax
            //   5f                   | pop                 edi
            //   5b                   | pop                 ebx
            //   83c40c               | add                 esp, 0xc

        $sequence_5 = { 741d 57 51 ff742428 ff742428 ff742428 ff742428 }
            // n = 7, score = 100
            //   741d                 | je                  0x1f
            //   57                   | push                edi
            //   51                   | push                ecx
            //   ff742428             | push                dword ptr [esp + 0x28]
            //   ff742428             | push                dword ptr [esp + 0x28]
            //   ff742428             | push                dword ptr [esp + 0x28]
            //   ff742428             | push                dword ptr [esp + 0x28]

        $sequence_6 = { 33d0 03cf 13ea 034c2438 136c2444 894c2424 8b4c246c }
            // n = 7, score = 100
            //   33d0                 | xor                 edx, eax
            //   03cf                 | add                 ecx, edi
            //   13ea                 | adc                 ebp, edx
            //   034c2438             | add                 ecx, dword ptr [esp + 0x38]
            //   136c2444             | adc                 ebp, dword ptr [esp + 0x44]
            //   894c2424             | mov                 dword ptr [esp + 0x24], ecx
            //   8b4c246c             | mov                 ecx, dword ptr [esp + 0x6c]

        $sequence_7 = { 8be9 115004 8b442424 0fa4c117 c1e017 33db 0bd9 }
            // n = 7, score = 100
            //   8be9                 | mov                 ebp, ecx
            //   115004               | adc                 dword ptr [eax + 4], edx
            //   8b442424             | mov                 eax, dword ptr [esp + 0x24]
            //   0fa4c117             | shld                ecx, eax, 0x17
            //   c1e017               | shl                 eax, 0x17
            //   33db                 | xor                 ebx, ebx
            //   0bd9                 | or                  ebx, ecx

        $sequence_8 = { 75be 8b5c2420 8b742410 8b4b04 85c9 7e17 8b03 }
            // n = 7, score = 100
            //   75be                 | jne                 0xffffffc0
            //   8b5c2420             | mov                 ebx, dword ptr [esp + 0x20]
            //   8b742410             | mov                 esi, dword ptr [esp + 0x10]
            //   8b4b04               | mov                 ecx, dword ptr [ebx + 4]
            //   85c9                 | test                ecx, ecx
            //   7e17                 | jle                 0x19
            //   8b03                 | mov                 eax, dword ptr [ebx]

        $sequence_9 = { 7c04 8bc6 eb0b 6a06 56 e8???????? 83c408 }
            // n = 7, score = 100
            //   7c04                 | jl                  6
            //   8bc6                 | mov                 eax, esi
            //   eb0b                 | jmp                 0xd
            //   6a06                 | push                6
            //   56                   | push                esi
            //   e8????????           |                     
            //   83c408               | add                 esp, 8

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