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 (20200817 | autogenerated rule brought to you by yara-signator)
rule win_petrwrap_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-08-17"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.4.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.petrwrap"
        malpedia_rule_date = "20200817"
        malpedia_hash = "8c895fd01eccb47a6225bcb1a3ba53cbb98644c5"
        malpedia_version = "20200817"
        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 = { 2bc8 890f 83c704 4b 75ce 8b742410 8b5c241c }
            // n = 7, score = 100
            //   2bc8                 | sub                 ecx, eax
            //   890f                 | mov                 dword ptr [edi], ecx
            //   83c704               | add                 edi, 4
            //   4b                   | dec                 ebx
            //   75ce                 | jne                 0xffffffd0
            //   8b742410             | mov                 esi, dword ptr [esp + 0x10]
            //   8b5c241c             | mov                 ebx, dword ptr [esp + 0x1c]

        $sequence_1 = { 8b4c246c 13f0 03542428 13742410 83c138 89542430 }
            // n = 6, score = 100
            //   8b4c246c             | mov                 ecx, dword ptr [esp + 0x6c]
            //   13f0                 | adc                 esi, eax
            //   03542428             | add                 edx, dword ptr [esp + 0x28]
            //   13742410             | adc                 esi, dword ptr [esp + 0x10]
            //   83c138               | add                 ecx, 0x38
            //   89542430             | mov                 dword ptr [esp + 0x30], edx

        $sequence_2 = { e8???????? 837c242000 c644240200 751e 6808030000 68???????? }
            // n = 6, score = 100
            //   e8????????           |                     
            //   837c242000           | cmp                 dword ptr [esp + 0x20], 0
            //   c644240200           | mov                 byte ptr [esp + 2], 0
            //   751e                 | jne                 0x20
            //   6808030000           | push                0x308
            //   68????????           |                     

        $sequence_3 = { 0fa4c11e c1e01e 33d2 0bd1 8b4c2448 c1ef02 }
            // n = 6, score = 100
            //   0fa4c11e             | shld                ecx, eax, 0x1e
            //   c1e01e               | shl                 eax, 0x1e
            //   33d2                 | xor                 edx, edx
            //   0bd1                 | or                  edx, ecx
            //   8b4c2448             | mov                 ecx, dword ptr [esp + 0x48]
            //   c1ef02               | shr                 edi, 2

        $sequence_4 = { 03cf 13da 034c2418 135c2434 894c2450 8d4e08 895c2414 }
            // n = 7, score = 100
            //   03cf                 | add                 ecx, edi
            //   13da                 | adc                 ebx, edx
            //   034c2418             | add                 ecx, dword ptr [esp + 0x18]
            //   135c2434             | adc                 ebx, dword ptr [esp + 0x34]
            //   894c2450             | mov                 dword ptr [esp + 0x50], ecx
            //   8d4e08               | lea                 ecx, [esi + 8]
            //   895c2414             | mov                 dword ptr [esp + 0x14], ebx

        $sequence_5 = { 897c2418 85f6 0f84e7010000 397c2434 7322 6828030000 68???????? }
            // n = 7, score = 100
            //   897c2418             | mov                 dword ptr [esp + 0x18], edi
            //   85f6                 | test                esi, esi
            //   0f84e7010000         | je                  0x1ed
            //   397c2434             | cmp                 dword ptr [esp + 0x34], edi
            //   7322                 | jae                 0x24
            //   6828030000           | push                0x328
            //   68????????           |                     

        $sequence_6 = { c1e910 81e1ff000000 25ff000000 8b1c8dd01c4400 331c85d0204400 8b4c2410 8bc6 }
            // n = 7, score = 100
            //   c1e910               | shr                 ecx, 0x10
            //   81e1ff000000         | and                 ecx, 0xff
            //   25ff000000           | and                 eax, 0xff
            //   8b1c8dd01c4400       | mov                 ebx, dword ptr [ecx*4 + 0x441cd0]
            //   331c85d0204400       | xor                 ebx, dword ptr [eax*4 + 0x4420d0]
            //   8b4c2410             | mov                 ecx, dword ptr [esp + 0x10]
            //   8bc6                 | mov                 eax, esi

        $sequence_7 = { 6a03 ffd0 83c40c 837c241c00 7510 ff37 e8???????? }
            // n = 7, score = 100
            //   6a03                 | push                3
            //   ffd0                 | call                eax
            //   83c40c               | add                 esp, 0xc
            //   837c241c00           | cmp                 dword ptr [esp + 0x1c], 0
            //   7510                 | jne                 0x12
            //   ff37                 | push                dword ptr [edi]
            //   e8????????           |                     

        $sequence_8 = { 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_9 = { 83c408 85c0 7425 c7434001000000 }
            // n = 4, score = 100
            //   83c408               | add                 esp, 8
            //   85c0                 | test                eax, eax
            //   7425                 | je                  0x27
            //   c7434001000000       | mov                 dword ptr [ebx + 0x40], 1

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