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 (20210616 | Detects win.petrwrap.)
rule win_petrwrap_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2021-06-10"
        version = "1"
        description = "Detects win.petrwrap."
        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.petrwrap"
        malpedia_rule_date = "20210604"
        malpedia_hash = "be09d5d71e77373c0f538068be31a2ad4c69cfbd"
        malpedia_version = "20210616"
        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 = { 8344241cfe 8b742418 b901000000 894c2410 0f885d010000 8bde 0fafde }
            // n = 7, score = 100
            //   8344241cfe           | add                 dword ptr [esp + 0x1c], -2
            //   8b742418             | mov                 esi, dword ptr [esp + 0x18]
            //   b901000000           | mov                 ecx, 1
            //   894c2410             | mov                 dword ptr [esp + 0x10], ecx
            //   0f885d010000         | js                  0x163
            //   8bde                 | mov                 ebx, esi
            //   0fafde               | imul                ebx, esi

        $sequence_1 = { 6a00 897014 8b450c 50 6a00 50 e8???????? }
            // n = 7, score = 100
            //   6a00                 | push                0
            //   897014               | mov                 dword ptr [eax + 0x14], esi
            //   8b450c               | mov                 eax, dword ptr [ebp + 0xc]
            //   50                   | push                eax
            //   6a00                 | push                0
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_2 = { 8bfd 33d2 c1e70d c1e913 0bd0 89542460 0bf9 }
            // n = 7, score = 100
            //   8bfd                 | mov                 edi, ebp
            //   33d2                 | xor                 edx, edx
            //   c1e70d               | shl                 edi, 0xd
            //   c1e913               | shr                 ecx, 0x13
            //   0bd0                 | or                  edx, eax
            //   89542460             | mov                 dword ptr [esp + 0x60], edx
            //   0bf9                 | or                  edi, ecx

        $sequence_3 = { 7301 42 03fa 3bfa 7301 41 8b4310 }
            // n = 7, score = 100
            //   7301                 | jae                 3
            //   42                   | inc                 edx
            //   03fa                 | add                 edi, edx
            //   3bfa                 | cmp                 edi, edx
            //   7301                 | jae                 3
            //   41                   | inc                 ecx
            //   8b4310               | mov                 eax, dword ptr [ebx + 0x10]

        $sequence_4 = { e8???????? 83c420 33ff 8bd8 8d742418 8d4708 8b16 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   83c420               | add                 esp, 0x20
            //   33ff                 | xor                 edi, edi
            //   8bd8                 | mov                 ebx, eax
            //   8d742418             | lea                 esi, dword ptr [esp + 0x18]
            //   8d4708               | lea                 eax, dword ptr [edi + 8]
            //   8b16                 | mov                 edx, dword ptr [esi]

        $sequence_5 = { 85c0 0f8443010000 8b06 53 8b8080000000 55 57 }
            // n = 7, score = 100
            //   85c0                 | test                eax, eax
            //   0f8443010000         | je                  0x149
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   53                   | push                ebx
            //   8b8080000000         | mov                 eax, dword ptr [eax + 0x80]
            //   55                   | push                ebp
            //   57                   | push                edi

        $sequence_6 = { 8d442444 50 8d442438 50 e8???????? 8daf01fcffff 03ee }
            // n = 7, score = 100
            //   8d442444             | lea                 eax, dword ptr [esp + 0x44]
            //   50                   | push                eax
            //   8d442438             | lea                 eax, dword ptr [esp + 0x38]
            //   50                   | push                eax
            //   e8????????           |                     
            //   8daf01fcffff         | lea                 ebp, dword ptr [edi - 0x3ff]
            //   03ee                 | add                 ebp, esi

        $sequence_7 = { 6a61 68???????? 6a1e 6a0a e8???????? 83c410 8b4634 }
            // n = 7, score = 100
            //   6a61                 | push                0x61
            //   68????????           |                     
            //   6a1e                 | push                0x1e
            //   6a0a                 | push                0xa
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10
            //   8b4634               | mov                 eax, dword ptr [esi + 0x34]

        $sequence_8 = { c1e818 330c85d0184400 8b44242c 0fb6c0 330c85d0244400 8b44242c 334f14 }
            // n = 7, score = 100
            //   c1e818               | shr                 eax, 0x18
            //   330c85d0184400       | xor                 ecx, dword ptr [eax*4 + 0x4418d0]
            //   8b44242c             | mov                 eax, dword ptr [esp + 0x2c]
            //   0fb6c0               | movzx               eax, al
            //   330c85d0244400       | xor                 ecx, dword ptr [eax*4 + 0x4424d0]
            //   8b44242c             | mov                 eax, dword ptr [esp + 0x2c]
            //   334f14               | xor                 ecx, dword ptr [edi + 0x14]

        $sequence_9 = { 0bd0 31542444 8b442430 8bf8 0facc80e c1e712 c1e90e }
            // n = 7, score = 100
            //   0bd0                 | or                  edx, eax
            //   31542444             | xor                 dword ptr [esp + 0x44], edx
            //   8b442430             | mov                 eax, dword ptr [esp + 0x30]
            //   8bf8                 | mov                 edi, eax
            //   0facc80e             | shrd                eax, ecx, 0xe
            //   c1e712               | shl                 edi, 0x12
            //   c1e90e               | shr                 ecx, 0xe

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