SYMBOLCOMMON_NAMEaka. SYNONYMS
win.careto (Back to overview)

Careto

aka: TheMask

Actor(s): Careto

VTCollection    

There is no description at this point.

References
2025-05-23TechCrunchLorenzo Franceschi-Bicchierai
Mysterious hacking group Careto was run by the Spanish government, sources say
Careto Careto
2024-12-12KasperskyGeorgy Kucherin & Marc Rivero López
The Mask Has Been Unmasked Again
Careto
2024-09-24Virus BulletinGeorgy Kucherin, Marc Rivero López
The Mask Has Been Unmasked Again
Careto
2014-02-10Kaspersky LabsGReAT
The Careto/Mask APT: Frequently Asked Questions
Careto Careto
Yara Rules
[TLP:WHITE] win_careto_auto (20260504 | Detects win.careto.)
rule win_careto_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.careto."
        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.careto"
        malpedia_rule_date = "20260422"
        malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
        malpedia_version = "20260504"
        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 = { ff55f4 8bf0 83feff 0f849b000000 }
            // n = 4, score = 100
            //   ff55f4               | call                dword ptr [ebp - 0xc]
            //   8bf0                 | mov                 esi, eax
            //   83feff               | cmp                 esi, -1
            //   0f849b000000         | je                  0xa1

        $sequence_1 = { 395d6c 0f84aa000000 56 33f6 395d6c 0f869d000000 53 }
            // n = 7, score = 100
            //   395d6c               | cmp                 dword ptr [ebp + 0x6c], ebx
            //   0f84aa000000         | je                  0xb0
            //   56                   | push                esi
            //   33f6                 | xor                 esi, esi
            //   395d6c               | cmp                 dword ptr [ebp + 0x6c], ebx
            //   0f869d000000         | jbe                 0xa3
            //   53                   | push                ebx

        $sequence_2 = { c21400 ff7560 eb01 57 ff15???????? 33c0 ebe6 }
            // n = 7, score = 100
            //   c21400               | ret                 0x14
            //   ff7560               | push                dword ptr [ebp + 0x60]
            //   eb01                 | jmp                 3
            //   57                   | push                edi
            //   ff15????????         |                     
            //   33c0                 | xor                 eax, eax
            //   ebe6                 | jmp                 0xffffffe8

        $sequence_3 = { ff75fc ff15???????? 8bf0 85f6 0f84d1010000 53 }
            // n = 6, score = 100
            //   ff75fc               | push                dword ptr [ebp - 4]
            //   ff15????????         |                     
            //   8bf0                 | mov                 esi, eax
            //   85f6                 | test                esi, esi
            //   0f84d1010000         | je                  0x1d7
            //   53                   | push                ebx

        $sequence_4 = { 57 8bf8 d1ff ff05???????? 833d????????03 897df8 750e }
            // n = 7, score = 100
            //   57                   | push                edi
            //   8bf8                 | mov                 edi, eax
            //   d1ff                 | sar                 edi, 1
            //   ff05????????         |                     
            //   833d????????03       |                     
            //   897df8               | mov                 dword ptr [ebp - 8], edi
            //   750e                 | jne                 0x10

        $sequence_5 = { 81ecb8080000 53 8b5d08 68???????? 53 }
            // n = 5, score = 100
            //   81ecb8080000         | sub                 esp, 0x8b8
            //   53                   | push                ebx
            //   8b5d08               | mov                 ebx, dword ptr [ebp + 8]
            //   68????????           |                     
            //   53                   | push                ebx

        $sequence_6 = { 663d0004 0f95c1 49 83e103 03cd }
            // n = 5, score = 100
            //   663d0004             | cmp                 ax, 0x400
            //   0f95c1               | setne               cl
            //   49                   | dec                 ecx
            //   83e103               | and                 ecx, 3
            //   03cd                 | add                 ecx, ebp

        $sequence_7 = { f3a5 8bca 83e103 f3a4 c68405edfdffff00 }
            // n = 5, score = 100
            //   f3a5                 | rep movsd           dword ptr es:[edi], dword ptr [esi]
            //   8bca                 | mov                 ecx, edx
            //   83e103               | and                 ecx, 3
            //   f3a4                 | rep movsb           byte ptr es:[edi], byte ptr [esi]
            //   c68405edfdffff00     | mov                 byte ptr [ebp + eax - 0x213], 0

        $sequence_8 = { 7522 83be8c00000001 7506 c70610000000 }
            // n = 4, score = 100
            //   7522                 | jne                 0x24
            //   83be8c00000001       | cmp                 dword ptr [esi + 0x8c], 1
            //   7506                 | jne                 8
            //   c70610000000         | mov                 dword ptr [esi], 0x10

        $sequence_9 = { 50 8d856cfdffff 50 ff7570 c7456804010000 895d5c }
            // n = 6, score = 100
            //   50                   | push                eax
            //   8d856cfdffff         | lea                 eax, [ebp - 0x294]
            //   50                   | push                eax
            //   ff7570               | push                dword ptr [ebp + 0x70]
            //   c7456804010000       | mov                 dword ptr [ebp + 0x68], 0x104
            //   895d5c               | mov                 dword ptr [ebp + 0x5c], ebx

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