SYMBOLCOMMON_NAMEaka. SYNONYMS
win.safenet (Back to overview)

SafeNet


There is no description at this point.

References
2013-05-20Trend MicroNart Villeneuve, Kyle Wilhoit
@techreport{villeneuve:20130520:safe:5a6a6e7, author = {Nart Villeneuve and Kyle Wilhoit}, title = {{Safe - A Targeted Threat}}, date = {2013-05-20}, institution = {Trend Micro}, url = {https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-safe-a-targeted-threat.pdf}, language = {English}, urldate = {2020-01-22} } Safe - A Targeted Threat
SafeNet
Yara Rules
[TLP:WHITE] win_safenet_auto (20221125 | Detects win.safenet.)
rule win_safenet_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-11-21"
        version = "1"
        description = "Detects win.safenet."
        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.safenet"
        malpedia_rule_date = "20221118"
        malpedia_hash = "e0702e2e6d1d00da65c8a29a4ebacd0a4c59e1af"
        malpedia_version = "20221125"
        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 = { 3945bc 0f84d6030000 3945b8 0f84cd030000 8d8544fdffff 57 50 }
            // n = 7, score = 100
            //   3945bc               | cmp                 dword ptr [ebp - 0x44], eax
            //   0f84d6030000         | je                  0x3dc
            //   3945b8               | cmp                 dword ptr [ebp - 0x48], eax
            //   0f84cd030000         | je                  0x3d3
            //   8d8544fdffff         | lea                 eax, [ebp - 0x2bc]
            //   57                   | push                edi
            //   50                   | push                eax

        $sequence_1 = { f3ab 8d8544fdffff 50 8d8524f5ffff 68???????? }
            // n = 5, score = 100
            //   f3ab                 | rep stosd           dword ptr es:[edi], eax
            //   8d8544fdffff         | lea                 eax, [ebp - 0x2bc]
            //   50                   | push                eax
            //   8d8524f5ffff         | lea                 eax, [ebp - 0xadc]
            //   68????????           |                     

        $sequence_2 = { 0f85dc020000 ff15???????? 0fb6c8 33d2 }
            // n = 4, score = 100
            //   0f85dc020000         | jne                 0x2e2
            //   ff15????????         |                     
            //   0fb6c8               | movzx               ecx, al
            //   33d2                 | xor                 edx, edx

        $sequence_3 = { 66ab 8bca 33c0 8dbda2f7ffff 6683a5a8f9ffff00 f3ab }
            // n = 6, score = 100
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   8bca                 | mov                 ecx, edx
            //   33c0                 | xor                 eax, eax
            //   8dbda2f7ffff         | lea                 edi, [ebp - 0x85e]
            //   6683a5a8f9ffff00     | and                 word ptr [ebp - 0x658], 0
            //   f3ab                 | rep stosd           dword ptr es:[edi], eax

        $sequence_4 = { ff750c e8???????? 83c40c 33ff ebc3 f605????????01 }
            // n = 6, score = 100
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   33ff                 | xor                 edi, edi
            //   ebc3                 | jmp                 0xffffffc5
            //   f605????????01       |                     

        $sequence_5 = { 8bc3 8bcb c1f805 83e11f 8b048540174100 8d04c8 }
            // n = 6, score = 100
            //   8bc3                 | mov                 eax, ebx
            //   8bcb                 | mov                 ecx, ebx
            //   c1f805               | sar                 eax, 5
            //   83e11f               | and                 ecx, 0x1f
            //   8b048540174100       | mov                 eax, dword ptr [eax*4 + 0x411740]
            //   8d04c8               | lea                 eax, [eax + ecx*8]

        $sequence_6 = { 754e 83602000 8b7604 e9???????? 8b4808 397920 7518 }
            // n = 7, score = 100
            //   754e                 | jne                 0x50
            //   83602000             | and                 dword ptr [eax + 0x20], 0
            //   8b7604               | mov                 esi, dword ptr [esi + 4]
            //   e9????????           |                     
            //   8b4808               | mov                 ecx, dword ptr [eax + 8]
            //   397920               | cmp                 dword ptr [ecx + 0x20], edi
            //   7518                 | jne                 0x1a

        $sequence_7 = { 8d3449 8d34b5d0d84000 83c00c 3bc6 7304 3910 75f5 }
            // n = 7, score = 100
            //   8d3449               | lea                 esi, [ecx + ecx*2]
            //   8d34b5d0d84000       | lea                 esi, [esi*4 + 0x40d8d0]
            //   83c00c               | add                 eax, 0xc
            //   3bc6                 | cmp                 eax, esi
            //   7304                 | jae                 6
            //   3910                 | cmp                 dword ptr [eax], edx
            //   75f5                 | jne                 0xfffffff7

        $sequence_8 = { 885dfc e8???????? 834dfcff 6a01 8d4ddc e8???????? e9???????? }
            // n = 7, score = 100
            //   885dfc               | mov                 byte ptr [ebp - 4], bl
            //   e8????????           |                     
            //   834dfcff             | or                  dword ptr [ebp - 4], 0xffffffff
            //   6a01                 | push                1
            //   8d4ddc               | lea                 ecx, [ebp - 0x24]
            //   e8????????           |                     
            //   e9????????           |                     

        $sequence_9 = { ff15???????? 8b35???????? bf???????? bb???????? ff37 8d85e8f9ffff 68???????? }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   8b35????????         |                     
            //   bf????????           |                     
            //   bb????????           |                     
            //   ff37                 | push                dword ptr [edi]
            //   8d85e8f9ffff         | lea                 eax, [ebp - 0x618]
            //   68????????           |                     

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