SYMBOLCOMMON_NAMEaka. SYNONYMS
win.sphijacker (Back to overview)

SPHijacker


According to Trend Micro, this is a tool designed to disable security products, adopting two approaches to achieve this purpose. One approach terminates the security product process by using a vulnerable driver, zamguard64.sys, published by Zemana (vulnerability designated as CVE-2018-5713). Meanwhile, another approach disables process launching by using a new technique that they named stack rumbling.

References
2023-05-02Trend MicroTed Lee, Hara Hiroaki
@online{lee:20230502:attack:c33db79, author = {Ted Lee and Hara Hiroaki}, title = {{Attack on Security Titans: Earth Longzhi Returns With New Tricks}}, date = {2023-05-02}, organization = {Trend Micro}, url = {https://www.trendmicro.com/en_us/research/23/e/attack-on-security-titans-earth-longzhi-returns-with-new-tricks.html}, language = {English}, urldate = {2023-05-04} } Attack on Security Titans: Earth Longzhi Returns With New Tricks
Croxloader SPHijacker
Yara Rules
[TLP:WHITE] win_sphijacker_auto (20230715 | Detects win.sphijacker.)
rule win_sphijacker_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-07-11"
        version = "1"
        description = "Detects win.sphijacker."
        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.sphijacker"
        malpedia_rule_date = "20230705"
        malpedia_hash = "42d0574f4405bd7d2b154d321d345acb18834a41"
        malpedia_version = "20230715"
        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 = { 488d3d8ca9feff 488bcf e8???????? 85c0 7422 482bdf 488bd3 }
            // n = 7, score = 100
            //   488d3d8ca9feff       | ret                 
            //   488bcf               | dec                 eax
            //   e8????????           |                     
            //   85c0                 | mov                 dword ptr [esp + 8], ebx
            //   7422                 | dec                 eax
            //   482bdf               | mov                 eax, dword ptr [ecx + 0x100]
            //   488bd3               | dec                 eax

        $sequence_1 = { e8???????? 488d0daae7feff 48c1e602 0fb784b980d80100 488d9170cf0100 488d8d34030000 4c8bc6 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   488d0daae7feff       | mov                 byte ptr [ecx + edi*8 + 0x3e], al
            //   48c1e602             | dec                 ebx
            //   0fb784b980d80100     | mov                 eax, dword ptr [ebx + edx*8 + 0x2afc0]
            //   488d9170cf0100       | inc                 edx
            //   488d8d34030000       | or                  byte ptr [eax + edi*8 + 0x3d], 4
            //   4c8bc6               | lea                 eax, [edx + 1]

        $sequence_2 = { 8a0e 884c2440 897d83 41bc01000000 4c8d1d570cffff 4181f8e9fd0000 0f857a010000 }
            // n = 7, score = 100
            //   8a0e                 | dec                 eax
            //   884c2440             | lea                 edx, [0x1df32]
            //   897d83               | dec                 eax
            //   41bc01000000         | mov                 ecx, dword ptr [ebp + 0x20]
            //   4c8d1d570cffff       | dec                 eax
            //   4181f8e9fd0000       | lea                 eax, [ebp + 0x10]
            //   0f857a010000         | mov                 dword ptr [esp + 0x28], 4

        $sequence_3 = { 2e0100 a0????????2e0100ae 2e0100 b52e 0100 }
            // n = 5, score = 100
            //   2e0100               | lea                 eax, [ebp + 0x20]
            //   a0????????2e0100ae     |     
            //   2e0100               | dec                 eax
            //   b52e                 | lea                 edx, [0x1dc05]
            //   0100                 | dec                 eax

        $sequence_4 = { 8a5339 8ac2 412ac6 a8df }
            // n = 4, score = 100
            //   8a5339               | dec                 eax
            //   8ac2                 | mov                 ecx, 0x80000002
            //   412ac6               | dec                 eax
            //   a8df                 | mov                 ecx, dword ptr [ebp + 0x18]

        $sequence_5 = { 488d15ead80100 48c7c102000080 ff15???????? 488b4d18 4c8d4520 }
            // n = 5, score = 100
            //   488d15ead80100       | jne                 0x14b
            //   48c7c102000080       | dec                 eax
            //   ff15????????         |                     
            //   488b4d18             | add                 eax, 2
            //   4c8d4520             | dec                 eax

        $sequence_6 = { eb88 830fff 488b6c2448 48895e2c 488b5c2440 }
            // n = 5, score = 100
            //   eb88                 | mov                 edx, dword ptr [ebx + 0x460]
            //   830fff               | inc                 ecx
            //   488b6c2448           | mov                 ecx, edx
            //   48895e2c             | dec                 eax
            //   488b5c2440           | mov                 eax, dword ptr [ebx + 0x460]

        $sequence_7 = { eb10 488d3d51c90100 eb07 488d3d30c90100 4883a4248000000000 4584f6 }
            // n = 6, score = 100
            //   eb10                 | mov                 dword ptr [esp + 0x28], 4
            //   488d3d51c90100       | dec                 eax
            //   eb07                 | lea                 edx, [0x1de8a]
            //   488d3d30c90100       | inc                 ecx
            //   4883a4248000000000     | mov    ecx, 4
            //   4584f6               | dec                 eax

        $sequence_8 = { ffc8 8bf8 410fb68c8082d80100 410fb6b48083d80100 488d1c8d00000000 8d040e 4c8bc3 }
            // n = 7, score = 100
            //   ffc8                 | mov                 eax, dword ptr [ebx + 8]
            //   8bf8                 | dec                 eax
            //   410fb68c8082d80100     | sub    esp, 0x38
            //   410fb6b48083d80100     | mov    al, byte ptr [ecx + 0x39]
            //   488d1c8d00000000     | cmp                 al, 0x46
            //   8d040e               | mov                 byte ptr [ecx + 0x4c], 0
            //   4c8bc3               | mov                 dword ptr [ecx + 0x48], eax

        $sequence_9 = { 8b4814 c1e90c 4184cd 740e 488b8360040000 4883780800 7419 }
            // n = 7, score = 100
            //   8b4814               | dec                 eax
            //   c1e90c               | lea                 eax, [ebp + 0x10]
            //   4184cd               | mov                 dword ptr [esp + 0x28], 4
            //   740e                 | dec                 eax
            //   488b8360040000       | lea                 edx, [0x1db22]
            //   4883780800           | dec                 esp
            //   7419                 | lea                 eax, [ebp + 0x20]

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