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-23 ⋅ TechCrunch ⋅ Lorenzo Franceschi-Bicchierai
Mysterious hacking group Careto was run by the Spanish government, sources say
Careto Careto
2024-12-12 ⋅ Kaspersky ⋅ Georgy Kucherin & Marc Rivero López
The Mask Has Been Unmasked Again
Careto
2024-09-24 ⋅ Virus Bulletin ⋅ Georgy Kucherin, Marc Rivero López
The Mask Has Been Unmasked Again
Careto
2014-02-10 ⋅ Kaspersky Labs ⋅ GReAT
The Careto/Mask APT: Frequently Asked Questions
Careto Careto
Yara Rules
[TLP:WHITE] win_careto_auto (20260917 | Detects win.careto.)
rule win_careto_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        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 = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        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 = { 50 ff15???????? 3bc7 8945fc 7512 }
            // n = 5, score = 100
            //   50                   | push                eax
            //   ff15????????         |                     
            //   3bc7                 | cmp                 eax, edi
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   7512                 | jne                 0x14

        $sequence_1 = { ffd6 f7d8 1bc0 f7d0 23c3 }
            // n = 5, score = 100
            //   ffd6                 | call                esi
            //   f7d8                 | neg                 eax
            //   1bc0                 | sbb                 eax, eax
            //   f7d0                 | not                 eax
            //   23c3                 | and                 eax, ebx

        $sequence_2 = { 740c 83fa05 7407 68???????? eb05 68???????? e8???????? }
            // n = 7, score = 100
            //   740c                 | je                  0xe
            //   83fa05               | cmp                 edx, 5
            //   7407                 | je                  9
            //   68????????           |                     
            //   eb05                 | jmp                 7
            //   68????????           |                     
            //   e8????????           |                     

        $sequence_3 = { 68???????? e8???????? 50 57 53 e8???????? 83c410 }
            // n = 7, score = 100
            //   68????????           |                     
            //   e8????????           |                     
            //   50                   | push                eax
            //   57                   | push                edi
            //   53                   | push                ebx
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10

        $sequence_4 = { ff755c 8d45ec 6a64 50 684d040000 }
            // n = 5, score = 100
            //   ff755c               | push                dword ptr [ebp + 0x5c]
            //   8d45ec               | lea                 eax, [ebp - 0x14]
            //   6a64                 | push                0x64
            //   50                   | push                eax
            //   684d040000           | push                0x44d

        $sequence_5 = { 6a20 8d856cffffff 50 6a20 68???????? 57 57 }
            // n = 7, score = 100
            //   6a20                 | push                0x20
            //   8d856cffffff         | lea                 eax, [ebp - 0x94]
            //   50                   | push                eax
            //   6a20                 | push                0x20
            //   68????????           |                     
            //   57                   | push                edi
            //   57                   | push                edi

        $sequence_6 = { eb06 8a802c800079 c20400 57 8b7c2408 33d2 83ff02 }
            // n = 7, score = 100
            //   eb06                 | jmp                 8
            //   8a802c800079         | mov                 al, byte ptr [eax + 0x7900802c]
            //   c20400               | ret                 4
            //   57                   | push                edi
            //   8b7c2408             | mov                 edi, dword ptr [esp + 8]
            //   33d2                 | xor                 edx, edx
            //   83ff02               | cmp                 edi, 2

        $sequence_7 = { 51 50 a4 8b35???????? 68???????? 33ff }
            // n = 6, score = 100
            //   51                   | push                ecx
            //   50                   | push                eax
            //   a4                   | movsb               byte ptr es:[edi], byte ptr [esi]
            //   8b35????????         |                     
            //   68????????           |                     
            //   33ff                 | xor                 edi, edi

        $sequence_8 = { 56 8d85e8fdffff 50 8d8564faffff 68???????? 50 ffd3 }
            // n = 7, score = 100
            //   56                   | push                esi
            //   8d85e8fdffff         | lea                 eax, [ebp - 0x218]
            //   50                   | push                eax
            //   8d8564faffff         | lea                 eax, [ebp - 0x59c]
            //   68????????           |                     
            //   50                   | push                eax
            //   ffd3                 | call                ebx

        $sequence_9 = { 8975f8 895df4 e8???????? 8b4d10 56 8b75fc 8d041e }
            // n = 7, score = 100
            //   8975f8               | mov                 dword ptr [ebp - 8], esi
            //   895df4               | mov                 dword ptr [ebp - 0xc], ebx
            //   e8????????           |                     
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]
            //   56                   | push                esi
            //   8b75fc               | mov                 esi, dword ptr [ebp - 4]
            //   8d041e               | lea                 eax, [esi + ebx]

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