SYMBOLCOMMON_NAMEaka. SYNONYMS
win.cadelspy (Back to overview)

CadelSpy

aka: Cadelle
VTCollection    

CadelSpy is a spyware supposedly used by Iranian threat actors. It has several functions such as logging keystrokes, record audio, capture screenshots and webcam photos, and steal any documents that are sent to a printer.

References
2015-12-07SymantecSymantec
Backdoor.Cadelspy and Backdoor.Remexi: indicators of compromise
CadelSpy Remexi
2015-12-07SymantecSecurity Response
Iran-based attackers use back door threats to spy on Middle Eastern targets
CadelSpy Remexi Cadelle
Yara Rules
[TLP:WHITE] win_cadelspy_auto (20241030 | Detects win.cadelspy.)
rule win_cadelspy_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2024-10-31"
        version = "1"
        description = "Detects win.cadelspy."
        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.cadelspy"
        malpedia_rule_date = "20241030"
        malpedia_hash = "26e26953c49c8efafbf72a38076855d578e0a2e4"
        malpedia_version = "20241030"
        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 = { e8???????? 8d842460020000 8d4802 668b10 40 40 }
            // n = 6, score = 100
            //   e8????????           |                     
            //   8d842460020000       | lea                 eax, [esp + 0x260]
            //   8d4802               | lea                 ecx, [eax + 2]
            //   668b10               | mov                 dx, word ptr [eax]
            //   40                   | inc                 eax
            //   40                   | inc                 eax

        $sequence_1 = { 83e01f c1fa05 8b1495004c0110 59 c1e006 59 }
            // n = 6, score = 100
            //   83e01f               | and                 eax, 0x1f
            //   c1fa05               | sar                 edx, 5
            //   8b1495004c0110       | mov                 edx, dword ptr [edx*4 + 0x10014c00]
            //   59                   | pop                 ecx
            //   c1e006               | shl                 eax, 6
            //   59                   | pop                 ecx

        $sequence_2 = { 83e01f c1f905 8b0c8d004c0110 c1e006 03c1 f6400401 7524 }
            // n = 7, score = 100
            //   83e01f               | and                 eax, 0x1f
            //   c1f905               | sar                 ecx, 5
            //   8b0c8d004c0110       | mov                 ecx, dword ptr [ecx*4 + 0x10014c00]
            //   c1e006               | shl                 eax, 6
            //   03c1                 | add                 eax, ecx
            //   f6400401             | test                byte ptr [eax + 4], 1
            //   7524                 | jne                 0x26

        $sequence_3 = { 2bc1 d1f8 6683bc44760400005c 7411 }
            // n = 4, score = 100
            //   2bc1                 | sub                 eax, ecx
            //   d1f8                 | sar                 eax, 1
            //   6683bc44760400005c     | cmp    word ptr [esp + eax*2 + 0x476], 0x5c
            //   7411                 | je                  0x13

        $sequence_4 = { a1???????? 33c5 89857c070000 53 8b9d88070000 56 57 }
            // n = 7, score = 100
            //   a1????????           |                     
            //   33c5                 | xor                 eax, ebp
            //   89857c070000         | mov                 dword ptr [ebp + 0x77c], eax
            //   53                   | push                ebx
            //   8b9d88070000         | mov                 ebx, dword ptr [ebp + 0x788]
            //   56                   | push                esi
            //   57                   | push                edi

        $sequence_5 = { 57 ff742418 57 e8???????? 83c40c ff742414 }
            // n = 6, score = 100
            //   57                   | push                edi
            //   ff742418             | push                dword ptr [esp + 0x18]
            //   57                   | push                edi
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   ff742414             | push                dword ptr [esp + 0x14]

        $sequence_6 = { 6683bc447e0600005c 7411 68???????? 8d9c2484060000 e8???????? 8d44244c }
            // n = 6, score = 100
            //   6683bc447e0600005c     | cmp    word ptr [esp + eax*2 + 0x67e], 0x5c
            //   7411                 | je                  0x13
            //   68????????           |                     
            //   8d9c2484060000       | lea                 ebx, [esp + 0x684]
            //   e8????????           |                     
            //   8d44244c             | lea                 eax, [esp + 0x4c]

        $sequence_7 = { 83ffff 741d 8b54240c 56 6a64 8d442444 59 }
            // n = 7, score = 100
            //   83ffff               | cmp                 edi, -1
            //   741d                 | je                  0x1f
            //   8b54240c             | mov                 edx, dword ptr [esp + 0xc]
            //   56                   | push                esi
            //   6a64                 | push                0x64
            //   8d442444             | lea                 eax, [esp + 0x44]
            //   59                   | pop                 ecx

        $sequence_8 = { 57 6689842484060000 8d842486060000 56 50 e8???????? 83c40c }
            // n = 7, score = 100
            //   57                   | push                edi
            //   6689842484060000     | mov                 word ptr [esp + 0x684], ax
            //   8d842486060000       | lea                 eax, [esp + 0x686]
            //   56                   | push                esi
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc

        $sequence_9 = { 59 56 57 ff15???????? 68???????? e8???????? 68???????? }
            // n = 7, score = 100
            //   59                   | pop                 ecx
            //   56                   | push                esi
            //   57                   | push                edi
            //   ff15????????         |                     
            //   68????????           |                     
            //   e8????????           |                     
            //   68????????           |                     

    condition:
        7 of them and filesize < 204800
}
[TLP:WHITE] win_cadelspy_w0   (20170410 | No description)
rule win_cadelspy_w0 {
    meta:
        author = "Symantec"
        source = "http://www.symantec.com/content/en/us/enterprise/media/security_response/docs/CadelSpy-Remexi-IOC.pdf"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cadelspy"
        malpedia_version = "20170410"
        malpedia_sharing = "TLP:WHITE"
        malpedia_license = ""
    strings:
        $s1 = { 
                56 57 8B F8 8B F1 33 C0 3B F0 74 22 39 44 24 0C
                74 18 0F B7 0F 66 3B C8 74 10 66 89 0A 42 42 47
                47 4E FF 4C 24 0C 3B F0 75 E2 3B F0 75 07 4A 4A
                B8 7A 00 07 80 33 C9 5F 66 89 0A 5E C2 04 00
              }
        $s2 = "ntsvc32"
        $s3 = "ntbind32"
    condition:
        $s1 and ($s2 or $s3)
}
[TLP:WHITE] win_cadelspy_w1   (20170410 | No description)
rule win_cadelspy_w1 {
    meta:
        author = "Symantec"
        source = "http://www.symantec.com/content/en/us/enterprise/media/security_response/docs/CadelSpy-Remexi-IOC.pdf"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cadelspy"
        malpedia_version = "20170410"
        malpedia_sharing = "TLP:WHITE"
        malpedia_license = ""
    strings:
        $s1  = "[EXECUTE]" wide ascii
        $s2  = "WebCamCapture" wide ascii
        $s3  = "</DAY>" wide ascii
        $s4  =
        "</DOCUMENT>" wide ascii
        $s5  = "<DOCUMENT>" wide ascii
        $s6  = "<DATETIME>" wide ascii
        $s7  = "Can't open file for reading :" wide ascii
        $s8  = "</DATETIME>" wide ascii
        $s9  = "</USERNAME>" wide ascii
        $s10 = "JpegFile :" wide ascii
        $s12 = "[SCROLL]" wide ascii
        $s13 = "<YEAR>" wide ascii
        $s14 = "CURRENT DATE" wide ascii
        $s15 = "</YEAR>" wide ascii
        $s16 = "</MONTH>" wide ascii
        $s17 = "<PRINTERNAME>" wide ascii
        $s18 = "</DRIVE>" wide ascii
        $s19 = "<DATATYPE>" wide ascii
        $s20 = "<MACADDRESS>" wide ascii
        $s21 = "FlashMemory" wide ascii
    condition:
        12 of them
}
[TLP:WHITE] win_cadelspy_w2   (20170410 | No description)
rule win_cadelspy_w2 {
    meta:
        author = "Symantec"
        source = "http://www.symantec.com/content/en/us/enterprise/media/security_response/docs/CadelSpy-Remexi-IOC.pdf"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cadelspy"
        malpedia_version = "20170410"
        malpedia_sharing = "TLP:WHITE"
        malpedia_license = ""
    strings:
        $s1  = "SOFTWARE\\ntsvc32\\HDD" wide ascii
        $s2  = "SOFTWARE\\ntsvc32\\ROU" wide ascii
        $s3  = "SOFTWARE\\ntsvc32\\HST" wide ascii
        $s4  = "SOFTWARE\\ntsvc32\\FLS" wide ascii
        $s5  = "ntsvc32" wide ascii
        $s6  = ".Win$py." wide ascii
        $s7  = "C:\\users\\" wide ascii
        $s8  = "%system32%" wide ascii
        $s9  = "\\Local Settings\\Temp" wide ascii
        $s10 = "SVWATAUAVAW" wide ascii
        $s11 = "\\AppData\\Local" wide ascii
        $s12 = "\\AppData" wide ascii
    condition:
        6 of them
}
[TLP:WHITE] win_cadelspy_w3   (20170410 | No description)
rule win_cadelspy_w3 {
    meta:
        author = "Symantec"
        source = "http://www.symantec.com/content/en/us/enterprise/media/security_response/docs/CadelSpy-Remexi-IOC.pdf"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cadelspy"
        malpedia_version = "20170410"
        malpedia_sharing = "TLP:WHITE"
        malpedia_license = ""
    strings:
        $s1 = "AppInit_DLLs" wide ascii
        $s2 = { 5C 00 62 00 61 00 63 00 6B 00 75 00 70 00 00 }
        $s3 = { 5C 00 75 00 70 00 64 00 61 00 74 00 65 00 00 }
        $s4 = "\\cmd.exe" wide ascii
    condition:
        all of them
}
Download all Yara Rules