/* * YARA-Forge YARA Rule Package * https://github.com/YARAHQ/yara-forge * * Rule Package Information * Name: core * Description: Default YARA Rule Package - Core * YARA-Forge Version: 0.9.1 * YARA-QA Commit: 7f1c7f4ad5b5164aa49361bf2a772795202d7e36 * Minimum Quality: 70 * Force Include Importance Level: 80 * Force Exclude Importance Level: 50 * Minimum Age (in days): 1 * Minimum Score: 65 * Creation Date: 2026-03-15 * Number of Rules: 4997 * Skipped: 3044 (age), 857 (quality), 968 (score), 2039 (importance) */ /* * YARA Rule Set * Repository Name: R3c0nst * Repository: https://github.com/fboldewin/YARA-rules/ * Retrieval Date: 2026-03-15 * Git Commit: 54e9e6899b258b72074b2b4db6909257683240c2 * Number of Rules: 21 * Skipped: 3 (age), 2 (quality), 0 (score), 0 (importance) * * * LICENSE * * NO LICENSE SET */ rule R3C0NST_ATM_Malware_XFS_DIRECT : FILE { meta: description = "Detects ATM Malware XFS_DIRECT" author = "Frank Boldewin (@r3c0nst)" id = "d1551c50-d3d2-56fd-a6b7-198d3a26ac72" date = "2019-10-18" modified = "2019-10-19" reference = "https://twitter.com/r3c0nst/status/1185237040583106560" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.XFS_DIRECT.yar#L1-L37" license_url = "N/A" logic_hash = "844a334d0eb8516c0ef3780e48e3dbc8e23d41c80bdff10f01407b775e72709e" score = 75 quality = 90 tags = "FILE" hash1 = "3e023949fecd5d06b3dff9e86e6fcac6a9ec6c805b93118db43fb4e84fe43ee0" hash2 = "303f2a19b286ca5887df2a334f22b5690dda9f092e677786e2a8879044d8ad11" hash3 = "15d50938e51ee414124314095d3a27aa477f40413f83d6a2b2a2007efc5a623a" hash4 = "0f9cb4dc1ac2777be30145c3271c95a027758203d0de245ec390037f7325d79d" hash5 = "141ae291ddae60fd1b232f543bc9b40f3a083521cd7330c427bb8fc5cdd23966" hash6 = "66eb1a8134576db05382109eec7e297149f25a021aba5171d2f99aa49c381456" hash7 = "ac20b12beefb2036595780aaf7ec29203e2e09b6237d93cd26eaa811cebd6665" hash8 = "901fc474f50eb62edc526593208a7eec4df694e342ffc5b895d1dcec953c6899" hash9 = "56548c26741b25b15c27a0de498c5e04c69b0c9250ba35e3a578bc2f05eedd07" hash10 = "c89f1d562983398ab2d6dd75e4e30cc0e95eab57cdf48c4a17619dca9ecc0748" strings: $EncLayer1 = {0F B6 51 FC 30 50 FF 0F B6 11 30 10 0F B6 51 04 30 50 01 0F B6 51 08 30 50 02} $EncLayer2 = {B8 4D 5A 00 00 89 33 66 39 06 75 ?? 8b ?? 3c} $String1 = "NOW ENTER MASTER KEY" ascii nocase $String2 = "Closing app, than delete myself." ascii nocase $String3 = "Number of phisical cash units is:" ascii nocase $String4 = "COULD NOT ENABLE or DISABLE connection" ascii nocase $String5 = "XFS_DIRECT" ascii nocase $String6 = "Take the money you snicky mother fucker :)" ascii nocase $String7 = "ATM IS TEMPORARILY OUT OF SERVICE!" wide nocase $Code1 = {D1 F8 89 44 24 10 DB 44 24 10 DC 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 35 2F 81 0B 00 A3} $Code2 = {8B ?? ?? ?? 68 2E 01 00 00 52 C7 ?? 06 01 00 00 00} condition: uint16( 0 ) == 0x5A4D and ( filesize < 1500KB and all of ( $EncLayer* ) ) or ( filesize < 300KB and 4 of ( $String* ) and all of ( $Code* ) ) } rule R3C0NST_Ransomware_Germanwiper : FILE { meta: description = "Detects RansomWare GermanWiper in Memory or in unpacked state" author = "Frank Boldewin (@r3c0nst)" id = "ea71849e-62a1-5b4d-9cf7-0728192361cc" date = "2019-08-05" modified = "2019-08-05" reference = "https://twitter.com/r3c0nst/status/1158326526766657538" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/Ransomware.Germanwiper.yar#L1-L25" license_url = "N/A" logic_hash = "563ad59abd09d9a5fcfcf5ed48dc1e3c48b4bb198c20721d5af531da20d2b0d3" score = 75 quality = 90 tags = "FILE" hash_packed = "41364427dee49bf544dcff61a6899b3b7e59852435e4107931e294079a42de7c" hash_unpacked = "708967cad421bb2396017bdd10a42e6799da27e29264f4b5fb095c0e3503e447" strings: $PurgeCode = {6a 00 8b 47 08 50 6a 00 6a 01 e8 ?? ?? ?? ?? 50 e8 ?? ?? ?? ?? 8b f0 8b d7 8b c3 e8} $Mutex1 = "HSDFSD-HFSD-3241-91E7-ASDGSDGHH" nocase ascii $Mutex2 = "cFgxTERNWEVhM2V" nocase ascii $ProcessKill1 = "oracle.exe" nocase ascii $ProcessKill2 = "sqbcoreservice.exe" nocase ascii $ProcessKill3 = "isqlplussvc.exe" nocase ascii $ProcessKill4 = "mysqld.exe" nocase ascii $KillShadowCopies = "vssadmin.exe delete shadows" nocase ascii $Domain1 = "cdnjs.cloudflare.com" nocase ascii $Domain2 = "expandingdelegation.top" nocase ascii $RansomNote = "Entschluesselungs_Anleitung.html" nocase ascii condition: uint16( 0 ) == 0x5A4D and filesize < 1000KB and 5 of them } rule R3C0NST_ATM_Malware_Xfscashncr : FILE { meta: description = "Detects ATM Malware XFSCashNCR" author = "Frank Boldewin (@r3c0nst)" id = "8886cd00-4f4a-5f25-99e0-0806f5e1b4b4" date = "2019-08-28" modified = "2019-08-28" reference = "https://twitter.com/r3c0nst/status/1166773324548063232" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.XFSCashNCR.yar#L1-L21" license_url = "N/A" logic_hash = "87f197058d4b515cb4829b5e403a96b88eb95cda81e53a9e1484df8c743d8c4a" score = 75 quality = 90 tags = "FILE" hash1 = "d6dff67a6b4423b5721908bdcc668951f33b3c214e318051c96e8c158e8931c0" strings: $Code1 = {50 8b 4d e8 8b 51 10 52 6a 00 68 2d 01 00 00 8b 45 e8 0f b7 48 1c 51 e8} $Code2 = {52 8d 45 d0 50 68 2e 01 00 00 8b 4d e8 0f b7 51 1c 52 e8} $StatusMessage1 = "[+] Ingrese Denominacion ISO" nocase ascii $StatusMessage2 = "[+] Ingrese numero de billetes" nocase ascii $StatusMessage3 = "[!] FAIL.. dispensadores no encontrados" nocase ascii $StatusMessage4 = "[!] Unable continue, IMPOSIBLE abrir dispenser" nocase ascii $PDB = "C:\\Users\\cyttek\\Downloads\\xfs_cashXP\\Debug\\xfs_cash_ncr.pdb" nocase ascii $LogFile = "XfsLog.txt" nocase ascii condition: uint16( 0 ) == 0x5A4D and filesize < 1500KB and 4 of them } rule R3C0NST_UNC2891_Steelcorgi : FILE { meta: description = "Detects UNC2891 Steelcorgi packed ELF binaries" author = "Frank Boldewin (@r3c0nst)" id = "94da7da5-5fc3-5221-97d6-1854aa7b1959" date = "2022-03-30" modified = "2023-01-05" reference = "https://github.com/fboldewin/YARA-rules/" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/UNC2891_Steelcorgi.yar#L1-L17" license_url = "N/A" logic_hash = "4f956b9eaec66bc606ffd0afa2fe9303194e9a8c12d4c3de6ab2334c9856dd99" score = 75 quality = 90 tags = "FILE" hash1 = "0760cd30d18517e87bf9fd8555513423db1cd80730b47f57167219ddbf91f170" hash2 = "3560ed07aac67f73ef910d0b928db3c0bb5f106b5daee054666638b6575a89c5" hash3 = "5b4bb50055b31dbd897172583c7046dd27cd03e1e3d84f7a23837e8df7943547" strings: $pattern1 = {70 61 64 00 6C 63 6B 00} $pattern2 = {FF 72 FF 6F FF 63 FF 2F FF 73 FF 65 FF 6C FF 66 FF 2F FF 65 FF 78 FF 65} condition: uint32( 0 ) == 0x464c457f and all of them } rule R3C0NST_ATM_Malware_Dispcashbr : FILE { meta: description = "Detects ATM Malware DispCashBR" author = "Frank Boldewin (@r3c0nst)" id = "17d22120-0ca2-5b27-9816-21ab4a6fb20c" date = "2020-02-27" modified = "2020-08-17" reference = "https://twitter.com/r3c0nst/status/1232944566208286720" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.DispCashBR.yar#L1-L21" license_url = "N/A" logic_hash = "3fb5d62cb779ddc13e9b938290dfa9d2a3353d7969e639a662c1bcaca945de4d" score = 75 quality = 90 tags = "FILE" hash1 = "7cea6510434f2c8f28c9dbada7973449bb1f844cfe589cdc103c9946c2673036" strings: $String1 = "(*) Dispensando: %lu" ascii nocase $String2 = "COMANDO EXECUTADO COM SUCESSO" ascii nocase $String3 = "[+] FOI SACADO: %lu R$ [+]" ascii nocase $DbgStr1 = "_Get_Information_cdm_cuinfo" ascii nocase $DbgStr2 = "_GET_INFORMATION_SHUTTER" ascii nocase $Code1 = {C7 44 24 08 00 00 00 00 C7 44 24 04 2F 01 00 00 89 04 24 E8} $Code2 = {C7 44 24 08 00 00 00 00 C7 44 24 04 17 05 00 00 89 04 24 E8} $Code3 = {89 4C 24 08 C7 44 24 04 2E 01 00 00 89 04 24 E8} condition: uint16( 0 ) == 0x5A4D and filesize < 100KB and 2 of ( $String* ) and 1 of ( $DbgStr* ) and all of ( $Code* ) } rule R3C0NST_ATM_Malware_XFS_ALICE : FILE { meta: description = "Detects ATM Malware ALICE" author = "Frank Boldewin (@r3c0nst)" id = "6132730c-4684-517a-b90d-98ed250e2cba" date = "2020-01-09" modified = "2020-08-17" reference = "https://twitter.com/r3c0nst/status/1215265889844637696" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.ALICE.yar#L1-L22" license_url = "N/A" logic_hash = "7dca049f024f09c2e778b0693a1015d1fc5a006fc564de914e85231cb5d73da3" score = 75 quality = 90 tags = "FILE" hash1 = "6b2fac8331e4b3e108aa829b297347f686ade233b24d94d881dc4eff81b9eb30" strings: $String1 = "Project Alice" ascii nocase $String2 = "Can't dispense requested amount." ascii nocase $String3 = "Selected cassette is unavailable" ascii nocase $String4 = "ATM update manager" wide nocase $String5 = "Input PIN-code for access" wide nocase $String6 = "Supervisor ID" wide nocase $Code1 = {50 68 08 07 00 00 6A 00 FF 75 0C FF 75 08 E8} $Code2 = {50 6A 00 FF 75 10 FF 75 0C FF 75 08 E8} $Code3 = {68 ?? ?? ?? ?? 53 E8 ?? ?? ?? ?? 0B C0 75 29 6A} condition: uint16( 0 ) == 0x5A4D and filesize < 200KB and 4 of ( $String* ) and all of ( $Code* ) } rule R3C0NST_Gamaredon_Getimportbyhash : FILE { meta: description = "Detects Gamaredon APIHashing" author = "Frank Boldewin (@r3c0nst)" id = "8f28273e-e8ca-52cb-8dbc-a235598b1975" date = "2021-05-12" modified = "2021-05-12" reference = "https://github.com/fboldewin/YARA-rules/" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/APT.Gamaredon.GetImportByHash.yar#L1-L16" license_url = "N/A" logic_hash = "b3baebfb745ebc7b9e6df746bfa9622f925b8e8130932e44a148881e7d1fc162" score = 75 quality = 90 tags = "FILE" hash1 = "2d03a301bae0e95a355acd464afc77fde88dd00232aad6c8580b365f97f67a79" hash2 = "43d6e56515cca476f7279c3f276bf848da4bc13fd15fad9663b9e044970253e8" hash3 = "5c09f6ebb7243994ddc466058d5dc9920a5fced5e843200b1f057bda087b8ba6" strings: $ParseImgExportDir = { 8B 50 3C 03 D0 8B 52 78 03 D0 8B 4A 1C 03 C8 } $djb2Hashing = { 8B 75 08 BA 05 15 00 00 8B C2 C1 E2 05 03 D0 33 DB 8A 1E 03 D3 46 33 DB 8A 1E 85 DB 75 } condition: uint16( 0 ) == 0x5a4d and all of them } rule R3C0NST_UNC2891_Winghook : FILE { meta: description = "Detects UNC2891 Winghook Keylogger" author = "Frank Boldewin (@r3c0nst)" id = "e5955fa0-8204-58e3-88a6-de4b47756ede" date = "2022-03-30" modified = "2023-01-05" reference = "https://github.com/fboldewin/YARA-rules/" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/UNC2891_Winghook.yar#L1-L17" license_url = "N/A" logic_hash = "b821d0809a91c54d06764f5a04c458ec7190b41823b2fe65d198342715f22050" score = 75 quality = 90 tags = "FILE" hash1 = "d071ee723982cf53e4bce89f3de5a8ef1853457b21bffdae387c4c2bd160a38e" strings: $code1 = {01 F9 81 E1 FF 00 00 00 41 89 CA [15] 44 01 CF 81 E7 FF 00 00 00} $code2 = {83 E2 0F 0F B6 14 1? 32 14 01 88 14 0? 48 83 ?? ?? 48 83 ?? ?? 75} $str1 = "fgets" ascii $str2 = "read" ascii condition: uint32( 0 ) == 0x464c457f and filesize < 100KB and 1 of ( $code* ) and all of ( $str* ) } rule R3C0NST_ATM_Malware_NVISOSPIT : FILE { meta: description = "Detects ATM Malware NVISOSPIT" author = "Frank Boldewin (@r3c0nst)" id = "faf9e78e-9d7a-5c9b-a08e-90b895333d5c" date = "2019-05-31" modified = "2019-05-31" reference = "https://twitter.com/r3c0nst/status/1134403094157115392" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.NVISOSPIT.yar#L3-L18" license_url = "N/A" hash = "d7ce7b152f0da49e96fa32a9336b35253905d9940b001288d0df55d8f8b3951f" logic_hash = "11c1fea74b72a7821ce76a95846a2caff7354e71906496d9530cb44339a49a98" score = 75 quality = 90 tags = "FILE" strings: $MalwareName = "NVISOSPIT" ascii fullword $DispenseCommand = "Calling WFSExecute() to dispense $%d" fullword ascii $Code = {C6 85 7D F9 FF FF 4D C6 85 7E F9 FF FF 4D C6 85 7F F9 FF FF 4B} condition: uint16( 0 ) == 0x5A4D and filesize < 100KB and 2 of them } rule R3C0NST_Prolock_Malware : FILE { meta: description = "Detects Prolock malware in encrypted and decrypted mode" author = "Frank Boldewin (@r3c0nst)" id = "1440b5f5-f1e7-522e-8852-84c326858bb9" date = "2020-05-17" modified = "2020-05-20" reference = "https://raw.githubusercontent.com/fboldewin/YARA-rules/master/Prolock.Malware.yar" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/Prolock.Malware.yar#L1-L20" license_url = "N/A" logic_hash = "7502011eba1e36c8ec699f1b627c4980cc3009bb43c5aa5a58571330e93211ea" score = 75 quality = 90 tags = "FILE" hash1 = "a6ded68af5a6e5cc8c1adee029347ec72da3b10a439d98f79f4b15801abd7af0" hash2 = "dfbd62a3d1b239601e17a5533e5cef53036647901f3fb72be76d92063e279178" strings: $DecryptionRoutine1 = {31 04 1A 81 3C 1A 90 90 90 90 74} $DecryptionRoutine2 = {83 C3 04 81 3C 1A C4 C4 C4 C4 74} $DecryptedString1 = "support981723721@protonmail.com" nocase ascii $DecryptedString2 = "Your files have been encrypted by ProLock Ransomware" nocase ascii $DecryptedString3 = "msaoyrayohnp32tcgwcanhjouetb5k54aekgnwg7dcvtgtecpumrxpqd.onion" nocase ascii $CryptoCode = {B8 63 51 E1 B7 31 D2 8D BE ?? ?? ?? ?? B9 63 51 E1 B7 81 C1 B9 79 37 9E} condition: (( uint16( 0 ) == 0x5A4D ) or ( uint16( 0 ) == 0x4D42 ) ) and filesize < 100KB and all of ( $DecryptionRoutine* ) or ( 1 of ( $DecryptedString* ) and $CryptoCode ) } rule R3C0NST_Aplib_Decompression : FILE { meta: description = "Detects aPLib decompression code often used in malware" author = "@r3c0nst" id = "f45c73f5-d316-5fea-a8c4-fd930733415f" date = "2021-03-24" modified = "2021-03-25" reference = "https://ibsensoftware.com/files/aPLib-1.1.1.zip" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/aPLib_decompression.yar#L1-L16" license_url = "N/A" logic_hash = "1150701724fdb487ebe8fb959afd12fff37a8e9137cb94e78e976a2566ec5fa4" score = 75 quality = 90 tags = "FILE" strings: $pattern1 = { FC B2 80 31 DB A4 B3 02 } $pattern2 = { AC D1 E8 74 ?? 11 C9 EB } $pattern3 = { 73 0A 80 FC 05 73 ?? 83 F8 7F 77 } condition: filesize < 10MB and all of them } rule R3C0NST_Stealbit : FILE { meta: description = "Detects Stealbit used by Lockbit 2.0 Ransomware Gang" author = "Frank Boldewin (@r3c0nst)" id = "07b466cb-92b3-51f2-a702-2930bb7038c6" date = "2021-08-12" modified = "2021-08-12" reference = "https://raw.githubusercontent.com/fboldewin/YARA-rules/master/Lockbit2.Stealbit.yar" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/Lockbit2.Stealbit.yar#L1-L15" license_url = "N/A" logic_hash = "e5f770cc5887f09af0c5550073d51b9e5ffa9dcfa4db6b77bb28643f0f6224fb" score = 75 quality = 90 tags = "FILE" hash1 = "3407f26b3d69f1dfce76782fee1256274cf92f744c65aa1ff2d3eaaaf61b0b1d" hash2 = "bd14872dd9fdead89fc074fdc5832caea4ceac02983ec41f814278130b3f943e" strings: $C2Decryption = {33 C9 8B C1 83 E0 0F 8A 80 ?? ?? ?? ?? 30 81 ?? ?? ?? ?? 41 83 F9 7C 72 E9 E8} condition: uint16( 0 ) == 0x5A4D and filesize < 100KB and $C2Decryption } rule R3C0NST_ATM_Malware_Loup : FILE { meta: description = "Detects ATM Malware Loup" author = "Frank Boldewin (@r3c0nst)" id = "4786362f-b2c5-5b69-8b06-9216561286e6" date = "2020-08-17" modified = "2020-08-17" reference = "https://twitter.com/r3c0nst/status/1295275546780327936" source_url = "https://github.com/fboldewin/YARA-rules//blob/54e9e6899b258b72074b2b4db6909257683240c2/ATM.Malware.Loup.yar#L1-L16" license_url = "N/A" hash = "6c9e9f78963ab3e7acb43826906af22571250dc025f9e7116e0201b805dc1196" logic_hash = "39efced4ee3a6147acf5732e4be3a5e9859268b35b79f5e8e87d7c4d77a588c0" score = 75 quality = 90 tags = "FILE" strings: $String1 = "C:\\Users\\muham\\source\\repos\\loup\\Debug\\loup.pdb" ascii nocase $String2 = "CurrencyDispenser1" ascii nocase $Code = {50 68 C0 D4 01 00 8D 4D E8 51 68 2E 01 00 00 0F B7 55 08 52 E8} condition: uint16( 0 ) == 0x5A4D and filesize < 100KB and all of ( $String* ) and $Code } /* * YARA Rule Set * Repository Name: CAPE * Repository: https://github.com/kevoreilly/CAPEv2 * Retrieval Date: 2026-03-15 * Git Commit: 539d7ad94675d7caee5eee0816d49af6654efb20 * Number of Rules: 168 * Skipped: 0 (age), 38 (quality), 0 (score), 0 (importance) * * * LICENSE * * Cuckoo Sandbox is copyrighted by the Cuckoo Foundation and is licensed under the following GNU General Public License version 3. GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS The file UserDB.txt is copyrighted by BoB / Team PEiD distributed under the following MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The file jquery.js is copyrighted by John Resig and dual licensed under the MIT or GPL Version 2 licenses (see: http://jquery.org/license). The files lightbox.js and lightbox.css are copyrighted by Lokesh Dhakar and licensed under the Creative Commons Attribution 2.5 License (see: http://creativecommons.org/licenses/by/2.5/). The files bootstrap-fileupload.js, jasny-bootstrap.js, jasny-bootstrap.min.js, jasny-bootstrap.css, jasny-bootstrap.min.css, jasny-bootstrap-responsive.css, jasny-bootstrap-responsive.min.css are copyrighted by Jasny BV and licensed under the Apache License, Version 2.0. The files bootstrap.min.js, bootstrap.min.css, bootstrap-responsive.min.css, glyphicons-halflings.png, glyphicons-halflings-white.png are copyrighted by Twitter, Inc. and licensed under the Apache License, Version 2.0. The file analyzer/windows/modules/amsi.py uses parts of pywintrace (https://github.com/fireeye/pywintrace), which is copyrighted by FireEye, Inc. and licensed under the Apache License, Version 2.0. */ rule CAPE_Lumma : FILE { meta: description = "Lumma config extraction" author = "kevoreilly" id = "b2166620-3070-5727-b189-e6959cc5b698" date = "2024-01-05" modified = "2024-05-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Lumma.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "a8f9212b619796f91f14c4164e4d2f30c66b51118f22f3d6c310841b6707b7b0" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$decode+5,action0=string:ebp,count=0,bp1=$patch+8,action1=skip,typestring=Lumma Config" packed = "0ee580f0127b821f4f1e7c032cf76475df9724a9fade2e153a69849f652045f8" strings: $c2 = {8D 44 24 ?? 50 89 4C 24 ?? FF 31 E8 [4] 83 C4 08 B8 FF FF FF FF} $decode = {C6 44 05 00 00 83 C4 2C 5E 5F 5B 5D C3} $patch = {66 C7 0? 00 00 8B 46 1? C6 00 01 8B} condition: uint16( 0 ) == 0x5a4d and 2 of them } rule CAPE_Buerloader : FILE { meta: description = "BuerLoader RDTSC Trap Bypass" author = "kevoreilly" id = "38f01199-6bd2-5519-b570-8c0f46e74286" date = "2021-03-13" modified = "2021-03-13" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/BuerLoader.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6f9f9b4c01251c0643c61701084cca2bdfeea08ca95f982355565cf05483d940" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$trap+43,action0=skip,count=0" strings: $trap = {0F 31 89 45 ?? 6A 00 8D 45 ?? 8B CB 50 E8 [4] 0F 31} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Doomedloader : FILE { meta: description = "No description has been set in the source file - CAPE" author = "kevoreilly" id = "88436e71-360e-5719-989f-24e71591ebe0" date = "2024-04-12" modified = "2024-07-25" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/DoomedLoader.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "54a5962ef49ebf987908c4ea1559788f7c96a7e4ea61d2973636e998a0239c77" score = 75 quality = 70 tags = "FILE" cape_options = "clear,bp0=$anti*-4,action0=setzeroflag,sysbp=$syscall+7,count=0,procdump=2" packed = "914b1b3180e7ec1980d0bafe6fa36daade752bb26aec572399d2f59436eaa635" strings: $anti = {48 8B 4C 24 ?? E8 [4] 84 C0 B8 [4] 41 0F 45 C6 EB} $syscall = {49 89 CA 8B 44 24 08 FF 64 24 10} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Latrodectus : FILE { meta: description = "Latrodectus export selection" author = "kevoreilly" id = "7c6f167a-6b76-5509-b164-306d1cd19b0f" date = "2024-02-26" modified = "2024-02-26" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Latrodectus.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "378d220bc863a527c2bca204daba36f10358e058df49ef088f8b1045604d9d05" logic_hash = "c2c9f23e287253d766425c05eb774f6e07bdcbabc259e04b723a1a87c8b91fbd" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $export = {48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 83 EC 30 4C 8B 05 [4] 33 D2 C7 40 [5] 88 50 ?? 49 63 40 3C 42 8B 8C 00 88 00 00 00 85 C9 0F 84} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Blister : FILE { meta: description = "Blister Sleep Bypass" author = "kevoreilly" id = "34657bab-f100-5ea8-9111-da2806f46b79" date = "2022-05-10" modified = "2024-05-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Blister.yar#L1-L17" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "aba379b93c85241cf250829832b2c8a5eaafb3abd0ff955dbaf0d06489c00deb" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$sleep1+6,bp1=$sleep2+7,action0=setsignflag,action1=clearcarryflag,count=3" packed = "0a7778cf6f9a1bd894e89f282f2e40f9d6c9cd4b72be97328e681fe32a1b1a00" packed = "afb77617a4ca637614c429440c78da438e190dd1ca24dc78483aa731d80832c2" strings: $sleep1 = {FF FF 83 7D F0 00 (E9|0F 8?)} $sleep2 = {81 7D D8 90 B2 08 00 (E9|0F 8?)} $protect = {50 6A 20 8D 45 ?? 50 8D 45 ?? 50 6A FF FF D7} $lock = {56 33 F6 B9 FF FF FF 7F 89 75 FC 8B C1 F0 FF 45 FC 83 E8 01 75 F7} $comp = {6A 04 59 A1 [4] 8B 78 04 8B 75 08 33 C0 F3 A7 75 0B 8B 45 0C 83 20 00 33 C0 40 EB 02 33 C0} condition: uint16( 0 ) == 0x5A4D and 2 of ( $protect , $lock , $comp ) and all of ( $sleep* ) } rule CAPE_Dridexloader : FILE { meta: description = "DridexLoader API Spam Bypass" author = "kevoreilly" id = "a8b62f64-87a0-58d3-8876-9b0f6a7deb97" date = "2021-03-09" modified = "2021-03-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/DridexLoader.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "00a3e4e80a2558ee52035f091e2339fa2dad6f6515b9dc099f2f3800e4c70bce" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$trap-13,action0=ret,count=0" strings: $trap = {6A 50 6A 14 6A 03 5A 8D 4C 24 ?? E8 [4] 68 [4] 68 [4] E8 [4] 85 C0 74 05} condition: uint16( 0 ) == 0x5A4D and $trap } rule CAPE_Guloaderprecursor : FILE { meta: description = "Guloader precursor" author = "kevoreilly" id = "663f89d7-a18b-5b03-a7cb-52444a887fa4" date = "2020-12-29" modified = "2023-10-02" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Guloader.yar#L17-L28" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "ea05c352739366a03da302074b01537382ba26f7fd5049004f156e47d284f070" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$antidbg,action0=scan,hc0=1,count=0" strings: $antidbg = {39 48 04 (0F 85 [3] ??|75 ??) 39 48 08 (0F 85 [3] ??|75 ??) 39 48 0C (0F 85 [3] ??|75 ??)} $except = {8B 45 08 [0-3] 8B 00 [0-3] 8B 58 18 [0-20] 81 38 05 00 00 C0 0F 85 [4-7] 83 FB 00 (0F 84|74)} condition: 2 of them and not uint16( 0 ) == 0x5A4D } rule CAPE_Bumblebee : FILE { meta: description = "BumbleBee Anti-VM Bypass" author = "enzo & kevoreilly" id = "85e2c9fd-86de-57c8-99ec-de2cc3996876" date = "2022-04-21" modified = "2023-02-08" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/BumbleBee.yar#L34-L46" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "0a632a0b30b28d544880eb1cfdd85e95f455c343d60f8d6922d4196ef7415961" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$antivm1+2,bp1=$antivm2+2,bp1=$antivm3+38,action0=jmp,action1=skip,count=0,force-sleepskip=1" strings: $antivm1 = {84 C0 74 09 33 C9 FF [4] 00 CC 33 C9 E8 [3] 00 4? 8B C8 E8} $antivm2 = {84 C0 0F 85 [2] 00 00 33 C9 E8 [4] 48 8B C8 E8 [4] 48 8D 85} $antivm3 = {33 C9 E8 [4] 48 8B C8 E8 [4] 83 CA FF 48 8B 0D [4] FF 15 [4] E8 [4] 84 c0} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Socks5Systemz : FILE { meta: description = "Socks5Systemz config extraction" author = "kevoreilly" id = "ef14953a-2b48-54f4-8d15-c07c7459103e" date = "2024-05-22" modified = "2025-05-23" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Socks5Systemz.yar#L1-L19" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "7e324bacd1ea57585435b6a5a4c93bda63ca146c100f2361a1c5530b87668299" score = 75 quality = 70 tags = "FILE" cape_options = "br0=user32::wsprintfA,br1=ntdll::sprintf,action2=string:[esp],action3=string:[esp],count=0,typestring=Socks5Systemz Config" packed = "9b997d0de3fe83091726919a0dc653e22f8f8b20b1bb7d0b8485652e88396f29" strings: $chunk1 = {0F B6 84 8A [4] E9 [3] (00|FF)} $chunk2 = {0F B6 04 8D [4] E9 [3] (00|FF)} $chunk3 = {66 0F 6F 05 [4] E9 [3] (00|FF)} $chunk4 = {F0 0F B1 95 [4] E9 [3] (00|FF)} $chunk5 = {83 FA 04 E9 [3] (00|FF)} $chunk6 = {8A 04 8D [4] E9 [3] (00|FF)} $chunk7 = {83 C4 04 83 C4 04 E9} $chunk8 = {83 C2 04 87 14 24 5C E9} condition: uint16( 0 ) == 0x5A4D and 5 of them } rule CAPE_Modiloader : FILE { meta: description = "ModiLoader detonation shim" author = "kevoreilly" id = "64f9aa51-d668-5d40-9781-c26970acf781" date = "2023-10-19" modified = "2025-01-31" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/ModiLoader.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "1f0cbf841a6bc18d632e0bc3c591266e77c99a7717a15fc4b84d3e936605761f" logic_hash = "9e64e0c40192cc832a1ffa7b3ac65a704596af82515d03706cd7aa1f4498f32f" score = 75 quality = 70 tags = "FILE" cape_options = "exclude-apis=NtAllocateVirtualMemory:NtProtectVirtualMemory" strings: $epilog1 = {81 C2 A1 03 00 00 87 D1 29 D3 33 C0 5A 59 59 64 89 10 68} $epilog2 = {6A 00 6A 01 8B 45 ?? 50 FF 55 ?? 33 C0 5A 59 59 64 89 10 68} condition: uint16( 0 ) == 0x5a4d and all of them } rule CAPE_Amatera : FILE { meta: description = "Amatera syscall capture" author = "kevoreilly" id = "0d58a054-8636-58d8-99b9-26560aa6c187" date = "2025-06-25" modified = "2025-06-25" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Amatera.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "35eb93548a0c037d392f870c05e0e9fb1aeff3a5a505e1d4a087f7465ed1f6af" logic_hash = "1c02f04846568b85acbd4101b2e944dc824179f7cff1bceaec1c657939b610d5" score = 75 quality = 70 tags = "FILE" cape_options = "sysbp=$sysenter" strings: $sysenter = {64 FF 15 C0 00 00 00 C3} $harness = {0F B7 55 EC 52 E8 [4] 83 C4 04 C7 45 F0 [4] 8B 45 ?? 50 [0-40] FF 55 F0 83 C4 ?? 8B E5 5D C3} $socket = {66 89 [2] 6A 00 6A ?? 8D [3] 68 (03|07) 20 01 00 8B 4D F8 E8 [4] 0F B6 (C0|C8) 85 (C0|C9) 75 04 32 C0 EB} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Pikahook : FILE { meta: description = "Pikabot anti-hook bypass" author = "kevoreilly" id = "e1b7a807-135f-52d7-bc36-c0419e82b424" date = "2024-03-07" modified = "2024-03-12" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Pikabot.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "2a50a5f2d905122a5b7ac8ca3666b47caa24d325e246841129e53807daf2a1dd" score = 75 quality = 70 tags = "FILE" cape_options = "clear,sysbp=$indirect+40,sysbpmode=1,force-sleepskip=1" packed = "89dc50024836f9ad406504a3b7445d284e97ec5dafdd8f2741f496cac84ccda9" strings: $indirect = {31 C0 64 8B 0D C0 00 00 00 85 C9 74 01 40 50 8D 54 24 ?? E8 [4] A3 [4] 8B 25 [4] A1 [4] FF 15} $sysenter1 = {89 44 24 08 8D 85 20 FC FF FF C7 44 24 04 FF FF 1F 00 89 04 24 E8} $sysenter2 = {C7 44 24 0C 00 00 00 02 C7 44 24 08 00 00 00 02 8B 45 0C 89 44 24 04 8B 45 08 89 04 24 E8} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Pikexport : FILE { meta: description = "Pikabot export selection" author = "kevoreilly" id = "7d2432f2-90ae-5ad0-b579-5789a1c14a08" date = "2024-03-07" modified = "2024-03-12" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Pikabot.yar#L16-L28" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "238dcc5611ed9066b63d2d0109c9b623f54f8d7b61d5f9de59694cfc60a4e646" logic_hash = "33f58703a0e40c2361343dbdcc17111aafbf5cc912393edda79005c6ec566f42" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $export = {55 8B EC 83 EC ?? C6 45 [2] C6 45 [2] C6 45 [2] C6 45 [2] C6 45} $pe = {B8 08 00 00 00 6B C8 00 8B 55 ?? 8B 45 ?? 03 44 0A 78 89 45 ?? 8B 4D ?? 8B 51 18 89 55 E8 C7 45 F8 00 00 00 00} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Qakbot5 : FILE { meta: description = "QakBot WMI anti-anti-vm" author = "kevoreilly" id = "d287b043-15df-5865-ad4c-9eb64ceec04c" date = "2022-03-16" modified = "2024-02-16" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/QakBot.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "303ea2d8d1a7f0fd0ca5508dae2c1b83c03b1e3e975760f15d36d93bcc152767" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$loop+35,action0=skip,count=0" packed = "f4bb0089dcf3629b1570fda839ef2f06c29cbf846c5134755d22d419015c8bd2" strings: $loop = {8B 75 ?? 48 8B 4C [2] FF 15 [4] 48 8B 4C [2] 48 8B 01 FF 50 ?? 8B DE 48 8B 4C [2] 48 85 C9 0F 85 [4] EB 4E} $conf = {0F B7 1D [4] B9 [2] 00 00 E8 [4] 8B D3 48 89 45 ?? 45 33 C9 48 8D 0D [4] 4C 8B C0 48 8B F8 E8} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Qakbot4 : FILE { meta: description = "QakBot Config Extraction" author = "kevoreilly" id = "401184cf-bbd7-5afe-9589-470f54721af1" date = "2022-03-16" modified = "2024-02-16" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/QakBot.yar#L15-L29" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "ad75b07b9b786f634fd46cbe6dc089d3f732673320e70714e8ab058f0392c9f5" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$params+23,action0=setdump:eax::ecx,bp1=$c2list1+40,bp1=$c2list2+38,action1=dump,bp2=$conf+13,action2=dump,count=1,typestring=QakBot Config" packed = "f084d87078a1e4b0ee208539c53e4853a52b5698e98f0578d7c12948e3831a68" strings: $params = {8B 7D ?? 8B F1 57 89 55 ?? E8 [4] 8D 9E [2] 00 00 89 03 59 85 C0 75 08 6A FC 58 E9} $c2list1 = {59 59 8D 4D D8 89 45 E0 E8 [4] 8B 45 E0 85 C0 74 ?? 8B 90 [2] 00 00 51 8B 88 [2] 00 00 6A 00 E8} $c2list2 = {59 59 8B F8 8D 4D ?? 89 7D ?? E8 [4] 85 FF 74 52 8B 97 [2] 00 00 51 8B 8F [2] 00 00 53 E8} $conf = {5F 5E 5B C9 C3 51 6A 00 E8 [4] 59 59 85 C0 75 01 C3} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Cargobayloader : FILE { meta: description = "CargoBayLoader anti-vm bypass" author = "kevoreilly" id = "5b347863-0bea-55d2-aaf3-b3d6e604be89" date = "2023-02-20" modified = "2023-02-20" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/CargoBayLoader.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "75e975031371741498c5ba310882258c23b39310bd258239277708382bdbee9c" logic_hash = "1d5c4ca79f97e1fac358189a8c6530be12506974fc2fb42f63b0b621536a45c9" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$jmp1+4,action0=skip,bp1=$jmp2+2,action1=skip,count=1,force-sleepskip=1" strings: $jmp1 = {40 42 0F 00 0F 82 [2] 00 00 48 8D 15 [4] BF 04 00 00 00 41 B8 04 00 00 00 4C 8D [3] 4C 89 F1 E8} $jmp2 = {84 DB 0F 85 [2] 00 00 48 8D 15 [4] 41 BE 03 00 00 00 41 B8 03 00 00 00 4C 8D 7C [2] 4C 89 F9 E8} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Stealcanti : FILE { meta: description = "Stealc detonation bypass" author = "kevoreilly" id = "32e5c1cf-ef57-58eb-9deb-fab0064cc676" date = "2023-02-22" modified = "2025-09-01" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Stealc.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "77d6f1914af6caf909fa2a246fcec05f500f79dd56e5d0d466d55924695c702d" logic_hash = "4132e8094b0b49a89e9f40a8b1a6abbf105bbb04e4ddf3ce739e39fc2baf0d13" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$anti+17,action0=skip,count=1" strings: $anti = {53 57 57 57 FF 15 [4] 8B F0 74 03 75 01 B8 E8 [4] 74 03 75 01 B8} $decode = {6A 03 33 D2 8B F8 59 F7 F1 8B C7 85 D2 74 04 2B C2 03 C1 6A 06 C1 E0 03 33 D2 59 F7 F1} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Stealcstrings : FILE { meta: description = "Stealc string decryption" author = "kevoreilly" id = "087b5532-e1e7-5df9-adb2-bf758c8ba352" date = "2023-02-22" modified = "2025-09-01" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Stealc.yar#L15-L26" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6d402446a979c00b6257ace9924db381d98c530b22968bd2776c66d58c7faefc" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$decode+17,action0=string:edx,count=0,typestring=Stealc Strings" packed = "d0c824e886f14b8c411940a07dc133012b9eed74901b156233ac4cac23378add" strings: $decode = {51 8B 15 [4] 52 8B 45 ?? 50 E8 [4] 83 C4 0C 6A 04 6A 00 8D 4D ?? 51 FF 15 [4] 83 C4 0C 8B 45 ?? 8B E5 5D C3} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Stealcv2Strings : FILE { meta: description = "StealcV2 string decryption" author = "kevoreilly" id = "d99fcc9c-35cc-5494-a0cd-738f3ae8d367" date = "2023-02-22" modified = "2025-09-01" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Stealc.yar#L28-L43" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "923f70edb3ad70957576994008729bf7a087479eed1973c42161aa96fa694baa" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$decode32*,action0=string:[esp],bp1=$decode64,action1=string:eax,bp2=$dump,action2=dumpstrings,count=0,typestring=Stealc Strings" packed = "2f42dcf05dd87e6352491ff9d4ea3dc3f854df53d548a8da0c323be42df797b6" packed = "8301936f439f43579cffe98e11e3224051e2fb890ffe9df680bbbd8db0729387" strings: $decode32 = {AB AB AB AB 8B 45 0C 89 4E 10 89 4E 14 39 45 08 75 0B C7 46 14 0F 00 00 00 88 0E EB 0F 2B 45 08 50 51 FF 75 ?? 8B} $decode64 = {40 53 48 83 EC 20 48 8B 19 48 85 DB 74 ?? 48 8B 53 18 48 83 FA 0F 76 2C 48 8B 0B 48 FF C2 48 81 FA 00 10 00 00 72} $dump32 = {33 C0 89 46 30 88 46 34 89 46 38 89 46 3C 89 46 40 89 46 44 89 46 48 89 46 4C 89 46 50 89 46 54 89 46 58 8B C6 5F 5E C3} $dump64 = {48 8B C7 89 6F 40 40 88 6F 44 48 89 6F 48 48 89 6F 50 48 89 6F 58 48 89 6F 60 48 89 6F 68 48 89 6F 70 48 89 6F 78 48 89} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Stealcv2Datecheck : FILE { meta: description = "StealcV2 date check bypass" author = "kevoreilly" id = "4969d005-3532-5b75-9fa9-10e09bab338e" date = "2023-02-22" modified = "2025-09-01" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Stealc.yar#L45-L56" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "f074aceb7c111156752891acac8690c00dad7c26240fb0752cc12a9a65aa3d30" score = 75 quality = 70 tags = "FILE" cape_options = "patch=$date32*-1:B000,patch=$date64*-2:B00090" strings: $date32 = {F3 A5 8D 45 ?? 50 E8 [4] 59 8B F8 8B F2 8D 45 ?? 50 E8 [4] 59 3B F2 7C 08 7F 04 3B F8 76 02 B3 01 8A C3} $date64 = {0F 11 44 [2] 0F 11 8C [2] 00 00 00 89 8C [2] 00 00 00 48 8D 4C [2] E8 [4] 48 8B D8 48 8D 4C [2] E8 [4] 48 3B D8 0F 9F C0} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Emotetpacker : FILE { meta: description = "Emotet bypass" author = "kevoreilly" id = "67b8e14c-5fa8-52af-bb9a-1663b084fbf0" date = "2022-03-31" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/EmotetPacker.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "5a95d1d87ce69881b58a0e3aafc1929861e2633cdd960021d7b23e2a36409e0d" logic_hash = "5f27d9d18884f7e0805f69960869b332c1577bf8be8ac103285e8bf98cda0ffd" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$trap1+31,action0=skip,bp1=$trap2+43,action1=jmp:186,count=1" strings: $trap1 = {8B 45 08 0F 28 0D [4] 0F 57 C0 0F 29 46 30 89 46 40 C7 46 44 00 00 00 00 0F 11 4E 48 E8} $trap2 = {F2 0F 10 15 [4] BE 01 00 00 00 0F 01 F9 C7 44 24 60 00 00 00 00 89 4C 24 60 0F 01 F9 C7 44 24 5C 00 00 00 00 89 4C 24 5C 0F 1F 84 00 00 00 00 00} condition: uint16( 0 ) == 0x5A4D and any of ( $trap* ) } rule CAPE_Icedidsyscallwritemem : FILE { meta: description = "IcedID 'syscall' packer bypass - direct write variant" author = "kevoreilly" id = "67935058-4191-587f-ad19-497defd0eef1" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6b068106b038e9efeb9057cadf314d400c1ada1a1cc70336d3272da3a212c993" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$tokencheck+9,action0=jmp,count=0" packed = "28075ecae5e224c06e250f2c949c826b81844bca421e9158a7a9e965a29ef894" packed = "045dff9f14a03225df55997cb2ca74ff60ecaf317b9e033ea93386785db84161" strings: $tokencheck = {39 5D ?? 75 06 83 7D ?? 03 74 05 BB 01 00 00 00 41 89 1C ?? 48 8B 4D ?? 41 FF D?} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Icedidpackera : FILE { meta: description = "IcedID export selection" author = "kevoreilly" id = "d793d8a1-0e17-56ad-933c-470e2290867b" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L27-L40" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "fbad60002286599ca06d0ecb3624740efbf13ee5fda545341b3e0bf4d5348cfe" logic_hash = "aa0681e7794546355e6d61f739c49035a493cdfca7e666531d74e3835ec44408" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $init = "init" $export = {48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 81 EC [2] 00 00 41 8B E9 49 8B F0 48 8B FA 48 8B D9} $alloc = {8B 50 50 33 C9 44 8D 49 40 41 B8 00 30 00 00 FF 15 [4] 48 89 44 24 28 [0-3] 48 89 84 24 ?? 00 00 00 E9} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Icedidpackerb : FILE { meta: description = "IcedID export selection" author = "kevoreilly" id = "6bd0e64d-e60e-5cd2-af79-946a7f6dc9f5" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L42-L56" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "6517ef2c579002ec62ddeb01a3175917c75d79ceca355c415a4462922c715cb6" logic_hash = "fde1e2c0124d180b2fa3d0675b35e8d78fdd7b06cd27e9228c148aa29ce30ee7" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $init = "init" $export = {44 89 4C 24 20 4C 89 44 24 18 48 89 4C 24 08 41 55 41 56 41 57 48 81 EC ?? 00 00 00 B9 [2] 00 00 4C 8B EA E8} $loop = {8B C2 48 8D 49 01 83 E0 07 FF C2 0F B6 44 30 ?? 30 41 FF 3B D5 72} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Icedidpackerc : FILE { meta: description = "IcedID export selection" author = "kevoreilly" id = "fddfd0d2-1bc0-56bb-b983-5850e17a3d0f" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L58-L71" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "c06805b6efd482c1a671ec60c1469e47772c8937ec0496f74e987276fa9020a5" hash = "265c1857ac7c20432f36e3967511f1be0b84b1c52e4867889e367c0b5828a844" logic_hash = "f1e75e380ab0947fdfda012b7a5077a1c2ef51163239846ab2dc29cac95ba166" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $export = {44 89 4C 24 20 4C 89 44 24 18 48 89 54 24 10 3A ED 74} $alloc = {41 B8 00 10 00 00 8B D0 33 C9 66 3B ?? (74|0F 84)} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Icedidpackerd : FILE { meta: description = "IcedID export selection" author = "kevoreilly" id = "df0ca4bd-1ea6-57ef-b85a-7ed0e2a20831" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L73-L86" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "7b226f8cc05fa7d846c52eb0ec386ab37f9bae04372372509daa6bacc9f885d8" logic_hash = "6685e0246f5a11ce0ca33447837de06506b447a5f8591423e2b76f2ab0274dc7" score = 75 quality = 70 tags = "FILE" cape_options = "export=$export" strings: $init = "init" $export = {44 89 4C 24 20 4C 89 44 24 18 48 89 54 24 10 66 3B ED 74} $load = {41 B8 00 80 00 00 33 D2 48 8B 4C [2] EB ?? B9 69 04 00 00 E8 [4] 48 89 84 [2] 00 00 00 66 3B ED 74} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Icedsleep : FILE { meta: description = "IcedID sleep bypass" author = "kevoreilly" id = "d6bd708b-47bc-5620-b40e-8fe5f1a67ba4" date = "2021-03-30" modified = "2023-11-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/IcedID.yar#L88-L99" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "0b1a8be95b1b8a3b066837f9e47561ee8202d741b39d64e626c0461c2fbf7c70" score = 75 quality = 70 tags = "FILE" cape_options = "force-sleepskip=1" packed = "e99f3517a36a9f7a55335699cfb4d84d08b042d47146119156f7f3bab580b4d7" strings: $sleep = {89 4C 24 08 48 83 EC 38 8B 44 24 40 48 69 C0 10 27 00 00 48 F7 D8 48 89 44 24 20 48 8D 54 24 20 33 C9 FF 15 [4] 48 83 C4 38 C3} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Anticuckoo : FILE { meta: description = "AntiCuckoo bypass: https://github.com/therealdreg/anticuckoo" author = "kevoreilly" id = "e221e57b-313e-5998-a3fc-5b4e9671b989" date = "2023-03-17" modified = "2023-03-17" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/AntiCuckoo.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "ad5e52f144bb4a1dae3090978c6ecb4c7732538c9b62a6cedd32eccee6094be5" logic_hash = "a039aeca2dae44980e8bffafacfda90975e107001be50f11ac916b35ad43592e" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$HKActivOldStackCrash+36,action0=jmp,count=1" strings: $HKActivOldStackCrash = {5B 81 FB FA FA FA FA 74 01 41 3B E0 75 ?? 83 E9 0B 83 F9 04 7F 04 C6 45 ?? 00 89 4D ?? 89 65 ?? 80 7D ?? 00 74} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Zloader : FILE { meta: description = "Zloader API Spam Bypass" author = "kevoreilly" id = "8a8e7102-1138-59e7-95a6-8647d41d8521" date = "2021-03-12" modified = "2024-05-03" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Zloader.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "319adca805083c7f5854fe840447cf961addbd748f1f25eb8ec8cdeed7af38aa" score = 75 quality = 70 tags = "FILE" cape_options = "bp0=$trap1-5,action0=hooks:0,bp1=$traps-108,action1=jmp:15,bp2=$traps-88,action2=hooks:1,count=0" strings: $trap1 = {81 F7 4C 01 00 00 8D B4 37 [2] FF FF 31 FE 69 FE 95 03 00 00 E8 [4] 31 FE 0F AF FE 0F AF FE E8} $traps = {6A 44 53 E8 [2] FF FF 83 C4 08 8D 85 ?? FF FF FF C7 85 ?? FF FF FF 44 00 00 00 50} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Themida : FILE { meta: description = "Themida detonation shim" author = "kevoreilly" id = "cd5c8b08-4864-57f7-b218-1bcb6892bea8" date = "2024-09-10" modified = "2024-09-11" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/analyzer/windows/data/yara/Themida.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "c4f1e01a3fe3cb66062ce03253bfe9edc09dc6f1a77db99b281106e8ceff9257" score = 75 quality = 70 tags = "FILE" cape_options = "unhook-apis=NtSetInformationThread,force-sleepskip=0" packed = "6337ff4cf413f56cc6c9a8e67f24b8d7f94f620eae06ac9f0b113b5ba82ea176" strings: $code = {FC 31 C9 49 89 CA 31 C0 31 DB AC 30 C8 88 E9 88 D5 88 F2 B6 08 66 D1 EB 66 D1 D8 73 09} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Rokrat : FILE { meta: description = "RokRat Payload" author = "kevoreilly" id = "12e05b90-9771-5901-ae82-9fd2ea6263e7" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/RokRat.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "2aaa7de7ccd59e0da690f4bc0c7deaacf61314d61f8d2aa3ce6f6892f50612ec" score = 75 quality = 70 tags = "FILE" cape_type = "RokRat Payload" strings: $code1 = {8B 57 04 8D 7F 04 33 57 FC 81 E2 FF FF FF 7F 33 57 FC 8B C2 24 01 0F B6 C0 F7 D8 1B C0 D1 EA 25 DF B0 08 99 33 87 30 06 00 00 33 C2 89 87 3C F6 FF FF 83 E9 01 75 C9} $string1 = "/pho_%s_%d.jpg" wide condition: uint16( 0 ) == 0x5A4D and ( any of ( $code* ) ) and ( any of ( $string* ) ) } rule CAPE_Magniber : FILE { meta: description = "Magniber Payload" author = "kevoreilly" id = "a704914f-2aa2-537d-975d-f8c23427951f" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Magniber.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "1875754bdf98c1886f31f6c6e29992a98180f74d8fa168ae391e2c660d760618" score = 75 quality = 70 tags = "FILE" cape_type = "Magniber Payload" strings: $a1 = {8B 55 FC 83 C2 01 89 55 FC 8B 45 FC 3B 45 08 7D 45 6A 01 6A 00 E8 26 FF FF FF 83 C4 08 89 45 F4 83 7D F4 00 75 18 6A 7A 6A 61 E8 11 FF FF FF 83 C4 08 8B 4D FC 8B 55 F8 66 89 04 4A EB 16} condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Conti : FILE { meta: description = "Conti Ransomware" author = "kevoreilly" id = "c94aed07-0eaf-5b51-a81e-e1992543673a" date = "2020-10-19" modified = "2021-03-15" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Conti.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "c9842f93d012d0189b9c6f10ad558b37ae66226bbb619ad677f6906ccaf0e848" score = 75 quality = 70 tags = "FILE" cape_type = "Conti Payload" strings: $crypto1 = {8A 07 8D 7F 01 0F B6 C0 B9 ?? 00 00 00 2B C8 6B C1 ?? 99 F7 FE 8D [2] 99 F7 FE 88 ?? FF 83 EB 01 75 DD} $website1 = "https://contirecovery.info" ascii wide $website2 = "https://contirecovery.best" ascii wide condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Megacortex : FILE { meta: description = "MegaCortex Payload" author = "kevoreilly" id = "ea3dd937-2cb1-5b0f-98b8-154aacaf8650" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/MegaCortex.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "5de1d8241260070241c91b97f18feb2a90069e3b158e863e2d9f568799c244e6" score = 75 quality = 70 tags = "FILE" cape_type = "MegaCortex Payload" strings: $str1 = ".megac0rtx" ascii wide $str2 = "vssadmin delete shadows /all" ascii $sha256 = {98 2F 8A 42 91 44 37 71 CF FB C0 B5 A5 DB B5 E9} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Gootkit : FILE { meta: description = "Gootkit Payload" author = "kevoreilly" id = "8935fd10-ac79-5196-80c2-fc8f2fe185b5" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Gootkit.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "26704b6b0adca51933fc9d5e097930320768fd0e9355dcefc725aee7775316e7" score = 75 quality = 70 tags = "FILE" cape_type = "Gootkit Payload" strings: $code1 = {C7 45 ?? ?? ?? 4? 00 C7 45 ?? ?? 10 40 00 C7 45 E? D8 ?? ?? 00 C7 45 ?? 00 00 00 00 C7 45 ?? 00 00 00 00 [1-2] 00 10 40 00 89 [5-6] 43 00 89 ?? ?? 68 E8 80 00 00 FF 15} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Azorult : FILE { meta: description = "Azorult Payload" author = "kevoreilly" id = "ca76ec00-001f-56d0-bdbc-9dfd3239fba8" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Azorult.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "4691cf48d513d1965416b0cce1b6e19c8f7b393a940afd68b7c6ca8c0d125d90" score = 75 quality = 70 tags = "FILE" cape_type = "Azorult Payload" strings: $code1 = {C7 07 3C 00 00 00 8D 45 80 89 47 04 C7 47 08 20 00 00 00 8D 85 80 FE FF FF 89 47 10 C7 47 14 00 01 00 00 8D 85 00 FE FF FF 89 47 1C C7 47 20 80 00 00 00 8D 85 80 FD FF FF 89 47 24 C7 47 28 80 00 00 00 8D 85 80 F5 FF FF 89 47 2C C7 47 30 00 08 00 00 8D 85 80 F1 FF FF 89 47 34 C7 47 38 00 04 00 00 57 68 00 00 00 90} $string1 = "SELECT DATETIME( ((visits.visit_time/1000000)-11644473600),\"unixepoch\")" condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Cryptoshield : FILE { meta: description = "Cryptoshield Payload" author = "kevoreilly" id = "a7b60a0d-7d46-59c9-8273-ee23bae3fbbc" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Cryptoshield.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "46064b4c69cb1af01330c5d194ef50728e0f0479e9fbf72828822935f8e37ac6" score = 75 quality = 70 tags = "FILE" cape_type = "Cryptoshield Payload" strings: $a1 = "CRYPTOSHIELD." wide $a2 = "Click on Yes in the next window for restore work explorer" wide $a3 = "r_sp@india.com - SUPPORT" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Buerloader_1 : FILE { meta: description = "No description has been set in the source file - CAPE" author = "kevoreilly & Rony (@r0ny_123)" id = "95a9b4d7-db1e-50cd-bc08-01e4e4fd6dc4" date = "2020-10-29" modified = "2022-05-31" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/BuerLoader.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "05c1f008f0a2bb8232867977fb23a5ae8312f10f0637c6265561052596319c29" score = 75 quality = 70 tags = "FILE" cape_type = "BuerLoader Payload" strings: $trap = {0F 31 89 45 ?? 6A 00 8D 45 ?? 8B CB 50 E8 [4] 0F 31} $decode = {8A 0E 84 C9 74 0E 8B D0 2A 0F 46 88 0A 42 8A 0E 84 C9 75 F4 5F 5E 5D C2 04 00} $op = {33 C0 85 D2 7E 1? 3B C7 7D [0-15] 40 3B C2 7C ?? EB 02} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Hancitor : FILE { meta: description = "Hancitor Payload" author = "threathive" id = "b4e9a26a-db00-5553-acc2-f35148b0ffd5" date = "2019-10-30" modified = "2020-10-20" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Hancitor.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "84003542a2f587b5fbd43731c4240759806f8ee46df2bd96aae4a3c09d97e41c" score = 75 quality = 70 tags = "FILE" cape_type = "Hancitor Payload" strings: $fmt_string = "GUID=%I64u&BUILD=%s&INFO=%s&EXT=%s&IP=%s&TYPE=1&WIN=%d.%d(x64)" $fmt_string2 = "GUID=%I64u&BUILD=%s&INFO=%s&EXT=%s&IP=%s&TYPE=1&WIN=%d.%d(x32)" $ipfy = "http://api.ipify.org" $user_agent = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko" condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Petrwrap : FILE { meta: description = "PetrWrap Payload" author = "kevoreilly" id = "83762c87-6e96-50fe-b297-e1a5f893be43" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/PetrWrap.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6dd1cf5639b63d0ab41b24080dad68d285f2e3969ad34fd724c83e7a0dd4b968" score = 75 quality = 70 tags = "FILE" cape_type = "PetrWrap Payload" strings: $a1 = "http://petya3jxfp2f7g3i.onion/" $a2 = "http://petya3sen7dyko2n.onion" $b1 = "http://mischapuk6hyrn72.onion/" $b2 = "http://mischa5xyix2mrhd.onion/" condition: uint16( 0 ) == 0x5A4D and ( any of ( $a* ) ) and ( any of ( $b* ) ) } rule CAPE_Sedreco : FILE { meta: description = "Sedreco encrypt function entry" author = "kevoreilly" id = "5b9ee4af-50a4-597c-8fa5-f2094c312d23" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Sedreco.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "f735549606917f59a19157e604e54766e4456bc5d46e94cae3e0a3c18b52a7ca" score = 75 quality = 70 tags = "FILE" cape_type = "Sedreco Payload" strings: $encrypt1 = {55 8B EC 83 EC 2C 53 56 8B F2 57 8B 7D 08 B8 AB AA AA AA} $encrypt2 = {55 8B EC 83 EC 20 8B 4D 10 B8 AB AA AA AA} $encrypt64_1 = {48 89 4C 24 08 53 55 56 57 41 54 41 56 48 83 EC 18 45 8D 34 10 48 8B E9 B8 AB AA AA AA 4D 8B E1 44 89 44 24 60 41 F7 E0 8B F2 B8 AB AA AA AA} condition: uint16( 0 ) == 0x5A4D and $encrypt1 or $encrypt2 or $encrypt64_1 } rule CAPE_Kronos : FILE { meta: description = "Kronos Payload" author = "kevoreilly" id = "921a939b-a037-5973-bd8e-f9f55fce7f0f" date = "2019-10-30" modified = "2020-07-02" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Kronos.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "52ce9caf3627efe8ae86df6ca59e51e9f738e13ac0265f797e8d70123dbcaeb3" score = 75 quality = 70 tags = "FILE" cape_type = "Kronos Payload" strings: $a1 = "user_pref(\"network.cookie.cookieBehavior\"" $a2 = "T0E0H4U0X3A3D4D8" $a3 = "wow64cpu.dll" wide $a4 = "Kronos" fullword ascii wide condition: uint16( 0 ) == 0x5A4D and ( 2 of ( $a* ) ) } rule CAPE_Jaff : FILE { meta: description = "Jaff Payload" author = "kevoreilly" id = "6681c1fe-6c88-5a49-bdfa-54ce08ea6707" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Jaff.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6806a5eeee04b7436ff694addc334bfc0f1ee611116904d57be9506acfd47418" score = 75 quality = 70 tags = "FILE" cape_type = "Jaff Payload" strings: $a1 = "CryptGenKey" $a2 = "353260540318613681395633061841341670181307185694827316660016508" $b1 = "jaff" $b2 = "2~1c0q4t7" condition: uint16( 0 ) == 0x5A4D and ( any of ( $a* ) ) and ( 1 of ( $b* ) ) } rule CAPE_Lockbit : FILE { meta: description = "Lockbit Payload" author = "kevoreilly" id = "ec9b4fec-0233-5277-b922-07057c2b4b34" date = "2020-05-14" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Lockbit.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "80ab705c8246a0bd5b3de65146cf32b102f39bf9444bdf1d366b5a794c1229b9" score = 75 quality = 70 tags = "FILE" cape_type = "Lockbit Payload" strings: $string1 = "/C ping 127.0.0.7 -n 3 > Nul & fsutil file setZeroData offset=0 length=524288 \"%s\" & Del /f /q \"%s\"" wide $string2 = "Ransom" ascii wide $crypto = {8B 4D 08 C1 E9 10 0F B6 D1 8B 4D 0C C1 E9 08 0F B6 C9 8B 14 95 [4] 8B 7D FC 33 14 8D [4] 8B CF C1 E9 18 33 14 8D [4] 0F B6 CB 33 14 8D [4] 8B CF 33 10} $decode1 = {8A ?4 34 ?C 0? 00 00 8B 8? 24 ?8 0? 00 00 0F BE ?? 0F BE C? 33 ?? 88 ?? 34 ?? 0? 00 00 46 83 FE 0? 72 DD} $decode2 = {8A 44 24 ?? 30 44 0C ?? 41 83 F9 ?? 72 F2} condition: uint16( 0 ) == 0x5A4D and ( 2 of them ) } rule CAPE_Bazar : FILE { meta: description = "No description has been set in the source file - CAPE" author = "kevoreilly" id = "e042f180-2a82-5c93-9858-77281557dd10" date = "2021-08-26" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Bazar.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "9375f59b56e47fd0b90b089afdf3be8f16f960038fc625523a2e2d5509ab099d" score = 75 quality = 70 tags = "FILE" cape_type = "Bazar Payload" strings: $decode = {F7 E9 [0-2] C1 FA 0? 8B C2 C1 E8 1F 03 D0 6B C2 ?? 2B C8} $rsa = {C7 00 52 53 41 33 48 8D 48 09 C7 40 04 00 08 00 00 4C 8D 05 [3] 00 C6 40 08 03 B8 09 00 00 00 [0-3] 48 8D 89 80 00 00 00 41 0F 10 00} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Petya : FILE { meta: description = "Petya Payload" author = "kevoreilly" id = "e581747c-c40f-5689-84b4-d55134b532f7" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Petya.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "f819261bb34f3b2eb7dc2f843b56be25105570fe902a77940a632a54fbe0d014" score = 75 quality = 70 tags = "FILE" cape_type = "Petya Payload" strings: $a1 = "CHKDSK is repairing sector" $a2 = "wowsmith123456@posteo.net" $a3 = "1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX" wide condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Azer : FILE { meta: description = "Azer Payload" author = "kevoreilly" id = "4bda70c2-3cd9-543f-92f4-886b7dd899a1" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Azer.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "48bd4a4e071f10d1911c4173a0cd39c69fed7a3b29eb92beffe709899f4cefa5" score = 75 quality = 70 tags = "FILE" cape_type = "Azer Payload" strings: $a1 = "webmafia@asia.com" wide $a2 = "INTERESTING_INFORMACION_FOR_DECRYPT.TXT" wide $a3 = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Dridexv4 : FILE { meta: description = "Dridex v4 Payload" author = "kevoreilly" id = "c396f664-9f0d-50ac-bce8-33fd8712645a" date = "2019-10-30" modified = "2022-05-31" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/DridexV4.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "cb103fe5f2d4792e3c612db4e2d84a4c8b0ce0f9a8443e9147e2c345f1dbdff6" score = 75 quality = 70 tags = "FILE" cape_type = "DridexV4 Payload" strings: $decrypt32 = {6A 40 58 3B C8 0F 4D C1 39 46 04 7D 50 53 57 8B F8 81 E7 3F 00 00 80 79 05 4F 83 CF C0 47 F7 DF 99 1B FF 83 E2 3F 03 C2 F7 DF C1 F8 06 03 F8 C1 E7 06 57} $getproc32 = {81 FB ?? ?? ?? ?? 74 2D 8B CB E8 ?? ?? ?? ?? 85 C0 74 0C 8B C8 8B D7 E8 ?? ?? ?? ?? 5B 5F C3} $getproc64 = {81 FB ?? ?? ?? ?? 75 04 33 C0 EB 2D 8B CB E8 ?? ?? ?? ?? 48 85 C0 75 17 8B CB E8 ?? ?? ?? ?? 84 C0 74 E5 8B CB E8 ?? ?? ?? ?? 48 85 C0 74 D9 8B D7 48 8B C8 E8 ?? ?? ?? ?? 48 8B 5C 24 30 48 83 C4 20 5F C3} $bot_stub_32 = {8B 45 E? 8? [5-13] 8A 1C 0? [6-15] 05 FF 00 00 00 8B ?? F? 39 ?? 89 45 E? 72 D?} $bot_stub_64 = {8B 44 24 ?? 89 C1 89 CA 4C 8B 05 [4] 4C 8B 4C 24 ?? 45 8A 14 11 83 E0 1F 89 C0 41 89 C3 47 2A 14 18 44 88 54 14} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Dreambot : FILE { meta: description = "Dreambot Payload" author = "kevoreilly" id = "675c2fea-fe48-5afd-9fa1-de919134892f" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Dreambot.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "29c6d648d5d38667c5824c2d20a83a20448c2ae6054ddddb2b2b7f8bdb69f74b" score = 75 quality = 70 tags = "FILE" cape_type = "Dreambot Payload" strings: $a1 = {53 56 33 F6 33 DB C1 6C 24 0C 02 74 2F 8B 02 85 C0 75 11 83 7C 24 0C 02 76 0A 39 42 04 75 05 39 42 08 74 18 43 8A CB D3 C0 33 C6 33 44 24 10 8B F0 89 32 83 C2 04 FF 4C 24 0C 75 D1 5E 5B C2 08 00} $a2 = {53 33 C9 33 DB C1 6C 24 08 02 74 22 56 8B 02 85 C0 8B F0 74 18 33 C1 33 44 24 10 43 8A CB D3 C8 8B CE 89 02 83 C2 04 FF 4C 24 0C 75 E0 5E 5B C2 08 00} $b1 = "Oct 5 2016" $b2 = ".bss" condition: uint16( 0 ) == 0x5A4D and ( 1 of ( $a* ) ) and ( all of ( $b* ) ) } rule CAPE_Tscookie : FILE { meta: description = "TSCookie Payload" author = "kevoreilly" id = "e1efd356-7170-5454-bf40-68927c71816c" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/TSCookie.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "0461c7fd14c74646437654f0a63a4a89d4efad620e197a8ca1e8d390618842c3" score = 75 quality = 70 tags = "FILE" cape_type = "TSCookie Payload" strings: $string1 = "http://%s:%d" wide $string2 = "/Default.aspx" wide $string3 = "\\wship6" condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Carbanak : FILE { meta: description = "Carnbanak Payload" author = "enzok" id = "e6d395d5-65ba-5efb-bcbc-c6d56a96f0c1" date = "2023-11-30" modified = "2024-03-18" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Carbanak.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "c9c1b06cb9c9bd6fc4451f5e2847a1f9524bb2870d7bb6f0ee09b9dd4e3e4c84" logic_hash = "8ed5ab07f1635dc7cdf296e86a71a0a99d0b2faef8fc460f43d426b24b8c8367" score = 75 quality = 70 tags = "FILE" cape_type = "Carbanak Payload" strings: $sboxinit = {0F BE 02 4? 8D 05 [-] 4? 8D 4D ?? E8 [3] 00 33 F6 4? 8D 5D ?? 4? 63 F8 8B 45 ?? B? B1 E3 14 06} $decode_string = {0F BE 03 FF C9 83 F8 20 7D ?? B? 1F [3] 4? 8D 4A E2 EB ?? 3D 80 [3] 7D ?? B? 7F [3] 4? 8D 4A A1 EB ?? B? FF [3] 4? 8D 4A 81} $constants = {0F B7 05 [3] 00 0F B7 1D [3] 00 83 25 [3] 00 00 89 05 [3] 00 0F B7 05 [3] 00 89 1D [3] 00 89 05 [3] 00 33 C0 4? 8D 4D} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Dridexloader_1 : FILE { meta: description = "Dridex v4 dropper C2 parsing function" author = "kevoreilly" id = "43bd9631-4611-567c-bee5-d926e060b977" date = "2019-11-12" modified = "2021-03-10" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/DridexLoader.yar#L1-L17" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "20696b1f14539c8ecf21bffc696596040c20b1ee2fcedc173945482c0baca588" score = 75 quality = 70 tags = "FILE" cape_type = "DridexLoader Payload" strings: $c2parse_1 = {57 0F 95 C0 89 35 [4] 88 46 04 33 FF 80 3D [4] 00 76 54 8B 04 FD [4] 8D 4D EC 83 65 F4 00 89 45 EC 66 8B 04 FD [4] 66 89 45 F0 8D 45 F8 50} $c2parse_2 = {89 45 00 0F B7 53 04 89 10 0F B6 4B 0C 83 F9 0A 7F 03 8A 53 0C 0F B6 53 0C 85 D2 7E B7 8D 74 24 0C C7 44 24 08 00 00 00 00 8D 04 7F 8D 8C 00} $c2parse_3 = {89 08 66 39 1D [4] A1 [4] 0F 95 C1 88 48 04 80 3D [4] 0A 77 05 A0 [4] 80 3D [4] 00 56 8B F3 76 4E 66 8B 04 F5} $c2parse_4 = {0F B7 C0 89 01 A0 [4] 3C 0A 77 ?? A0 [4] A0 [4] 57 33 FF 84 C0 74 ?? 56 BE} $c2parse_5 = {0F B7 05 [4] 89 02 89 15 [4] 0F B6 15 [4] 83 FA 0A 7F 07 0F B6 05 [4] 0F B6 05 [4] 85 C0} $c2parse_6 = {0F B7 53 ?? 89 10 0F B6 4B ?? 83 F9 0A 7F 03 8A 53 ?? 0F B6 53 ?? 85 D2 7E B9} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Ramnit : FILE { meta: description = "Ramnit Payload" author = "kevoreilly" id = "6df92055-05f6-5985-9268-b9c85e143567" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Ramnit.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6f661f47bdf8377b0fb96f190fcb964c0ed2b43ce7ae7880f9dfce9e43837efd" score = 75 quality = 70 tags = "FILE" cape_type = "Ramnit Payload" strings: $DGA = {33 D2 B9 1D F3 01 00 F7 F1 8B C8 B8 A7 41 00 00 F7 E2 8B D1 8B C8 B8 14 0B 00 00 F7 E2 2B C8 33 D2 8B C1 8B} $xor_loop = {83 7D 0C 00 74 27 83 7D 14 00 74 21 8B 4D 0C 8B 7D 08 8B 75 10 BA 00 00 00 00 0B D2 75 04 8B 55 14 4A 8A 1C 32 32 1F 88 1F 47 4A E2 ED} $id_string = "{%08X-%04X-%04X-%04X-%08X%04X}" condition: uint16( 0 ) == 0x5A4D and all of ( $* ) } rule CAPE_Ryuk : FILE { meta: description = "Ryuk Payload" author = "kevoreilly" id = "594bbb8d-1f85-5a01-a864-ac2d95c45bf9" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Ryuk.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "b4463993d8956e402b927a3dcfa2ca9693a959908187f720372f2d3a40e6db0c" score = 75 quality = 70 tags = "FILE" cape_type = "Ryuk Payload" strings: $ext = ".RYK" wide $readme = "RyukReadMe.txt" wide $main = "InvokeMainViaCRT" $code = {48 8B 4D 10 48 8B 03 48 C1 E8 07 C1 E0 04 F7 D0 33 41 08 83 E0 10 31 41 08 48 8B 4D 10 48 8B 03 48 C1 E8 09 C1 E0 03 F7 D0 33 41 08 83 E0 08 31 41 08} condition: uint16( 0 ) == 0x5A4D and 3 of ( $* ) } rule CAPE_Masslogger : FILE { meta: description = "MassLogger" author = "kevoreilly" id = "0743421a-36f7-5b7c-859f-b461511151cb" date = "2020-10-20" modified = "2020-11-24" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/MassLogger.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "c8d82694810aafbdc6a35a661e7431e9536035e2f7fef90b9359064c4209b66c" score = 75 quality = 70 tags = "FILE" cape_type = "MassLogger Payload" strings: $name = "MassLogger" $fody = "Costura" condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Lokibot : FILE { meta: description = "LokiBot Payload" author = "kevoreilly" id = "8cdf69e2-ecac-5241-adba-c458cce0610f" date = "2022-02-01" modified = "2022-02-01" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/LokiBot.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "a5b3d518371138740e913d2d6ce4fa22d3da5cea7e034c7d6b4b502e6bf44b06" score = 75 quality = 70 tags = "FILE" cape_type = "LokiBot Payload" strings: $a1 = "DlRycq1tP2vSeaogj5bEUFzQiHT9dmKCn6uf7xsOY0hpwr43VINX8JGBAkLMZW" $a2 = "last_compatible_version" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Ursnifv3_1 : FILE { meta: description = "UrsnifV3 Payload" author = "kevoreilly" id = "9dd32f80-b535-52a3-91e1-4db005362fd4" date = "2022-05-31" modified = "2023-03-23" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/UrsnifV3.yar#L1-L18" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "501cd52388aba16f9d33b4555f310e1ad58326916b15358a485c701acb87abd8" score = 75 quality = 70 tags = "FILE" cape_type = "UrsnifV3 Payload" packed = "75827be0c600f93d0d23d4b8239f56eb8c7dc4ab6064ad0b79e6695157816988" packed = "5d6f1484f6571282790d64821429eeeadee71ba6b6d566088f58370634d2c579" strings: $crypto32_1 = {8B C3 83 EB 01 85 C0 75 0D 0F B6 16 83 C6 01 89 74 24 14 8D 58 07 8B C2 C1 E8 07 83 E0 01 03 D2 85 C0 0F 84 AB 01 00 00 8B C3 83 EB 01 85 C0 89 5C 24 20 75 13 0F B6 16 83 C6 01 BB 07 00 00 00} $crypto32_2 = {8B 45 ?? 0F B6 3? FF 45 [2-4] 8B C? 23 C? 40 40 D1 E? 7?} $crypto32_3 = {F6 46 03 02 75 5? 8B 46 10 40 50 E8 [10-12] 74 ?? F6 46 03 01 74} $crypto32_4 = {C7 44 24 10 01 00 00 00 8B 4? 10 [12] 8B [2] 89 01 8B 44 24 10 5F 5E 5B 8B E5 5D C2 0C 00} $cpuid = {8B C4 FF 18 8B F0 33 C0 0F A2 66 8C D8 66 8E D0 8B E5 8B C6 5E 5B 5D C3} $cape_string = "cape_options" condition: uint16( 0 ) == 0x5A4D and 1 of ( $crypto32_* ) and $cpuid and not $cape_string } rule CAPE_Pik23 : FILE { meta: description = "PikaBot Payload February 2023" author = "kevoreilly" id = "fc804c63-fc6c-5b26-92b1-aa5d2fbc4917" date = "2023-02-13" modified = "2024-03-13" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/PikaBot.yar#L30-L44" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "59f42ecde152f78731e54ea27e761bba748c9309a6ad1c2fd17f0e8b90f8aed1" logic_hash = "71a71df2f2a075294941c54eed06cafaaa4d3294e45b3a0098c1cffddd0438bc" score = 75 quality = 70 tags = "FILE" cape_type = "PikaBot Payload" strings: $rdtsc = {89 55 FC 89 45 F8 0F 31 89 55 F4 89 45 FC 33 C0 B8 05 00 00 00 C1 E8 02 2B C3 3B C1 0F 31 89 55 F0 89 45 F8 8B 44 8D} $int2d = {B8 00 00 00 00 CD 2D 90 C3 CC CC CC CC CC CC CC} $subsys = {64 A1 30 00 00 00 8B 40 18 C3} $rijndael = {EB 0F 0F B6 04 3? FE C? 8A 80 [4] 88 04 3? 0F B6 [3] 7C EA 5? 5? C9 C3} condition: uint16( 0 ) == 0x5A4D and 3 of them } rule CAPE_Doppelpaymer : FILE { meta: description = "DoppelPaymer Payload" author = "kevoreilly" id = "c8178906-1722-5908-9ad4-7ee1eef39138" date = "2019-11-15" modified = "2022-06-27" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/DoppelPaymer.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "73a2575671bafc31a70af3ce072d6f94ae172b12202baebba586a02524cb6f9d" score = 75 quality = 70 tags = "FILE" cape_type = "DoppelPaymer Payload" strings: $getproc32 = {81 FB ?? ?? ?? ?? 74 2D 8B CB E8 ?? ?? ?? ?? 85 C0 74 0C 8B C8 8B D7 E8 ?? ?? ?? ?? 5B 5F C3} $cmd_string = "Setup run\\n" wide condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Monsterv2 : FILE { meta: description = "MonsterV2 Payload" author = "doomedraven,YungBinary" id = "4bc3546f-34ad-579e-9822-272a2b3c74e2" date = "2025-09-06" modified = "2025-09-12" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/MonsterV2.yar#L1-L21" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "d4e65f860e69b2eee8a818a4146d91b84ce6da30c8fa27593587932e4f0847a8" score = 75 quality = 70 tags = "FILE" cape_type = "MonsterV2 Payload" packed = "fe69e8db634319815270aa0e55fe4b9c62ce8e62484609c3a42904fbe5bb2ab3" strings: $decrypt_config = { 41 B8 0E 04 00 00 48 8D 15 ?? ?? ?? 00 48 8B C? E8 ?? ?? ?? ?? [3-17] 4C 8B C? 48 8D 54 24 28 48 8B CE E8 ?? ?? ?? ?? } condition: uint16( 0 ) == 0x5A4D and $decrypt_config } rule CAPE_Varenyky : FILE { meta: description = "Varenyky Payload" author = "kevoreilly" id = "e01695fa-72a0-5d8e-86ab-8c909d28b8ec" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Varenyky.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "602f1b8b60b29565eabe2171fde4eb58546af68f8acecad402a7a51ea9a08ed9" score = 75 quality = 70 tags = "FILE" cape_type = "Varenyky Payload" strings: $onion = "jg4rli4xoagvvmw47fr2bnnfu7t2epj6owrgyoee7daoh4gxvbt3bhyd.onion" condition: uint16( 0 ) == 0x5A4D and ( $onion ) } rule CAPE_Wanacry : FILE { meta: description = "WanaCry Payload" author = "kevoreilly" id = "a6525e0f-fccd-5542-9be8-e42d708fe502" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/WanaCry.yar#L1-L16" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "16d5e39f043d27bbf22f8f21e13971b7e0709b07e44746dd157d11ee4cc51944" score = 75 quality = 70 tags = "FILE" cape_type = "WanaCry Payload" strings: $exename = "@WanaDecryptor@.exe" $res = "%08X.res" $pky = "%08X.pky" $eky = "%08X.eky" $taskstart = {8B 35 58 71 00 10 53 68 C0 D8 00 10 68 F0 DC 00 10 FF D6 83 C4 0C 53 68 B4 D8 00 10 68 24 DD 00 10 FF D6 83 C4 0C 53 68 A8 D8 00 10 68 58 DD 00 10 FF D6 53} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Cerber : FILE { meta: description = "Cerber Payload" author = "kevoreilly" id = "edf08795-cf54-5822-8bc4-35cfba0fe8e8" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Cerber.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "16a8f808c28d3b142c079a305aba7f553f2452e439710bf610a06f8f2924d5a3" score = 75 quality = 70 tags = "FILE" cape_type = "Cerber Payload" strings: $code1 = {33 C0 66 89 45 8? 8D 7D 8? AB AB AB AB AB [0-2] 66 AB 8D 45 8? [0-3] E8 ?? ?? 00 00} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Qakbot5_1 : FILE { meta: description = "QakBot v5 Payload" author = "kevoreilly, enzok" id = "48866cdd-f60e-50b8-85f9-573710934b0b" date = "2019-10-30" modified = "2024-04-28" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/QakBot.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "59559e97962e40a15adb2237c4d01cfead03623aff1725616caeaa5a8d273a35" logic_hash = "cc23a92f45619d44af824128b743c259dd9dfa7cb5106932f3425f3dfd1dccdf" score = 75 quality = 70 tags = "FILE" cape_type = "QakBot Payload" packed = "f4bb0089dcf3629b1570fda839ef2f06c29cbf846c5134755d22d419015c8bd2" strings: $loop = {8B 75 ?? 48 8B 4C [2] FF 15 [4] 48 8B 4C [2] 48 8B 01 FF 50 ?? 8B DE 48 8B 4C [2] 48 85 C9 0F 85 [4] EB 4E} $c2list = {0F B7 1D [4] B? [2] 00 00 E8 [4] 8B D3 4? 89 45 ?? 4? 33 C9 4? 8D 0D [4] 4? 8B C0 4? 8B F8 E8} $campaign = {0F B7 1D [4] B? [2] 00 00 E8 [4] 8B D3 4? 89 44 24 ?? 4? 33 C9 4? 8D 0D [4] 4? 8B C0 4? 8B F8 E8} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Atlas : FILE { meta: description = "Atlas Payload" author = "kevoreilly" id = "22322e5c-ded6-56df-8a39-a8f5cbc18239" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Atlas.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "c3f73b29df5caf804dbfe3e6ac07a9e2c772bd2a126f0487e4a65e72bd501e6e" score = 75 quality = 70 tags = "FILE" cape_type = "Atlas Payload" strings: $a1 = "bye.bat" $a2 = "task=knock&id=%s&ver=%s x%s&disks=%s&other=%s&ip=%s&pub=" $a3 = "process call create \"cmd /c start vssadmin delete shadows /all /q" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Nanolocker : FILE { meta: description = "NanoLocker Payload" author = "kevoreilly" id = "6fff6a27-a153-5461-9a75-2253c2f7d408" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/NanoLocker.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "fe6c8a4e259c3c526f8f50771251f6762b2b92a4df2e8bfc705f282489f757db" score = 75 quality = 70 tags = "FILE" cape_type = "NanoLocker Payload" strings: $a1 = "NanoLocker" $a2 = "$humanDeadline" $a3 = "Decryptor.lnk" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Nightshadec2 : FILE { meta: description = "NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482" author = "YungBinary" id = "d70f9051-c7ab-537a-ab80-03ae7ef80b81" date = "2025-09-04" modified = "2025-09-12" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/NightshadeC2.yar#L1-L20" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d" logic_hash = "f9fabc391e21180a1c92abea0a5ded6d7669e8d8f2330b69d6c1227c9b4237a0" score = 75 quality = 70 tags = "FILE" cape_type = "NightshadeC2 Payload" strings: $s1 = "keylog.txt" fullword wide $s2 = "\"%ws\" --mute-audio --do-not-de-elevate" fullword wide $s3 = "\"%ws\" -no-deelevate" fullword wide $s4 = "MachineGuid" fullword wide $s5 = "www.ip-api.com" fullword wide $s6 = "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" fullword wide $s7 = "IsabellaWine" fullword wide $s8 = "Shell_TrayWnd" fullword wide condition: uint16( 0 ) == 0x5A4D and 3 of them } rule CAPE_Scarab : FILE { meta: description = "Scarab Payload" author = "kevoreilly" id = "2ba8ae50-1e56-5773-aaea-058161b59c78" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Scarab.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "0d8fa7ab4c8e5699f17f9e9444e85a42563a840a8e7ee9eda54add3a6845d1c6" score = 75 quality = 70 tags = "FILE" cape_type = "Scarab Payload" strings: $crypt1 = {8B D8 32 1A 0F B6 DB 8B 1C 9F C1 E8 08 33 D8 8B C3 42 8B D8 32 1A 0F B6 DB 8B 1C 9F C1 E8 08 33 D8 8B C3 42 8B D8 32 1A 0F B6 DB 8B 1C 9F C1 E8 08} $crypt2 = {8B 4C 82 0C 8B D9 C1 E3 18 C1 E9 08 0B D9 8B CB 0F B6 D9 8B 1C 9D AC 0C 43 00 89 5C 24 04 8B D9 C1 EB 08 0F B6 DB 8B 34 9D AC 0C 43 00 8B D9 C1 EB 10} $crypt3 = {8B 13 8B CA 81 E1 80 80 80 80 8B C1 C1 E8 07 50 8B C1 59 2B C1 25 1B 1B 1B 1B 8B CA 81 E1 7F 7F 7F 7F 03 C9 33 C1 8B C8 81 E1 80 80 80 80 8B F1 C1 EE 07} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Emotetloader : FILE { meta: description = "Emotet Loader" author = "kevoreilly" id = "aea8ff2e-bdf7-5417-a41c-93566d1dd019" date = "2022-05-31" modified = "2022-05-31" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/EmotetLoader.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "410872d25ed3a89a2cba108f952d606cd1c3bf9ccc89ae6ab3377b83665c2773" score = 75 quality = 70 tags = "FILE" cape_type = "EmotetLoader Payload" strings: $antihook = {8B 15 ?? ?? ?? ?? 03 15 ?? ?? ?? ?? 89 95 28 FF FF FF A1 ?? ?? ?? ?? 2D 4D 01 00 00 A3 ?? ?? ?? ?? 8B 0D ?? ?? ?? ?? 3B 0D ?? ?? ?? ?? 76 26 8B 95 18 FF FF FF 8B 42 38} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Badrabbit : FILE { meta: description = "BadRabbit Payload" author = "kevoreilly" id = "c7204772-6f14-57b7-88c1-e9156f9897d5" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/BadRabbit.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "309e14ab4ea2f919358631f9d8b2aaff1f51e7708b6114e4e6bf4a9d9a5fc86c" score = 75 quality = 70 tags = "FILE" cape_type = "BadRabbit Payload" strings: $a1 = "caforssztxqzf2nm.onion" wide $a2 = "schtasks /Create /SC once /TN drogon /RU SYSTEM" wide $a3 = "schtasks /Create /RU SYSTEM /SC ONSTART /TN rhaegal" wide condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Tclient : FILE { meta: description = "TClient Payload" author = "kevoreilly" id = "38c9ea20-9d91-5fb0-8b3b-170538ad7ea8" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/TClient.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6edcd01e4722b367723ed77d9596877d16ee35dc4c160885d125f83e45cee24d" score = 75 quality = 70 tags = "FILE" cape_type = "TClient Payload" strings: $code1 = {41 0F B6 00 4D 8D 40 01 34 01 8B D7 83 E2 07 0F BE C8 FF C7 41 0F BE 04 91 0F AF C1 41 88 40 FF 81 FF 80 03 00 00 7C D8} condition: uint16( 0 ) == 0x5A4D and any of ( $code* ) } rule CAPE_Zeuspanda : FILE { meta: description = "ZeusPanda Payload" author = "kevoreilly" id = "7891c021-6687-5457-b9e1-0beb0472647c" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/ZeusPanda.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "43d8a56cae9fd23c053f6956851734d3270b46a906236854502c136e3bb1e761" score = 75 quality = 70 tags = "FILE" cape_type = "ZeusPanda Payload" strings: $code1 = {8B 01 57 55 55 55 55 55 55 53 51 FF 50 0C 85 C0 78 E? 55 55 6A 03 6A 03 55 55 6A 0A FF 37} $code2 = {8D 85 B0 FD FF FF 50 68 ?? ?? ?? ?? 8D 85 90 FA FF FF 68 0E 01 00 00 50 E8 ?? ?? ?? ?? 83 C4 10 83 F8 FF 7E ?? 68 04 01 00 00 8D 85 B0 FD FF FF} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Fareit : FILE { meta: description = "Fareit Payload" author = "kevoreilly" id = "b3c4eb86-d104-5f31-afa4-5bf5f370f64e" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Fareit.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "ed35391ffc949219f380da3f22bc8397a7d5c742bd68e227c3becdebcab5cf83" score = 75 quality = 70 tags = "FILE" cape_type = "Fareit Payload" strings: $string1 = {0D 0A 09 09 0D 0A 0D 0A 09 20 20 20 3A 6B 74 6B 20 20 20 0D 0A 0D 0A 0D 0A 20 20 20 20 20 64 65 6C 20 20 20 20 09 20 25 31 20 20 0D 0A 09 69 66 20 20 09 09 20 65 78 69 73 74 20 09 20 20 20 25 31 20 20 09 20 20 67 6F 74 6F 20 09 0D 20 6B 74 6B 0D 0A 20 64 65 6C 20 09 20 20 25 30 20 00} condition: uint16( 0 ) == 0x5A4D and any of ( $string* ) } rule CAPE_Kpot : FILE { meta: description = "Kpot Stealer" author = "kevoreilly" id = "724fd6ac-e734-5952-b459-01cbaffdb89d" date = "2020-10-19" modified = "2020-10-19" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Kpot.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "75abaab9a10e8ac8808425c389238285ab9bd9cb76f0cd03cc1e35b3ea0a1b0f" score = 75 quality = 70 tags = "FILE" cape_type = "Kpot Payload" strings: $format = "%s | %s | %s | %s | %s | %s | %s | %d | %s" $username = "username:s:" $os = "OS: %S x%d" condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Hermes : FILE { meta: description = "Hermes Payload" author = "kevoreilly" id = "0ff44422-9c14-517b-9e71-8e9e19694f06" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Hermes.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "9bc974173f39a57e7adfbf8ae106a20d960557696b4c3ce16e9b4e47d3e9e95b" score = 75 quality = 70 tags = "FILE" cape_type = "Hermes Payload" strings: $ext = ".HRM" wide $vss = "vssadmin Delete" $email = "supportdecrypt@firemail.cc" wide condition: uint16( 0 ) == 0x5A4D and all of ( $* ) } rule CAPE_Stealc : FILE { meta: description = "Stealc Payload" author = "kevoreilly" id = "77567584-7c84-5351-938b-d29d612a042d" date = "2023-02-22" modified = "2025-08-21" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Stealc.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "77d6f1914af6caf909fa2a246fcec05f500f79dd56e5d0d466d55924695c702d" logic_hash = "a6165168b7c74761b91d1691465688c748227b830813067edb4e9bdc934271c4" score = 75 quality = 70 tags = "FILE" cape_type = "Stealc Payload" strings: $nugget1 = {68 04 01 00 00 6A 00 FF 15 [4] 50 FF 15} $nugget2 = {64 A1 30 00 00 00 8B 40 0C 8B 40 0C 8B 00 8B 00 8B 40 18 89 45 FC} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Stealcv2 : FILE { meta: description = "Stealc V2 Payload" author = "kevoreilly" id = "0f72c468-9485-5e29-b29a-7dfc3e579e02" date = "2023-02-22" modified = "2025-08-21" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Stealc.yar#L15-L32" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "911c6a7f63e91a788898f3cc6e66396e39d5bd48f8fbaac49ee5dbbdaa64d5a0" score = 75 quality = 70 tags = "FILE" cape_type = "Stealc Payload" packed = "2f42dcf05dd87e6352491ff9d4ea3dc3f854df53d548a8da0c323be42df797b6" packed = "8301936f439f43579cffe98e11e3224051e2fb890ffe9df680bbbd8db0729387" strings: $decode32 = {AB AB AB AB 8B 45 0C 89 4E 10 89 4E 14 39 45 08 75 0B C7 46 14 0F 00 00 00 88 0E EB 0F 2B 45 08 50 51 FF 75 ?? 8B} $dump32 = {33 C0 89 46 30 88 46 34 89 46 38 89 46 3C 89 46 40 89 46 44 89 46 48 89 46 4C 89 46 50 89 46 54 89 46 58 8B C6 5F 5E C3} $date32 = {F3 A5 8D 45 ?? 50 E8 [4] 59 8B F8 8B F2 8D 45 A4 50 E8 [4] 59 3B F2 7C 08 7F 04 3B F8 76 02 B3 01 8A C3} $decode64 = {40 53 48 83 EC 20 48 8B 19 48 85 DB 74 ?? 48 8B 53 18 48 83 FA 0F 76 2C 48 8B 0B 48 FF C2 48 81 FA 00 10 00 00 72} $dump64 = {48 8B C7 89 6F 40 40 88 6F 44 48 89 6F 48 48 89 6F 50 48 89 6F 58 48 89 6F 60 48 89 6F 68 48 89 6F 70 48 89 6F 78 48 89} $date64 = {0F 11 44 [2] 0F 11 8C [2] 00 00 00 89 8C [2] 00 00 00 48 8D 4C [2] E8 [4] 48 8B D8 48 8D 4C [2] E8 [4] 48 3B D8 0F 9F C0} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Arkei : FILE { meta: description = "Arkei Payload" author = "kevoreilly, YungBinary" id = "18363a5b-46f3-5d11-9bc6-a91f81b49706" date = "2019-10-30" modified = "2025-01-10" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Arkei.yar#L1-L50" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "296e420880d8d2f24424d0411e7ef4939e18147689557512f410da48498a44c9" score = 75 quality = 70 tags = "FILE" cape_type = "Arkei Payload" strings: $string1 = "Windows_Antimalware_Host_System_Worker" $string2 = "Arkei" $string3 = "Bitcoin\\wallet.dat" $string4 = "Ethereum\\keystore" $v1 = "C:\\Windows\\System32\\cmd.exe" fullword ascii wide $v2 = "/c taskkill /im " fullword ascii $v3 = "card_number_encrypted FROM credit_cards" ascii $v4 = "\\wallet.dat" ascii $v5 = "Arkei/" wide $v6 = "files\\passwords." ascii wide $v7 = "files\\cc_" ascii wide $v8 = "files\\autofill_" ascii wide $v9 = "files\\cookies_" ascii wide $loaded_modules = { 64 A1 30 00 00 00 8B 40 0C 8B 40 0C 8B 00 8B 00 8B 40 18 89 45 FC 8B 45 FC 8B E5 5D C3 } $language_check = { FF 15 ?? ?? ?? ?? 0F B7 C0 89 45 ?? 81 7D ?? 3F 04 ?? ?? 7F } $ext1 = ".zoo" ascii $ext2 = ".arc" ascii condition: uint16( 0 ) == 0x5A4D and ( ( $loaded_modules and $language_check and $ext1 and $ext2 ) or ( all of ( $string* ) or 7 of ( $v* ) ) ) } rule CAPE_Gandcrab : FILE { meta: description = "Gandcrab Payload" author = "kevoreilly" id = "0082e8c9-952e-508c-a438-4e17b8031864" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Gandcrab.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "354ed566dbafbe8e9531bb771d9846952eb8c0e70ee94c26d09368159ce4142c" score = 75 quality = 70 tags = "FILE" cape_type = "Gandcrab Payload" strings: $string1 = "GDCB-DECRYPT.txt" wide $string2 = "GandCrabGandCrabnomoreransom.coinomoreransom.bit" $string3 = "action=result&e_files=%d&e_size=%I64u&e_time=%d&" wide $string4 = "KRAB-DECRYPT.txt" wide condition: uint16( 0 ) == 0x5A4D and any of ( $string* ) } rule CAPE_Vipkeylogger : FILE { meta: description = "Detects VIPKeyLogger Keylogger" author = "kevoreilly" id = "71606fcc-89b4-519a-833a-b6cb4b569cb8" date = "2025-09-11" modified = "2025-09-11" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/VIPKeyLogger.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "b9dba7562bba4807c0789692d44650996e62c8d0c4031dedd65773877621b1de" score = 75 quality = 70 tags = "FILE" cape_type = "VIPKeyLogger Payload" packed = "edaba79c3d43a416a86003f336d879ed3a513aa24dd401340584615647ed6da2" strings: $s1 = "/ VIP Recovery \\" wide $s2 = "Clipboard Logs ID" wide $s3 = "Keylogger" wide condition: uint16( 0 ) == 0x5a4d and all of them } rule CAPE_Kovter : FILE { meta: description = "Kovter Payload" author = "kevoreilly" id = "3dec3c4b-4678-5ed1-a4c3-c3d9abb58b1c" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Kovter.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "888fccb8fbfbe6c05ec63bc5658b4743f8e10a96ef51b3868c2ff94afec76f2d" score = 75 quality = 70 tags = "FILE" cape_type = "Kovter Payload" strings: $a1 = "chkok" $a2 = "k2Tdgo" $a3 = "13_13_13" $a4 = "Win Server 2008 R2" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Locky : FILE { meta: description = "Locky Payload" author = "kevoreilly" id = "664d0365-af49-5222-a4ed-9260332f6940" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Locky.yar#L1-L14" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "9786c54a2644d9581fefe64be11b26e22806398e54e961fa4f19d26eae039cd7" score = 75 quality = 70 tags = "FILE" cape_type = "Locky Payload" strings: $string1 = "wallet.dat" wide $string2 = "Locky_recover" wide $string3 = "opt321" wide condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Obfuscar : FILE { meta: description = "Obfuscar xor routime" author = "kevoreilly" id = "81eeb62f-578f-5c75-bc96-091d5727a20a" date = "2025-03-07" modified = "2025-03-07" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Obfuscar.yar#L1-L12" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "54581e83e5fa13fae4bda74016b3fa1d18c92e2659f493ebe54d70fd5f77bba5" score = 75 quality = 70 tags = "FILE" strings: $decode = {06 91 06 61 20 [4] 61 D2 9C 06 17 58 0A 06 7E [4] 8E 69 FE 04 2D ?? 2A} condition: uint16( 0 ) == 0x5A4D and any of them } rule CAPE_Mole : FILE { meta: description = "Mole Payload" author = "kevoreilly" id = "1185170f-4a5b-5347-807b-ef2af98a1a09" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Mole.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "8be4d190d554a610360c0e04b33da59eb00319395e5b2000d580546ce6503786" score = 75 quality = 70 tags = "FILE" cape_type = "Mole Payload" strings: $a1 = ".mole0" wide $a2 = "_HELP_INSTRUCTION.TXT" wide $a3 = "-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Quasarrat : FILE { meta: description = "QuasarRAT payload" author = "ditekshen" id = "f256b88f-eee6-5f8c-afd6-32ed10ea908d" date = "2024-10-09" modified = "2025-02-03" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/AsyncRAT.yar#L245-L266" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "556b19dc0980761198ea31a285f281adae084463d24bff1eda15326436ad562b" score = 75 quality = 70 tags = "FILE" cape_type = "QuasarRAT Payload" strings: $s1 = "GetKeyloggerLogsResponse" fullword ascii $s2 = "GetKeyloggerLogs" fullword ascii $s3 = "/>Log created on" wide $s4 = "User: {0}{3}Pass: {1}{3}Host: {2}" wide $s5 = "Domain: {1}{0}Cookie Name: {2}{0}Value: {3}{0}Path: {4}{0}Expired: {5}{0}HttpOnly: {6}{0}Secure: {7}" wide $s6 = "grabber_" wide $s7 = "" ascii $s8 = "k__BackingField" fullword ascii $s9 = "" ascii $s10 = "add_OnHotKeysDown" ascii $mutex = "QSR_MUTEX_" ascii wide $ua1 = "Mozilla/5.0 (Windows NT 6.3; rv:48.0) Gecko/20100101 Firefox/48.0" fullword wide $us2 = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A" fullword wide condition: uint16( 0 ) == 0x5a4d and ( $mutex or ( all of ( $ua* ) and 2 of them ) or 6 of ( $s* ) ) } rule CAPE_Nemty : FILE { meta: description = "Nemty Ransomware Payload" author = "kevoreilly" id = "3aa8e1d7-f9cb-5b04-923d-7bed15ab8c3f" date = "2020-04-03" modified = "2020-04-03" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Nemty.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "a05974b561c67b4f1e0812639b74831edcf65686a06c0d380f0b45739e342419" score = 75 quality = 70 tags = "FILE" cape_type = "Nemty Payload" strings: $tordir = "TorDir" $decrypt = "DECRYPT.txt" $nemty = "NEMTY" condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Bitpaymer : FILE { meta: description = "BitPaymer Payload" author = "kevoreilly" id = "c139b514-a1ba-5d47-8f4d-8e60cddfe2ba" date = "2019-11-27" modified = "2019-11-27" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/BitPaymer.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "6ae0dc9a36da13e483d8d653276b06f59ecc15c95c754c268dcc91b181677c4c" score = 75 quality = 70 tags = "FILE" cape_type = "BitPaymer Payload" strings: $decrypt32 = {6A 40 58 3B C8 0F 4D C1 39 46 04 7D 50 53 57 8B F8 81 E7 3F 00 00 80 79 05 4F 83 CF C0 47 F7 DF 99 1B FF 83 E2 3F 03 C2 F7 DF C1 F8 06 03 F8 C1 E7 06 57} $antidefender = "TouchMeNot" wide condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Seduploader : FILE { meta: description = "Seduploader decrypt function" author = "kevoreilly" id = "a7152d8c-a197-5784-8a6d-453d41585df1" date = "2019-10-30" modified = "2022-06-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Seduploader.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "d70c886699169d4dafc5b063c93682a34af5667df6d293b52256ddc19ab9c516" score = 75 quality = 70 tags = "FILE" cape_type = "Seduploader Payload" strings: $decrypt1 = {8D 0C 30 C7 45 FC 0A 00 00 00 33 D2 F7 75 FC 8A 82 ?? ?? ?? ?? 32 04 0F 88 01 8B 45 0C 40 89 45 0C 3B C3 7C DB} condition: uint16( 0 ) == 0x5A4D and any of ( $decrypt* ) } rule CAPE_Amadey : FILE { meta: description = "Amadey Payload" author = "kevoreilly, YungBinary" id = "81d251a2-84c3-524c-8ea5-c92ca8764777" date = "2021-02-18" modified = "2025-08-15" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Amadey.yar#L1-L15" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "988258716d5296c1323303e8fe4efd7f4642c87bfdbe970fe9a3bb3f410f70a4" logic_hash = "5a7405a174b63826500f3b04c6f10bc9b40d5b49e85377bef027204e75dd1e9e" score = 75 quality = 70 tags = "FILE" cape_type = "Amadey Payload" strings: $decode1 = {8B D1 B8 FF FF FF 7F D1 EA 2B C2 3B C8 76 07 BB FF FF FF 7F EB 08 8D 04 0A 3B D8 0F 42 D8} $decode2 = {2B C8 8D 04 0A 33 D2 F7 F3 8B 5D ?? 8B CB 83 7B ?? 10} $decode3 = {33 D2 8B 4D ?? 8B C7 F7 F6 8A 84 3B [4] 2A 44 0A 01 88 87 [4] 47 8B 45 ?? 8D 50 01} $decode4 = {8A 04 02 88 04 0F 41 8B 7D ?? 8D 42 01 3B CB 7C} condition: uint16( 0 ) == 0x5A4D and 2 of them } rule CAPE_Codoso : FILE { meta: description = "Codoso Payload" author = "kevoreilly" id = "4c3d8d77-ffa9-576d-bf88-7b5a1bfd1811" date = "2019-10-30" modified = "2019-10-30" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Codoso.yar#L1-L13" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "32c9ed2ac29e8905266977a9ee573a252442d96fb9ec97d88642180deceec3f8" score = 75 quality = 70 tags = "FILE" cape_type = "Codoso Payload" strings: $a1 = "WHO_A_R_E_YOU?" $a2 = "DUDE_AM_I_SHARP-3.14159265358979" $a3 = "USERMODECMD" condition: uint16( 0 ) == 0x5A4D and ( all of ( $a* ) ) } rule CAPE_Zloader2025 : FILE { meta: description = "Zloader Payload" author = "enzok" id = "dd6ee439-9599-564c-8841-94bd89ae2db0" date = "2020-04-04" modified = "2025-12-09" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/Zloader.yar#L36-L49" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" hash = "86ffd411b42d8d06bdb294f48e79393adeea586c56c5c75c1a68ce6315932881" logic_hash = "cc9c39f0b5e7e8c8853982d9c896bbaac5a36bb0f501c8901d8854f2d5e1a19c" score = 75 quality = 70 tags = "FILE" cape_type = "Zloader Payload" strings: $conf = {4? 01 ?? [4] E8 [4] 4? 8D 15 [4] 4? 89 ?? 4? 89 ?? E8 [4] C7 46 30 00 00 00 00 8B 7E 34} $confkey_1 = {4? 01 ?? [2] E8 [4] 4? 8D 15 [4] 4? 89 ?? 4? 89 ?? E8 [4] C7 46 34 00 00 00 00 8B 46 38} $confkey_2 = {4? 01 ?? [2] E8 [4] 4? 8D 15 [4] 4? 89 ?? 4? 89 ?? E8 [4] C7 46 38 00 00 00 00 48 83 C4 28} condition: uint16( 0 ) == 0x5A4D and $conf and all of ( $confkey_* ) } rule CAPE_Agenttesla : FILE { meta: description = "AgentTesla Payload" author = "kevoreilly" id = "f7b930f1-cecb-5d80-809b-9503f282247a" date = "2019-10-30" modified = "2026-01-14" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/AgentTesla.yar#L19-L41" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "1bf9b26c4cf87e674ddffabe40aba5a45499c6a04d4ff3e43c3cda4cbcb4d188" score = 75 quality = 70 tags = "FILE" cape_type = "AgentTesla Payload" strings: $string1 = "smtp" wide $string2 = "appdata" wide $string3 = "76487-337-8429955-22614" wide $string4 = "yyyy-MM-dd HH:mm:ss" wide $string6 = "webpanel" wide $string7 = "
UserName      :" wide $string8 = "
IP Address  :" wide $agt1 = "IELibrary.dll" ascii $agt2 = "C:\\Users\\Admin\\Desktop\\IELibrary\\IELibrary\\obj\\Debug\\IELibrary.pdb" ascii $agt3 = "GetSavedPasswords" ascii $agt4 = "GetSavedCookies" ascii condition: uint16( 0 ) == 0x5A4D and ( all of ( $string* ) or 3 of ( $agt* ) ) } rule CAPE_Agentteslav2 : FILE { meta: description = "AgenetTesla Type 2 Keylogger payload" author = "ditekshen" id = "e60ecee4-0a97-56a1-b21e-47190f8cd1f8" date = "2019-10-30" modified = "2026-01-14" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/AgentTesla.yar#L43-L67" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "b45296b3b94fa1ff32de48c94329a17402461fb6696e9390565c4dba9738ed78" score = 75 quality = 70 tags = "FILE" cape_type = "AgentTesla Payload" strings: $s1 = "get_kbHook" ascii $s2 = "GetPrivateProfileString" ascii $s3 = "get_OSFullName" ascii $s4 = "get_PasswordHash" ascii $s5 = "remove_Key" ascii $s6 = "FtpWebRequest" ascii $s7 = "logins" fullword wide $s8 = "keylog" fullword wide $s9 = "1.85 (Hash, version 2, native byte-order)" wide $cl1 = "Postbox" fullword ascii $cl2 = "BlackHawk" fullword ascii $cl3 = "WaterFox" fullword ascii $cl4 = "CyberFox" fullword ascii $cl5 = "IceDragon" fullword ascii $cl6 = "Thunderbird" fullword ascii condition: ( uint16( 0 ) == 0x5a4d and 6 of ( $s* ) ) or ( 6 of ( $s* ) and 2 of ( $cl* ) ) } rule CAPE_Agentteslav3 : FILE { meta: description = "AgentTeslaV3 infostealer payload" author = "ditekshen" id = "c8ddd838-6ad4-56f3-a0cd-b890f809018c" date = "2019-10-30" modified = "2026-01-14" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/AgentTesla.yar#L69-L115" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "cc9bbbcf3608b49a76b098acf846ff03eae5e9cb107697627d62661fa1be36c2" score = 75 quality = 70 tags = "FILE" cape_type = "AgentTesla payload" strings: $s_specific1 = "get_kbok" fullword ascii $s_specific2 = "get_CHoo" fullword ascii $s_specific3 = "KillTorProcess" fullword ascii $s_specific4 = "GetMozilla" ascii $s_specific5 = "torbrowser" wide $s_specific6 = "bot%telegramapi%" wide $s_specific7 = "%chatid%" wide $s_typo = "set_Lenght" fullword ascii $m1 = "yyyy-MM-dd hh-mm-ssCookieapplication/zipSCSC_.jpegScreenshotimage/jpeg/log.tmpKLKL_.htmlLogtext/html[]Time" ascii $m2 = "%image/jpg:Zone.Identifier\\tmpG.tmp%urlkey%-f \\Data\\Tor\\torrcp=%PostURL%127.0.0.1POST+%2B" ascii $m3 = ">{CTRL}Windows RDPcredentialpolicyblobrdgchrome{{{0}}}CopyToComputeHashsha512CopySystemDrive\\WScript.ShellRegReadg401" ascii $m4 = "%startupfolder%\\%insfolder%\\%insname%/\\%insfolder%\\Software\\Microsoft\\Windows\\CurrentVersion\\Run%insregname%SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartupApproved\\RunTruehttp" ascii $m5 = "\\WindowsLoad%ftphost%/%ftpuser%%ftppassword%STORLengthWriteCloseGetBytesOpera" ascii $s_generic1 = "set_UseShellExecute" fullword ascii $s_generic2 = "set_IsBodyHtml" fullword ascii $s_generic3 = "set_AllowAutoRedirect" fullword ascii $s_generic4 = "set_RedirectStandardOutput" fullword ascii condition: (2 of ( $m* ) ) or ( uint16( 0 ) == 0x5a4d and ( 5 of ( $s_specific* ) or ( $s_typo and 4 of ( $s_generic* ) ) ) ) } rule CAPE_Agentteslav4 : FILE { meta: description = "AgentTesla Payload" author = "kevoreilly" id = "a39109ca-84cb-527d-b9c2-d8763fa6e496" date = "2019-10-30" modified = "2026-01-14" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/AgentTesla.yar#L117-L130" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "0a39036f408728ab312a54ff3354453d171424f57f9a8f3b42af867be3037ca9" score = 75 quality = 70 tags = "FILE" cape_type = "AgentTesla Payload" packed = "7f8a95173e17256698324886bb138b7936b9e8c5b9ab8fffbfe01080f02f286c" strings: $decode1 = {(07|FE 0C 01 00) (07|FE 0C 01 00) 8E 69 (17|20 01 00 00 00) 63 8F ?? 00 00 01 25 47 (06|FE 0C 00 00) (1A|20 04 00 00 00) 58 4A D2 61 D2 52} $decode2 = {(07|FE 0C 01 00) (08|FE 0C 02 00) 8F ?? 00 00 01 25 47 (07|FE 0C 01 00) (11 07|FE 0C 07 00) 91 (06|FE 0C 00 00) (1A|20 04 00 00 00) 58 4A 61 D2 61 D2 52} $decode3 = {(07|FE 0C 01 00) (11 07|FE 0C 07 00) 8F ?? 00 00 01 25 47 (07|FE 0C 01 00) (08|FE 0C 02 00) 91 61 D2 52} condition: uint16( 0 ) == 0x5A4D and all of them } rule CAPE_Squirrelwaffle : FILE { meta: description = "No description has been set in the source file - CAPE" author = "kevoreilly & R3MRUM" id = "0ae75f24-7a2a-57d3-8c6f-a61ac6cc08e7" date = "2021-09-22" modified = "2021-10-13" reference = "https://github.com/kevoreilly/CAPEv2" source_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/data/yara/CAPE/SquirrelWaffle.yar#L1-L11" license_url = "https://github.com/kevoreilly/CAPEv2/blob/539d7ad94675d7caee5eee0816d49af6654efb20/LICENSE" logic_hash = "5f799333398421d537ec7a87ca94f6cc9cf1e53e55b353036a5132440990e500" score = 75 quality = 70 tags = "FILE" cape_type = "SquirrelWaffle Payload" strings: $code = {8D 45 ?? C6 45 ?? 00 0F 43 4D ?? 83 7D ?? 10 0F 43 45 ?? 8A 04 10 32 04 39 8D 4D ?? 0F B6 C0 50 6A 01 E8 [4] C6 45} $decode = {F7 75 ?? 83 7D ?? 10 8D 4D ?? 8D 45 ?? C6 45 ?? 00 0F 43 4D ?? 83 7D ?? 10 0F 43 45 ?? 8A 04 10 32 04 39} condition: uint16( 0 ) == 0x5A4D and all of them } /* * YARA Rule Set * Repository Name: DeadBits * Repository: https://github.com/deadbits/yara-rules/ * Retrieval Date: 2026-03-15 * Git Commit: d002f7ecee23e09142a3ac3e79c84f71dda3f001 * Number of Rules: 11 * Skipped: 0 (age), 12 (quality), 0 (score), 0 (importance) * * * LICENSE * * NO LICENSE SET */ rule DEADBITS_APT34_PICKPOCKET : APT APT34 INFOSTEALER WINMALWARE FILE { meta: description = "Detects the PICKPOCKET malware used by APT34, a browser credential-theft tool identified by FireEye in May 2018" author = "Adam Swanda" id = "71db5c74-4964-5c5e-a830-242bfd0a2158" date = "2019-07-22" modified = "2019-07-22" reference = "https://www.fireeye.com/blog/threat-research/2019/07/hard-pass-declining-apt34-invite-to-join-their-professional-network.html" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/APT34_PICKPOCKET.yara#L1-L30" license_url = "N/A" logic_hash = "7063cff3eb42c4468e01c9b214161cd306f7126f66650d99d43168730d1dc83a" score = 75 quality = 80 tags = "APT, APT34, INFOSTEALER, WINMALWARE, FILE" strings: $s1 = "SELECT * FROM moz_logins;" ascii fullword $s2 = "\\nss3.dll" ascii fullword $s3 = "SELECT * FROM logins;" ascii fullword $s4 = "| %Q || substr(name,%d+18) ELSE name END WHERE tbl_name=%Q COLLATE nocase AND (type='table' OR type='index' OR type='trigger');" ascii fullword $s5 = "\\Login Data" ascii fullword $s6 = "%s\\Mozilla\\Firefox\\profiles.ini" ascii fullword $s7 = "Login Data" ascii fullword $s8 = "encryptedUsernamencryptedPasswor" ascii fullword $s10 = "%s\\Mozilla\\Firefox\\%s" ascii fullword $s11 = "encryptedUsername" ascii fullword $s12 = "2013-12-06 14:53:30 27392118af4c38c5203a04b8013e1afdb1cebd0d" ascii fullword $s13 = "27392118af4c38c5203a04b8013e1afdb1cebd0d" ascii $s15 = "= 'table' AND name!='sqlite_sequence' AND coalesce(rootpage,1)>0" ascii fullword $s18 = "[*] FireFox :" fullword wide $s19 = "[*] Chrome :" fullword wide $s20 = "username_value" ascii fullword condition: uint16( 0 ) == 0x5a4d and ( 8 of them or all of them ) } rule DEADBITS_Winnti_Linux : LINUXMALWARE FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "d90dec69-1a8b-547c-a302-d00c612a71ed" date = "2019-07-18" modified = "2019-07-22" reference = "https://github.com/deadbits/yara-rules" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/winnti_linux.yara#L1-L37" license_url = "N/A" logic_hash = "216c103b4ffceaa0540b8c81645d3fd91a7dab2b32b1cf84ccb85f134c9d23c8" score = 75 quality = 76 tags = "LINUXMALWARE, FILE" Author = "Adam M. Swanda" strings: $str0 = "HIDE_THIS_SHELL=x" $str1 = "/usr/sbin/dmidecode | grep -i 'UUID' |cut -d' ' -f2 2>/dev/null" ascii fullword $str2 = "mutex.max: %lu" ascii fullword $str3 = "mutex.err: %lu" ascii fullword $str4 = "/tmp/ans.log" ascii fullword $str5 = "mutex.used: %lu" ascii fullword $str6 = "Warning: Some of the worker threads may have failed to exit." ascii fullword $str7 = "line %d - " ascii fullword $str8 = "Warning an error has occurred when trying to obtain a worker task." ascii fullword $str9 = "6CMutex" ascii fullword $str10 = "Failed to obtain an empty task from the free tasks queue." ascii fullword $str11 = "A problem was detected in the queue (expected NULL, but found a different value)." ascii fullword $str12 = "Failed to a task to the free tasks queue during initialization." ascii fullword $str13 = "/var/run/libudev1.pid" ascii fullword $str14 = "__pthread_key_create" ascii fullword $str15 = "The threadpool received as argument is NULL." ascii fullword $str16 = "Failed to enqueue a task to free tasks queue." ascii fullword $str17 = "Failed to obtain a task from the jobs queue." ascii fullword $str18 = "Failed to add a new task to the tasks queue." ascii fullword $str19 = "setsockopt failed" ascii fullword $str20 = "libxselinux.so" ascii fullword $str21 = "/lib/libxselinux" ascii fullword condition: uint16( 0 ) == 0x457f and 8 of them } rule DEADBITS_Avemaria_Warzone : AVEMARIA WARZONE WINMALWARE INFOSTEALER FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "1e03927b-d59c-5e1f-bdee-e44dfb172fad" date = "2019-07-18" modified = "2019-08-08" reference = "https://github.com/deadbits/yara-rules" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/avemaria_warzone.yara#L1-L32" license_url = "N/A" logic_hash = "1fe55fc8ea80616b11757193c2c74b9cf577ab661ddca4c6c64cfad63a300614" score = 75 quality = 80 tags = "AVEMARIA, WARZONE, WINMALWARE, INFOSTEALER, FILE" Author = "Adam M. Swanda" strings: $str1 = "cmd.exe /C ping 1.2.3.4 -n 2 -w 1000 > Nul & Del /f /q " ascii fullword $str2 = "MsgBox.exe" wide fullword $str4 = "\\System32\\cmd.exe" wide fullword $str6 = "Ave_Maria" wide $str7 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList" ascii fullword $str8 = "SMTP Password" wide fullword $str11 = "\\Google\\Chrome\\User Data\\Default\\Login Data" wide fullword $str12 = "\\sqlmap.dll" wide fullword $str14 = "SELECT * FROM logins" ascii fullword $str16 = "Elevation:Administrator!new" wide $str17 = "/n:%temp%" ascii wide condition: ( uint16( 0 ) == 0x5a4d and filesize < 400KB ) and ( 5 of ( $str* ) or all of them ) } rule DEADBITS_Silenttrinity_Delivery_Document : FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "be8cf8b7-d7f8-587d-b7bd-ad10796cda7c" date = "2019-07-19" modified = "2019-07-19" reference = "https://countercept.com/blog/hunting-for-silenttrinity/" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/SilentTrinity_Delivery.yara#L1-L30" license_url = "N/A" logic_hash = "1efaa317dd250fa127b134ff8e6e6ac48d1056059256f790925d2315a6865033" score = 75 quality = 80 tags = "FILE" Description = "Attempts to detect SilentTrinity delivery documents" Author = "Adam M. Swanda" strings: $s0 = "VBE7.DLL" fullword ascii $s1 = "TargetPivotTable" fullword ascii $s2 = "DocumentUserPassword" fullword wide $s3 = "DocumentOwnerPassword" fullword wide $s4 = "Scripting.FileSystemObject" fullword wide $s5 = "MSXML2.ServerXMLHTTP" fullword wide $s6 = "Win32_ProcessStartup " fullword ascii $s7 = "Step 3: Start looping through all worksheets" fullword ascii $s8 = "Step 2: Start looping through all worksheets" fullword ascii $s9 = "Stringer" fullword wide $s10 = "-decode -f" fullword wide $s11 = "2. Da biste pogledali dokument, molimo kliknite \"OMOGU" fullword wide condition: uint16( 0 ) == 0xcfd0 and filesize < 200KB and ( 8 of ( $s* ) or all of them ) } rule DEADBITS_APT34_LONGWATCH : APT34 WINMALWARE KEYLOGGER FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "74a6a408-2f0e-567d-8968-c304d258df81" date = "2019-07-22" modified = "2019-07-22" reference = "https://www.fireeye.com/blog/threat-research/2019/07/hard-pass-declining-apt34-invite-to-join-their-professional-network.html" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/APT34_LONGWATCH.yara#L1-L43" license_url = "N/A" logic_hash = "8f9ed228325800baea3a2874c71337709c04d93419d4d56821a791dbce6f4582" score = 75 quality = 78 tags = "APT34, WINMALWARE, KEYLOGGER, FILE" Description = "APT34 Keylogger" strings: $log = "c:\\windows\\temp\\log.txt" ascii fullword $clipboard = "---------------CLIPBOARD------------" ascii fullword $func0 = "\"Main Invoked.\"" ascii fullword $func1 = "\"Main Returned.\"" ascii fullword $logger3 = ">---------------------------------------------------" ascii fullword $logger4 = "[ENTER]" ascii fullword $logger5 = "[CapsLock]" ascii fullword $logger6 = "[CRTL]" ascii fullword $logger7 = "[PAGE_UP]" ascii fullword $logger8 = "[PAGE_DOWN]" ascii fullword $logger9 = "[HOME]" ascii fullword $logger10 = "[LEFT]" ascii fullword $logger11 = "[RIGHT]" ascii fullword $logger12 = "[DOWN]" ascii fullword $logger13 = "[PRINT]" ascii fullword $logger14 = "[PRINT SCREEN]" ascii fullword $logger15 = "[INSERT]" ascii fullword $logger16 = "[SLEEP]" ascii fullword $logger17 = "[PAUSE]" ascii fullword $logger18 = "[TAB]" ascii fullword $logger19 = "[ESC]" ascii fullword $logger20 = "[DEL]" ascii fullword $logger21 = "[ALT]" ascii fullword condition: uint16( 0 ) == 0x5a4d and $log and all of ( $func* ) and all of ( $logger* ) and $clipboard } rule DEADBITS_APT34_VALUEVAULT : APT34 INFOSTEALER WINMALWARE FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "11d08fe7-9080-5393-b566-6f01e3eec18b" date = "2019-07-22" modified = "2020-02-02" reference = "https://www.fireeye.com/blog/threat-research/2019/07/hard-pass-declining-apt34-invite-to-join-their-professional-network.html" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/APT34_VALUEVAULT.yara#L1-L63" license_url = "N/A" logic_hash = "311eed153920b29b8d9e99651fe62259d685140d12bb073001e0576811a01198" score = 75 quality = 78 tags = "APT34, INFOSTEALER, WINMALWARE, FILE" Description = "Information stealing malware used by APT34, written in Go." strings: $fsociety = "fsociety.dat" ascii $powershell = "New-Object -ComObject Shell.Application" ascii $gobuild = "Go build ID: " ascii $gopath01 = "browsers-password-cracker" ascii nocase $gopath02 = "main.go" ascii nocase $gopath03 = "mozilla.go" ascii nocase $gopath04 = "ie.go" ascii nocase $str1 = "main.Decrypt" ascii fullword $str3 = "main.NewBlob" ascii fullword $str4 = "main.CheckFileExist" ascii fullword $str5 = "main.CopyFileToDirectory" ascii fullword $str6 = "main.CrackChromeBased" ascii fullword $str7 = "main.CrackIE" ascii fullword $str8 = "main.decipherPassword" ascii fullword $str9 = "main.DecodeUTF16" ascii fullword $str10 = "main.getHashTable" ascii fullword $str11 = "main.getHistory" ascii fullword $str12 = "main.getHistoryWithPowerShell" ascii fullword $str13 = "main.getHistoryFromRegistery" ascii fullword $str14 = "main.main" ascii fullword $str15 = "main.DecryptAESFromBase64" ascii fullword $str16 = "main.DecryptAES" ascii fullword $str17 = "main.CrackMozila" ascii fullword $str18 = "main.decodeLoginData" ascii fullword $str19 = "main.decrypt" ascii fullword $str20 = "main.removePadding" ascii fullword $str21 = "main.getLoginData" ascii fullword $str22 = "main.isMasterPasswordCorrect" ascii fullword $str23 = "main.decrypt3DES" ascii fullword $str24 = "main.getKey" ascii fullword $str25 = "main.manageMasterPassword" ascii fullword $str26 = "main.getFirefoxProfiles" ascii fullword $str27 = "main._Cfunc_DumpVault" ascii fullword $str28 = "main.CrackIEandEdgeNew" ascii fullword $str29 = "main.init.ializers" ascii fullword $str30 = "main.init" ascii fullword condition: uint16( 0 ) == 0x5a4d and ( ( 10 of ( $str* ) and 3 of ( $gopath* ) ) or ( $fsociety and $powershell and $gobuild ) or ( $fsociety and 10 of ( $str* ) ) ) } rule DEADBITS_Dnspionage : APT DNSCHANGER FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "9f740645-60dc-5376-94ad-59d8efbf1942" date = "2019-07-18" modified = "2019-07-19" reference = "https://github.com/deadbits/yara-rules" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/DNSpionage.yara#L1-L47" license_url = "N/A" logic_hash = "f20c71d0698d98cc58fa199c708ec7bf5cb0ec62503a20b532e752dab9aab920" score = 75 quality = 78 tags = "APT, DNSCHANGER, FILE" Description = "Attempts to detect DNSpionage PE samples" Author = "Adam M. Swanda" strings: $x00 = "/Loginnn?id=" fullword ascii $hdr0 = "Content-Disposition: fo" fullword ascii $hdr1 = "Content-Type: multi" fullword ascii $ua0 = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36" fullword ascii $ua1 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246" fullword ascii $str0 = "send command result error! status code is: " fullword ascii $str1 = "uploading command result form" fullword ascii $str2 = "log.txt" fullword ascii $str3 = "http host not found in config!" fullword ascii $str4 = "send command result" fullword ascii $str5 = "download error. status code: " fullword ascii $str6 = "get command with dns" fullword ascii $str7 = "dns host not found in config!" fullword ascii $str8 = "command result is: " fullword ascii $str9 = "command result size: " fullword ascii $str10 = "connection type not found in config!" fullword ascii $str11 = "commands: " fullword ascii $str12 = "command is: " fullword ascii $str13 = "port not found in config!" fullword ascii $str14 = "download filename not found! " fullword ascii $str15 = "base64 key not found in config!" fullword ascii $str16 = "download filename is: " fullword ascii $str17 = "config json is not valid" fullword ascii $str18 = "config file will be changed from server!" fullword ascii condition: uint16( 0 ) == 0x5a4d and filesize < 1000KB and ( ( 5 of ( $str* ) ) or ( $x00 and ( 1 of ( $hdr* ) ) and 1 of ( $ua* ) ) ) } rule DEADBITS_Silenttrinity : FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "40f9174c-e9a5-5453-b5fa-6c01c46daffa" date = "2019-07-19" modified = "2019-07-19" reference = "https://countercept.com/blog/hunting-for-silenttrinity/" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/SilentTrinity_Payload.yara#L1-L55" license_url = "N/A" logic_hash = "7fd1775aadfccfdf141c0721f557e6c54b058ac17a59a8e4561dd62ab4a1eff3" score = 75 quality = 78 tags = "FILE" Description = "Attempts to detect the SilentTrinity malware family" Author = "Adam M. Swanda" strings: $pdb01 = "SILENTTRINITY.pdb" ascii $str01 = "Found {0} in zip" ascii fullword $str02 = "{0} not in zip file" ascii fullword $str03 = "Invalid HMAC: {0}" ascii fullword $str04 = "Attempting HTTP GET to {0}" ascii fullword $str05 = "Downloaded {0} bytes" ascii fullword $str06 = "Error downloading {0}: {1}" ascii fullword $str07 = "Attempting HTTP POST to {0}" ascii fullword $str08 = "POST" ascii fullword $str09 = "application/octet-stream" ascii fullword $str10 = "Error sending job results to {0}: {1}" ascii fullword $str11 = ".dll" ascii fullword $str12 = "Trying to resolve assemblies by staging zip" ascii fullword $str13 = "'{0}' loaded" ascii fullword $str14 = "Usage: SILENTTRINITY.exe []" ascii fullword $str15 = "IronPython.dll" ascii fullword $str16 = "IronPythonDLL" ascii fullword $str17 = "DEBUG" ascii fullword $str18 = "Main.py" ascii fullword $str19 = "Execute" ascii fullword $str20 = "SILENTTRINITY.Properties.Resources" ascii fullword $str21 = ".zip" ascii fullword $a00 = "HttpGet" ascii fullword $a01 = "System.Net" ascii fullword $a02 = "Target" ascii fullword $a03 = "WebClient" ascii fullword $a04 = "get_Current" ascii fullword $a05 = "Endpoint" ascii fullword $a06 = "AesDecrypt" ascii fullword $a07 = "AesEncrypt" ascii fullword $a08 = "cert" ascii fullword $a09 = "WebRequest" ascii fullword $a10 = "HttpPost" ascii fullword condition: uint16( 0 ) == 0x5a4d and ( ( 8 of ( $str* ) or ( all of ( $a* ) and $pdb01 ) or $pdb01 ) ) } rule DEADBITS_Dacls_Trojan_Windows : FILE { meta: description = "No description has been set in the source file - DeadBits" author = "Adam Swanda" id = "424b2c0d-2373-5a72-9a97-52b4bfc5cdcf" date = "2020-01-07" modified = "2020-01-07" reference = "https://github.com/deadbits/yara-rules" source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/Dacls_Windows.yara#L1-L30" license_url = "N/A" logic_hash = "b77df7e3be9c264d6a63d40dbf49c41e9dd55b4e570c063b5710b849c36cc166" score = 75 quality = 80 tags = "FILE" Author = "Adam M. Swanda" strings: $fext00 = ".exe" ascii wide $fext01 = ".cmd" ascii wide $fext02 = ".bat" ascii wide $fext03 = ".com" ascii wide $str00 = "Software\\mthjk" ascii wide $str01 = "WindowsNT.dll" ascii fullword $str02 = "GET %s HTTP/1.1" ascii fullword $str03 = "content-length:" ascii fullword $str04 = "Connection: keep-alive" ascii fullword $cls00 = "c_2910.cls" ascii fullword $cls01 = "k_3872.cls" ascii fullword condition: ( uint16( 0 ) == 0x5a4d ) and ( ( all of ( $cls* ) ) or ( all of ( $fext* ) and all of ( $str* ) ) ) } /* * YARA Rule Set * Repository Name: DelivrTo * Repository: https://github.com/delivr-to/detections * Retrieval Date: 2026-03-15 * Git Commit: f85e1d0c477cbf4689d1cfe4a80049c465673b23 * Number of Rules: 2 * Skipped: 0 (age), 6 (quality), 7 (score), 0 (importance) * * * LICENSE * * NO LICENSE SET */ rule DELIVRTO_SUSP_PDF_MHT_Activemime_Sept23 : FILE { meta: description = "Presence of MHT ActiveMime within PDF for polyglot file" author = "delivr.to" id = "fbac1371-bad4-5751-a5c4-ce6c270fb83e" date = "2023-09-04" modified = "2023-09-04" reference = "https://blogs.jpcert.or.jp/en/2023/08/maldocinpdf.html" source_url = "https://github.com/delivr-to/detections/blob/f85e1d0c477cbf4689d1cfe4a80049c465673b23/yara-rules/pdf_mht_activemime.yar#L1-L19" license_url = "N/A" logic_hash = "af1450f649de6daec242f11e3b3c35305d3127fac4ef719a4ddb4edab3ae3651" score = 70 quality = 78 tags = "FILE" strings: $mht0 = "mime" ascii nocase $mht1 = "content-location:" ascii nocase $mht2 = "content-type:" ascii nocase $act = "edit-time-data" ascii nocase condition: uint32( 0 ) == 0x46445025 and all of ( $mht* ) and $act } /* * YARA Rule Set * Repository Name: ESET * Repository: https://github.com/eset/malware-ioc * Retrieval Date: 2026-03-15 * Git Commit: 6061a882d399c54e9759c90fc511a81caf5e0731 * Number of Rules: 57 * Skipped: 38 (age), 21 (quality), 2 (score), 0 (importance) * * * LICENSE * * Copyright (c) 2014-2018 ESET spol. s r.o. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ rule ESET_Apt_Windows_TA410_X4_Hash_Values : FILE { meta: description = "Matches X4 hash function found in TA410 X4" author = "ESET Research" id = "859bb977-82d0-5314-b1a8-fb3bb06a1b28" date = "2020-10-09" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L127-L149" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "bcf3891ff888ca99af9aa0e239b29241ae819022607fb829c5731267add308ea" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $s1 = {D1 10 76 C2 B6 03} $s2 = {71 3E A8 0D} $s3 = {DC 78 94 0E} $s4 = {40 0D E7 D6 06} $s5 = {83 BB FD E8 06} $s6 = {92 9D 9B FF EC 03} $s7 = {DD 0E FC FA F5 03} $s8 = {15 60 1E FB F5 03} condition: uint16( 0 ) == 0x5a4d and 4 of them } rule ESET_Apt_Windows_TA410_X4_Hash_Fct : FILE { meta: description = "Matches X4 hash function found in TA410 X4" author = "ESET Research" id = "5ca435a4-7c6e-594d-8c4d-d577735884e6" date = "2020-10-09" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L151-L187" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "3b2d44cb7685a99e9aeb08f886f6876d43ee99d1e52e40705c3fa97ce3bfa9a0" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $chunk_1 = { 0F B6 01 84 C0 74 ?? 48 69 D2 83 00 00 00 48 0F BE C0 48 03 D0 48 FF C1 E9 ?? ?? ?? ?? } condition: uint16( 0 ) == 0x5a4d and any of them } rule ESET_Apt_Windows_TA410_Lookback_HTTP : FILE { meta: description = "Matches LookBack's hardcoded HTTP request" author = "ESET Research" id = "ca4ee437-5ac9-5715-90fb-e0e74a817bb5" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L333-L349" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "0e777f56136cd11d62abdf4f120410d5fe9cd522cfc06afbf085414a96279bf7" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $s1 = "POST http://%s/status.php?r=%d%d HTTP/1.1\x0d\nAccept: text/html, application/xhtml+xml, */*\x0d\nAccept-Language: en-us\x0d\nUser-Agent: %s\x0d\nContent-Type: application/x-www-form-urlencoded\x0d\nAccept-Encoding: gzip, deflate\x0d\nHost: %s\x0d\nContent-Length: %d\x0d\nConnection: Keep-Alive\x0d\nCache-Control: no-cache\x0d\n\x0d\n" ascii wide $s2 = "id=1&op=report&status=" condition: uint16( 0 ) == 0x5a4d and all of them } rule ESET_Apt_Windows_TA410_Flowcloud_Loader_Strings : FILE { meta: description = "Matches various strings found in TA410 FlowCloud first stage." author = "ESET Research" id = "a3fb894f-8e26-5cbd-a1f2-8a9ab1db0901" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L379-L415" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "3c90723e009ffe2603910566ac52a324256676ee3ff128d94427681010e10e8b" score = 75 quality = 78 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $key = "y983nfdicu3j2dcn09wur9*^&initialize(y4r3inf;'fdskaf'SKF" $s2 = "startModule" fullword $s4 = "auto_start_module" wide $s5 = "load_main_module_after_install" wide $s6 = "terminate_if_fail" wide $s7 = "clear_run_mru" wide $s8 = "install_to_vista" wide $s9 = "load_ext_module" wide $s10 = "sll_only" wide $s11 = "fail_if_already_installed" wide $s12 = "clear_hardware_info" wide $s13 = "av_check" wide fullword $s14 = "check_rs" wide $s15 = "check_360" wide $s16 = "responsor.dat" wide ascii $s17 = "auto_start_after_install_check_anti" wide fullword $s18 = "auto_start_after_install" wide fullword $s19 = "extern_config.dat" wide fullword $s20 = "is_hhw" wide fullword $s21 = "SYSTEM\\Setup\\PrintResponsor" wide $event = "Global\\Event_{201a283f-e52b-450e-bf44-7dc436037e56}" wide ascii $s23 = "invalid encrypto hdr while decrypting" condition: uint16( 0 ) == 0x5a4d and ( $key or $event or 5 of ( $s* ) ) } rule ESET_Apt_Windows_TA410_Flowcloud_Header_Decryption : FILE { meta: description = "Matches the function used to decrypt resources headers in TA410 FlowCloud" author = "ESET Research" id = "403c1845-bc25-5a49-8553-8a0be18d6970" date = "2026-01-15" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L417-L496" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "74b6c42bf2de159b2b0a15637e6bd94069367e3000c887714d6e3b50aa3646be" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" strings: $chunk_1 = { 8B 1E 8B CF D3 CB 8D 0C 28 83 C7 06 30 18 8B 1E D3 CB 8D 0C 02 30 58 ?? 8B 1E D3 CB 8B 4C 24 ?? 03 C8 30 58 ?? 8B 1E D3 CB 8B 4C 24 ?? 03 C8 30 58 ?? 8B 1E D3 CB 8B 4C 24 ?? 03 C8 83 C0 06 30 58 ?? 8B 1E D3 CB 30 58 ?? 83 FF 10 72 ?? } condition: uint16( 0 ) == 0x5a4d and all of them } rule ESET_Apt_Windows_TA410_Flowcloud_Dll_Hijacking_Strings : FILE { meta: description = "Matches filenames inside TA410 FlowCloud malicious DLL." author = "ESET Research" id = "6636d4d0-0a7f-5971-a7f4-58803042d874" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L498-L517" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "e8082d4216364a12ba395f772b5caed94b3068d26a2b3a97ef711d61a82f65b3" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $dat1 = "emedres.dat" wide $dat2 = "vviewres.dat" wide $dat3 = "setlangloc.dat" wide $dll1 = "emedres.dll" wide $dll2 = "vviewres.dll" wide $dll3 = "setlangloc.dll" wide condition: uint16( 0 ) == 0x5a4d and ( all of ( $dat* ) or all of ( $dll* ) ) } rule ESET_Apt_Windows_TA410_Flowcloud_Malicious_Dll_Antianalysis : FILE { meta: description = "Matches anti-analysis techniques used in TA410 FlowCloud hijacking DLL." author = "ESET Research" id = "b38a1d4d-5053-5a6d-be8c-c00261936417" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L519-L552" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "8f14352118d32a43c17f70bd753acc48bd314965f10ab97818e8a434bbda96d9" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $chunk_1 = { 33 C0 E8 ?? ?? ?? ?? 83 C0 10 3D 00 00 00 80 7D 01 EB FF E0 50 C3 } condition: uint16( 0 ) == 0x5a4d and all of them } rule ESET_Apt_Windows_TA410_Flowcloud_Shellcode_Decryption : FILE { meta: description = "Matches the decryption function used in TA410 FlowCloud self-decrypting DLL" author = "ESET Research" id = "8af7b2fa-be40-5ec8-8413-1c982a463a9a" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L569-L615" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "939ffe6a41c957aa5d6c012484b2deab49a5e71a4b7e203a41c180f872803921" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $chunk_1 = { 33 D2 8B 45 ?? BB 6B 04 00 00 F7 F3 81 C2 A8 01 00 00 81 E2 FF 00 00 00 8B 7D ?? 33 C9 EB ?? 30 14 39 00 14 39 41 3B 4D ?? 72 ?? } condition: uint16( 0 ) == 0x5a4d and all of them } rule ESET_Apt_Windows_TA410_Flowcloud_Fcclient_Strings : FILE { meta: description = "Strings found in fcClient/rescure.dat module." author = "ESET Research" id = "876bae0b-2612-559b-9ead-b633a3789663" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L617-L639" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "c05b7031a5aec1bcf29eca06c010c402edeb24a093a2043dbc21781dff22c7fe" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $s1 = "df257bdd-847c-490e-9ef9-1d7dc883d3c0" $s2 = "\\{2AFF264E-B722-4359-8E0F-947B85594A9A}" $s3 = "Global\\{26C96B51-2B5D-4D7B-BED1-3DCA4848EDD1}" wide $s4 = "{804423C2-F490-4ac3-BFA5-13DEDE63A71A}" wide $s5 = "{A5124AF5-DF23-49bf-B0ED-A18ED3DEA027}" wide $s6 = "XXXModule_func.dll" $driver1 = "\\drivers\\hidmouse.sys" wide fullword $driver2 = "\\drivers\\hidusb.sys" wide fullword condition: uint16( 0 ) == 0x5a4d and ( any of ( $s* ) or all of ( $driver* ) ) } rule ESET_Apt_Windows_TA410_Flowcloud_Fcclientdll_Strings : FILE { meta: description = "Strings found in fcClientDll/responsor.dat module." author = "ESET Research" id = "80ecaf51-406f-590c-8f9c-59672683de02" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L641-L669" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "3a93f58cf14b57a96157077ec14aa6fb181e3da80f4ba46c0379a58b67c08a0e" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $s1 = "http://%s/html/portlet/ext/draco/resources/draco_manager.swf/[[DYNAMIC]]/1" $s2 = "Cookie: COOKIE_SUPPORT=true; JSESSIONID=5C7E7A60D01D2891F40648DAB6CB3DF4.jvm1; COMPANY_ID=10301; ID=666e7375545678695645673d; PASSWORD=7a4b48574d746470447a303d; LOGIN=6863303130; SCREEN_NAME=4a2b455377766b657451493d; GUEST_LANGUAGE_ID=en-US" $fc_msg = ".fc_net.msg" $s4 = "\\pipe\\namedpipe_keymousespy_english" wide $s5 = "8932910381748^&*^$58876$%^ghjfgsa413901280dfjslajflsdka&*(^7867=89^&*F(^&*5678f5ds765f76%&*%&*5" $s6 = "cls_{CACB140B-0B82-4340-9B05-7983017BA3A4}" wide $s7 = "HTTP/1.1 200 OK\x0d\nServer: Apache-Coyote/1.1\x0d\nPragma: No-cache\x0d\nCache-Control: no-cache\x0d\nExpires: Thu, 01 Jan 1970 08:00:00 CST\x0d\nLast-Modified: Fri, 27 Apr 2012 08:11:04 GMT\x0d\nContent-Type: application/xml\x0d\nContent-Length: %d\x0d\nDate: %s GMT" $sql1 = "create table if not exists table_filed_space" $sql2 = "create table if not exists clipboard" $sql3 = "create trigger if not exists file_after_delete after delete on file" $sql4 = "create trigger if not exists file_data_after_insert after insert on file_data" $sql5 = "create trigger if not exists file_data_after_delete after delete on file_data" $sql6 = "create trigger if not exists file_data_after_update after update on file_data" $sql7 = "insert into file_data(file_id, ofs, data, status)" condition: uint16( 0 ) == 0x5a4d and ( any of ( $s* ) or #fc_msg >= 8 or 4 of ( $sql* ) ) } rule ESET_Apt_Windows_TA410_Rootkit_Strings : FILE { meta: description = "Strings found in TA410's Rootkit" author = "ESET Research" id = "a6a97721-571e-5414-9b00-5789d7bcd078" date = "2021-10-12" modified = "2022-04-27" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/ta410/ta410.yar#L671-L697" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "1d3ad63508c5e4bca32b9a44b738cb4a7384ccfa5704ce329260adb342ea4e60" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $driver1 = "\\Driver\\kbdclass" wide $driver2 = "\\Driver\\mouclass" wide $device1 = "\\Device\\KeyboardClass0" wide $device2 = "\\Device\\PointerClass0" wide $driver3 = "\\Driver\\tcpip" wide $device3 = "\\Device\\tcp" wide $driver4 = "\\Driver\\nsiproxy" wide $device4 = "\\Device\\Nsi" wide $reg1 = "\\Registry\\Machine\\SYSTEM\\Setup\\AllowStart\\ceipCommon" wide $reg2 = "RHH%d" wide $reg3 = "RHP%d" wide $s1 = "\\SystemRoot\\System32\\drivers\\hidmouse.sys" wide condition: uint16( 0 ) == 0x5a4d and all of ( $s1 , $reg* ) and ( all of ( $driver* ) or all of ( $device* ) ) } rule ESET_Cw_Windows_Redline_Panel_Tab_Headers : FILE { meta: description = "Matches view headers in Redline Panel" author = "ESET Research" id = "44a95845-b0a3-59c1-8188-86d415eff0bf" date = "2022-10-11" modified = "2024-11-12" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/redline/redline.yar#L32-L55" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" hash = "a154dfaedc237c047f419eb6884dab1ef4e2a17d" logic_hash = "3198aa9df2814a5f1d5568c6eed5f3189b2f72b3928cc97645f9bf57eebab9ac" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = 2 strings: $ = "RedLine | Log In" $ = "RedLine | Autofilles Viewer" $ = "RedLine | Choose Browser" $ = "RedLine | Cookie Viewer" $ = "RedLine | Credit Card Viewer" $ = "RedLine | Files Viewer" $ = "RedLine | Log saver" $ = "RedLine | System Info Viewer" condition: uint16( 0 ) == 0x5A4D and 6 of them } rule ESET_Cw_Windows_Redline_Panel_Distinctive_Strings : FILE { meta: description = "Matches rare strings found in Redline panel" author = "ESET Research" id = "d40ccb6b-e777-5c05-b97c-ead910047649" date = "2022-10-11" modified = "2024-11-12" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/redline/redline.yar#L57-L77" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" hash = "a154dfaedc237c047f419eb6884dab1ef4e2a17d" logic_hash = "7ff0239426c4c3b46a269fad71232295c038c09f276cdc3c7f1142c830260a6d" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = 2 strings: $env_var = "%DSK_23%" $fn_name = "IsGratherThan" $telegram0 = "Telegram: @REDLINESUPPORT" $telegram1 = "https://t.me/REDLINESUPPORT" condition: uint16( 0 ) == 0x5A4D and any of them } rule ESET_Cw_Windows_Redline_Panel_Prompts : FILE { meta: description = "Matches prompt messages in Redline panel" author = "ESET Research" id = "3481586b-ed4b-5a27-82a0-0bbb3eea279e" date = "2022-10-11" modified = "2024-11-12" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/redline/redline.yar#L79-L113" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" hash = "a154dfaedc237c047f419eb6884dab1ef4e2a17d" logic_hash = "0dfab05a9383ba13b3c610f1ab0c81e95804470002f27171ab39706f7723983a" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = 2 strings: $ = "Choose directory to save log" $ = "Select log to set comment" $ = "Please enter an action to create new task" $ = "Please enter a target to create new task" $ = "Please enter a final point to create new task" $ = "Please enter a correct action to create new task" $ = "Please enter a correct final point to create new task" $ = "Please enter an action to edit task" $ = "Please enter a target to edit task" $ = "Please enter a final point to edit task" $ = "Please enter a correct action to edit task" $ = "Please enter a correct final point to edit task" $ = "Please enter a correct status to edit task" $ = "Please, enter a domains" $ = "Please, enter a valid server ip" $ = "Choose a file to pump" $ = "Enter a valid count of bytes" $ = "Enter a valid count of bytes. Must be more then zero" $ = "Disconnected. Reboot your panel" condition: uint16( 0 ) == 0x5A4D and 10 of them } rule ESET_Cw_Windows_Redline_Panel_Status_Message_Strings : FILE { meta: description = "Matches error/success messages in Redline panel" author = "ESET Research" id = "70bdff10-9c86-57e3-b839-e86173a44855" date = "2022-10-11" modified = "2024-11-12" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/redline/redline.yar#L115-L142" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" hash = "a154dfaedc237c047f419eb6884dab1ef4e2a17d" logic_hash = "c60fabc81967b083be72ff564af744ab60441de5d563ea6d88d873c0a99bfbdd" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = 1 strings: $ = "All Browsers are empty" $ = "Client [{0}:{1}:{2}] completed task with {3} ID." $ = "A List of logs cleared" $ = "Browsers not found" $ = "Browsers is empty" $ = "Done. Check your build file" $ = "You must to enable assembly info or certificate in settings" $ = "Duplicate log from " $ = "Password list is empty" $ = "Cookie list is empty" $ = "FTPs not found" $ = "Files not found" condition: uint16( 0 ) == 0x5A4D and 8 of them } rule ESET_Mozi_Killswitch : FILE { meta: description = "Mozi botnet kill switch" author = "Ivan Besina" id = "e3d34ae0-de06-5ff4-b44b-44d264b6dd29" date = "2023-09-29" modified = "2023-10-31" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/mozi/mozi.yar#L32-L51" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "90eaed2f7f5595b145b2678a46ef6179082192215369fa9235024b0ce1574a49" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $iptables1 = "iptables -I INPUT -p tcp --destination-port 7547 -j DROP" $iptables2 = "iptables -I OUTPUT -p tcp --sport 30005 -j DROP" $haha = "/haha" $networks = "/usr/networks" condition: all of them and filesize < 500KB } rule ESET_Sparklinggoblin_Chacha20 : FILE { meta: description = "SparklingGoblin ChaCha20 implementations" author = "ESET Research" id = "c0caceca-f685-5786-82f6-3ab7435f8061" date = "2021-05-20" modified = "2021-08-26" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/sparklinggoblin/SparklingGoblin.yar#L59-L368" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" hash = "2edbea43f5c40c867e5b6bbd93cc972525df598b" hash = "b6d245d3d49b06645c0578804064ce0c072cbe0f" hash = "8be6d5f040d0085c62b1459afc627707b0de89cf" hash = "4668302969fe122874fb2447a80378dcb671c86b" hash = "9bdecb08e16a23d271d0a3e836d9e7f83d7e2c3b" hash = "9ce7650f2c08c391a35d69956e171932d116b8bd" hash = "91b32e030a1f286e7d502ca17e107d4bfbd7394a" logic_hash = "b742bc22e0ebbce40607cb109b4d6fb03a40c1fb223c8092d93346dd3dd22789" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" strings: $chunk_1 = { 8B 4D ?? 56 8B 75 ?? 57 8B 7D ?? 8B 04 BB 01 04 93 8B 04 B3 33 04 93 C1 C0 10 89 04 B3 01 04 8B 8B 04 BB 33 04 8B C1 C0 0C 89 04 BB 01 04 93 8B 04 B3 33 04 93 C1 C0 08 89 04 B3 01 04 8B 8B 04 BB 33 04 8B C1 C0 07 89 04 BB } $chunk_2 = { 03 4D ?? 44 03 C0 03 55 ?? 33 F1 45 33 D8 C1 C6 10 44 33 F2 41 C1 C3 10 41 03 FB 41 C1 C6 10 45 03 E6 41 03 DA 44 33 CB 44 03 EE 41 C1 C1 10 8B C7 33 45 ?? 45 03 F9 C1 C0 0C 44 03 C0 45 33 D8 44 89 45 ?? 41 C1 C3 08 41 03 FB 44 8B C7 44 33 C0 41 8B C5 33 45 ?? C1 C0 0C 03 C8 41 C1 C0 07 33 F1 89 4D ?? C1 C6 08 44 03 EE 41 8B CD 33 C8 41 8B C4 33 45 ?? C1 C0 0C 03 D0 C1 C1 07 44 33 F2 89 55 ?? 41 C1 C6 08 45 03 E6 41 8B D4 33 D0 41 8B C7 41 33 C2 C1 C2 07 C1 C0 0C 03 D8 44 33 CB 41 C1 C1 08 45 03 F9 45 8B D7 44 33 D0 8B 45 ?? 03 C1 41 C1 C2 07 44 33 C8 89 45 ?? 41 C1 C1 10 45 03 E1 41 8B C4 33 C1 8B 4D ?? C1 C0 0C 03 C8 44 33 C9 89 4D ?? 89 4D ?? 41 C1 C1 08 45 03 E1 41 8B CC 33 C8 8B 45 ?? C1 C1 07 89 4D ?? 89 4D ?? 03 C2 41 03 D8 89 45 ?? 41 33 C3 C1 C0 10 44 03 F8 41 8B CF 33 CA 8B 55 ?? } $chunk_3 = { C7 45 ?? 65 78 70 61 4C 8D 45 ?? C7 45 ?? 6E 64 20 33 4D 8B F9 C7 45 ?? 32 2D 62 79 4C 2B C1 C7 45 ?? 74 65 20 6B } $chunk_4 = { 0F B6 02 0F B6 4A ?? C1 E1 08 0B C8 0F B6 42 ?? C1 E1 08 0B C8 0F B6 42 ?? C1 E1 08 0B C8 41 89 0C 10 48 8D 52 ?? 49 83 E9 01 } $chunk_5 = { 03 4D ?? 44 03 C0 03 55 ?? 33 F1 41 33 F8 C1 C6 10 44 33 F2 C1 C7 10 44 03 DF 41 C1 C6 10 45 03 E6 44 03 CB 45 33 D1 44 03 EE 41 C1 C2 10 41 8B C3 33 45 ?? 45 03 FA C1 C0 0C 44 03 C0 41 33 F8 44 89 45 ?? C1 C7 08 44 03 DF 45 8B C3 44 33 C0 41 8B C5 33 45 ?? C1 C0 0C 03 C8 41 C1 C0 07 33 F1 89 4D ?? C1 C6 08 44 03 EE 41 8B CD 33 C8 41 8B C4 33 45 ?? C1 C0 0C 03 D0 C1 C1 07 44 33 F2 89 55 ?? 41 C1 C6 08 45 03 E6 41 8B D4 33 D0 41 8B C7 33 C3 C1 C2 07 C1 C0 0C 44 03 C8 45 33 D1 41 C1 C2 08 45 03 FA 41 8B DF 33 D8 8B 45 ?? 03 C1 C1 C3 07 44 33 D0 89 45 ?? 41 C1 C2 10 45 03 E2 41 8B C4 33 C1 8B 4D ?? C1 C0 0C 03 C8 44 33 D1 89 4D ?? 89 4D ?? 41 C1 C2 08 45 03 E2 41 8B CC 33 C8 8B 45 ?? C1 C1 07 89 4D ?? 89 4D ?? 03 C2 45 03 C8 89 45 ?? 33 C7 C1 C0 10 44 03 F8 41 8B CF 33 CA 8B 55 ?? C1 C1 0C 03 D1 8B FA 89 55 ?? 33 F8 89 55 ?? 8B 55 ?? 03 D3 C1 C7 08 44 03 FF 41 8B C7 33 C1 C1 C0 07 89 45 ?? 89 45 ?? 8B C2 33 C6 C1 C0 10 44 03 D8 41 33 DB C1 C3 0C 03 D3 8B F2 89 55 ?? 33 F0 41 8B C1 41 33 C6 C1 C6 08 C1 C0 10 44 03 DE 44 03 E8 41 33 DB 41 8B CD C1 C3 07 41 33 C8 44 8B 45 ?? C1 C1 0C 44 03 C9 45 8B F1 44 33 F0 41 C1 C6 08 45 03 EE 41 8B C5 33 C1 8B 4D ?? C1 C0 07 } condition: any of them and filesize < 450KB } rule ESET_Apt_Windows_Invisimole_SFX_Dropper : FILE { meta: description = "Detects trojanized InvisiMole files: patched RAR SFX droppers with added InvisiMole blobs (config encrypted XOR 2A at the end of a file)" author = "ESET Research" id = "08490bcd-3139-5fac-9c6c-5a32acb7217a" date = "2021-05-17" modified = "2021-05-17" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/invisimole/invisimole.yar#L79-L95" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "6ca248d42c1e889988e5931d80df071cb20e623fb0c4a208044cabe073f71ce4" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $encrypted_config = {5F 59 4F 58 19 18 04 4E 46 46 2A 5D 59 5A 58 43 44 5E 4C 7D 2A 0F 2A 59 2A 78 2A 4B 2A 58 2A 0E 2A 6F 2A 72 2A 4B 2A 0F 2A 4E 2A 04 2A 0F 2A 4E 2A 76 2A 0F 2A 79 2A 2A 2A 79 42 4F 46 46 6F 52 4F 49 5F 5E 4F 7D 2A 79 42 4F 46 46 19 18 04 4E 46 46 2A 7C 43 58 5E 5F 4B 46 6B 46 46 45 49 2A 66 45 4B 4E 66 43 48 58 4B 58 53 6B} condition: uint16( 0 ) == 0x5A4D and $encrypted_config } rule ESET_Apt_Windows_Invisimole_CPL_Loader : FILE { meta: description = "CPL loader" author = "ESET Research" id = "feff8627-6085-5835-ac1b-d4522245f7db" date = "2021-05-17" modified = "2021-05-17" reference = "https://github.com/eset/malware-ioc/" source_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/invisimole/invisimole.yar#L97-L118" license_url = "https://github.com/eset/malware-ioc/blob/6061a882d399c54e9759c90fc511a81caf5e0731/LICENSE" logic_hash = "cd5c19e14faa7fd3758b30193ccf2bed3692ad29d8216466523ca25d2abcfe88" score = 75 quality = 80 tags = "FILE" license = "BSD 2-Clause" version = "1" strings: $s1 = "WScr%steObject(\"WScr%s.Run(\"::{20d04fe0-3a%s30309d}\\\\::{21EC%sDD-08002B3030%s\", 0);" $s2 = "\\Control.js" wide $s3 = "\\Control Panel.lnk" wide $s4 = "FPC 3.0.4 [2019/04/13] for x86_64 - Win64" $s5 = "FPC 3.0.4 [2019/04/13] for i386 - Win32" $s6 = "imageapplet.dat" wide $s7 = "wkssvmtx" condition: uint16( 0 ) == 0x5A4D and ( 3 of them ) } /* * YARA Rule Set * Repository Name: FireEye-RT * Repository: https://github.com/mandiant/red_team_tool_countermeasures/ * Retrieval Date: 2026-03-15 * Git Commit: 3561b71724dbfa3e2bb78106aaa2d7f8b892c43b * Number of Rules: 139 * Skipped: 0 (age), 25 (quality), 7 (score), 0 (importance) * * * LICENSE * * BSD 2-Clause License Copyright (c) 2023, MANDIANT Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ rule FIREEYE_RT_APT_Hacktool_MSIL_JUSTASK_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'justask' project." author = "FireEye" id = "06a03d82-db69-5b5a-a578-a8053814e917" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/JUSTASK/production/yara/APT_HackTool_MSIL_JUSTASK_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "24d2f8e3838c4f02cd80644a396ce7cf105761d2feba54e39973564ca5e97571" score = 75 quality = 73 tags = "FILE" rev = 2 strings: $typelibguid0 = "aa59be52-7845-4fed-9ea5-1ea49085d67a" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Hacktool_MSIL_Wmispy_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'WMIspy' project." author = "FireEye" id = "ac394751-da40-564b-8e24-8f353326b46a" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/WMISPY/production/yara/HackTool_MSIL_WMIspy_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "a5a9f7c7a7bfe474e8b21306ea220b4d476832f3ad4fafdd8967a2250d15a701" score = 75 quality = 73 tags = "FILE" rev = 1 strings: $typelibguid0 = "5ee2bca3-01ad-489b-ab1b-bda7962e06bb" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_APT_Hacktool_MSIL_WMISPY_2 : FILE { meta: description = "wql searches" author = "FireEye" id = "474af878-a657-54bc-a063-04532df928d4" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/WMISPY/production/yara/APT_HackTool_MSIL_WMISPY_2.yar#L4-L24" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "3651f252d53d2f46040652788499d65a" logic_hash = "553fc1e536482a56b3228a5c9ebac843af9083e8ac864bf65c81b36a39ca5e5e" score = 75 quality = 75 tags = "FILE" rev = 4 strings: $MSIL = "_CorExeMain" $str1 = "root\\cimv2" wide $str2 = "root\\standardcimv2" wide $str3 = "from MSFT_NetNeighbor" wide $str4 = "from Win32_NetworkLoginProfile" wide $str5 = "from Win32_IP4RouteTable" wide $str6 = "from Win32_DCOMApplication" wide $str7 = "from Win32_SystemDriver" wide $str8 = "from Win32_Share" wide $str9 = "from Win32_Process" wide condition: ( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and $MSIL and all of ( $str* ) } rule FIREEYE_RT_Hacktool_MSIL_PXELOOT_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the PXE And Loot project." author = "FireEye" id = "5a72a6ff-bae4-57f5-a19b-a4595ac57293" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/PXELOOT/production/yara/HackTool_MSIL_PXELOOT_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "82e33011ac34adfcced6cddc8ea56a81" logic_hash = "c9892adcb9ff5471235e45988f6662d3b8f984fdafca7024a5781eed50f6c0b3" score = 75 quality = 73 tags = "FILE" rev = 7 strings: $typelibguid1 = "78B2197B-2E56-425A-9585-56EDC2C797D6" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $typelibguid1 } rule FIREEYE_RT_APT_Backdoor_Win_GORAT_5 : FILE { meta: description = "No description has been set in the source file - FireEye-RT" author = "FireEye" id = "73102bd2-7b94-5c7b-b9a4-cfc9cf5e3212" date = "2020-12-02" date = "2020-12-02" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_Win_GORAT_5.yar#L4-L23" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "cdf58a48757010d9891c62940c439adb, a107850eb20a4bb3cc59dbd6861eaf0f" logic_hash = "67f85fb3bedfd18a1226c92318f387be3c7ff9566ca2d554c49cf62389482552" score = 75 quality = 75 tags = "FILE" rev = 1 strings: $1 = "comms.BeaconData" fullword $2 = "comms.CommandResponse" fullword $3 = "rat.BaseChannel" fullword $4 = "rat.Config" fullword $5 = "rat.Core" fullword $6 = "platforms.AgentPlatform" fullword $7 = "GetHostID" fullword $8 = "/rat/cmd/gorat_shared/dllmain.go" fullword condition: ( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and all of them } rule FIREEYE_RT_Trojan_MSIL_GORAT_Module_Powershell_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'RedFlare - Module - PowerShell' project." author = "FireEye" id = "b0fba130-9cd9-5b7f-a806-9ff8099f5731" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/Trojan_MSIL_GORAT_Module_PowerShell_1.yar#L4-L16" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "e596bc0316a4ef85f04c2683ebc7c94bf9b831843232c33e62c84991e4caeb97" score = 75 quality = 71 tags = "FILE" rev = 1 strings: $typelibguid0 = "38d89034-2dd9-4367-8a6e-5409827a243a" ascii nocase wide $typelibguid1 = "845ee9dc-97c9-4c48-834e-dc31ee007c25" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Trojan_MSIL_GORAT_Plugin_DOTNET_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'RedFlare - Plugin - .NET' project." author = "FireEye" id = "faa73d64-4bb1-5c06-a3a5-1f1aa99ea932" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/Trojan_MSIL_GORAT_Plugin_DOTNET_1.yar#L4-L16" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "e979822273c6d1ccdfebd341c9e2cb1040fe34a04e8b41c024885063fd946ad5" score = 75 quality = 71 tags = "FILE" rev = 1 strings: $typelibguid0 = "cd9407d0-fc8d-41ed-832d-da94daa3e064" ascii nocase wide $typelibguid1 = "fc3daedf-1d01-4490-8032-b978079d8c2d" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_APT_Backdoor_Win_GORAT_1 : FILE { meta: description = "This detects if a sample is less than 50KB and has a number of strings found in the Gorat shellcode (stage0 loader). The loader contains an embedded DLL (stage0.dll) that contains a number of unique strings. The 'Cookie' string found in this loader is important as this cookie is needed by the C2 server to download the Gorat implant (stage1 payload)." author = "FireEye" id = "5ac84cf1-49fb-533d-b211-b1a92239063b" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_Win_GORAT_1.yar#L4-L23" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "66cdaa156e4d372cfa3dea0137850d20" logic_hash = "f6a0a923f64375e7ffdc080aec41db19a9e162405f1290ed0bbcce5a342bdadb" score = 75 quality = 75 tags = "FILE" rev = 4 strings: $s1 = "httpComms.dll" ascii wide $s2 = "Cookie: SID1=%s" ascii wide $s3 = "Global\\" ascii wide $s4 = "stage0.dll" ascii wide $s5 = "runCommand" ascii wide $s6 = "getData" ascii wide $s7 = "initialize" ascii wide $s8 = "Windows NT %d.%d;" ascii wide $s9 = "!This program cannot be run in DOS mode." ascii wide condition: filesize < 50KB and all of them } rule FIREEYE_RT_APT_Backdoor_Macos_GORAT_1 : FILE { meta: description = "This rule is looking for specific strings associated with network activity found within the MacOS generated variant of GORAT" author = "FireEye" id = "4646eadb-7acf-582f-9ad6-00f012ceed8a" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_MacOS_GORAT_1.yar#L4-L19" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "68acf11f5e456744262ff31beae58526" logic_hash = "2df5f87d44968670511880d21ad184779d0561c7c426a5d6426bcefd0904a9b7" score = 75 quality = 75 tags = "FILE" rev = 3 strings: $s1 = "SID1=%s" ascii wide $s2 = "http/http.dylib" ascii wide $s3 = "Mozilla/" ascii wide $s4 = "User-Agent" ascii wide $s5 = "Cookie" ascii wide condition: (( uint32( 0 ) == 0xBEBAFECA ) or ( uint32( 0 ) == 0xFEEDFACE ) or ( uint32( 0 ) == 0xFEEDFACF ) or ( uint32( 0 ) == 0xCEFAEDFE ) ) and all of them } rule FIREEYE_RT_Hacktool_MSIL_Sharpersist_2 : FILE { meta: description = "No description has been set in the source file - FireEye-RT" author = "FireEye" id = "49d7891e-b97a-52a8-acfd-bbf986732d6c" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPERSIST/production/yara/HackTool_MSIL_SharPersist_2.yar#L4-L23" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "98ecf58d48a3eae43899b45cec0fc6b7" logic_hash = "57387352f8fd08e8b859dffc1164d46370f248b337526c265634160010572a00" score = 75 quality = 75 tags = "FILE" rev = 1 strings: $a1 = "SharPersist.lib" $a2 = "SharPersist.exe" $b1 = "ERROR: Invalid hotkey location option given." ascii wide $b2 = "ERROR: Invalid hotkey given." ascii wide $b3 = "ERROR: Keepass configuration file not found." ascii wide $b4 = "ERROR: Keepass configuration file was not found." ascii wide $b5 = "ERROR: That value already exists in:" ascii wide $b6 = "ERROR: Failed to delete hidden registry key." ascii wide $pdb1 = "\\SharPersist\\" $pdb2 = "\\SharPersist.pdb" condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( ( @pdb2 [ 1 ] < @pdb1 [ 1 ] + 50 ) or ( 1 of ( $a* ) and 2 of ( $b* ) ) ) } rule FIREEYE_RT_Hacktool_MSIL_Sharpersist_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the SharPersist project." author = "FireEye" id = "586e6c91-6970-57d1-8d8c-05ae9eb6117a" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPERSIST/production/yara/HackTool_MSIL_SharPersist_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "98ecf58d48a3eae43899b45cec0fc6b7" logic_hash = "cf480026c31b522850e25ba2d7986773d9c664242a2667ecd33151621c98c91e" score = 75 quality = 73 tags = "FILE" rev = 1 strings: $typelibguid1 = "9D1B853E-58F1-4BA5-AEFC-5C221CA30E48" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $typelibguid1 } rule FIREEYE_RT_Hacktool_MSIL_SEATBELT_2 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the public SeatBelt project." author = "FireEye" id = "225b42fe-c73a-59c0-a1f4-1d6dff6e76e1" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/BELTALOWDA/production/yara/HackTool_MSIL_SEATBELT_2.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "9f401176a9dd18fa2b5b90b4a2aa1356" logic_hash = "e48474c5025fd88e3c2824e1e943ff56cde0ea05984aad0249ccf73caa6d4a36" score = 75 quality = 73 tags = "FILE" rev = 3 strings: $typelibguid1 = "AEC32155-D589-4150-8FE7-2900DF4554C8" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $typelibguid1 } rule FIREEYE_RT_Hacktool_MSIL_Sharphound_3 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the public SharpHound3 project." author = "FireEye" id = "456b3208-1e8d-5eb7-81ee-39f1c886c5a7" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/PUPPYHOUND/production/yara/HackTool_MSIL_SharpHound_3.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "eeedc09570324767a3de8205f66a5295" logic_hash = "baeea6cae42c755ee389378229b2b206c82f60f75a5ce5f9cfa06871fc9507d1" score = 75 quality = 73 tags = "FILE" rev = 4 strings: $typelibguid1 = "A517A8DE-5834-411D-ABDA-2D0E1766539C" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $typelibguid1 } rule FIREEYE_RT_Loader_MSIL_Allthethings_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'AllTheThings' project." author = "FireEye" id = "1805b406-2531-56bf-8e08-e63a59ffcc84" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/ALLTHETHINGS/production/yara/Loader_MSIL_AllTheThings_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "e3058095f2a49f8c0f78cb392024795367609b04c1da80210ab8d72c6613ee71" score = 75 quality = 73 tags = "FILE" rev = 2 strings: $typelibguid0 = "542ccc64-c4c3-4c03-abcd-199a11b26754" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Hacktool_MSIL_Sharpschtask_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'SharpSchtask' project." author = "FireEye" id = "5c7a5dee-3bc2-54b2-a7e2-be05ba74d4a1" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPSCHTASK/production/yara/HackTool_MSIL_SharpSchtask_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "7437fde82920f4d015a7f149b58924baf6cb220c6f6857d9509e23795ff0811c" score = 75 quality = 73 tags = "FILE" rev = 1 strings: $typelibguid0 = "0a64a5f4-bdb6-443c-bdc7-f6f0bf5b5d6c" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Loader_MSIL_Netshshellcoderunner_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'NetshShellCodeRunner' project." author = "FireEye" id = "b3521812-7ea3-5f80-89bd-3bdd71b687f2" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/NETSHSHELLCODERUNNER/production/yara/Loader_MSIL_NetshShellCodeRunner_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "97f6475a9d42697f633e06a9b04a85021ca4920145eb4af257d71b431448f0e9" score = 75 quality = 73 tags = "FILE" rev = 2 strings: $typelibguid0 = "49c045bc-59bb-4a00-85c3-4beb59b2ee12" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Builder_MSIL_Sinfuloffice_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'SinfulOffice' project." author = "FireEye" id = "cf020fb3-751b-5346-8c0d-dc0a552599a3" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SINFULOFFICE/production/yara/Builder_MSIL_SinfulOffice_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "b5d49a8720e4daa21e95ec66299daec42e65906017de886ea91f7bb6bfb04c77" score = 75 quality = 73 tags = "FILE" rev = 1 strings: $typelibguid0 = "9940e18f-e3c7-450f-801a-07dd534ccb9a" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_Methodology_OLE_CHARENCODING_2 : FILE { meta: description = "Looking for suspicious char encoding" author = "FireEye" id = "7abd1a11-7a55-50ac-aa6b-537e7c59a5ab" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SINFULOFFICE/supplemental/yara/Methodology_OLE_CHARENCODING_2.yar#L4-L23" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "41b70737fa8dda75d5e95c82699c2e9b" logic_hash = "20843295531dfd88934fe0902a5101c5c0828e82df3289d7f263f16df9c92324" score = 65 quality = 75 tags = "FILE" rev = 4 strings: $echo1 = "101;99;104;111;32;111;102;102;" ascii wide $echo2 = "101:99:104:111:32:111:102:102:" ascii wide $echo3 = "101x99x104x111x32x111x102x102x" ascii wide $pe1 = "77;90;144;" ascii wide $pe2 = "77:90:144:" ascii wide $pe3 = "77x90x144x" ascii wide $pk1 = "80;75;3;4;" ascii wide $pk2 = "80:75:3:4:" ascii wide $pk3 = "80x75x3x4x" ascii wide condition: ( uint32( 0 ) == 0xe011cfd0 ) and filesize < 10MB and any of them } rule FIREEYE_RT_APT_Hacktool_MSIL_SHARPSACK_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the 'sharpsack' project." author = "FireEye" id = "8e344acb-73c4-5509-be9d-85cf6fe94445" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPSACK/production/yara/APT_HackTool_MSIL_SHARPSACK_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "dd8805d0e470e59b829d98397507d8c2" logic_hash = "ecc3250e65e34595b4b827add3eb3062edad6a3373930048bfd6225d4a229e93" score = 75 quality = 73 tags = "FILE" rev = 2 strings: $typelibguid0 = "1946808a-1a01-40c5-947b-8b4c3377f742" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them } rule FIREEYE_RT_APT_Hacktool_MSIL_FLUFFY_2 : FILE { meta: description = "No description has been set in the source file - FireEye-RT" author = "FireEye" id = "ce39710e-7649-5f7d-bbbe-65dc30f678e8" date = "2020-12-04" date = "2020-12-04" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/FLUFFY/production/yara/APT_HackTool_MSIL_FLUFFY_2.yar#L4-L21" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "11b5aceb428c3e8c61ed24a8ca50553e" logic_hash = "872ab717668375a49d6c7b1927a680747b405c0198fe4fc6f43ccc562870eb37" score = 75 quality = 75 tags = "FILE" rev = 1 strings: $s1 = "\x00Asktgt\x00" $s2 = "\x00Kerberoast\x00" $s3 = "\x00HarvestCommand\x00" $s4 = "\x00EnumerateTickets\x00" $s5 = "[*] Action: " wide $s6 = "\x00Fluffy.Commands\x00" condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and all of them } rule FIREEYE_RT_Loader_MSIL_Wildchild_1 : FILE { meta: description = "The TypeLibGUID present in a .NET binary maps directly to the ProjectGuid found in the '.csproj' file of a .NET project. This rule looks for .NET PE files that contain the ProjectGuid found in the WildChild project." author = "FireEye" id = "350dd658-46c9-573b-b532-07e4b437ba8d" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/WILDCHILD/production/yara/Loader_MSIL_WildChild_1.yar#L4-L15" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "7e6bc0ed11c2532b2ae7060327457812" logic_hash = "e4320e33770613542182518ec787e4ccbb32f83c8afca5ec957d4846e6f4eb04" score = 75 quality = 73 tags = "FILE" rev = 4 strings: $typelibguid1 = "2e71d5ff-ece4-4006-9e98-37bb724a7780" ascii nocase wide condition: ( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $typelibguid1 } rule FIREEYE_RT_Dropper_HTA_Wildchild_1 : FILE { meta: description = "This rule looks for strings present in unobfuscated HTAs generated by the WildChild builder." author = "FireEye" id = "f570baa5-7d58-5a0a-b713-769e62076f76" date = "2020-12-08" modified = "2020-12-09" reference = "https://github.com/mandiant/red_team_tool_countermeasures/" source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/WILDCHILD/production/yara/Dropper_HTA_WildChild_1.yar#L4-L24" license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt" hash = "3e61ca5057633459e96897f79970a46d" logic_hash = "60c1d53b8a43b9b7518f3260a4d61c6806641ee894a2a331a3a0a2ea0aff9d99" score = 75 quality = 75 tags = "FILE" rev = 5 strings: $s1 = "processpath" ascii wide $s2 = "v4.0.30319" ascii wide $s3 = "v2.0.50727" ascii wide $s4 = "COMPLUS_Version" ascii wide $s5 = "FromBase64Transform" ascii wide $s6 = "MemoryStream" ascii wide $s7 = "entry_class" ascii wide $s8 = "DynamicInvoke" ascii wide $s9 = "Sendoff" ascii wide $script_header = "" ascii $s15 = "" ascii condition: uint16( 0 ) == 0x5a4d and 10 of them } rule DITEKSHEN_MALWARE_Win_Coinminer04 : FILE { meta: description = "Detects coinmining malware" author = "ditekSHen" id = "d90d8ad3-20b7-5bb4-8c58-3488c60ed9a2" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7838-L7858" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "2ef60dbf0bac3d5910635bb011a45e5ebc1392094b10425604fa9dd290198f8b" score = 75 quality = 75 tags = "FILE" strings: $s1 = "createDll" fullword ascii $s2 = "getTasks" fullword ascii $s3 = "SetStartup" fullword ascii $s4 = "loadUrl" fullword ascii $s5 = "Processer" fullword ascii $s6 = "checkProcess" fullword ascii $s7 = "runProcess" fullword ascii $s8 = "createDir" fullword ascii $cnc1 = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" fullword wide $cnc2 = "?hwid=" fullword wide $cnc3 = "?timeout=1" fullword wide $cnc4 = "&completed=" fullword wide $cnc5 = "/cmd.php" wide condition: uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) and 1 of ( $cnc* ) ) } rule DITEKSHEN_MALWARE_Win_Vanillarat : FILE { meta: description = "Detects VanillaRAT" author = "ditekSHen" id = "70c2cd1a-a6d4-562e-a6fc-c16a9e87c6b7" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7882-L7902" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "d7b90ac88a50693ec4bb0676c04f5d161f04f67970ea60d80e79d774da75bfdc" score = 75 quality = 75 tags = "FILE" strings: $stub = "VanillaStub." ascii wide $s1 = "Client.Send: " wide $s2 = "Connected to chat" fullword wide $s3 = "GetStoredPasswords" fullword wide $s4 = "Started screen locker." fullword wide $s5 = "[<\\MOUSE>]" fullword wide $s6 = "YOUR SCREEN HAS BEEN LOCKED!" fullword wide $s7 = "record recsound" fullword wide $f1 = "d__" ascii $f2 = "d__" ascii $f3 = "k__" ascii $f4 = "k__" ascii $f5 = "KillClient" fullword ascii condition: uint16( 0 ) == 0x5a4d and ( ( $stub and ( 2 of ( $s* ) or 2 of ( $f* ) ) ) or 6 of ( $s* ) or all of ( $f* ) ) } rule DITEKSHEN_MALWARE_Win_Sectoprat : FILE { meta: description = "Detects SectopRAT" author = "ditekSHen" id = "d6594834-24d7-5e86-84b5-5a7920e7bc89" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7904-L7929" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "b4048f837c02560a8b650247173be25893b466e5cec8f2784eea58172f973822" score = 75 quality = 75 tags = "FILE" strings: $s1 = "\\\\.\\root\\cimv2:Win32_Process" wide $s2 = "\\\\.\\root\\cimv2:CIM_DataFile.Name=" wide $s3 = "^.*(?=Windows)" fullword wide $s4 = "C:\\Windows\\System32\\cmd.exe" wide $s5 = "C:\\Windows\\explorer.exe" wide $s6 = "Disabling IE protection" wide $s7 = "stream started succces" wide $b1 = "/C start Firefox" wide $b2 = "/C start chrome" wide $b3 = "/C start iexplore" wide $m1 = "DefWindowProc" fullword ascii $m2 = "AuthStream" fullword ascii $m3 = "KillBrowsers" fullword ascii $m4 = "GetAllNetworkInterfaces" fullword ascii $m5 = "EnumDisplayDevices" fullword ascii $m6 = "RemoteClient.Packets" fullword ascii $m7 = "IServerPacket" fullword ascii $m8 = "keybd_event" fullword ascii condition: uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) and 2 of ( $b* ) ) or all of ( $s* ) or ( all of ( $b* ) and ( 4 of ( $s* ) or 5 of ( $m* ) ) ) ) } rule DITEKSHEN_MALWARE_Win_Neptune : FILE { meta: description = "Detects Neptune keylogger / infostealer" author = "ditekSHen" id = "0f619bea-f00b-5078-95a4-83306e3e87b4" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7931-L7953" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "e3298bf55f89180ed7e9f7ad35b59d39284a5143fd69fa2a4fbc27d91fb2fbd3" score = 75 quality = 75 tags = "FILE" strings: $x1 = "your keylogger has been freshly installed on" wide $x2 = "Attached is a screenshot of the victim" wide $x3 = "color: rgb(2, 84, 138);'>Project Neptune
" wide $x4 = ">{Monitor Everything}

" wide $x5 = "[First Run] Neptune" wide $x6 = "Neptune - " wide $s1 = "Melt" fullword wide $s2 = "Hide" fullword wide $s3 = "SDDate+" fullword wide $s4 = "DelOff+" fullword wide $s5 = "MsgFalse+" fullword wide $s6 = "Clipboard:" fullword wide $s7 = "information is valid and working!" wide $s8 = ".exe /k %windir%\\System32\\reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f" wide $s9 = "http://www.exampleserver.com/directfile.exe" fullword wide condition: uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 7 of ( $s* ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) ) } rule DITEKSHEN_MALWARE_Win_Tomiris : FILE { meta: description = "Detects Tomiris" author = "ditekSHen" id = "86efd4fb-3c76-504e-b367-132aee59e09a" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7955-L7978" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "1d9baeb6db2e849dd053c3fc735984e23b9cead39cf166f8a544ee5a439185d1" score = 75 quality = 75 tags = "FILE" strings: $f1 = "main.workPath" ascii $f2 = "main.selfName" ascii $f3 = "main.infoServerAddr" ascii $f4 = "main.configFileName" ascii $s1 = "C:/Projects/go/src/Tomiris/main.go" ascii $s2 = "C:/GO/go1.16.2/src/os/user/lookup_windows.go" ascii $s3 = "C:\\GO\\go1.16.2" ascii $s4 = ".html.jpeg.json.wasm.webp/p/gf/p/kk1562515" ascii $s5 = "\" /ST 10:00alarm clockassistQueueavx512vbmi2avx512vnniwbad" ascii $s6 = "write /TR \" Value addr= alloc base code= ctxt: curg= free goid jobs= list= m->p=" ascii $t1 = "SCHTASKS /DELETE /F /TN \"%s\"" ascii $t2 = "SCHTASKS /CREATE /SC DAILY /TN" ascii $t3 = "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"%s\" /ST %s" ascii $t4 = "SCHTASKS /CREATE /SC ONCE /TN \"%s\" /TR \"'%s' %s\" /ST %s" ascii $r1 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones" ascii $r2 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" ascii condition: uint16( 0 ) == 0x5a4d and ( ( all of ( $f* ) and 3 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or ( 4 of ( $s* ) and 2 of ( $t* ) and 1 of ( $r* ) ) or 12 of them ) } rule DITEKSHEN_MALWARE_Win_Jennlog : FILE { meta: description = "Detects JennLog loader" author = "ditekSHen" id = "38f8cd13-f157-5cce-bf04-80c29d254144" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7980-L7996" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "085a4783c7c01ec95491d9999d1835ad9ab3dc70d77b944578e097b3ffe3a627" score = 75 quality = 75 tags = "FILE" strings: $x1 = "%windir%\\system32\\rundll32.exe advapi32.dll,ProcessIdleTasks" fullword wide $x2 = "https://fkpageintheworld342.com" fullword wide $s1 = "ExecuteInstalledNodeAndDelete" fullword ascii $s2 = "ProcessExsist" fullword ascii $s3 = "helloworld.Certificate.txt" fullword wide $s4 = "ASCII85 encoded data should begin with '" fullword wide $s5 = "] WinRE config file path: C:\\" ascii $s6 = "] Parameters: configWinDir: NULL" ascii $s7 = "] Update enhanced config info is enabled." ascii condition: uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 5 of ( $s* ) or ( all of ( $x* ) and 2 of ( $s* ) ) ) } rule DITEKSHEN_MALWARE_Win_Lockfile : FILE { meta: description = "Detects LockFile ransomware" author = "ditekSHen" id = "762ac376-43ff-56d2-b279-2879ce6d8542" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7998-L8014" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "28c8aa8931d599e5a1860fe2ed0b8172e709dad1a48a319858a907fa775af293" score = 75 quality = 71 tags = "FILE" strings: $x1 = "LOCKFILE" fullword ascii $x2 = "25a01bb859125507013a2fe9737d3c33" fullword ascii $s1 = "" fullword ascii $s2 = "%s" fullword ascii $s3 = "%d" fullword ascii $s4 = "%s\\%s-%s-%d%s" fullword ascii $s5 = ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" ascii wide $m1 = "LOCKFILE" ascii wide nocase $m2 = " 5 ) } rule DITEKSHEN_MALWARE_Win_Povertystealer : FILE { meta: description = "Detects PovertyStealer" author = "ditekSHen" id = "a431b82a-81cb-51a9-b3a8-61d71f36a60e" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10904-L10917" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "0d8a4dd1f3a9935935878840d19e16d91d240da776f99eb2dd3f12df96efa1d9" score = 75 quality = 75 tags = "FILE" clamav1 = "MALWARE.Win.Trojan.PovertyStealer" strings: $x1 = "Poverty is the parent of crime." ascii $s2 = "OperationSystem: %d:%d:%d" ascii $s3 = "ScreenSize: {lWidth=%d, lHeight=%d}" ascii $s4 = "VideoAdapter #%d: %s" ascii $s5 = "$d.log" fullword wide condition: (( uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or all of ( $s* ) ) ) or all of them ) } rule DITEKSHEN_MALWARE_Win_Janelarat : FILE { meta: description = "Detects JanelaRAT" author = "ditekSHen" id = "6a49eeda-307f-5429-aa24-658223360239" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10919-L10939" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "9f10112b6ffa382b03511e7b6c8757438d5910ee2c24d650d05bb53abfff3860" score = 75 quality = 75 tags = "FILE" strings: $x1 = "k__" ascii $x2 = "janela" fullword ascii $x3 = "\\CSHARP\\RAT\\" ascii $s1 = "k__" ascii $s2 = "b__" ascii $s3 = "hookStruct" fullword ascii $s4 = "[^a-zA-Z]" fullword wide $s5 = "GetRecycled" fullword ascii $s6 = "import \"bcl.proto\";" wide $s7 = "\\KL_FINAL\\" ascii $s8 = "\\KL_FASEAVAST" ascii $s9 = "\\kl c++" ascii $s10 = "VisaoAPP" ascii wide condition: uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) ) } rule DITEKSHEN_MALWARE_Win_Whiffyrecon : FILE { meta: description = "Detects Whiffy Recon" author = "ditekSHen" id = "19b0f327-06ee-5f78-abac-9c4fbcad98ac" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11032-L11052" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "58df9f47f5890c5e31d352be682c6164a940dad206ad29c54c43f70d3afb9543" score = 75 quality = 75 tags = "FILE" strings: $s1 = "WLANSVC" fullword wide $s2 = "f02fe1c0-137a-4802-8881-55dd300c5022" fullword wide $s3 = "\\wlan.lnk" fullword wide $s4 = "str-12.bin" wide $s5 = "/geolocation/v1/geolocate?key=" wide $s6 = "/wlan" fullword wide $s7 = "/scanned" fullword wide $s8 = "/bots/" fullword wide $s9 = "wlan.pdb" fullword ascii $s10 = "botId" fullword ascii $s11 = "wifiAccessPoints" fullword ascii $s12 = "considerIp" fullword ascii $s13 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" fullword wide condition: uint16( 0 ) == 0x5a4d and 5 of them } rule DITEKSHEN_MALWARE_Win_Quiterat : FILE { meta: description = "Detects QuiteRAT" author = "ditekSHen" id = "54f7b899-3418-5074-8138-38cf073cda8c" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11054-L11068" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "257f9151294254e3e86979f184963f0396587438393b11bad068ba0f386cfc4a" score = 75 quality = 75 tags = "FILE" strings: $x1 = "< No Pineapple! >" ascii $x2 = ".?AVPineapple" ascii $x3 = ".?AVApple@@" ascii $s1 = "XgsdCwsRFxZF" ascii $s2 = "XggZChkVRQ==" ascii $s3 = "RxUZERQRHEU=" ascii $s4 = "XhkbDBEXFkU" ascii condition: uint16( 0 ) == 0x5a4d and ( ( all of ( $x* ) and 1 of ( $s* ) ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) ) } rule DITEKSHEN_MALWARE_Win_TOITOIN_Kritaloader : FILE { meta: description = "Detects TOITOIN KritaLoader" author = "ditekSHen" id = "5ff002fc-1108-554e-9de6-92d568826d1d" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11116-L11127" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "9629a4cfa606812d2579c0c0d486dec5971854e5133f0594a4638db5b89c3135" score = 75 quality = 75 tags = "FILE" clamav = "ditekSHen.MALWARE.Win.Trojan.TOITOIN" strings: $p1 = ":\\Trabalho_2023\\OFF_2023\\" ascii $p2 = "DLL_Start_OK.pdb" ascii $s1 = "krita_main" fullword ascii condition: uint16( 0 ) == 0x5a4d and ( 1 of ( $p* ) and 1 of ( $s* ) ) } rule DITEKSHEN_MALWARE_Win_TOITOIN_Downloader : FILE { meta: description = "Detects TOITOIN Downloader" author = "ditekSHen" id = "0282ea26-e381-5c9a-9dad-c90246d8add0" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11143-L11154" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "d7e5e99c9266ec144152c3d1066e0e1a862f48ded17fab8f504192ca48219826" score = 75 quality = 75 tags = "FILE" clamav = "ditekSHen.MALWARE.Win.Trojan.TOITOIN" strings: $p1 = ":\\Trabalho_2023\\OFF_2023\\" ascii $s1 = { 20 2f 63 20 22 [6-15] 63 00 6d 00 64 00 00 00 6f 00 70 00 65 00 6e } $o1 = { 48 83 fa 10 72 34 48 8b 8d 10 ?? 00 00 48 ff c2 } condition: uint16( 0 ) == 0x5a4d and all of them } rule DITEKSHEN_MALWARE_Win_Venomrat : FILE { meta: description = "Detects VenomRAT" author = "ditekSHen" id = "93cd5ae3-c222-51a2-bbb9-bdd3254006e5" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11156-L11170" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "47d343def76a323c66db4ba6fb1c0d119f45323f9b7f36695e4aeb7b070819d7" score = 75 quality = 75 tags = "FILE" strings: $x1 = "Venom RAT + HVNC" fullword ascii $x2 = "Venom" fullword ascii $x3 = "VenomByVenom" fullword wide $s1 = "/c schtasks /create /f /sc onlogon /rl highest /tn \"" fullword wide $s2 = "UmVjZWl2ZWQ" wide $s3 = "Pac_ket" fullword wide $s4 = "Po_ng" fullword wide condition: uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) and 2 of ( $s* ) ) } rule DITEKSHEN_MALWARE_Win_Sapphirestealer : FILE { meta: description = "Detects SapphireStealer" author = "ditekSHen" id = "ed6cffe4-23f1-5791-b07d-75abb698c899" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11172-L11190" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "97088c0decf158d45a02571bd50b5f370c139339c19b8071f38c0f9816232d1f" score = 75 quality = 75 tags = "FILE" strings: $s1 = "Sapphire.Modules." ascii $s2 = "sapphire\\" wide $s3 = "by r3vengerx0" wide $s4 = "Sapphire\\obj\\" ascii $s5 = "[ERROR_GETSECRETKEY_METHOD]" fullword wide $s6 = "[ERROR_CANT_GET_PASSWORD]" fullword wide $s7 = "

------NEW LOGS------

" wide $s8 = "[ERROR] can't create grab directory" wide $s9 = "d__" ascii $s10 = "UploadToTelegram" ascii $s11 = ".SendLog+d__" ascii condition: uint16( 0 ) == 0x5a4d and 5 of them } rule DITEKSHEN_MALWARE_Win_Graphicalproton_Rsockstun : FILE { meta: description = "Detects GraphicalProton custom rsockstun" author = "ditekShen" id = "5efa85f6-7e73-53a1-92df-4cb975e62345" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11271-L11286" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "ca4d18160b89d82106310237cf81bba57a7f51be77a31d2f18ca8c2987972c2c" score = 75 quality = 75 tags = "FILE" strings: $m1 = "main.connectviaproxy" ascii $m2 = "main.connectForSocks" ascii $m3 = "main.listenForClients" ascii $m4 = "main.listenForSocks" ascii $s1 = "Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=" ascii $s2 = "Server: nginx/1.14.1" ascii $s3 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" ascii $s4 = "wine_get" ascii condition: uint16( 0 ) == 0x5a4d and ( ( all of ( $m* ) and 2 of ( $s* ) ) or ( all of ( $s* ) and 1 of ( $m* ) ) or 7 of them ) } rule DITEKSHEN_MALWARE_Win_Agentracoon : FILE { meta: description = "Detects AgentRacoon. Not Raccoon" author = "ditekShen" id = "cc31bd71-da96-5a3d-b2f1-40f9745d8d46" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11327-L11343" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "7ed17a1bc161855f2bdc432952086f3b86b58ae9ea6c0d541544f4b63a8e08e8" score = 75 quality = 75 tags = "FILE" strings: $s1 = "UdpClient" fullword ascii $s2 = "IPEndPoint" fullword ascii $s3 = "get_Client" fullword ascii $s4 = "set_ReceiveTimeout" fullword ascii $s5 = "Command failed:" wide $s6 = "uploaded" wide $s7 = "downloaded" wide $s8 = ".telemetry." wide $s9 = "xn--" wide condition: uint16( 0 ) == 0x5a4d and 7 of them } rule DITEKSHEN_MALWARE_Win_Vbsdownloader : FILE { meta: description = "Detects second stage VBS downloader of third stage VBS" author = "ditekShen" id = "480e6872-3a8c-58c5-a455-02342ec7918c" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11363-L11375" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "fee9a78e60d02ff2f03035812af2bf36fe350c70d3e4e094713791833f8ba4d6" score = 75 quality = 75 tags = "FILE" strings: $s1 = "CreateObject(\"MSXML2.ServerXMLHTTP\")" wide $s2 = ".Open \"GET\"," wide $s3 = ".Send" wide $s4 = ".responseText" wide $s5 = "ExecuteGlobal" wide condition: filesize < 50KB and all of them } rule DITEKSHEN_MALWARE_Win_Metastealer : FILE { meta: description = "Detects MetaStealer infostealer" author = "ditekSHen" id = "46aa30c1-12c2-56df-8c65-0b96147f9051" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11400-L11423" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "260c6d90a89ddb6219a5cbad18058e41611ae2dc68a8d4e589fa6ca81853752f" score = 75 quality = 75 tags = "FILE" strings: $s1 = "! #\"'&(&*)>=@?POQOROSOTOUOVOWOXOYOZO[O^]{z|z}z~z" fullword wide $s2 = "{0}{1}{2}" fullword wide $s3 = "localhost" fullword wide $s4 = "\\tdata" fullword wide $s5 = "DecryptBlob" fullword ascii $s6 = "GetMac" fullword ascii $s7 = "GetHdc" fullword ascii $s8 = "FindProc" fullword ascii $s9 = "targetPid" fullword ascii $s10 = "MessageSecurityOverTcp" fullword ascii $s11 = "ListOfProcesses" fullword ascii $s12 = "ListOfPrograms" fullword ascii $s13 = "browserPaths" fullword ascii $s14 = "configs" fullword ascii $s15 = "scanners" fullword ascii $s16 = "FileScannerRule" fullword ascii condition: uint16( 0 ) == 0x5a4d and 7 of ( $s* ) } rule DITEKSHEN_MALWARE_Win_Houdiniconfig : FILE { meta: description = "Detects Houdini Trojan configurations" author = "ditekshen" id = "e4f974fe-731e-55a8-aa5f-068a1e62f54d" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/back-in-2017" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11600-L11616" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "70a67c9a91d2f82184f1d7a5ea51de911a054dd4e38e2cc36f495ed59219afab" score = 75 quality = 75 tags = "FILE" strings: $s1 = "install_name=" $s2 = "nick_name=" $s3 = "install_folder=" $s4 = "reg_startup=" $s5 = "startup_folder_startup=" $s6 = "task_startup=" $s7 = "injection=" $s8 = "injection_process" condition: ( uint16( 0 ) == 0x5a4d and 5 of them ) or ( all of them ) } rule DITEKSHEN_MALWARE_Win_Validalpha : FILE { meta: description = "Detects ValidApha / BlackRAT" author = "ditekshen" id = "3162eb5f-6e2d-598a-b199-22b70ec8a773" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11720-L11736" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "54d170076d1b32cee6f6252d40548acc7e23b467d692c59d6146a8aadf431211" score = 75 quality = 75 tags = "FILE" strings: $x1 = "RAT/Black/" ascii $x2 = "RAT/Black/Client_Go/" ascii $s1 = "main.RunTask" fullword ascii $s2 = "main.CmdShell" fullword ascii $s3 = "main.SelfDelete" fullword ascii $s4 = "main.RecvPacket" fullword ascii $s5 = "main.FileDownload" fullword ascii $s6 = "main.CaptureScreen" fullword ascii $s7 = "main.PeekNamedPipe" fullword ascii condition: uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 6 of ( $s* ) ) ) } rule DITEKSHEN_MALWARE_Win_Tigerrat : FILE { meta: description = "Detects TigerRAT" author = "ditekshen" id = "37192fc8-1932-5f33-994a-bb319b131c58" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11738-L11756" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "38a238339db7e7f573e0c7362af5a08654a9e134f902c0ecae441250a0364c64" score = 75 quality = 75 tags = "FILE" strings: $m0 = ".?AVCryptorRC4@@" fullword ascii $m1 = ".?AVModuleShell@@" fullword ascii $m2 = ".?AVModuleKeyLogger@@" fullword ascii $m3 = ".?AVModuleSocksTunnel@@" fullword ascii $m4 = ".?AVModuleScreenCapture@@" fullword ascii $m5 = ".?AVModulePortForwarder@@" fullword ascii $s1 = "\\x9891-009942-xnopcopie.dat" fullword wide $s2 = "(%02d : %02d-%02d %02d:%02d:%02d)--- %s[Clipboard]" fullword ascii $s3 = "[%02d : %02d-%02d %02d:%02d:%02d]--- %s[Title]" fullword ascii $s4 = "~KPTEMP" fullword wide $s5 = "del \"%s\"%s \"%s\" goto " ascii condition: uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) ) or ( 5 of ( $m* ) ) or ( 3 of ( $m* ) and 2 of ( $s* ) ) or ( 5 of them ) ) } rule DITEKSHEN_MALWARE_Win_Fakecaptcha_Downloader : FILE { meta: description = "Detects downloader executables dropped by fake captcha" author = "ditekshen" id = "d577e8ef-11df-565c-9925-63b8768a7115" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11793-L11803" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "57c39ce93f74d03767e7fde53281983a8462e4f3705d1bb9084bc169a08a0f83" score = 75 quality = 75 tags = "FILE" strings: $s1 = "MZ" ascii $s2 = "window.close();" ascii $s3 = "eval(" ascii condition: uint16( 0 ) == 0x5a4d and all of them } rule DITEKSHEN_MALWARE_Win_Xenorat : FILE { meta: description = "Detects Blacksuit" author = "ditekshen" id = "7f27ebef-8a0e-591a-a926-ac950db86053" date = "2020-11-06" modified = "2024-11-01" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11805-L11820" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "487046464f545fb9e4a1d6e277cdc010eac6886583f0b388555a483d9021191b" score = 75 quality = 75 tags = "FILE" strings: $x1 = "xeno rat client" wide $x2 = "xeno_rat_client." ascii $x3 = "xeno rat client" ascii $s1 = "+" ascii $s2 = "+" ascii $s3 = "+" ascii $s4 = "+ 3 } rule DITEKSHEN_INDICATOR_DOC_Phishingpatterns : FILE { meta: description = "Detects OLE, RTF, PDF and OOXML (decompressed) documents with common phishing strings" author = "ditekSHen" id = "67372eb5-ed07-5062-a12e-9ad8c7070f0f" date = "2020-11-06" modified = "2024-09-06" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L862-L883" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "50b6566cb18512f887c07576391eb492101f7534da3460d5f7740ee6f4cf707d" score = 75 quality = 75 tags = "FILE" strings: $s1 = "PERFORM THE FOLLOWING STEPS TO PERFORM DECRYPTION" ascii nocase $s2 = "Enable Editing" ascii nocase $s3 = "Enable Content" ascii nocase $s4 = "WHY I CANNOT OPEN THIS DOCUMENT?" ascii nocase $s5 = "You are using iOS or Android, please use Desktop PC" ascii nocase $s6 = "You are trying to view this document using Online Viewer" ascii nocase $s7 = "This document was edited in a different version of" ascii nocase $s8 = "document are locked and will not" ascii nocase $s9 = "until the \"Enable\" button is pressed" ascii nocase $s10 = "This document created in online version of Microsoft Office" ascii nocase $s11 = "This document created in previous version of Microsoft Office" ascii nocase $s12 = "This document protected by Microsoft Office" ascii nocase $s13 = "This document encrypted by" ascii nocase $s14 = "document created in earlier version of microsoft office" ascii nocase condition: ( uint16( 0 ) == 0xcfd0 or uint32( 0 ) == 0x74725c7b or uint32( 0 ) == 0x46445025 or uint32( 0 ) == 0x6d783f3c ) and 2 of them } rule DITEKSHEN_INDICATOR_OOXML_Excel4Macros_EXEC : FILE { meta: description = "Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet" author = "ditekSHen" id = "674ef310-d3bc-5e15-862f-29aa111becb3" date = "2020-11-06" modified = "2024-09-06" reference = "https://github.com/ditekshen/detection" source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L885-L898" license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt" logic_hash = "ab3994e4082390f65d030db0b898a20df1d7e4b0ca2fdedc7a9d0f1480fd0334" score = 75 quality = 75 tags = "FILE" clamav_sig = "INDICATOR.OOXML.Excel4MacrosEXEC" strings: $ms = "" ascii wide fullword $s2 = "src=\".\\Capture" ascii wide condition: filesize > 600 and filesize < 5KB and ( all of them ) } rule HARFANGLAB_Masepie_Campaign_Masepie : FILE { meta: description = "Detect MASEPIE from CERT-UA#8399" author = "HarfangLab" id = "f0a034fa-38d4-5c54-b865-f830f85e245e" date = "2024-01-24" modified = "2026-01-29" reference = "TRR240101;https://cert.gov.ua/article/6276894" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L40-L60" license_url = "N/A" hash = "18f891a3737bb53cd1ab451e2140654a376a43b2d75f6695f3133d47a41952b6" logic_hash = "02da8119267978e63e3ee5ecdefb52285718f8875ec64d320f2752460c05588d" score = 75 quality = 78 tags = "FILE" context = "file" strings: $t1 = "Try it againg" ascii wide fullword $t2 = "{user}{SEPARATOR}{k}" ascii wide fullword $t3 = "Error transporting file" ascii wide fullword $t4 = "check-ok" ascii wide fullword $a1 = ".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16))" ascii wide fullword $a2 = "dec_file_mes(mes, key)" ascii wide fullword $a3 = "os.popen('whoami').read()" ascii wide fullword condition: filesize > 2KB and filesize < 15MB and ( 4 of them ) } rule HARFANGLAB_Charmingkitten_Cyclops : FILE { meta: description = "Detects Cyclops Golang Malware" author = "HarfangLab" id = "2cc7b2ff-25ca-5eac-a607-c3ee5136e0aa" date = "2024-08-05" modified = "2026-01-29" reference = "TRR240801" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L411-L431" license_url = "N/A" hash = "fafa68e626f1b789261c4dd7fae692756cf71881c7273260af26ca051a094a69" logic_hash = "70ab3f44b6889d478a94dc6aefcd30f0e82e0b80bcf26921167b72f35bdb7fa8" score = 75 quality = 80 tags = "FILE" context = "file" strings: $go = " Go build ID: \"" ascii $a1 = "dep\tback-service\t(devel)" ascii fullword $a2 = "/brain-loader-enc.go\x00" ascii $a3 = "back-service/go-mux/api" ascii $a4 = "/JD-M42KItJncJfqb38qh/" ascii condition: filesize > 2MB and filesize < 20MB and ( uint16( 0 ) == 0x5A4D ) and $go and ( 2 of ( $a* ) ) } rule HARFANGLAB_Samecoin_Campaign_Loader : FILE { meta: description = "Matches the loader used in the SameCoin campaign" author = "HarfangLab" id = "ab4d59f6-300d-5cdf-b91f-87f8cc1f0eac" date = "2024-02-13" modified = "2026-01-29" reference = "TRR240201" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L432-L452" license_url = "N/A" hash = "cff976d15ba6c14c501150c63b69e6c06971c07f8fa048a9974ecf68ab88a5b6" logic_hash = "7df04ab208d2caa5a137b1c3481ef734df54bbe8330979f524b16e9ba8cf48d5" score = 75 quality = 80 tags = "FILE" context = "file" strings: $hebrew_layout = "0000040d" fullword ascii $runas = "runas" fullword ascii $jpg_magic = { FF D8 FF E0 00 10 4A 46 49 46 00 01 } $wl_1 = "C:\\Users\\Public\\Microsoft Connection Agent.jpg" ascii $wl_2 = "C:\\Users\\Public\\Video.mp4" ascii $wl_3 = "C:\\Users\\Public\\Microsoft System Agent.exe" ascii $wl_4 = "C:\\Users\\Public\\Microsoft System Manager.exe" ascii $wl_5 = "C:\\Users\\Public\\Windows Defender Agent.exe" condition: uint16( 0 ) == 0x5A4D and filesize > 5MB and filesize < 7MB and $hebrew_layout and $runas and $jpg_magic and 3 of ( $wl_* ) } rule HARFANGLAB_Samecoin_Campaign_Wiper : FILE { meta: description = "Matches the wiper used in the SameCoin campaign" author = "HarfangLab" id = "695e9181-cc96-5212-b33c-4d55065b7b85" date = "2024-02-13" modified = "2026-01-29" reference = "TRR240201" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L453-L471" license_url = "N/A" hash = "e6d2f43622e3ecdce80939eec9fffb47e6eb7fc0b9aa036e9e4e07d7360f2b89" logic_hash = "ebe7c90398464ecf74ede17551c2ebc58b851ba6502092320934d1f5353581a2" score = 75 quality = 80 tags = "FILE" context = "file" strings: $code = { 68 57 04 00 00 50 E8 } $wl_1 = "C:\\Users\\Public\\Microsoft Connection Agent.jpg" ascii $wl_2 = "C:\\Users\\Public\\Video.mp4" ascii $wl_3 = "C:\\Users\\Public\\Microsoft System Agent.exe" ascii $wl_4 = "C:\\Users\\Public\\Microsoft System Manager.exe" ascii $wl_5 = "C:\\Users\\Public\\Windows Defender Agent.exe" ascii condition: uint16( 0 ) == 0x5A4D and filesize < 200KB and $code and 3 of ( $wl_* ) } rule HARFANGLAB_Samecoin_Campaign_Nativewiper : FILE { meta: description = "Matches the native Android library used in the SameCoin campaign" author = "HarfangLab" id = "9c77c26e-50f7-5ee4-bc6b-c0333e268b2c" date = "2024-02-13" modified = "2026-01-29" reference = "TRR240201" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L510-L530" license_url = "N/A" hash = "248054658277e6971eb0b29e2f44d7c3c8d7c5abc7eafd16a3df6c4ca555e817" logic_hash = "2779664830df3b5be72b7fe7d4da3d27e2a86b289ee3974596abf1df12317cd8" score = 75 quality = 80 tags = "FILE" context = "file" strings: $native_export = "Java_com_example_exampleone_MainActivity_deleteInCHunks" ascii $f1 = "_Z9chunkMainv" ascii $f2 = "_Z18deleteFilesInChunkRKNSt6__" ascii $f3 = "_Z18overwriteWithZerosPKc" ascii $s1 = "/storage/emulated/0/" ascii $s2 = "FileLister" ascii $s3 = "Directory chunks deleted." $s4 = "Current Chunk Size is: %dl\n" ascii condition: filesize < 500KB and uint32( 0 ) == 0x464C457F and ( $native_export or all of ( $f* ) or all of ( $s* ) ) } rule HARFANGLAB_Supposed_Grasshopper_Downloader : FILE { meta: description = "Detects the Nim downloader from the Supposed Grasshopper campaign." author = "HarfangLab" id = "e53656b5-a1be-53f0-a4d4-908f24e08bd6" date = "2024-06-20" modified = "2026-01-29" reference = "TRR240601" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L531-L546" license_url = "N/A" logic_hash = "93509319ab8028b0215fcfb81d1ff5d3d810922999f1dd8359b706a965221b2f" score = 75 quality = 80 tags = "FILE" context = "file,memory" strings: $pdb_path = "C:\\Users\\or\\Desktop\\nim-" ascii $code = "helo.nim" ascii $function_1 = "DownloadExecute" ascii fullword $function_2 = "toByteSeq" ascii fullword condition: uint16( 0 ) == 0x5a4d and all of them } rule HARFANGLAB_Donut_Shellcode : FILE { meta: description = "Detects Donut shellcode in memory." author = "HarfangLab" id = "54facb12-3f33-5430-b4bf-0d223dc2a413" date = "2024-06-20" modified = "2026-01-29" reference = "TRR240601" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L547-L595" license_url = "N/A" logic_hash = "1bf4e253195e39cc0b3cf45797c35a9f06078350aa35e65d9d36adbcc09a150b" score = 75 quality = 80 tags = "FILE" context = "memory" strings: $amsi_patch = { 48 8B 44 24 (28 | 30) 83 20 00 33 C0 C3 } $wldp_patch = { 41 C7 00 01 00 00 00 33 C0 C3 } $api_hashing = { 8B C2 C1 C9 08 41 03 C8 8B D3 41 33 C9 C1 CA 08 41 03 D1 41 C1 C0 03 41 33 D2 41 C1 C1 03 44 33 CA 44 33 C1 41 FF C2 41 8B DB 44 8B D8 41 83 FA 1B } $loaded_dlls = "ole32;oleaut32;wininet;mscoree;shell32" ascii $function_1 = "WldpQueryDynamicCodeTrust" ascii $function_2 = "WldpIsClassInApprovedList" ascii $function_3 = "AmsiInitialize" ascii $function_4 = "AmsiScanBuffer" ascii $function_5 = "AmsiScanString" ascii condition: uint8( 0 ) == 0xE8 and ( ( #amsi_patch > 1 and $wldp_patch and $api_hashing ) or ( $loaded_dlls and all of ( $function_* ) ) ) } rule HARFANGLAB_Xdspy_Etdownloader : FILE { meta: description = "Matches XDSpy 1st stage ET Downloader malware" author = "HarfangLab" id = "b335d868-7904-5270-a55e-c1445f0c4c9c" date = "2025-05-16" modified = "2026-01-29" reference = "https://github.com/HarfangLab/iocs" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L649-L682" license_url = "N/A" hash = "792c5a2628ec1be86e38b0a73a44c1a9247572453555e7996bb9d0a58e37b62b" logic_hash = "050bf26c5665c68055f1f31b4cdce40fb8c6d2b9d8e08925e684cf70e80eb2dd" score = 75 quality = 80 tags = "FILE" context = "file" strings: $dotNet = ".NETFramework,Version=" ascii $s1 = "$fcca44e8-9635-4cd7-974b-e86e6bce12cd" ascii fullword $s2 = "/startup" wide fullword $s3 = "ExportTests.dll" ascii wide fullword $s4 = "+d__" ascii $s5 = "+d__" ascii $f1 = "HttpWebResponse" ascii fullword $f2 = "set_UseShellExecute" ascii fullword $f3 = "set_CreateNoWindow" ascii fullword $f4 = "FromBase64String" ascii fullword $f5 = "set_ServerCertificateValidationCallback" ascii fullword $f6 = "AsyncTaskMethodBuilder" ascii fullword $f7 = "rangeDecoder" ascii fullword $f8 = "NumBitLevels" ascii fullword $f9 = "GetCallingAssembly" ascii fullword $f10 = "BlockCopy" ascii fullword $f11 = "MemoryStream" ascii fullword condition: uint16( 0 ) == 0x5a4d and filesize > 20KB and filesize < 120KB and $dotNet and ( ( ( 2 of ( $s* ) ) and ( 3 of ( $f* ) ) ) or ( all of ( $f* ) ) ) } rule HARFANGLAB_Xdspy_Xdigo : FILE { meta: description = "Rule to catch XDSpy Main module, written in golang" author = "HarfangLab" id = "d7df9c81-c237-5ee9-a368-fb8a90ac1889" date = "2025-05-16" modified = "2026-01-29" reference = "https://github.com/HarfangLab/iocs" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L683-L710" license_url = "N/A" hash = "49714e2a0eb4d16882654fd60304e6fa8bfcf9dbd9cd272df4e003f68c865341" hash = "0d983f5fb403b500ec48f13a951548d5a10572fde207cf3f976b9daefb660f7e" hash = "3adeda2a154dcf017ffed634fba593f80df496eb2be4bee0940767c8631be7c1" logic_hash = "3d98768a15eda41b156355919d9876c3f4a9cf1f4a2207ad3e3a391255960438" score = 75 quality = 80 tags = "FILE" context = "file" strings: $a1 = "main.oooo_" ascii $b1 = "anti.go" ascii fullword $b2 = "crypto.go" ascii fullword $b3 = "file.go" ascii fullword $b4 = "main.go" ascii fullword $b5 = "net.go" ascii fullword $b6 = "log.go" ascii fullword $b7 = "settings.go" ascii fullword $b8 = "screenshot_windows.go" ascii fullword $c1 = "passwords.go" ascii fullword $c2 = "keylog.go" ascii fullword condition: uint16( 0 ) == 0x5a4d and filesize > 1MB and filesize < 15MB and #a1 > 100 and ( any of ( $c* ) or all of ( $b* ) ) } rule HARFANGLAB_Gamaredon_Pterolnk_Vbscript : FILE { meta: description = "Matches Gamaredon PteroLNK VBScript samples used in late 2024 to early 2025" author = "HarfangLab" id = "3781749e-7f4e-55db-bdf7-2a0a056f41f4" date = "2025-04-04" modified = "2026-01-29" reference = "TRR250401" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L851-L870" license_url = "N/A" hash = "d5538812b9a41b90fb9e7d83f2970f947b1e92cb68085e6d896b97ce8ebff705" logic_hash = "b6aad0ca4653c111a4f481f9d4636e272712dc7ad53fa3b2041f2c47a1eee527" score = 75 quality = 80 tags = "FILE" context = "file" strings: $vbs = "on error resume next" ascii wide $a1 = "=\"b24gZXJyb3IgcmVzdW1lIG5leHQNC" ascii wide $b1 = "\"\"%PUBLIC%\"\"" ascii wide $b2 = "\"\"%APPDATA%\"\"" ascii wide $b3 = "\"\"REG_DWORD\"\"" ascii wide condition: filesize < 400KB and $vbs in ( 0 .. 2 ) and $a1 and 1 of ( $b* ) } rule HARFANGLAB_Gamaredon_Pterolnk_LNK : FILE { meta: description = "Matches Gamaredon PteroLNK-generated LNK files used in late 2024 to early 2025" author = "HarfangLab" id = "e6e0c2cb-049a-5d80-b167-56079aefe38b" date = "2025-04-04" modified = "2026-01-29" reference = "TRR250401" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L871-L889" license_url = "N/A" hash = "n/a" logic_hash = "69565365da1632407e223f87978a91543b1281879aa372cd055d08e26e1a2d93" score = 75 quality = 78 tags = "FILE" context = "file" strings: $a1 = "javascript:eval('w=new%20ActiveXObject(\\\"\"WScript.Shell\\\"\");w.run(\\\"\"wscript.exe //e:vb\"\"+\"\"Script" ascii wide $a2 = "javascript:eval('w=new%20ActiveXObject(\\\"\"WScript.Shell\\\"\");w.run(\\\"\"explorer" ascii wide $b1 = "\"\");window.close()')" ascii wide nocase condition: filesize < 10KB and uint32( 0 ) == 0x0000004C and uint32( 4 ) == 0x00021401 and 1 of ( $a* ) and $b1 } rule HARFANGLAB_Gamaredon_Pterolnk_Vbscript_Update2506 : FILE { meta: description = "Matches Gamaredon PteroLNK VBScript samples used in 2025" author = "HarfangLab" id = "e1feefb6-7070-53b0-98e7-4a3d784ee014" date = "2025-06-23" modified = "2026-01-29" reference = "TRR250401;TRR250401_update2506" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L890-L916" license_url = "N/A" hash = "d5538812b9a41b90fb9e7d83f2970f947b1e92cb68085e6d896b97ce8ebff705" hash = "4787fe23a4ba66137e41d6caa877251092a7f4957ccd89ed374b71aa6f6e2037" logic_hash = "e754fcdd1de5d00972f1c8352b61701f833f28bfa38e54234b3c2ced59b7f491" score = 75 quality = 80 tags = "FILE" context = "file" strings: $vbs = "on error resume next" ascii wide $a1 = "b24gZXJyb3IgcmVzdW1lIG5leHQNC" ascii wide $b1 = "\"\"%PUBLIC%\"\"" ascii wide $b2 = "\"\"%APPDATA%\"\"" ascii wide $b3 = "\"\"REG_DWORD\"\"" ascii wide $b4 = "\"\"%USERPROFILE%\"\"" ascii wide $c1 = "\"\":SRV\"\"" ascii wide $c2 = "\"\":GTR\"\"" ascii wide $c3 = "\"\":LNK\"\"" ascii wide $c4 = "\"\":URLS\"\"" ascii wide $c5 = "\"\":IPS\"\"" ascii wide condition: filesize < 600KB and $vbs in ( 0 .. 500 ) and $a1 and ( any of ( $b* ) or any of ( $c* ) ) } rule HARFANGLAB_Apt31_Rawdoor_Dropper : FILE { meta: description = "Matches the RawDoor dropper" author = "HarfangLab" id = "b278a157-20e2-5271-aca0-0692929b881d" date = "2024-04-12" modified = "2026-01-29" reference = "TRR240401" source_url = "https://github.com/HarfangLab/iocs/blob/278c38e11e99d35af836cb9140e0857fd9226574/hl_public_reports_master.yar#L917-L938" license_url = "N/A" hash = "c3056e39f894ff73bba528faac04a1fc86deeec57641ad882000d7d40e5874be" logic_hash = "d0cbe02c4fafb4895bd0126d2496802a3fee6a0362e55bfa91cfd1c75043d94a" score = 75 quality = 80 tags = "FILE" context = "file" strings: $service_target = "%SystemRoot%\\system32\\svchost.exe -k netsvcs" ascii $service_dispname = "Microsoft .NET Framework NGEN" ascii $drop_name = "~DF313.msi" ascii $msg1 = "RegOpenKeyEx %s error:%d\x0D\x0A" ascii $msg2 = "RegDeleteValue Wow64 . %d\x0D\x0A" ascii $msg3 = "CreateService %s success! but Start Faile.. %d\x0D\x0A" ascii $msg4 = "OutResFile to %s%s False!" ascii $msg5 = "Can't GetNetSvcs Buffer!" ascii condition: uint16( 0 ) == 0x5A4D and filesize > 350KB and filesize < 600KB and ( ( $service_target and $service_dispname and $drop_name ) or 3 of ( $msg* ) ) } /* * YARA Rule Set * Repository Name: LOLDrivers * Repository: https://github.com/magicsword-io/LOLDrivers/ * Retrieval Date: 2026-03-15 * Git Commit: 414b4b356946b0127cc9ec25b9de2a276edfed3d * Number of Rules: 32 * Skipped: 0 (age), 0 (quality), 537 (score), 0 (importance) * * * LICENSE * * Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* * YARA Rule Set * Repository Name: SEKOIA * Repository: https://github.com/SEKOIA-IO/Community * Retrieval Date: 2026-03-15 * Git Commit: a599920e60b655ef05924b8557bbf8bac0b343bb * Number of Rules: 701 * Skipped: 0 (age), 41 (quality), 7 (score), 0 (importance) * * * LICENSE * * # Detection Rule License (DRL) 1.1 Permission is hereby granted, free of charge, to any person obtaining a copy of this rule set and associated documentation files (the "Rules"), to deal in the Rules without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Rules, and to permit persons to whom the Rules are furnished to do so, subject to the following conditions: If you share the Rules (including in modified form), you must retain the following if it is supplied within the Rules: 1. identification of the authors(s) ("author" field) of the Rule and any others designated to receive attribution, in any reasonable manner requested by the Rule author (including by pseudonym if designated). 2. a URI or hyperlink to the Rule set or explicit Rule to the extent reasonably practicable 3. indicate the Rules are licensed under this Detection Rule License, and include the text of, or the URI or hyperlink to, this Detection Rule License to the extent reasonably practicable If you use the Rules (including in modified form) on data, messages based on matches with the Rules must retain the following if it is supplied within the Rules: 1. identification of the authors(s) ("author" field) of the Rule and any others designated to receive attribution, in any reasonable manner requested by the Rule author (including by pseudonym if designated). THE RULES ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE RULES OR THE USE OR OTHER DEALINGS IN THE RULES. */ rule SEKOIA_Infostealer_Win_Stormkitty_Exfil_Urls : FILE { meta: description = "Detect the open-source StormKitty spyware by looking for the github path" author = "Sekoia.io" id = "d3b6e778-85da-4ab6-bc98-921897677485" date = "2022-04-20" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_stormkitty_exfil_urls.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "ccf0efe9ccba8e37bc19fa241e2d7698b1a798a3e8026b1b6930452b8a8ba9b4" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "https://github.com/LimerBoy/StormKitty" ascii $telegram = "https://api.telegram.org" wide $discord = "https://cdn.discordapp.com" wide condition: uint16( 0 ) == 0x5A4D and all of them and ( #telegram > 3 or #discord > 3 ) } rule SEKOIA_Tool_Pivotnacci_Webshell : FILE { meta: description = "Detects pivotnacci webshell" author = "Sekoia.io" id = "729b6381-b59d-46fe-9ad4-b8b68fb0ceea" date = "2024-04-22" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/tool_pivotnacci_webshell.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "a57792915b4c888547ebe0b08b928e4bc32b3526c98a3ccc9fca0193cedee20a" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "if (cmd == SEND_OPERATION) {" $ = "Response.BinaryWrite(newBuff)" $ = "Request.Headers.Get(ID_HEADER)" $ = "[$READ_BUFFER_SESSION_KEY . $connection_id]" $ = "extract_session_readbuf($conn_id" $ = "Failed connecting to target $addr:$port : $errstr" $ = "void handle_post(String cmd)" $ = "SocketChannel socketChannel = this.get_socket(socket_id" $ = "this.get_svc().compareTo(this.get_hostname())" condition: 3 of them and filesize < 10KB } rule SEKOIA_Infostealer_Win_Raccoon_Str_Takemypainback : FILE { meta: description = "Detect Raccoon based on specific strings" author = "Sekoia.io" id = "2148636e-47c7-4bf2-8d1e-df68faf65111" date = "2022-10-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_raccoon_str_takemypainback.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "50d30828dab7e197619eeac4ebd2ab6692a9ac40a5091e23642cd1bdde8e9910" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str0 = "\\ffcookies.txt" wide $str1 = "TakeMyPainBack" wide $str2 = "wallet.dat" wide $str3 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" wide $str4 = "Network\\Cookies" wide condition: uint16( 0 ) == 0x5a4d and 4 of them } rule SEKOIA_Apt_Lazarus_Vhd_Ransomware_Downloader : FILE { meta: description = "Detects VHD ransomware downloader" author = "Sekoia.io" id = "edcc9df8-650c-437a-adb8-a671e8b75e64" date = "2022-11-28" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_lazarus_vhd_ransomware_downloader.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "042ab0029d170937af9b9ee6a8e499843532c84cf99faed3d2d47cb18a1500ac" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "rundll32.exe %s #1 %S" wide $ = "cmd /c timeout /t 10 & Del /f /q \"%s\" & attrib -s -h \"%s\" & rundll32 \"%s\" #1" wide $ = "cmd /c timeout /t 10 & rundll32 \"%s\" #1" wide $ = "curl -A cur1-agent -L %s -s -d da" $ = "curl -A cur1-agent -L %s -s -d dl" condition: filesize < 2MB and 3 of them } rule SEKOIA_Infostealer_Win_Monster_Stub : FILE { meta: description = "Finds Monster Stealer stub (Python payload) based on specific strings." author = "Sekoia.io" id = "10d27d49-79ae-4edc-8c30-35506bdf2c42" date = "2024-08-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_monster_stub.yar#L1-L31" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "d6362c54b1f56ffa878423fbb1a3f57508d20e06b573c732f892494178a49200" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "https://t.me/monster_free_cloud" ascii $str02 = "MonsterUpdateService" ascii $str03 = "Monster.exe" ascii $str04 = "schtasks /create /f /sc daily /ri 30 /tn" ascii $str05 = "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\" ascii $str06 = "banned_uuids" ascii $str07 = "banned_computer_names" ascii $str08 = "banned_process" ascii $str09 = "register_X_browsers" ascii $str10 = "register_payload" ascii $str11 = "tiktok_sessions.txt" ascii $str12 = "spotify_sessions.txt" ascii $str13 = "network_info.txt" ascii $str14 = "lolz.guru" ascii $str15 = "echo ####System Info####" ascii $str16 = "echo ####Firewallinfo####" ascii $str17 = "/injection/main/injection.js" ascii condition: uint16( 0 ) == 0x5A4D and 10 of them } rule SEKOIA_Generic_Sharpshooter_Payload_9 : FILE { meta: description = "Detects payload created by SharpShooter" author = "Sekoia.io" id = "e4283d6e-d829-4f21-ba60-9e6232519e54" date = "2023-02-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_sharpshooter_payload_9.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "deb0773e6300ed0f4c099359731812216390017eaf8de678b2a5ed237906f03f" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "shell.Environment(\"Process\").Item(\"COMPLUS_Version\")" $ = "(enc.GetBytes_4(b), 0, length), 0, ((length / 4) * 3)" $ = "DebugPrint Err.Description" condition: all of them and filesize < 2MB } rule SEKOIA_Ransomware_Win_Fonix : FILE { meta: description = "Detect the Fonix / XINOF ransomware by spotting its specific debug path" author = "Sekoia.io" id = "b28467d5-69a0-4a8b-8938-8fdac2ae8d19" date = "2021-10-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_win_fonix.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "2085fae62c07f63723a417566c204b0a9942de35ed80272d1486dc2c96ca0037" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "Ransomware\\Fonix" ascii $s2 = "Release\\Fonix.pdb" ascii condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Generic_Tor_Hidden_Service_Leading_To_Winports : FILE { meta: description = "Detects malicious TOR redirection affecting RDP, NetBios" author = "Sekoia.io" id = "1e5c469b-f721-44af-87b3-1adf423719c1" date = "2023-09-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_tor_hidden_service_leading_to_winports.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "39db199ba7fede8df4bdb505b071240dda96b74f66f818f90047dad338dc4a72" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "HiddenServiceDir " $s2 = "SocksPort " $s3 = "HiddenServicePort " $s4 = ":3389" $s5 = ":445" condition: $s1 and $s2 and ( $s4 in ( @s3 .. @s3 + 100 ) or $s5 in ( @s3 .. @s3 + 100 ) ) and filesize < 2000 } rule SEKOIA_Implant_Win_Havoc_Default_Strings : FILE { meta: description = "Finds Havoc implants based on the embedded default strings" author = "Sekoia.io" id = "955c2211-4502-4258-ba4c-0d96a5624283" date = "2022-10-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/implant_win_havoc_default_strings.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "dbf17e579071f265961657d73c6a2e51630b23e80376491df2e631cee5ffb1b4" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "C:\\Windows\\System32\\notepad.exe" ascii $str02 = "C:\\Windows\\SysWOW64\\notepad.exe" ascii $str03 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" ascii $str04 = "POST" wide $str05 = "\\??\\C:\\Windows\\System32\\ntdll.dll" wide $str06 = "X-Havoc: true" ascii $str07 = "X-Havoc-Agent: Demon" ascii $str08 = "/text.gif" ascii $str09 = "SeImpersonatePrivilege" ascii condition: uint16( 0 ) == 0x5A4D and 6 of them } rule SEKOIA_Apt_Badmagic_Installpzz_Pshscript : FILE { meta: description = "Detects BadMagic InstallPZZ powershell script" author = "Sekoia.io" id = "d01bc217-9e14-498b-a92a-17f6aedec269" date = "2023-05-15" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_badmagic_installpzz_pshscript.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "58256cffd1d5060769f304393c22b6488abe9515eb7df2a967ba2fed85a9ec9a" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "start-job -ScriptBlock $script;" $ = "Start-Sleep -Second 1;" $ = "Write-Output \"$url$j" $ = "Start-Sleep -Second 2;" condition: all of them and filesize < 1KB } rule SEKOIA_Generic_Sharpshooter_Payload_5 : FILE { meta: description = "Detects payload created by SharpShooter" author = "Sekoia.io" id = "cb4d266e-f2b7-4642-a223-57180e66a9a6" date = "2023-02-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_sharpshooter_payload_5.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "a68342b5bb2622deb71432da85cc249f35ca5b7b5dc70e069d6dcb6e9488e97e" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "rc4 = function(key, str)" $ = "&S\");" $ = "open(STDERR,\">&S\");" $ = "use Socket;$i=" condition: filesize < 300 and all of them } rule SEKOIA_Infostealer_Win_Acrstealer_Str : FILE { meta: description = "Finds ACR Stealer standalone samples based on specific strings." author = "Sekoia.io" id = "63b4d6ff-0cab-44ec-9d53-bb2612371a48" date = "2024-04-22" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_acrstealer_str.yar#L1-L29" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "53d313857577b39b51a3e396c078d39a8b8ab803295b689357c3e8ea94cac9f7" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "ref.txt" ascii $str02 = "Wininet.dll" ascii $str03 = "Content-Type: application/octet-stream; boundary=----" ascii $str04 = "POST" ascii $str05 = "os_c" ascii fullword $str06 = "en_k" ascii fullword $str07 = "MyApp/1.0" ascii $str08 = "/Up/b" ascii $str09 = "Hello, World!" ascii $str10 = "/ujs/" ascii $str11 = "/Up/" ascii fullword $str12 = "ostr" ascii fullword $str13 = "brCH" ascii fullword $str14 = "brGk" ascii fullword $str15 = "https://steamcommunity.com/profiles/" ascii condition: uint16( 0 ) == 0x5A4D and 10 of them } rule SEKOIA_Guerrilla_Lemongroup : FILE { meta: description = "No description has been set in the source file - SEKOIA" author = "Sekoia.io" id = "df635b5a-a19a-48ab-9a3a-9723e265c71d" date = "2023-05-23" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/guerrilla_lemongroup.yar#L1-L28" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "b644cb537a42217f2549f37bfe07ae0b7ba39fc248ab3d5fd870384c7684683b" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $dex = { 64 65 78 0A 30 33 ?? 00 } $odex = { 64 65 79 0A 30 33 ?? 00 } $s2 = "data response code===" ascii $s3 = "httpCon:" ascii $s4 = "processName :" ascii $s5 = "startListTasks......" ascii $s6 = "url==" ascii $s7 = "java core run ZYGOTE_PROCESS" ascii $api1 = "/api.php" ascii $api2 = "/event.php" ascii $api3 = "/apiRS.php" ascii condition: ($dex at 0 or $odex at 0 ) and filesize > 100KB and filesize < 5MB and 5 of ( $s* ) and 1 of ( $api* ) } rule SEKOIA_Hacktool_Win_Uknowseckeylogger : FILE { meta: description = "Detect the uknowsec keylogger based on strings" author = "Sekoia.io" id = "ab08136d-b1f3-4e64-b73c-e6344b610f91" date = "2022-10-05" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/hacktool_win_uknowseckeylogger.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "83a731a5b1853edcce963d458fc170206086305f3e43403c930c9633918e8ff1" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str0 = "github.com/atotto/clipboard" ascii $str1 = "github.com/TheTitanrain/w32" ascii $str2 = "github.com/aliyun/aliyun-oss-go-sdk" ascii $str3 = "golang.org/x/sys" ascii $str4 = "golang.org/x/time" ascii $str5 = "WSARecvWSASend[Print][Right][Shift][Sleep][debug][error]" ascii condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Trojan_Win_Bbtok_Dll1_Sep23 : FILE { meta: description = "Finds BBTok installation DLL file" author = "Sekoia.io" id = "eebed24b-24ec-4a85-852c-52d0acc9a698" date = "2023-09-26" modified = "2024-12-19" reference = "https://research.checkpoint.com/2023/behind-the-scenes-of-bbtok-analyzing-a-bankers-server-side-components/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/trojan_win_bbtok_dll1_sep23.yar#L1-L28" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "5353956345206982af9bde55300fc405ba6e40722e8f51e8717c30ad32bc8f91" logic_hash = "1b1e25f7d760d275d2ef01390c215edb1752ad65383c92a21d71d9e65da3c5f8" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "C:\\Windows\\System32\\rundll32.exe" wide $str02 = "C:\\ProgramData\\mmd.exe" wide $str03 = "REG ADD HKCU\\Software\\Classes\\.pwn\\Shell\\Open\\command -ve /d" wide $str04 = "C:\\ProgramData\\mmd.exe \\\\" wide $str05 = "\\file\\Trammy.dll" wide $str06 = "Dacl & REG DELETE HKCU\\Software\\Classes\\ms-settings /f" wide $str07 = "REG DELETE HKCU\\Software\\Classes\\.pwn /f" wide $str08 = "REG ADD HKCU\\Software\\Classes\\ms-settings\\CurVer -ve /d \".pwn\" /f" wide $str09 = "timeout /t 3 >nul & start /MIN computerdefaults.exe" wide $str10 = "set_StartInfo" ascii $str11 = "set_WindowStyle" ascii condition: uint16( 0 ) == 0x5a4d and 7 of them and filesize < 50KB } rule SEKOIA_Infostealer_Win_Ducklogs : FILE { meta: description = "Detects DuckLogs based on specific strings" author = "Sekoia.io" id = "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5" date = "2022-12-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_ducklogs.yar#L1-L30" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "5db1a5595ec41488da620606bbcb36d0d686f9d6b7a0479439c53625df0886a0" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $dck = "DuckLogs" ascii wide $str01 = "CheckRemoteDebuggerPresent" ascii $str02 = "MozGlueNotFound" ascii $str03 = "get_DecryptedPassword" ascii $str04 = "get_Extension" ascii $str05 = "set_UseShellExecute" ascii $str06 = "FirefoxPasswords" ascii $str07 = "GetAllGeckoCookies" ascii $str08 = "GetAllBlinkDownloadsBy" ascii $str09 = "Grabbers" ascii $str10 = "Utility" ascii $str11 = "Persistance" ascii $str12 = "Clipboard" ascii $str13 = "WaterfoxGrabber" ascii $str14 = "AvastGrabber" ascii condition: uint16( 0 ) == 0x5A4D and ( ( #dck > 4 and 2 of ( $str* ) ) or 12 of them ) } rule SEKOIA_Infostealer_Win_Titan : FILE { meta: description = "Finds samples of the Titan Stealer" author = "Sekoia.io" id = "0adbe616-0d91-4b05-b7a8-812cd79f9252" date = "2023-01-12" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_titan.yar#L1-L25" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "996dc320c83f57c47afe50ad032bac43ad1fbfbbd5a86e517089a062b0382993" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str0 = "/sendlog" ascii $str1 = "/stealer/grabfiles.go" ascii $str2 = "/stealer/installedsoft.go" ascii $str3 = "/stealer/screenshot.go" ascii $str4 = "/stealer/sendlog.go" ascii $str5 = "/stealer/userinformation.go" ascii $str6 = "C:/Program Files (x86)/Steam/config/" ascii $str7 = "/com.liberty.jaxx/IndexedDB/file__0.indexeddb.leveldb/" ascii $str8 = "MAC Adresses:" ascii $str9 = "/Coowon/Coowon/" ascii $str10 = "_/C_/Users/admin/Desktop/stealer_v7/stealer" ascii condition: uint16( 0 ) == 0x5A4D and 5 of them } rule SEKOIA_Apt_Kimsuky_Powershell_Dropper_Strings : FILE { meta: description = "Detects a PowerShell dropper used by Kimsuky" author = "Sekoia.io" id = "8b346e05-215b-46c0-82bf-fce3a65440f3" date = "2024-06-11" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_kimsuky_powershell_dropper_strings.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "e98f23ddf02049126786e9300e7b6661b2a74817b36e2f3a661b07b24ef4402d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "try { " ascii wide $s2 = "); } catch(e){} } if (" $s3 = "WScript.Sleep(" $s4 = " } catch(e) { }" condition: filesize > 500KB and $s1 at 0 and $s2 in ( filesize -1000 .. filesize ) and $s3 in ( filesize -1000 .. filesize ) and $s4 in ( filesize -1000 .. filesize ) } rule SEKOIA_Loader_Win_Aresloader : FILE { meta: description = "Finds AresLoader samples based on characteristic strings" author = "Sekoia.io" id = "bf5070fc-c8ca-4458-8702-cd1830667b7a" date = "2023-05-02" modified = "2024-12-19" reference = "https://blog.cyble.com/2023/04/28/citrix-users-at-risk-aresloader-spreading-through-disguised-gitlab-repo/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_win_aresloader.yar#L1-L28" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "2edbb625394506e865580373d5c3454b4fa201183c84d247b4373f24e25f5fd4" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "{\\\"ip\\\": '%s', \\\"UID\\\": '%s', \\\"geo\\\": '%s', \\\"service\\\": '%s', \\\"owner_token\\\": '%s'}" ascii $str02 = "AresLdr_v_3" ascii $str03 = "https://ipinfo.io/ip" ascii $str04 = "C:\\Users\\%s\\AppData\\Roaming\\%s\\%s" ascii $str05 = "/manager/payload" ascii $str06 = "/manager/loader" ascii $str07 = "/manager/legit" ascii $str08 = "/manager/hvnc" ascii $str09 = "C%p %d V=%0X w=%ld %s" ascii $str10 = "rundll32.exe %s,%s" ascii $str11 = "%startinfo" ascii $str12 = "%managedapp" ascii $str13 = "%has_cctor" ascii condition: uint16( 0 ) == 0x5A4D and 5 of them } rule SEKOIA_Loader_Win_Piccassoloader : CVE_2023_38831 { meta: description = "Detect the variant of Picasso used by GhostWriter as CVE-2023-38831 exploitation payload" author = "Sekoia.io" id = "91d9c2de-451e-467e-8f5c-38bbcce92b72" date = "2023-09-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_win_piccassoloader.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "93e598f6c70dcb1ddf20ea926af72241e135bdf910f3721a7a0c3036f6a3d1b9" score = 75 quality = 76 tags = "CVE-2023-38831" version = "1.0" classification = "TLP:CLEAR" strings: $ = {2c 27 44 65 63 72 79 70 74 6f 72 27 2c 27 6e 6f 64 65 27 2c 27 55 73 65 72 2d} $ = {5c 78 32 30 43 68 72 6f 6d 65 2f 31 30 27 2c 27 67 67 65 72 27 2c 27 73 65 64 43 69 70 68 65 72 27 2c 27 5f 61 70 70 65 6e 64 27 2c 27 5f 45 4e 43 5f 58 46 4f 52 4d 27 2c 27 57 53 63 72 69 70 74 2e 53 68 27} condition: 1 of them } rule SEKOIA_Apt_Oilrig_Powerexchange : FILE { meta: description = "Detects OilRig's PowerExchange backdoor" author = "Sekoia.io" id = "cb6b370f-7b05-480b-865e-ac81ded4a2a4" date = "2023-10-24" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_oilrig_powerexchange.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "5e505e9bbb17500f7e9a316b66bccb62089172582478230e0bda736bbefa1fd6" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "($h.value).PadRight((($h.value).Length+($h.value).Length%4),'='" ascii wide $ = "(($h.value).Length%4 -ne 0)" ascii wide $ = "-match \"@@(.*)@@\"" ascii wide $ = "[Environment]::NewLine+$_.Exception.Message | Out-File -FilePath" ascii wide $ = "ContainsSubjectStrings.Add(\"@@\")" ascii wide condition: 2 of them and filesize < 50KB } rule SEKOIA_Apt_Coathanger_Beacon : FILE { meta: description = "Detects COATHANGER beacon" author = "Sekoia.io" id = "cc201479-016a-46d2-a9e2-41b4914ce618" date = "2024-02-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_coathanger_beacon.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "e44496e62de8c885d5bd941819a97f4c0dd90ce2d0cfe9d042ab9590cc354ddb" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = { 48 B8 47 45 54 20 2F 20 48 54 48 89 45 B0 48 B8 54 50 2F 32 0A 48 6F 73 48 89 45 B8 48 B8 74 3A 20 77 77 77 2E 67 48 89 45 C0 48 B8 6F 6F 67 6C 65 2E 63 6F } condition: uint32( 0 ) == 0x464c457f and filesize < 5MB and any of them } rule SEKOIA_Rootkit_Win_Purplefox_Svchost_Txt : FILE { meta: description = "Detects Purple Fox payloads used during end-2021 and 2022 campaigns based on characteristics shared by TrendMicro details." author = "Sekoia.io" id = "e992d574-6a44-4bea-97e2-6d5579ce8d02" date = "2022-03-28" modified = "2024-12-19" reference = "https://www.trendmicro.com/en_us/research/22/c/purple-fox-uses-new-arrival-vector-and-improves-malware-arsenal.html" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rootkit_win_purplefox_svchost_txt.yar#L1-L22" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "a1de949cb2e898ed031f5c796f7152af12dfae5431dfaf269f25ebe72f0ae004" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str0 = "C:\\ProgramData\\dll.dll,luohua" wide $str1 = "C:\\ProgramData\\7z.exe" wide $str2 = "F:\\hidden-master\\x64\\Debug\\QAssist.pdb" ascii $str3 = "F:\\Root\\sources\\MedaiUpdateV8\\Release\\MedaiUpdateV8.pdb" ascii $str4 = "cmd.exe /c RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255" ascii $str5 = "del /s /f %appdata%\\Mozilla\\Firefox\\Profiles\\*.db" ascii condition: 4 of ( $str* ) and filesize > 7000KB and filesize < 9500KB } rule SEKOIA_Apt_Cloudatlas_Powershower_Module : FILE { meta: description = "Detects CloudAtlas PowerShower module" author = "Sekoia.io" id = "dd688058-3d5d-46a7-8380-fe961c3327cd" date = "2022-11-30" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_cloudatlas_powershower_module.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "7542eb882ee44203d806ad936126be2476b6e3a85ad8c93b6fd6c8226fe82617" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "$env:temp" ascii wide $ = "foreach($item in $zip.items" ascii wide $ = "echo $result" ascii wide $ = "pass.txt" ascii wide condition: all of them and filesize < 10000 } rule SEKOIA_Apt_Kimsuky_Sharpext_Devtoolmodule_Strings : FILE { meta: description = "Detects the DevTool module used by SharpExt" author = "Sekoia.io" id = "6f589a9c-344a-4ddc-929e-f123a2c3c187" date = "2022-07-29" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_kimsuky_sharpext_devtoolmodule_strings.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "61007801d28636c6d88b14225f34910d03e82337520257637a5017d58600b2bc" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "packetProc = function" ascii fullword $ = "var url = request.request.url" ascii fullword $ = "https://mail" ascii fullword condition: all of them and filesize < 50KB } rule SEKOIA_Loader_Fakebat_Initial_Powershell_May24 : FILE { meta: description = "Finds FakeBat initial PowerShell script downloading and executing the next-stage payload." author = "Sekoia.io" id = "adf0e4fc-fa98-470b-9535-bd30d0bdb3aa" date = "2024-05-28" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_fakebat_initial_powershell_may24.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "6a699df361b0cb2baf1d0b128f795aa9918ebe11daaeb1fa49aebf9320add762" score = 75 quality = 80 tags = "FILE" version = "1.0" modification_date = "2024-06-21" classification = "TLP:CLEAR" strings: $str01 = "='http" wide $str02 = "=(iwr -Uri $" wide $str03 = " -UserAgent $" wide $str04 = " -UseBasicParsing).Content; iex $" wide condition: 3 of ( $str* ) and filesize < 1KB and true } rule SEKOIA_Ransomware_Win_Voidcrypt : FILE { meta: description = "Detect the Limbozar / VoidCrypt ransomware" author = "Sekoia.io" id = "394033cc-20fe-4ced-8d77-5f1061bb8c96" date = "2021-10-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_win_voidcrypt.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "7e28bae5830df779bf2367482fb966f5cab691a6c8c474950f7442d8fec054a0" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "C:\\ProgramData\\pkey.txt" ascii $s2 = "C:\\ProgramData\\IDk.txt" ascii $s3 = "fuckyoufuckyoufuckyoufuckyou" ascii condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Apt_Muddywater_Manifestation_Backdoor_Obfuscated : FILE { meta: description = "Detects obfuscated Muddys manifestation JScript backdoor" author = "Sekoia.io" id = "58df72a1-822c-4b82-904d-1c0124dc7bc1" date = "2022-01-13" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_muddywater_manifestation_backdoor_obfuscated.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "8610f0895fafd2bc9a19bbff816754b563565ba6b105cc3d0a32b80bf5ebdc47" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $m = { 76 61 72 20 5f 30 78 [4-6] 3d 5b } $w = {57 53 63 72 69 70 74 5b 5f 30 78 [4-6] 28 30 78 [2-3] 29 5d 28 30 78 [2-3] 2a 30 78 [2-3] 29 2c } $t = "subkeys(key));}" condition: $m at 0 and ( $t at ( filesize -16 ) or $w in ( filesize -200 .. filesize ) ) } rule SEKOIA_Apt_Unc4990_Explorer_Ps1_Reverse_B64 : FILE { meta: description = "Detects reverse base64 files (explorer.ps1)" author = "Sekoia.io" id = "35c3ffb2-2ced-426c-ac3f-a8cd0c357672" date = "2024-02-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_unc4990_explorer_ps1_reverse_b64.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "bf13fbf2dbe6a718510f3e435a9fe06517ed962f8e129d79a15e6a301e5713ca" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s0 = "Invoke-Expression ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(\"" $s1 = "Wa1VHJ\"[-1..-" $s2 = "-join '')))" condition: all of them and $s0 at 0 and @s2 - @s2 < 20 } rule SEKOIA_Backdoor_Lin_Sysupdate : FILE { meta: description = "Detect the SysUpdate malware" author = "Sekoia.io" id = "9cb806cf-4ca1-44d8-809a-58cc5f364fb8" date = "2023-03-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/backdoor_lin_sysupdate.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "93e17cd535444e9cabc7440b1226526e67ddb81a84eb6377689a62f268b9dfee" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "generate guid path=%s" $ = "3rd/asio/include/asio/detail/posix_event.hpp" $ = "expires_at" $ = "%s -f %s" $ = "expires_after" $ = "-run" condition: uint32( 0 ) == 0x464c457f and all of them } rule SEKOIA_Apt_Kimsuky_Toddlershark_Strings : FILE { meta: description = "Detects Kimsuky TODDLERSHARK vbs malware" author = "Sekoia.io" id = "2db1a424-9e83-4168-8ebf-d3b415b6a576" date = "2024-03-06" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_kimsuky_toddlershark_strings.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "dee9d03f498437dd6d8399975cd91ec44307067ac4642b9ff31df1a6d6b10468" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "On Error Resume Next" $ = ".open \"POST\", \"http" $ = ".setRequestHeader" $ = ".send" $ = "Execute(" $ = ".responseText)" condition: all of them and filesize < 450 } rule SEKOIA_Backdoor_Powershellempire_Python : FILE { meta: description = "Detects Empire Python version" author = "Sekoia.io" id = "c2913f60-46a2-42c1-8569-72568eaddaed" date = "2022-04-15" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/backdoor_powershellempire_python.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "81c74a73ff7fe02420f29a53b350f1b53964f5a04f0694fed5b1b4bd6cc5ad03" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "import sys,base64;exec" $ = "aW1wb3J0IHN5cztpbXBvcnQgcmUsIHN1YnByb2" condition: all of them and filesize < 1MB } rule SEKOIA_Apt_Cloudatlas_Rtf_Shellcode_Cve_2018_0798 : FILE { meta: description = "CloudAtlas Shellcode for CVE_2018_0798 " author = "Sekoia.io" id = "6c602c66-df40-4436-800f-e548dacc1e81" date = "2022-12-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_cloudatlas_rtf_shellcode_cve_2018_0798.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "a8c320ca81ef196b84a8fb08d9e02ef8cfb338024fa7e6776ff6c8c049b8e63c" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "6060606061616161616161616161616161616161FB0B00004bE8FFFFFFFFC35F83C71B33C966B908010f0d00ddd8d97424f4668137" ascii nocase condition: filesize < 8MB and all of them } rule SEKOIA_Ransomware_Win_Wing : FILE { meta: description = "Finds Wing ransomware samples based on specific strings" author = "Sekoia.io" id = "c2fe8321-8013-4aa4-91a6-c0face3e6b52" date = "2024-01-30" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_win_wing.yar#L1-L52" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "c9f373c12f4fb5efc29d0f293a2e0b46cf03c1abe124e9dd4118bef6c6e3f731" score = 75 quality = 78 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $fun01 = "LockBIT" ascii fullword $fun02 = "BigEncrypt" ascii $fun03 = "RunEncrypt" ascii $fun04 = "AesEncrypt" ascii $fun05 = "KeyGenerator" ascii $fun06 = "GetUniqueKey" ascii $fun07 = "SearchFolder" ascii $fun08 = "ThreadFolders" ascii $fun09 = "ContainsKeyword" ascii $fun10 = "ReadMeMaker" ascii $fun11 = "StopAndConfigureSqlServices" ascii $fun12 = "WipeRecycleBin" ascii $fun13 = "TelSender" ascii $str01 = "AnyDesk" wide $str02 = "firebird" wide $str03 = "Acronis" wide $str04 = "config \"" wide $str05 = " start= demand" wide $str06 = "' stopped and configured to start automatically." wide $str07 = "Error processing service '" wide $str08 = "$RECYCLE.BIN" wide $str09 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" wide $str10 = "UniqueID:" wide $str11 = "PersonalID:" wide $ran01 = "C:\\Readme.txt" wide $ran02 = "C:\\LockBIT\\systemID" wide $ran03 = "Your system has been encrypted by our team, and your files have been locked using our proprietary algorithm !" wide $ran04 = "* Please read this message carefully and patiently *" wide $ran05 = "* If you use any tools, programs, or methods to recover your files and they get damaged, we will not be responsible for any harm to your files !" wide $ran06 = "* Note that your files have not been harmed in any way they have only been encrypted by our algorithm." wide $ran07 = "Your files and your entire system will return to normal mode through the program we provide to you. No one but us will be able to decrypt your files !" wide $ran08 = "* To gain trust in us, you can send us a maximum of 2 non-important files, and we will decrypt them for you free of charge." wide $ran09 = "Please put your Unique ID as the title of the email or as the starting title of the conversation." wide $ran10 = "* For faster decryption, first message us on Telegram. If there is no response within 24 hours, please email us *" wide condition: uint16( 0 ) == 0x5a4d and ( ( 5 of ( $fun* ) and 5 of ( $str* ) and 2 of ( $ran* ) ) or 12 of ( $fun* ) or 10 of ( $ran* ) or 8 of ( $ran* ) ) } rule SEKOIA_Apt_Gamaredon_Htmlsmuggling_Attachment_Stage2 : FILE { meta: description = "Detects Gamaredon HTMLSmuggling attachment" author = "Sekoia.io" id = "e82335ea-48d5-409c-a270-cfd5a2197c44" date = "2023-01-20" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_gamaredon_htmlsmuggling_attachment_stage2.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "42e637f628db6719342ae104c6c89bb80609c5f3f5c2586daccb31f7d688a2a1" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = ") == -1) die();" ascii $ = "'data:application/x-rar-compressed;base64, ' +" ascii $ = ".appendChild(img);" ascii $ = "['Win32', 'Win64', 'Windows', 'WinCE'].indexOf(" ascii $ = " = navigator[\"platform\"];" ascii condition: 4 of them and filesize < 1MB } rule SEKOIA_Apt_Uac0154_Powershell_Infection_Chain_1 : FILE { meta: description = "UAC-0154 Infection chain" author = "Sekoia.io" id = "428eb021-b37f-4db5-8cab-ca2f6dd2e202" date = "2023-10-02" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_uac0154_powershell_infection_chain_1.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "a849c397e7f61e41ea7e67a265717d7d66f6af42f3d1e930020d1433dd3aab18" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "command $es =" $ = "function isV" $ = "doIn;" $ = "System.IO.Comp" condition: all of them and filesize < 100KB } rule SEKOIA_Apt_Muddywater_Powgoop_Decoded : FILE { meta: description = "Detects decoded PowGoop malware" author = "Sekoia.io" id = "194cb9ef-da96-42b6-a3b5-b0aee7495f2c" date = "2022-01-13" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_muddywater_powgoop_decoded.yar#L1-L26" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "6654d8107bb2ad6344f1fa03c6525ed9a0b8e49627787355efe857e80a02eca4" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $h1 = "[System.Net.WebRequest]::Create(" ascii wide $h2 = "Headers.Add('Authorization'" ascii wide $h3 = "Headers.Add('Cookie',('value=' + $ec + ';')" ascii wide $h4 = ".GetResponse()" ascii wide $h5 = "GetResponseStream()" ascii wide $c1 = "return (65..90) + (97..122) | Get-Random -Count" ascii wide $c2 = "% {[char]$_}" ascii wide condition: filesize > 1KB and filesize < 1MB and ( $h2 in ( @h1 .. @h5 ) and $h3 in ( @h1 .. @h5 ) and $h4 in ( @h1 .. @h5 ) ) or ( $c2 in ( @c1 .. @c1 + 50 ) ) and true } rule SEKOIA_Infostealer_Win_Meduzastealer : FILE { meta: description = "Finds MeduzaStealer samples based on specific strings" author = "Sekoia.io" id = "1276f485-aa5d-491b-89d8-77f98dc496e1" date = "2023-06-20" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_meduzastealer.yar#L1-L26" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "e81a5a9611662422eb7a87c0c1a370cee6f138fd6169225d969b669337d91a06" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "emoji" ascii $str02 = "%d-%m-%Y, %H:%M:%S" ascii $str03 = "[UTC" ascii $str04 = "user_name" ascii $str05 = "computer_name" ascii $str06 = "timezone" ascii $str07 = "current_path()" ascii $str08 = "[json.exception." ascii $str09 = "GDI32.dll" ascii $str10 = "GdipGetImageEncoders" ascii $str11 = "GetGeoInfoA" ascii condition: uint16( 0 ) == 0x5a4d and 8 of them and filesize > 500KB } rule SEKOIA_Apt_Konni_Check_Bat : FILE { meta: description = "Script used to performs check before executing Konni" author = "Sekoia.io" id = "f05e6ba2-c128-4c17-8f74-f7640103c859" date = "2023-11-27" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_konni_check_bat.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "13a9dd6978985eb17960794c6de2ee2e6411e6afeb705ff95ced72bc0efb5d8c" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = ":64BIT" $ = ":32BIT" $ = ":INSTALL" $ = ":EXIT" $ = "netpp.dll" $ = "wpns.dll" $ = "netpp64.dll" $ = "wpns64.dll" $ = "rundll32" condition: filesize < 1MB and 7 of them } rule SEKOIA_Dropper_Win_Konni_Cab : FILE { meta: description = "Detect the CAB files used to drop the KONNI malware" author = "Sekoia.io" id = "87a209d5-667a-4a81-837a-660ab98c33c8" date = "2023-09-26" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/dropper_win_konni_cab.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "b49bb875d5ddd4b815da5bd184ec7f1d23cfb7ad316760c9a9876607245d0a95" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $magic = "MSCF" $file2 = "check.bat" $file3 = "wpnprv64.dll" $file4 = "wpnprv32.dll" condition: $magic at 0 and all of ( $file* ) } rule SEKOIA_Apt_Sandworm_Orcshred_Apr2022 : FILE { meta: description = "Detects the ORCSHRED script" author = "Sekoia.io" id = "1a88800c-29e1-4e2c-8374-f5a93dd9fd91" date = "2022-04-12" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_sandworm_orcshred_apr2022.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "de38cf43fa5cc756c26ae241f2e60636c2aabbe4254fdeca2340c62873498de7" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "find /etc -name os-release >" $ = "/bin/bash /var/" $ = "crontab -l >" $ = ".sh & disown" condition: 3 of them and filesize < 2KB } rule SEKOIA_Apt_Stripedfly : FILE { meta: description = "Detects string relative to Stripedfly malware" author = "Sekoia.io" id = "81968d34-3247-4965-ba44-55747370c90e" date = "2023-11-30" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_stripedfly.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "ded64ae30cf994162d4af649a34eadd4b8619cbced4392a6684129f8cf906136" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "{\"id\":%d,\"jsonrpc\":\"2.0\",\"method\":\"%s\",\"params\":%s}" $s2 = "{\"login\":\"%s\",\"pass\":\"%s\",\"agent\":\"\"}" $s3 = "(tcp|ssl)://([A-Za-z0-9\\.\\-]+):([0-9]+)" condition: filesize < 3MB and 2 of them } rule SEKOIA_Implant_Win_Pingpull : FILE { meta: description = "Detect the PingPull malware used by GALLUM in 2022" author = "Sekoia.io" id = "521615d4-912b-4581-b5a9-a8b158ac9496" date = "2022-06-13" modified = "2024-12-19" reference = "https://unit42.paloaltonetworks.com/pingpull-gallium/#Protections-and-Mitigations" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/implant_win_pingpull.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "778d429e4c6d7575ddeea5144f9554f2b6ca46175d4202d338bef01dc9668b97" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "PROJECT_%s_%s_%08X" condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Malware_Win_Passlib : FILE { meta: description = "Detect the Passlib malware" author = "Sekoia.io" id = "609999e2-a644-4bf3-bce2-b0e1b0e7094b" date = "2022-07-28" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/malware_win_passlib.yar#L1-L32" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "5e76f7c40a00182ee076720b4c19a45e82a8ce11740fdd8e9419f9d9e93cdb41" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "Passlib test utility - Version %s" wide $ = "-l (arbitrary dll injection into LSASS)" wide $ = "-u (arbitrary dll uninjection from LSASS)" wide $ = "DLL %s injection was successful requested!" wide $ = "DLL %s uninjection was successful requested!" wide $ = "Process %s was succesfully created with full privileges and system integrity!" wide $ = "full_path_to_volatile_payload_dll" wide $ = "%s: [%s]:[%s] (http_only:%d)" wide $ = "LEX server has been deployed at lsass." wide $ = "LEX client is using volatile payload at: %s" wide $ = "LEX client is using permanent payload at: %s" wide $ = "Passlib execution finished" wide $ = "Running on Passlib version %ws" wide $ = "There was a problem initializing passlib manager interface." wide $ = "Passlib running without high integrity" wide $ = "About to dump passwords through passlib manager interface" wide condition: uint16( 0 ) == 0x5A4D and filesize > 1500KB and all of them } rule SEKOIA_Apt_Turla_Kazuar_Variant_2023 : FILE { meta: description = "New variant of Kazuar observed in 2023" author = "Sekoia.io" id = "51e9de6a-5d8a-4627-8063-b70f78e78726" date = "2023-11-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_turla_kazuar_variant_2023.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "98207fef906c922ff09f72b0dea7103c0fb86c5ec4712a23ecba6840b79b0ad5" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "Started from file '" ascii wide $s2 = "Zombifying user's" ascii wide $s3 = "Result #{0:X16} already exists in {1}" ascii wide condition: uint16( 0 ) == 0x5a4d and 2 of them } rule SEKOIA_Implant_Mac_Rustbucket : FILE { meta: description = "Detect the RustBucket malware" author = "Sekoia.io" id = "fcbb745d-7f56-4c51-9db5-427da22a0c68" date = "2023-04-24" modified = "2024-12-19" reference = "https://www.jamf.com/blog/bluenoroff-apt-targets-macos-rustbucket-malware/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/implant_mac_rustbucket.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "9ca914b1cfa8c0ba021b9e00bda71f36cad132f27cf16bda6d937badee66c747" logic_hash = "ab7bc706b0d3f0dcd739ffe7f8153ba7377892143d8d53ce1591519ffe4ae84f" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "/Users/hero/" $ = "PATHIpv6Ipv4Bodyslotpath" $macho_magic = {CF FA ED FE} $java_magic = {CA FE BA BE} condition: ($macho_magic at 0 or $java_magic at 0 ) and all of them } rule SEKOIA_Generic_Sharpshooter_Payload_2 : FILE { meta: description = "Detects payload created by SharpShooter" author = "Sekoia.io" id = "02bc795f-b8e0-44d4-b475-310359867577" date = "2023-02-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_sharpshooter_payload_2.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "c26779cd35d6430da3629df8b310356d663c05e82db0aca0fc974bc3a298c92e" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "var e={},i,b=0,c,x,l=0,a,r=" $ = "eval(plain);" $ = "var plain = rc4(" condition: all of them and filesize < 2MB } rule SEKOIA_Apt_Scanbox_Obfuscated_Versions : FILE { meta: description = "Detects obfuscated versions of the scanbox framework" author = "Sekoia.io" id = "2866cead-7f16-4895-80ef-aad6fb66e864" date = "2022-09-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_scanbox_obfuscated_versions.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "0395d1ac9a593aa8249f6d16c485e431349cecf2f379d2b5bac466541f71968c" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "$_$_$_$__$_____$__$_$_$_$__$" $ = "NztCm_NcDkh" $ = "____$_$__$__$_______w____$_$__$__$_____i____$_$__$__$_____" $ = "391,379,398,381,386" $ = "plguinurl" $ = "plugin_timeout*1000" condition: 2 of them and filesize < 500KB } rule SEKOIA_Loader_Win_Gcleaner : FILE { meta: description = "Detect the GCleaner loader using specific strings" author = "Sekoia.io" id = "0c085da3-ec77-4141-a927-bef1578a6dee" date = "2022-10-11" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_win_gcleaner.yar#L1-L22" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "f38aaab2911e4e901780bb6df2c58f02fa80d3e39fb56f60072285d0a929ba23" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "G-Cleaner can clean unneeded files, settings, and Registry entries" ascii $str02 = "3. Click \"Run G-Cleaner\"" ascii $str03 = "Garbage_Cleaner" ascii $str04 = "GCleaner.Properties" ascii $str05 = "SOFTWARE\\GCleaner\\Install" wide $str06 = "SOFTWARE\\GCleaner\\Trial" wide $str07 = "SOFTWARE\\GCleaner\\License" wide $str08 = "G-Cleaner activation" wide condition: uint16( 0 ) == 0x5A4D and 6 of them } rule SEKOIA_Apt_Mustangpanda_Payload : FILE { meta: description = "Decryption routine of mustang panda payload" author = "Sekoia.io" id = "ce7ddf20-e13f-4b5f-8fff-4b1387b29568" date = "2022-12-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_mustangpanda_payload.yar#L1-L42" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "734d42aed4574de620773f1f2d08c6b1fc206efd1b576f0f3679edcc0b2ce91d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $chunk_1 = { 89 74 24 ?? B9 ?? ?? ?? ?? 8B 44 24 ?? 3D ?? ?? ?? ?? B8 ?? ?? ?? ?? 0F 4C C1 E9 ?? ?? ?? ?? B8 ?? ?? ?? ?? 31 DB 31 ED 31 FF E9 ?? ?? ?? ?? 8B 44 24 ?? B9 ?? ?? ?? ?? 3B 44 24 ?? B8 ?? ?? ?? ?? 0F 42 C1 E9 ?? ?? ?? ?? 88 5C 24 ?? 89 6C 24 ?? 89 7C 24 ?? B9 ?? ?? ?? ?? 8B 44 24 ?? 3D ?? ?? ?? ?? B8 ?? ?? ?? ?? 0F 4C C1 } condition: filesize < 8MB and all of them } rule SEKOIA_Rat_Win_Millenium : FILE { meta: description = "Finds MilleniumRAT samples based on the specific strings" author = "Sekoia.io" id = "91320924-5c74-457a-8601-29c4e4034761" date = "2023-11-16" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rat_win_millenium.yar#L1-L30" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "bcf4158b9bfee65cd9bd74163ac108ea1de8ec0e9ad066e77bec788ae6fb7283" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Millenium RAT, version:" wide $str02 = "Coded by @shinyenigma" wide $str03 = "*gift*** - gift this bot to another user, his telegram bot has to be started" wide $str04 = "*historyForce - grab more browser history by killing browser processes, use carefully" wide $str05 = "*download - victim`s PC downloads a file attached to this message, if it is a picture it should also be attached as a file" wide $str06 = "No keylogs recorded!" wide $str07 = "Successfully added RAT to startup" wide $str08 = "You`ve gifted gifted a bot:" wide $str09 = "Incorrect agrument, please enter 0/90/180/270" wide $str10 = "SELECT action_url, username_value, password_value FROM logins" wide $str11 = "Yandex\\YandexBrowser\\User Data\\Default" wide $str12 = "Millenium-rat-CSharp (main project)" ascii $str13 = "get_BatteryLifePercent" ascii $str14 = "get_ExpirationMonth" ascii $str15 = "sqlite3_extension_init " ascii condition: uint16( 0 ) == 0x5A4D and 10 of ( $str* ) } rule SEKOIA_Apt_Tortoiseshell_Imaploader : FILE { meta: description = "Detects IMAPLoader malware" author = "Sekoia.io" id = "e1706b59-5c94-4fbf-8560-0022ca631d1d" date = "2023-11-13" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_tortoiseshell_imaploader.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "93f57940ed69145064e5153cc9b099fb9456116cae808acfb4e6f7f14003dde7" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "yandex.com" $s2 = "saveImapMessage.pdb" $s3 = "downloader" $s4 = "MailServer.Auth" condition: filesize < 1MB and 3 of them } rule SEKOIA_Infostealer_Win_Edgeguard : FILE { meta: description = "Finds EdgeGuard Stealer samples based on specific strings" author = "Sekoia.io" id = "bbdb362f-d235-48f8-8fa5-d340d4e3e3f0" date = "2023-08-22" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_edgeguard.yar#L1-L32" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "11396aea2e166456ec8311f95a8037aac41f69caf3158f8c19cb0c38327842d6" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "main.downloadnecessary" ascii $str02 = "main.extractchromepasswords" ascii $str03 = "main.extracttasksch" ascii $str04 = "main.BrowserDownloadsViewExtract" ascii $str05 = "main.stealmetamask" ascii $str06 = "main.stealexoduswallet" ascii $str07 = "main.moveatomic" ascii $str08 = "main.movefirefoxcookies" ascii $str09 = "main.movepasswords" ascii $str10 = "main.FinallyZIPIPFolder" ascii $str11 = "edgeguard.business" ascii $str12 = "/License.XenArmor" ascii $str13 = "/TaskSchedulerView.exe" ascii $str14 = "/BrowsingHistoryView.exe" ascii $str15 = "/outlookfiles/starter.exe" ascii $str16 = "/outlookfiles/External.zip" ascii $str17 = "/outlookfiles/XenManager.dll" ascii $str18 = "/outlookfiles/EmailPasswordRecoveryPro.exe" ascii condition: uint16( 0 ) == 0x5a4d and 10 of ( $str* ) } rule SEKOIA_Infostealer_Win_Lumma_Strings_Aug23 : FILE { meta: description = "Finds Lumma samples based on the specific strings" author = "Sekoia.io" id = "728f7825-a463-4b19-b2d3-3460e4c06dc9" date = "2023-09-14" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_lumma_strings_aug23.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "704a31b0f7c30602305768f13bf6108ebaf08c62451833731d2f2f020efce386" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "lid=%s&j=%s&ver" ascii $str02 = "%s (%d.%d.%d)" ascii $str03 = "- Screen Resoluton:" ascii $str04 = "- Physical Installed Memory:" ascii $str05 = "Content-Type: attachment/x-object" ascii $str06 = "Content-Type: application/x-www-form-urlencoded" ascii $str07 = "Content-Type: multipart/form-data; boundary=%s" wide $str08 = "SysmonDrv" wide $str09 = "TeslaBrowser/5.5" wide condition: uint16( 0 ) == 0x5A4D and 6 of them } rule SEKOIA_Apt_Kimsuky_Sharptongue_Vbslauncher_Strings : FILE { meta: description = "Detects VBS Launchers used by SharpTongue" author = "Sekoia.io" id = "82bd648c-2961-4945-950e-8fb1e4650338" date = "2022-07-29" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_kimsuky_sharptongue_vbslauncher_strings.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "9e1383a71b4ab5ca1de5016061f0e9c83e6f3e1a41eef25dae15cd1aab8b581f" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "powershell" ascii wide $ = "On Error Resume Next" ascii wide $ = "oShell.run(tmp0,0" ascii wide condition: all of them and filesize < 10KB } rule SEKOIA_Tool_Win_Snap2Html : FILE { meta: description = "Finds Snap2HTML samples based on specific strings. Legitimate tool used by ransomware affiliates to perform discovery" author = "Sekoia.io" id = "9865daac-f23b-417e-813e-cbed03f45161" date = "2024-02-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/tool_win_snap2html.yar#L1-L26" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "8805a80193ba1323dffd68456833f27cc93f2182660a5047dbe69e8ed65ac184" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Snap2HTML.exe" fullword wide ascii $str02 = "Snap2HTML.Properties" ascii $str03 = "set_txtRoot" ascii $str04 = "set_chkHidden" ascii $str05 = "set_chkSystem" ascii $str06 = "set_chkLinkFiles" ascii $str07 = "set_txtLinkRoot" ascii $str08 = "set_chkOpenOutput" ascii $str09 = "set_txtTitle" ascii $str10 = "get_CancellationPending" ascii $str11 = "set_RootFolder" ascii $str12 = "add_SettingsLoaded" ascii condition: uint16( 0 ) == 0x5a4d and 7 of them } rule SEKOIA_Rat_Lin_Gobrat_2023 : FILE { meta: description = "This rule detect samples that are downloaded on the GobRAT C2 URL path /a, /b and /c." author = "Sekoia.io" id = "ca36a586-f87f-445f-95dc-52d447c1d2a2" date = "2023-06-09" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rat_lin_gobrat_2023.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "b9831cefded9e48ef169aa56c18628a9871760ae613f75b232019b4798944e16" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" hash1 = "36cb17d9d118bd9692106c8aafab2462aacf1cdad3a6afb0e4f1de898a7db0e1" hash2 = "28a714f7cec4445dbd507b85016c8e96ed5e378bcabe2e422c499975122b3f03" hash3 = "1e80a084ab89da2375bc3cc2f5a37975edff709ef29a3fa2b4df4ccb6d5afe10" strings: $s1 = "Z:/Go/awesomeProject3/main.go" wide ascii condition: uint32( 0 ) == 0x464c457f and filesize < 4000KB and $s1 } rule SEKOIA_Backdoor_Lin_Bpfdoor : FILE { meta: description = "Detect the BPFDoor backdoor used by the Chinese TA Red Menshen" author = "Sekoia.io" id = "1776ff6f-6fbb-4a81-bcad-c43b5117c67c" date = "2022-05-05" modified = "2024-12-19" reference = "https://github.com/Neo23x0/signature-base/blob/master/yara/mal_lnx_implant_may22.yar" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/backdoor_lin_bpfdoor.yar#L1-L22" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "c917bd12731d761645adea72bc68c50927a0c2b0c31b2109f7065a992d338329" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $op1 = { e8 ?? ff ff ff 80 45 ee 01 0f b6 45 ee 3b 45 d4 7c 04 c6 45 ee 00 80 45 ff 01 80 7d ff 00 } $op2 = { 55 48 89 e5 48 83 ec 30 89 7d ec 48 89 75 e0 89 55 dc 83 7d dc 00 75 0? } $op3 = { e8 a? fe ff ff 0f b6 45 f6 48 03 45 e8 0f b6 10 0f b6 45 f7 48 03 45 e8 0f b6 00 8d 04 02 } $op4 = { c6 80 01 01 00 00 00 48 8b 45 c8 0f b6 90 01 01 00 00 48 8b 45 c8 88 90 00 01 00 00 c6 45 ef 00 0f b6 45 ef 88 45 ee } condition: uint32( 0 ) == 0x464c457f and filesize > 10KB and filesize < 50KB and ( all of ( $op* ) ) } rule SEKOIA_Loader_Amadey_Standalone_May23 : FILE { meta: description = "Finds standalone samples of Amadey based on characteristic strings" author = "Sekoia.io" id = "5013586c-5ac3-4c1a-a82e-edce4889eedc" date = "2023-05-17" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_amadey_standalone_may23.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "40d2d7a52066ca4e1a65c82ebfa882a77616a1c68f1d315946ab14467787d468" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "\\Amadey\\Release\\Amadey.pdb" ascii $hex01 = { 6E 74 64 6C 6C 2E 64 6C 6C 00 00 00 72 75 6E 61 73 } condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Apt_Implant_Xdealer_Vbs_Launcher_Strings : FILE { meta: description = "Detects XDealer VBS Launcher" author = "Sekoia.io" id = "ebfc8a33-70dc-44d5-bc4a-07afc56f8254" date = "2024-03-22" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_implant_xdealer_vbs_launcher_strings.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "e206189fd21ed7b3bf48a51d955df9055b7f7aa502b7fac52b274cc414adea0d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "Dim objws" $s2 = "Set objws=" $s3 = "objws.Run \"\"\"C:\\ProgramData\\" condition: $s1 at 0 and all of them and filesize < 200 } rule SEKOIA_Koiloader_Powershell_Reflective_Loading : FILE { meta: description = "Powershell script loading service.exe (related to Koi Loader)" author = "Sekoia.io" id = "9bbe4cea-3e64-4377-bf93-def9fb629734" date = "2024-03-20" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/koiloader_powershell_reflective_loading.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "27deec01027a73129c6c8057eff1b48190c89ac18dcd7c390fc177d82a897290" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "[Byte[]]$image" ascii fullword $s2 = "function GDT" $s3 = "function GPA" $s4 = "GDT @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])" $s5 = "$marshal::GetDelegateForFunctionPointer($CTAddr, $CTDeleg)" condition: $s1 at 0 and 4 of them } rule SEKOIA_Apt_Apt28_Powershell_Ntlm_Stealer : FILE { meta: description = "Detects the NTLM Stealer used by APT28 against UA energy sector" author = "Sekoia.io" id = "3fb5c472-6b1c-490e-b38f-4d4f1c472f43" date = "2023-09-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_apt28_powershell_ntlm_stealer.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "29d039bf7d7018ebbae187ae0f057161c3f9256076324f06167872adc0accfa7" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "'NTLM ' = [Convert]::ToBase64String" $ = ".Prefixes.Add('http://localhost:8080/')" $ = ".AddHeader('WWW-Authenticate', 'NTLM')" $ = "GetValues('Authorization');" $ = "[0] -split '\\s+';" condition: 3 of them and filesize < 4000 } rule SEKOIA_Apt_Badmagic_Startngrok_Pshscript : FILE { meta: description = "Detects BadMagic StartNgrok powershell script" author = "Sekoia.io" id = "94d64482-3033-4531-8530-58546364ac06" date = "2023-05-15" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_badmagic_startngrok_pshscript.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "f15f9dc2c35f3f7cd816aa539c03b857254c3628c9b14eacca1110bb85b1a24c" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "$ExecutablePath http \"\"file:///$Disk" $ = "write \"$ExecutablePath not found" $ = "$ng_proxy_string =" $ = "$ng_auth_token =" $ = "$env:ALLUSERSPROFILE\\$NGrokFolderName" condition: all of them and filesize < 1KB } rule SEKOIA_Infostealer_Win_Spacestealer : FILE { meta: description = "Detects SpaceStealer based on specific strings" author = "Sekoia.io" id = "aceae3b3-1f5a-48b4-84cb-d0ba68d26df5" date = "2022-11-29" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_spacestealer.yar#L1-L31" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "94edfd0606816ff01d1345357a852cab4321d8881921e51ba96d8d2d4cb893b5" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "spacestealerxD" ascii $str02 = "\\spacex" ascii $str03 = "@~$~@spacex-" ascii $str04 = "StealerClient" ascii $str05 = "kill-process-by-name" ascii $str06 = "\\BetterDiscord\\data\\betterdiscord.asar" ascii $str07 = "api/webhooks" ascii $str08 = "discordPath" ascii $str09 = "SELECT host_key, name, encrypted_value FROM cookies" ascii $str10 = "SELECT origin_url, username_value, password_value FROM logins" ascii $str11 = "SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards" ascii $str12 = "Cookies don't found." ascii $str13 = "/api/cookies?auth=" ascii $str14 = "/api/passwords?auth=" ascii $str15 = "/api/autofill?auth=" ascii $str16 = "/api/creditcards?auth=" ascii $str17 = "\\Yandex\\YandexBrowser\\User Data\\Guest Profile\\Network\\" ascii condition: uint16( 0 ) == 0x5A4D and filesize > 10MB and 13 of them } rule SEKOIA_Infostealer_Win_Xfiles : FILE { meta: description = "Detect the X-FILES infostealer based on specific strings" author = "Sekoia.io" id = "3ad3ee19-6be8-484b-943c-05813cdcbd18" date = "2022-02-03" modified = "2024-12-19" reference = "https://twitter.com/3xp0rtblog/status/1375206169384521730" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_xfiles.yar#L1-L50" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "404ee02fa1905f49c3c3ca525cfb3c5ba1d2ec46554239035c1891d21f547a2c" score = 75 quality = 78 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $xfi0 = "Telegram bot - @XFILESShop_Bot" wide $xfi1 = "Telegram support - @XFILES_Seller" wide $brw0 = "\\Google\\Chrome\\User Data\\Default\\Network\\Cookies" wide $brw1 = "\\Chromium\\User Data\\Default\\Cookies" wide $brw2 = "\\Slimjet\\User Data\\Default\\Cookies" wide $brw3 = "\\Vivaldi\\User Data\\Default\\Cookies" wide $brw4 = "\\Opera Software\\Opera GX Stable\\Cookies" wide $brw5 = "\\Opera Software\\Opera Stable\\Cookies" wide $crp00 = "Tronlink" wide $crp01 = "NiftyWallet" wide $crp02 = "MetaMask" wide $crp03 = "MathWallet" wide $crp04 = "Coinbase" wide $crp05 = "BinanceChain" wide $crp06 = "GuardaWallet" wide $crp07 = "EqualWallet" wide $crp08 = "BitAppWallet" wide $crp09 = "iWallet" wide $crp10 = "Wombat" wide $crp11 = "Zcash" wide $crp12 = "Armory" wide $crp13 = "Bytecoin" wide $crp14 = "Jaxx" wide $crp15 = "Exodus" wide $crp16 = "Ethereum" wide $crp17 = "AtomicWallet" wide $crp18 = "Guarda" wide $crp19 = "Coinomi" wide $crp20 = "Litecoin" wide $crp21 = "Dash" wide $crp22 = "Bitcoin" wide condition: uint16( 0 ) == 0x5A4D and any of ( $xfi* ) or 5 of ( $brw* ) and 20 of ( $crp* ) } rule SEKOIA_Ransomware_Win_Scransom : FILE { meta: description = "Finds ScRansom samples based on specific strings" author = "Sekoia.io" id = "ea799295-1332-49c6-9816-035b91fc9b4f" date = "2023-08-24" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_win_scransom.yar#L1-L31" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "3b8034bc5e0919d6c05dd2f2079c40836f241f2db02c1baf70ecb530db90847f" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "TIMATOMAFULL" wide $str02 = ".Encrypted" wide $str03 = ".Encrypting" wide $str04 = "File Name :" wide $str05 = "File size :" wide $str06 = "TIMATOMA#" wide $str07 = "Already Encrypted" wide $str08 = "HOW TO RECOVERY FILES.TXT" wide $str09 = "%d folder(s) searched and %d file(s) found - %.3f second(s)" wide $str10 = "Search cancelled -" wide $str11 = "note.txt" wide $str12 = "Cannot sort the list while a search is in progress." wide $str13 = "Cancelling search, please wait..." wide $str14 = "Error showing process list" wide $str15 = "[System Process]" wide $str16 = "taskkill /f /im" wide $str17 = "kill.bat" wide condition: uint16( 0 ) == 0x5a4d and 15 of them } rule SEKOIA_Guloader_Powershell_1 : FILE { meta: description = "Powershell downloading decoy and delivering GuLoader" author = "Sekoia.io" id = "28c68991-db8b-4f00-b3a3-17286418a4ed" date = "2024-02-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/guloader_powershell_1.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "9fd2d0e31f939e7e96444eaa4802c9c33407c5fb77067670d8ce2d3796199961" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "powershell -win hidden" $s2 = "=iex($" $s3 = ".Replace('" $s4 = "$(Get-ChildItem -Include *.lnk -Name));" condition: all of them and filesize < 10KB and #s3 > 3 } rule SEKOIA_Loader_Win_Red0044_Powershell_May24 : FILE { meta: description = "Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT" author = "Sekoia.io" id = "ba3454b4-31cf-458d-8d78-c5cc5fa348ff" date = "2024-05-03" modified = "2024-12-19" reference = "https://twitter.com/crep1x/status/1786150734121120075" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_win_red0044_powershell_may24.yar#L1-L26" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "73939f65b93b320b9e220ee284ea524864a6b05c7608213009ac5f00b3faeedc" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Start-Job -ScriptBlock" ascii $str02 = "Get-WmiObject" ascii $str03 = "-Class Win32_OperatingSystem" ascii $str04 = "-Class AntiVirusProduct" ascii $str05 = "$_.Exception.Message" ascii $str06 = ".DownloadString" ascii $str07 = "New-Object Net.WebClient" ascii $str08 = "myUserAgentHere" ascii $str09 = "GetFolderPath('Desktop'))\\document.pdf" ascii $str10 = "Receive-Job -Job" ascii $str11 = "Start-Process" ascii condition: 8 of them and filesize < 20KB } rule SEKOIA_Loader_Latrodectus_Dll : FILE { meta: description = "Finds Latrodectus samples based on the specific strings" author = "Sekoia.io" id = "c60676ad-31cb-4f4d-9073-757a0ad7d23d" date = "2023-12-08" modified = "2024-12-19" reference = "https://twitter.com/Myrtus0x0/status/1732997981866209550" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_latrodectus_dll.yar#L1-L35" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "57aae1944eded14537cdc1c17b21cfc503687a416551b782fc76f8c7858e936e" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "c:\\temp\\debug.pdb" fullword ascii $str02 = "Bottmp64.dll" fullword ascii $str03 = "scab" fullword ascii $str04 = "&wmic=" fullword ascii $str05 = "&ipconfig=" fullword ascii $str06 = "&systeminfo=" fullword ascii $str07 = "&domain_trusts=" fullword ascii $str08 = "&domain_trusts_all=" fullword ascii $str09 = "&net_view_all_domain=" fullword ascii $str10 = "&net_view_all=" fullword ascii $str11 = "&net_group=" fullword ascii $str12 = "&net_config_ws=" fullword ascii $str13 = "&net_wmic_av=" fullword ascii $str14 = "&whoami_group=" fullword ascii $str15 = "\"subproc\": [" fullword ascii $str16 = "&proclist=[" fullword ascii $str17 = "&desklinks=[" fullword ascii $str18 = "Update_%x" fullword wide $str19 = "Custom_update" fullword wide $str20 = "\\update_data.dat" fullword wide condition: uint16( 0 ) == 0x5A4D and 10 of them } rule SEKOIA_Infostealer_Win_Whitesnake_Loader_Feb23 : FILE { meta: description = "Finds WhiteSnake samples (loader module, bat file)" author = "Sekoia.io" id = "f81a8a96-6fd2-4f5c-8a56-ff66ff1a80d3" date = "2023-03-01" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_whitesnake_loader_feb23.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "c9d4414fb17c28a3ea2e75837732e1657bdc7b2df4a7ab34e458d659441759e8" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "echo Please wait... a while Loading data ...." ascii $str02 = "CERTUTIL -f -decode" ascii $str03 = "%Temp%\\build.exe" ascii $crt = "-----BEGIN CERTIFICATE-----" ascii $mz = "TVqQAAMAAAAEAAAA" ascii condition: ($str01 in ( 0 .. 200 ) or $str02 in ( 0 .. 200 ) or $str03 in ( 0 .. 200 ) ) and $mz in ( @crt .. @crt + 50 ) and filesize < 100KB } rule SEKOIA_Ransomware_Lin_Avoslocker_Strings : FILE { meta: description = "Detect AvosLocker ransomware for Linux by using strings from its ransom note and the onion domains" author = "Sekoia.io" id = "6056e15c-d656-41cb-bea0-704776c52c92" date = "2022-02-21" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_lin_avoslocker_strings.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "b65cf6713027644de281f17a4c5c170fc09a154e7119d04a92aceed0e2d7e4fd" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" hash1 = "0cd7b6ea8857ce827180342a1c955e79c3336a6cf2000244e5cfd4279c5fc1b6" hash2 = "7c935dcd672c4854495f41008120288e8e1c144089f1f06a23bd0a0f52a544b1" hash3 = "10ab76cd6d6b50d26fde5fe54e8d80fceeb744de8dbafddff470939fac6a98c4" strings: $s1 = "The corporations whom don't pay or fail to respond in a swift manner can be found in our blog, accessible at" ascii $s2 = "http://avosqxh72b5ia23dl5fgwcpndkctuzqvh2iefk5imp3pi5gfhel5klad.onion" ascii $s3 = "http://avosjon4pfh3y7ew3jdwz6ofw7lljcxlbk7hcxxmnxlh5kvf2akcqjad.onion" ascii condition: uint32( 0 ) == 0x464c457f and all of them } rule SEKOIA_Apt_Badmagic_Startrevsocks_Pshscript : FILE { meta: description = "Detects BadMagic DLL Loader powershell script" author = "Sekoia.io" id = "a6c96aee-9e78-47d2-afe3-f3c5246a9370" date = "2023-05-15" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_badmagic_startrevsocks_pshscript.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "6a4615afb836330634cde9559dacfff50daef44a370f6191c6771a2066074a31" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "$ExecutablePath" $ = "Start-Sleep -Second 2" $ = "recn -15 -rect 15" condition: all of them and filesize < 1KB } rule SEKOIA_Apt_Coathanger_Files : FILE { meta: description = "Detects COATHANGER files" author = "Sekoia.io" id = "615f5ac1-14bc-4f5b-a02e-7b13cd179917" date = "2024-02-07" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_coathanger_files.yar#L1-L24" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "5406d8a99e16f08f1ffca548ea1dd1e27e7707506e796e0fc263bcdbb681632d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "/data2/" $ = "/httpsd" $ = "/preload.so" $ = "/authd" $ = "/tmp/packfile" $ = "/smartctl" $ = "/etc/ld.so.preload" $ = "/newcli" $ = "/bin/busybox" condition: ( uint32( 0 ) == 0x464c457f or uint32( 4 ) == 0x464c457f ) and filesize < 5MB and 4 of them } rule SEKOIA_Loader_Fakebat_Powershell_Fingerprint_May24 : FILE { meta: description = "Finds FakeBat PowerShell script fingerprinting the infected host." author = "Sekoia.io" id = "7efcf9cf-78fe-400e-abe3-6955c394e358" date = "2024-06-21" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/loader_fakebat_powershell_fingerprint_may24.yar#L1-L27" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "04e5c888e5f71873c4fa2d732fbd8e40be3edf406300e65e489e1fa378028c5f" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Get-WmiObject Win32_ComputerSystem" ascii $str02 = "-Class AntiVirusProduct" ascii $str03 = "status = \"start\"" ascii $str04 = " | ConvertTo-Json" ascii $str05 = ".FromXmlString(" ascii $str06 = " = Invoke-RestMethod -Uri " ascii $str07 = ".Exception.Response.StatusCode -eq 'ServiceUnavailable'" ascii $str08 = "Invoke-WebRequest -Uri $url -OutFile " ascii $str09 = "--batch --yes --passphrase-fd" ascii $str10 = "--decrypt --output" ascii $str11 = "Invoke-Expression \"tar --extract --file=" ascii condition: 7 of them and filesize < 10KB and true } rule SEKOIA_Infostealer_Win_Blustealer : FILE { meta: description = "Detect the BluStealer infostealer based on characteristic strings" author = "Sekoia.io" id = "a56b3c12-9d83-4a0b-81e8-43332e64d599" date = "2022-10-05" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_blustealer.yar#L1-L29" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "fc7c11a9ddd21228aa773da6054220211327727a87d48008b7edb202c48666d8" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $cha01 = "@top\\LOGGERS\\DARKCLOUD" wide $cha02 = "===============DARKCLOUD===============" wide $cha03 = "#######################################DARKCLOUD#######################################" wide $cha04 = "fireballsabadafirebricksfisherboat" ascii $cha05 = "Moonchild Pro2ductions" wide $str01 = "\\Microsoft\\Windows\\Templates\\credentials.txt" wide $str02 = "\\NETGATE Technologies\\BlackHawK\\Profiles" wide $str03 = "SysWOW64\\winsqlite3.dll" wide $str04 = "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_" wide $str05 = "Expiry Date;" wide $str06 = "SELECT c0subject, c3author, c4recipients, c1body FROM messagesText_content" wide $str07 = "http://www.mediacollege.com/internet/utilities/show-ip.shtml" wide $str08 = "\\163MailContacts.txt" wide $key_0 = {ba ?? ?? 40 00 8d 4?} condition: uint16( 0 ) == 0x5A4D and 2 of ( $cha* ) and 4 of ( $str* ) and $key_0 } rule SEKOIA_Tool_Win_Gosecretsdump : FILE { meta: description = "Finds gosecretsdump EXE based on strings" author = "Sekoia.io" id = "9225fe95-e37c-48ff-b5b5-680f255349bd" date = "2024-06-10" modified = "2024-12-19" reference = "https://github.com/C-Sto/gosecretsdump/releases" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/tool_win_gosecretsdump.yar#L1-L27" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "957b0deae745e4fda5a790acc391cebf9d193efb2a19ad5eb18c54da8c17bcfa" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "github.com/C-Sto/gosecretsdump" ascii $str02 = "/pkg/esent" ascii $str03 = "/pkg/ditreader" ascii $str04 = "/pkg/samreader" ascii $str05 = "ntdsFileLocation" ascii $str06 = "NTDSLoc" ascii $str07 = "SAMEntries" ascii $str08 = "SAMHashAES" ascii $str09 = "NTLMHash" ascii $str10 = "HasNoLMHashPolicy" ascii $str11 = "PreviousIncBackup" ascii $str12 = "Esent_record" ascii condition: uint16( 0 ) == 0x5A4D and 7 of them } rule SEKOIA_Backdoor_Win_Rokrat : FILE { meta: description = "Detect the RokRAT malware" author = "Sekoia.io" id = "97a3acc1-4120-4d67-a6ad-fa204f2fd7f5" date = "2023-07-11" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/backdoor_win_rokrat.yar#L1-L31" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "42e0b8583570d32a5d6a5bed175a53951e7d68d8471a283ef245686621dc01c4" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" hash1 = "84760cac26513915ebfb0a80ad3ddabe62f03ec4fda227d63e764f9c4a118c4e" hash2 = "758348521331bb18241d1cfc90d7e687dbc5bad8d596a2b2d6a9deb6cfc8cb1d" hash3 = "2a253c2aa1db3f809c86f410e4bd21f680b7235d951567f24d614d8e4d041576" hash4 = "ebce34cdeb20bc8c75249ce87a3080054f48b03ef66572fbc9dc40e6c36310d6" hash5 = "a1e4e95a20120f16adacb342672eec1e73bd7826b332096f046bb7e2b7cd80a1" hash6 = "3be58a7a7a25dbceee9e7ef06ef20aa86aef083be19db9e5ffb181d3f9f6615a" hash7 = "fa4df84071b9ae20b321e4d22162d8480f6992206bc046e403c2fbedd1655503" hash8 = "aa76b4db29cf929b4b22457ccb8cd77308191f091cde2f69e578ade9708d7949" strings: $ = "--wwjaughalvncjwiajs--" $ = {7b 00 22 00 70 00 61 00 74 00 68 00 22 00 3a 00 22 00 25 00 73 00 22 00 2c 00 22 00 6d 00 6f 00 64 00 65 00 22 00 3a 00 7b 00 22 00 2e 00 74 00 61 00 67 00 22 00 3a 00 22 00 6f 00 76 00 65 00 72 00 77 00 72 00 69 00 74 00 65 00 22 00 7d 00 7d} $ = {68 00 74 00 74 00 70 00 73 00 3a 00 2f 00 2f 00 63 00 6c 00 6f 00 75 00 64 00 2d 00 61 00 70 00 69 00 2e 00 79 00 61 00 6e 00 64 00 65 00 78 00 2e 00 6e 00 65 00 74 00 2f 00 76 00 31 00 2f 00 64 00 69 00 73 00 6b 00 2f 00 72 00 65 00 73 00 6f 00 75 00 72 00 63 00 65 00 73 00 2f 00 75 00 70 00 6c 00 6f 00 61 00 64 00 3f 00 70 00 61 00 74 00 68 00 3d 00 25 00 73 00 26 00 6f 00 76 00 65 00 72 00 77 00 72 00 69 00 74 00 65 00 3d 00 25 00 73} condition: uint16( 0 ) == 0x5A4D and any of them } rule SEKOIA_Trojan_Win_Bbtok_Lnk_Sep23 : FILE { meta: description = "Finds BBTok installation LNK file" author = "Sekoia.io" id = "b1d5dae6-d92f-4a4a-ae90-528cdb3e9e4c" date = "2023-09-26" modified = "2024-12-19" reference = "https://research.checkpoint.com/2023/behind-the-scenes-of-bbtok-analyzing-a-bankers-server-side-components/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/trojan_win_bbtok_lnk_sep23.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "32bf07e3740399105359b62d8a612dfa731b024e06c9104b71b496919b5efe9e" logic_hash = "5783487585dde1314c485bdcf3942b7e8b572c0689522ea136240833d2a64f5b" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $lnk = {4C 00 00 00} $str01 = "%ProgramFiles(x86)%\\Microsoft\\Edge\\Application\\msedge.exe" ascii wide $str02 = ".pdf /Y & start" wide $str03 = "\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe -nologo" wide condition: all of them and filesize < 10KB } rule SEKOIA_Apt_Lazarus_Backdoored_Jslib : FILE { meta: description = "Detects InvisibleFerret based on common ressource." author = "Sekoia.io" id = "73ffd449-93c8-494e-9c14-2e933b21a200" date = "2024-10-28" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_lazarus_backdoored_jslib.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "52e92be527690f4e63608cbc699e2f70" logic_hash = "205ad321afcb22ae2bf6cf2a58ce970ea9b0edda7fab60ddeda5ea36ecfe3cb9" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $obf = "(function(_0x" ascii $exp = "module.exports =" ascii condition: $exp in ( filesize -500 .. filesize ) and #obf == 1 } rule SEKOIA_Generic_Sharpshooter_Payload_4 : FILE { meta: description = "Detects payload created by SharpShooter" author = "Sekoia.io" id = "b8327436-3f3d-441c-86b7-35cd30144dc2" date = "2023-02-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_sharpshooter_payload_4.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "ee67eb7b51ff6f3882c6b3ad86c3581396ba02f616c29a0190d0a2ad3d2ea614" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "Function RC4(byteMessage, strKey)" $ = "Set EL = DM.createElement(" $ = "decodeBase64 = EL.NodeTypedValue" $ = "Execute plain" condition: all of them and filesize < 2MB } rule SEKOIA_Infostealer_Win_Banditstealer : FILE { meta: description = "Finds BanditStealer samples based on specific strings" author = "Sekoia.io" id = "d1e45a5c-c06d-4161-8d30-fa94bcf0ea7a" date = "2023-07-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_banditstealer.yar#L1-L35" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "64d4860dd8a783be10541dd5c939dcd2a2b08309a7cd17b9dbbda1ba8b26485d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $spe01 = "Banditstealer" ascii $spe02 = "BANDIT STEALER" ascii $spe03 = "Location: Geolocation: " ascii $spe04 = "awesomeProject2/core.GetWallets" ascii $spe05 = "awesomeProject2/core.GetCreditCards" ascii $spe06 = "awesomeProject2/core.GetCookies" ascii $spe07 = "awesomeProject2/core.KillProcessByName" ascii $spe08 = "main.sendZipToTelegram" ascii $str01 = "json:\"city\"" ascii $str02 = "UAC disabled" ascii $str03 = "\\OpenVPN Connect\\profiles\\" ascii $str04 = "\\Documents\\Monero\\wallets\\" ascii $str05 = "cookies.sqlite" ascii $str06 = "creditcard.txt" ascii $str07 = "vmware.exe" ascii $str08 = "aeachknmefphepccionboohckonoeemg" ascii $str09 = "\\Documents\\NetSarang\\Xftp\\Sessions\\" ascii $str10 = "\\WhatsApp\\Local Storage\\leveldb\\" ascii $str11 = "Visited Time: %s" ascii $str12 = "\\Google\\Chrome\\User Data\\Telegram Desktop\\tdata\\" ascii condition: uint16( 0 ) == 0x5a4d and 2 of ( $spe* ) and 6 of ( $str* ) } rule SEKOIA_Apt_Gamaredon_Ddrdoh_Powershell_Backdoor : FILE { meta: description = "Detects GAMAREDON's DDRDOH PowerShell Backdoor" author = "Sekoia.io" id = "3413dedd-e3ec-4231-8af7-c7f709ab82d7" date = "2023-01-23" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_gamaredon_ddrdoh_powershell_backdoor.yar#L1-L19" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "32d088affb65d410b2715fde28227792ea9f406e324de4a2e204e9850f0b81ce" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "hidden iex $env:" ascii wide $ = ".substring(0,4) -eq \"http" ascii wide $ = ".split('!')[1];" ascii wide $ = " -bxor $key[$i % $key.Length]" ascii wide $s = "Filter $fil | Select-Object VolumeSerialNumber" ascii wide condition: uint8( 0 ) == 0x24 and 4 of them and filesize < 10KB } rule SEKOIA_Rat_Win_Borat : FILE { meta: description = "Detect the Borat RAT besed on specific strings" author = "Sekoia.io" id = "9f8badb3-ee8b-45d9-8515-c847351bb1f5" date = "2022-04-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rat_win_borat.yar#L1-L25" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "53d6d9fe6b3218d97079e624379863d927d0b783b24acbda359b18daafb5162e" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str0 = "BoratRatMutex_Sa8XOfH1BudX" ascii $str1 = "BoratRat.exe" ascii $str2 = "BoratRat" ascii $str3 = "CN=BoratRat" wide $str4 = "Sending plugun to " wide $str5 = "Save recorded file fail " wide $str6 = "Sa8XOfH1BudX" wide $str7 = "Alert when process activive." wide $str8 = "disableDefedner" wide $str9 = "bin\\Ransomware.dll" wide $str10 = "disableDefedner" wide condition: uint16( 0 ) == 0x5A4D and 7 of them } rule SEKOIA_Infostealer_Win_Daolpu_Str : FILE { meta: description = "Finds Daolpu Stealer samples based on specific strings." author = "Sekoia.io" id = "dde1cf12-48d8-45b6-b453-b7196e6b1271" date = "2024-07-23" modified = "2024-12-19" reference = "https://www.crowdstrike.com/blog/fake-recovery-manual-used-to-deliver-unidentified-stealer/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_daolpu_str.yar#L1-L26" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "9372a88efcdca6ca57f354fb31569522e5458271cc51dfedf09c6178a47a5b67" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Content-Type: %s%s%s" ascii $str02 = "Content-Disposition: %s%s%s%s%s%s%s" ascii $str03 = "\\CocCoc\\Browser\\User Data\\Local State" ascii $str04 = "\\Microsoft\\Edge\\User Data\\Default\\Login Data" ascii $str05 = "\\Mozilla\\Firefox\\Profiles" ascii $str06 = "No MAC Address Found" ascii $str07 = "C:\\Windows\\Temp\\" ascii $str08 = "C:\\Windows\\Temp\\result.txt" ascii $str09 = "Privatekey@2211#$" ascii $str10 = "CryptStringToBinaryA Failed to convert BASE64 private key." ascii $str11 = "taskkill /F /IM chrome.exe" ascii condition: uint16( 0 ) == 0x5A4D and 8 of them } rule SEKOIA_Rat_Win_Babylon : FILE { meta: description = "Finds Babylon RAT samples based on specific strings" author = "Sekoia.io" id = "ba9ab80a-ad7e-4746-aff2-9328440cbb25" date = "2023-08-22" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rat_win_babylon.yar#L1-L27" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "142f10e519561d6552c9cb8d267280b9ede203a2f4723d904ab07217b0565bd1" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "ParadoxRAT_Client" ascii $str02 = "*** in database %s ***" ascii $str03 = "\\drivers\\etc\\HOSTS" ascii $str04 = "Babylon RAT Client" wide $str05 = "ClipBoard.txt" wide $str06 = "a,ccs=UTF-16LE" wide $str07 = "[%02d/%02d/%d %02d:%02d:%02d] [%s] (%s):" wide $str08 = "Update Failed [OpenProcess]..." wide $str09 = "DoS Already Active..." wide $str10 = "File Download and Execution Failed..." wide $str11 = "LgDError33x98dGetProcAddress" wide $str12 = "FriendlyName" wide $str13 = "@SPYNET" wide condition: uint16( 0 ) == 0x5a4d and 8 of ( $str* ) } rule SEKOIA_Rat_Win_Xworm_V2 : FILE { meta: description = "Finds XWorm v2 samples based on characteristic strings" author = "Sekoia.io" id = "6cf06f52-0337-415d-8f29-f63d67e228f8" date = "2022-11-07" modified = "2024-12-19" reference = "https://blog.cyble.com/2022/08/19/evilcoder-project-selling-multiple-dangerous-tools-online/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/rat_win_xworm_v2.yar#L1-L38" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "58a2dbfbd453855021942902a6d55d150eee3acba67a294da24448cfca4f811e" score = 75 quality = 78 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "XWorm.exe" wide ascii $str02 = "ngrok" wide ascii $str03 = "Mutexx" ascii $str04 = "FileManagerSplitFileManagerSplit" wide $str05 = "InstallngC" wide $str06 = "downloadedfile" wide $str07 = "creatfile" wide $str08 = "creatnewfolder" wide $str09 = "showfolderfile" wide $str10 = "hidefolderfile" wide $str11 = "txtttt" wide $str12 = "\\root\\SecurityCenter2" wide $str13 = "[USB]" wide $str14 = "[Drive]" wide $str15 = "[Folder]" wide $str16 = "HVNC" wide $str17 = "http://exmple.com/Uploader.php" wide $str18 = "XKlog.txt" wide $str19 = "Select * from AntivirusProduct" wide $str20 = "runnnnnn" wide $str21 = "RunBotKiller" wide $str22 = "bypss" wide $str23 = "" wide condition: uint16( 0 ) == 0x5A4D and 12 of them } rule SEKOIA_Apt_Gamaredon_Ddrdoh_Vbs_Downloader_Vbs : FILE { meta: description = "Detects malicious VBScript executed by LNK/mshta" author = "Sekoia.io" id = "cc29d5d9-58bd-4f68-8673-daa41abfc7be" date = "2023-01-24" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_gamaredon_ddrdoh_vbs_downloader_vbs.yar#L1-L20" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "c91e1ce26c0735e8c68fe39f2fbeda8aed51cd4f9a0b967b5d184843728dcef4" score = 75 quality = 78 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "b24gZXJyb3IgcmVzd" ascii $ = "BinaryStream.readtext" ascii nocase $ = "createobject(\"msxml2.domdocument.3.0\").createelement(" ascii nocase $ = "Dim cSecond, cMinute, CHour, cDay, cMonth, cYear" ascii nocase $ = "tDate & \"T\" & tTime" $ = "AutoOpen" ascii nocase condition: 5 of them and filesize < 50KB } rule SEKOIA_Crypter_Win_Dotrunpex : FILE { meta: description = "Detect the dotRunpeX crypter based on strings" author = "Sekoia.io" id = "6fb4ffe0-3a5c-432c-8ae2-404bb5960c30" date = "2023-06-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/crypter_win_dotrunpex.yar#L1-L15" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "8a2b9e19b49ba17f976241bec5323121ba13d2ce39fdcf2777fd97a230211e75" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = {52 00 75 00 6e 00 70 00 65 00 58 00 2e 00 53 00 74 00 75 00 62 00 2e 00 46 00 72 00 61 00 6d 00 65 00 77 00 6f 00 72 00 6b 00 2e 00 65 00 78 00 65} condition: uint16( 0 ) == 0x5A4D and all of them } rule SEKOIA_Backdoor_Powershellempire_Batlauchers : FILE { meta: description = "Detect BAT launchers for Empire" author = "Sekoia.io" id = "ad371665-ec59-45c8-9d99-2a675842c384" date = "2022-04-15" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/backdoor_powershellempire_batlauchers.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "0453c739ad936b0cc5ed2e36ba4a011a90600b74ca23c08165c23a3e63fe60e9" score = 75 quality = 74 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "powershell -noP -sta -w 1 -enc SQB" nocase wide ascii $ = "powershell -ep bypass -noP -sta -w 1 -enc SQB" nocase wide ascii $ = "-nol -nop -ep bypass \"[IO.File]::ReadAllText('%~f0')|iex" nocase wide ascii condition: any of them and filesize < 1MB } rule SEKOIA_Ransomware_Win_Karma : FILE { meta: description = "Detect the Karma ransomware payload" author = "Sekoia.io" id = "efd87a17-7c99-404a-8ea6-2f5c2121f9f2" date = "2021-08-25" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/ransomware_win_karma.yar#L1-L21" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "ef272be7ae5fea084120db95f7b002e9061d72442836e836ca43ddc7b461be4e" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $a1 = "KARMA" ascii $u1 = "KARMA" wide $u2 = "-ENCRYPTED.txt" wide $u3 = "Encrypting directory:" wide $u4 = "Encrypting file:" wide $u5 = "Trying to import ECC public key..." wide condition: uint16( 0 ) == 0x5A4D and filesize < 150KB and all of them } rule SEKOIA_Infostealer_Win_Enigma_Initial_Loader : FILE { meta: description = "Find initial loader of Enigma Stealer based on specific strings" author = "Sekoia.io" id = "664fe8de-b406-4d63-9a4b-1c350b444f00" date = "2023-01-30" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_enigma_initial_loader.yar#L1-L24" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "03b9d7296b01e8f3fb3d12c4d80fe8a1bb0ab2fd76f33c5ce11b40729b75fb23" logic_hash = "b7687a480a2a633e7cc9a60d62f3392011712bd018ed634927419cfb4edb4a78" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "/getFile?file_id=" ascii $str02 = "/file/bot" ascii $str03 = "?file_id=" ascii $str04 = "pInternetSetOptionA failed" wide $str05 = "list_messages[file_path] failed" wide $str06 = "iE&xit" wide $str07 = "[GetTgFileById][GetTgRequest] reply is NULL" wide $str08 = "Telegram request failed" wide $str09 = "bot getted" wide condition: uint16( 0 ) == 0x5A4D and 4 of them } rule SEKOIA_Bot_Lin_Xorddos_Strings : FILE { meta: description = "Catch XORDDoS strings" author = "Sekoia.io" id = "2f5c70a3-fe3f-4091-905d-d779bd0cb2cd" date = "2023-11-02" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/bot_lin_xorddos_strings.yar#L1-L17" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "b91cfeeaddffe98ac1649c5d88a2091cf7ab8ff65b232f09c323d23684cb2a2d" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; TencentTraveler ; .NET CLR 1.1.4322)" ascii fullword $s2 = "sed -i '/\\/etc\\/cron.hourly\\/gcc.sh/d' /etc/crontab && echo '*/3 * * * * root /etc/cron.hourly/gcc.sh' >> /etc/crontab" ascii fullword $s3 = "for i in `cat /proc/net/dev|grep :|awk -F: {'print $1'}`; do ifconfig $i up& done" condition: uint32( 0 ) == 0x464c457f and filesize > 600KB and filesize < 700KB and 3 of them } rule SEKOIA_Hacktool_Ipmipwner_Strings : FILE { meta: description = "Detects ipmiPwner script" author = "Sekoia.io" id = "2ac736b5-33bb-477f-a98c-57cc2744d251" date = "2023-12-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/hacktool_ipmipwner_strings.yar#L1-L16" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "122311e1791d018f08f3d5ecdf2e0efe3aa5bb913b2c1ce6a3797e8ceb2676eb" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "{status} Using the list of users that the {lgcyan}script" $ = "--host 192.168.1.12 -p 624 -uW /opt/SecLists/Usernames/" condition: all of them and filesize < 10KB } rule SEKOIA_Generic_Python_Reverse_Shell : FILE { meta: description = "Detects simple reverse shell written in Python" author = "Sekoia.io" id = "ab25f8db-e39d-4aa4-b431-cf5cd2e038e5" date = "2023-12-08" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_python_reverse_shell.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "ced9923ef8018796545d93d9ac8ba3138dd7d4e79db742eb3babcd94c8d3c304" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "import pty" $ = "lhost =" $ = "os.dup2(s.fileno(),0)" $ = "os.putenv(\"HISTFILE\",'/dev/null')" condition: filesize < 1KB and all of them } rule SEKOIA_Merlin_Crossplatform : FILE { meta: description = "Detects Merlin agent cross platform" author = "Sekoia.io" id = "c9c57f5e-26c3-43be-b2cf-10f5129d3be6" date = "2022-01-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/merlin_crossplatform.yar#L1-L23" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "975cc4fe0d89383188f9fd3c516d1e853dd6070d7703c0b5b5874dc1e7e6f32a" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $s1 = ".CRT" ascii $s2 = ".tls" ascii $s3 = "github.com/Ne0nd0g/merlin" ascii $s4 = "github.com/refraction-networking" ascii $s5 = "SendMerlinMessage" ascii $s6 = "ifconfigH9" ascii condition: ( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and all of them and filesize > 5MB and filesize < 15MB } rule SEKOIA_Apt_Lazarus_Pondrat : FILE { meta: description = "Detects PondRAT via mangled command names" author = "Sekoia.io" id = "a957c158-a79a-4d7a-8473-b6960cf02d9b" date = "2024-09-23" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_lazarus_pondrat.yar#L1-L24" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "b62c912de846e743effdf7e5654a7605" hash = "61d7b2c7814971e5323ec67b3a3d7f45" hash = "ce35c935dcc9d55b2c79945bac77dc8e" hash = "f50c83a4147b86cdb20cc1fbae458865" hash = "05957d98a75c04597649295dc846682d" hash = "33c9a47debdb07824c6c51e13740bdfe" logic_hash = "49c5f635e3873a145479bb164838043921d012eef7dc8ad6373c43c8cf1f14e0" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $cmd_PondRAT1 = "_Z7MsgDownP11_TRANS_INFO" ascii $cmd_PondRAT2 = "_Z5MsgUpP11_TRANS_INFO" ascii $cmd_PondRAT3 = "_Z6MsgRunP11_TRANS_INFO" ascii $cmd_PondRAT4 = "_Z6MsgCmdP11_TRANS_INFO" ascii condition: 3 of them and filesize < 4MB } rule SEKOIA_Apt_Oilrig_Webshell : FILE { meta: description = "Detects a webshell used by OilRig" author = "Sekoia.io" id = "53955117-5176-4682-89ad-1503faba42aa" date = "2024-10-23" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/apt_oilrig_webshell.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "0e0879bafa1becf7e4aef008229a79ab8e0c50eda03232abd5cbb8fc59f482d3" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "string d = com;" $ = "string p = fu;" $ = "#@rt12!@$$$nnMF##" $ = "messi(d)))" condition: 2 of them and filesize < 80KB } rule SEKOIA_Infostealer_Win_Vulturi : FILE { meta: description = "Detect the Vulturi infostealer based on specific strings" author = "Sekoia.io" id = "5369cbfb-ff94-4484-b5a4-894feeed97e1" date = "2022-03-14" modified = "2024-12-19" reference = "https://lamp-ret.club/t/vulturi-cracked-by-tr0uble-and-eshelon_mayskih.193/" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_vulturi.yar#L1-L35" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "2d442768499ea0d4b6f5ac0d85521d73bb8337a53f1641485b0ce0054e2dc91c" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $vul = "Vulturi_" ascii $str01 = "/C chcp 65001 && ping 127.0.0.1 && DEL /F /S /Q /A" wide $str02 = "SELECT ExecutablePath, ProcessID FROM Win32_Process" wide $str03 = "Apps\\Gaming\\Minecraft" wide $str04 = "Apps\\Gaming\\Steam\\Apps" wide $str05 = "Messengers\\Facebook\\Contacts.txt" wide $str06 = "Messengers\\Discord\\Tokens.txt" wide $str07 = "Apps\\VPN\\NordVPN\\accounts.txt" wide $str08 = "Apps\\VPN\\DUC\\credentials.txt" wide $str09 = "System\\Screenshots\\Webcam.png" wide $str10 = "System\\Screenshots\\Desktop.png" wide $str11 = "GTA San Andreas User Files\\SAMP\\USERDATA.DAT" wide $str12 = "http://ip-api.com/line?fields=query" wide $str13 = "Wireshark" wide $str14 = "KeePass.config.xml" wide $str15 = "Apps\\TheBat!" wide $str16 = "Vulturi" wide $str17 = "StealerStub" wide condition: uint16( 0 ) == 0x5A4D and ( #vul > 50 or 12 of ( $str* ) ) } rule SEKOIA_Infostealer_Win_Enigma_Loader_Module : FILE { meta: description = "Find loader module of Enigma Stealer based on specific strings" author = "Sekoia.io" id = "664fe8de-b406-4d63-9a4b-1c350b444f01" date = "2023-01-30" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/infostealer_win_enigma_loader_module.yar#L1-L25" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" hash = "f1623c2f7c00affa3985cf7b9cdf25e39320700fa9d69f9f9426f03054b4b712" logic_hash = "f5485b14291acc299d66b72aefd2d5e558d82f6a90450d293eb147f05423f2d8" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $str01 = "Enigma.Loader.Driver_x64.dll" ascii $str02 = "C:\\projects\\driver\\Driver\\x64\\Release\\driver.pdb" ascii $str03 = "/getFile?file_id=" ascii $str04 = "/file/bot" ascii $str05 = "Fatal error: failed to acquire SE_LOAD_DRIVER_PRIVILEGE. Make sure you are running as administrator." wide $str06 = "[GetTgFileById][GetTgRequest] reply is NULL" wide $str07 = "Telegram request failed" wide $str08 = "Vul driver data destroyed before unlink" wide $str09 = "GetExportAddress hash not found: %x" wide $str10 = "\\REGISTRY\\MACHINE\\HARDWARE\\RESOURCEMAP\\PnP Manager\\PnpManager" wide condition: uint16( 0 ) == 0x5A4D and 4 of them } rule SEKOIA_Generic_Sharpshooter_Payload_1 : FILE { meta: description = "Detects payload created by SharpShooter" author = "Sekoia.io" id = "82fd284a-47c2-4d29-9c80-f3affaa61a13" date = "2023-02-03" modified = "2024-12-19" reference = "https://github.com/SEKOIA-IO/Community" source_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/yara_rules/generic_sharpshooter_payload_1.yar#L1-L18" license_url = "https://github.com/SEKOIA-IO/Community/blob/a599920e60b655ef05924b8557bbf8bac0b343bb/LICENSE.md" logic_hash = "20e42042bd03bde3d0eec42f81d560896e8ec9e67ad64611dc4bc21152db3ff0" score = 75 quality = 80 tags = "FILE" version = "1.0" classification = "TLP:CLEAR" strings: $ = "rc4 = function(key, str)" $ = "var e={},i,b=0,c,x,l=0,a,r=" $ = "var plain = rc4(" $ = "