SYMBOLCOMMON_NAMEaka. SYNONYMS
win.salgorea (Back to overview)

Salgorea

aka: BadCake

Actor(s): APT32


There is no description at this point.

References
2019-04-24Check Point ResearchItay Cohen
@online{cohen:20190424:deobfuscating:581c86e, author = {Itay Cohen}, title = {{Deobfuscating APT32 Flow Graphs with Cutter and Radare2}}, date = {2019-04-24}, organization = {Check Point Research}, url = {https://research.checkpoint.com/deobfuscating-apt32-flow-graphs-with-cutter-and-radare2/}, language = {English}, urldate = {2020-05-06} } Deobfuscating APT32 Flow Graphs with Cutter and Radare2
Salgorea
2019-01-17AccentureMatthew Brady
@online{brady:20190117:pond:572e6e8, author = {Matthew Brady}, title = {{Pond Loach delivers BadCake malware}}, date = {2019-01-17}, organization = {Accenture}, url = {https://www.accenture.com/us-en/blogs/blogs-pond-loach-delivers-badcake-malware}, language = {English}, urldate = {2020-03-03} } Pond Loach delivers BadCake malware
Salgorea APT32
2018-03ESET ResearchOceanLotus: Old techniques, new backdoor
@techreport{backdoor:201803:oceanlotus:a2c3636, author = {OceanLotus: Old techniques, new backdoor}, title = {{OceanLotus: Old techniques, new backdoor}}, date = {2018-03}, institution = {ESET Research}, url = {https://www.welivesecurity.com/wp-content/uploads/2018/03/ESET_OceanLotus.pdf}, language = {English}, urldate = {2020-01-07} } OceanLotus: Old techniques, new backdoor
Salgorea
Yara Rules
[TLP:WHITE] win_salgorea_auto (20220411 | Detects win.salgorea.)
rule win_salgorea_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-04-08"
        version = "1"
        description = "Detects win.salgorea."
        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.salgorea"
        malpedia_rule_date = "20220405"
        malpedia_hash = "ecd38294bd47d5589be5cd5490dc8bb4804afc2a"
        malpedia_version = "20220411"
        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 = { 51 66c1e105 9e f7d1 53 }
            // n = 5, score = 300
            //   51                   | push                ecx
            //   66c1e105             | shl                 cx, 5
            //   9e                   | sahf                
            //   f7d1                 | not                 ecx
            //   53                   | push                ebx

        $sequence_1 = { 51 66b9bc00 66f7e1 53 c1fb02 d50a 8bc3 }
            // n = 7, score = 300
            //   51                   | push                ecx
            //   66b9bc00             | mov                 cx, 0xbc
            //   66f7e1               | mul                 cx
            //   53                   | push                ebx
            //   c1fb02               | sar                 ebx, 2
            //   d50a                 | aad                 
            //   8bc3                 | mov                 eax, ebx

        $sequence_2 = { 51 66b9b469 66f7f1 f7da 66b89e00 66b97900 66f7e1 }
            // n = 7, score = 300
            //   51                   | push                ecx
            //   66b9b469             | mov                 cx, 0x69b4
            //   66f7f1               | div                 cx
            //   f7da                 | neg                 edx
            //   66b89e00             | mov                 ax, 0x9e
            //   66b97900             | mov                 cx, 0x79
            //   66f7e1               | mul                 cx

        $sequence_3 = { 66c1e804 8b44240c 0fbafa00 0fbcd2 8b542418 52 9d }
            // n = 7, score = 300
            //   66c1e804             | shr                 ax, 4
            //   8b44240c             | mov                 eax, dword ptr [esp + 0xc]
            //   0fbafa00             | btc                 edx, 0
            //   0fbcd2               | bsf                 edx, edx
            //   8b542418             | mov                 edx, dword ptr [esp + 0x18]
            //   52                   | push                edx
            //   9d                   | popfd               

        $sequence_4 = { 27 664a 43 37 }
            // n = 4, score = 300
            //   27                   | daa                 
            //   664a                 | dec                 dx
            //   43                   | inc                 ebx
            //   37                   | aaa                 

        $sequence_5 = { 66c1e804 f8 660fbae803 f8 0fcb 33d8 }
            // n = 6, score = 300
            //   66c1e804             | shr                 ax, 4
            //   f8                   | clc                 
            //   660fbae803           | bts                 ax, 3
            //   f8                   | clc                 
            //   0fcb                 | bswap               ebx
            //   33d8                 | xor                 ebx, eax

        $sequence_6 = { 66c1e306 80eb38 80e6ee f8 f6d1 52 40 }
            // n = 7, score = 300
            //   66c1e306             | shl                 bx, 6
            //   80eb38               | sub                 bl, 0x38
            //   80e6ee               | and                 dh, 0xee
            //   f8                   | clc                 
            //   f6d1                 | not                 cl
            //   52                   | push                edx
            //   40                   | inc                 eax

        $sequence_7 = { 51 6698 f7db 33d2 b889510000 b98c0b0000 f7f1 }
            // n = 7, score = 300
            //   51                   | push                ecx
            //   6698                 | cbw                 
            //   f7db                 | neg                 ebx
            //   33d2                 | xor                 edx, edx
            //   b889510000           | mov                 eax, 0x5189
            //   b98c0b0000           | mov                 ecx, 0xb8c
            //   f7f1                 | div                 ecx

        $sequence_8 = { a1???????? 8945cc 8d45cc 3930 }
            // n = 4, score = 200
            //   a1????????           |                     
            //   8945cc               | mov                 dword ptr [ebp - 0x34], eax
            //   8d45cc               | lea                 eax, dword ptr [ebp - 0x34]
            //   3930                 | cmp                 dword ptr [eax], esi

        $sequence_9 = { 8d85bcfeffff 50 53 68???????? ffb5c4feffff 899dbcfeffff c785c0feffff24010000 }
            // n = 7, score = 100
            //   8d85bcfeffff         | lea                 eax, dword ptr [ebp - 0x144]
            //   50                   | push                eax
            //   53                   | push                ebx
            //   68????????           |                     
            //   ffb5c4feffff         | push                dword ptr [ebp - 0x13c]
            //   899dbcfeffff         | mov                 dword ptr [ebp - 0x144], ebx
            //   c785c0feffff24010000     | mov    dword ptr [ebp - 0x140], 0x124

        $sequence_10 = { 8d85bdfcffff 83e841 c745f4c0ffffff 297df4 }
            // n = 4, score = 100
            //   8d85bdfcffff         | lea                 eax, dword ptr [ebp - 0x343]
            //   83e841               | sub                 eax, 0x41
            //   c745f4c0ffffff       | mov                 dword ptr [ebp - 0xc], 0xffffffc0
            //   297df4               | sub                 dword ptr [ebp - 0xc], edi

        $sequence_11 = { 8d85c0feffff 0fb70a 83c202 8808 }
            // n = 4, score = 100
            //   8d85c0feffff         | lea                 eax, dword ptr [ebp - 0x140]
            //   0fb70a               | movzx               ecx, word ptr [edx]
            //   83c202               | add                 edx, 2
            //   8808                 | mov                 byte ptr [eax], cl

        $sequence_12 = { 8d85bdfcffff 8945ec 8d85ddfcffff 83e841 }
            // n = 4, score = 100
            //   8d85bdfcffff         | lea                 eax, dword ptr [ebp - 0x343]
            //   8945ec               | mov                 dword ptr [ebp - 0x14], eax
            //   8d85ddfcffff         | lea                 eax, dword ptr [ebp - 0x323]
            //   83e841               | sub                 eax, 0x41

        $sequence_13 = { 8d85c0feffff 50 8d85c8feffff 50 8d85bcfeffff }
            // n = 5, score = 100
            //   8d85c0feffff         | lea                 eax, dword ptr [ebp - 0x140]
            //   50                   | push                eax
            //   8d85c8feffff         | lea                 eax, dword ptr [ebp - 0x138]
            //   50                   | push                eax
            //   8d85bcfeffff         | lea                 eax, dword ptr [ebp - 0x144]

        $sequence_14 = { 8d85c0fcffff e8???????? 33c0 899d60fcffff }
            // n = 4, score = 100
            //   8d85c0fcffff         | lea                 eax, dword ptr [ebp - 0x340]
            //   e8????????           |                     
            //   33c0                 | xor                 eax, eax
            //   899d60fcffff         | mov                 dword ptr [ebp - 0x3a0], ebx

        $sequence_15 = { 8d85c0fcffff 50 8d85a4fcffff 50 }
            // n = 4, score = 100
            //   8d85c0fcffff         | lea                 eax, dword ptr [ebp - 0x340]
            //   50                   | push                eax
            //   8d85a4fcffff         | lea                 eax, dword ptr [ebp - 0x35c]
            //   50                   | push                eax

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