SYMBOLCOMMON_NAMEaka. SYNONYMS
win.phoreal (Back to overview)

PHOREAL

aka: Rizzo

Actor(s): APT32


Phoreal is a very simple backdoor that is capable of creating a reverse shell, performing simple file I/O and top-level window enumeration. It communicates to a list of four preconfigured C2 servers via ICMP on port 53

References
2020SecureworksSecureWorks
@online{secureworks:2020:tin:ccd6795, author = {SecureWorks}, title = {{TIN WOODLAWN}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/tin-woodlawn}, language = {English}, urldate = {2020-05-23} } TIN WOODLAWN
Cobalt Strike KerrDown MimiKatz PHOREAL RatSnif Remy SOUNDBITE APT32
2018-11-02CylanceCylance
@techreport{cylance:20181102:spyrats:67888b3, author = {Cylance}, title = {{The SpyRATs of OceanLotus}}, date = {2018-11-02}, institution = {Cylance}, url = {https://www.cylance.com/content/dam/cylance-web/en-us/resources/knowledge-center/resource-library/reports/SpyRATsofOceanLotusMalwareWhitePaper.pdf}, language = {English}, urldate = {2020-01-10} } The SpyRATs of OceanLotus
KOMPROGO PHOREAL
Yara Rules
[TLP:WHITE] win_phoreal_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule win_phoreal_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.phoreal"
        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 = { 8b4d24 2bc3 8b5d8c 8d7801 8b4528 50 51 }
            // n = 7, score = 100
            //   8b4d24               | mov                 ecx, dword ptr [ebp + 0x24]
            //   2bc3                 | sub                 eax, ebx
            //   8b5d8c               | mov                 ebx, dword ptr [ebp - 0x74]
            //   8d7801               | lea                 edi, [eax + 1]
            //   8b4528               | mov                 eax, dword ptr [ebp + 0x28]
            //   50                   | push                eax
            //   51                   | push                ecx

        $sequence_1 = { 8d4594 50 8d4db9 c745a807000000 c745a400000000 e8???????? 8d7d94 }
            // n = 7, score = 100
            //   8d4594               | lea                 eax, [ebp - 0x6c]
            //   50                   | push                eax
            //   8d4db9               | lea                 ecx, [ebp - 0x47]
            //   c745a807000000       | mov                 dword ptr [ebp - 0x58], 7
            //   c745a400000000       | mov                 dword ptr [ebp - 0x5c], 0
            //   e8????????           |                     
            //   8d7d94               | lea                 edi, [ebp - 0x6c]

        $sequence_2 = { c1ea10 c1eb08 81e2ff000000 8b1495c8978700 81e3ff000000 }
            // n = 5, score = 100
            //   c1ea10               | shr                 edx, 0x10
            //   c1eb08               | shr                 ebx, 8
            //   81e2ff000000         | and                 edx, 0xff
            //   8b1495c8978700       | mov                 edx, dword ptr [edx*4 + 0x8797c8]
            //   81e3ff000000         | and                 ebx, 0xff

        $sequence_3 = { e8???????? 83c404 85c0 7f9f 33ff e8???????? }
            // n = 6, score = 100
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   85c0                 | test                eax, eax
            //   7f9f                 | jg                  0xffffffa1
            //   33ff                 | xor                 edi, edi
            //   e8????????           |                     

        $sequence_4 = { 58 5d c3 8b04cde4328800 5d c3 0544ffffff }
            // n = 7, score = 100
            //   58                   | pop                 eax
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   8b04cde4328800       | mov                 eax, dword ptr [ecx*8 + 0x8832e4]
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   0544ffffff           | add                 eax, 0xffffff44

        $sequence_5 = { 50 57 ff15???????? 85c0 75d4 8d7008 ff15???????? }
            // n = 7, score = 100
            //   50                   | push                eax
            //   57                   | push                edi
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   75d4                 | jne                 0xffffffd6
            //   8d7008               | lea                 esi, [eax + 8]
            //   ff15????????         |                     

        $sequence_6 = { e8???????? 03d0 8b4608 2bc7 3bd0 761f 8bc8 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   03d0                 | add                 edx, eax
            //   8b4608               | mov                 eax, dword ptr [esi + 8]
            //   2bc7                 | sub                 eax, edi
            //   3bd0                 | cmp                 edx, eax
            //   761f                 | jbe                 0x21
            //   8bc8                 | mov                 ecx, eax

        $sequence_7 = { 51 8d55c8 8bc6 8b75c4 52 e8???????? 8b08 }
            // n = 7, score = 100
            //   51                   | push                ecx
            //   8d55c8               | lea                 edx, [ebp - 0x38]
            //   8bc6                 | mov                 eax, esi
            //   8b75c4               | mov                 esi, dword ptr [ebp - 0x3c]
            //   52                   | push                edx
            //   e8????????           |                     
            //   8b08                 | mov                 ecx, dword ptr [eax]

        $sequence_8 = { ff15???????? 8b8d7cffffff 8b8578ffffff 894dec 8d4de8 8945e8 e8???????? }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   8b8d7cffffff         | mov                 ecx, dword ptr [ebp - 0x84]
            //   8b8578ffffff         | mov                 eax, dword ptr [ebp - 0x88]
            //   894dec               | mov                 dword ptr [ebp - 0x14], ecx
            //   8d4de8               | lea                 ecx, [ebp - 0x18]
            //   8945e8               | mov                 dword ptr [ebp - 0x18], eax
            //   e8????????           |                     

        $sequence_9 = { 51 53 ffd6 85c0 750a }
            // n = 5, score = 100
            //   51                   | push                ecx
            //   53                   | push                ebx
            //   ffd6                 | call                esi
            //   85c0                 | test                eax, eax
            //   750a                 | jne                 0xc

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