YARA · CAPE Sandbox (CAPEv2)
CAPE_Pikahook
Pikabot anti-hook bypass
- Auteur
- kevoreilly
- Date
- 2024-03-07
- Modifiée
- 2024-03-12
- Score / Qualité
- 75 / 70
Ce que détecte cette règle
Pikabot anti-hook bypass
Famille de malware associée : Pikabot.
Cibles : PE Windows.
Elle définit 3 motifs (0 texte, 3 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule CAPE_Pikahook : FILE
{
meta:
= "Pikabot anti-hook bypass"
= "kevoreilly"
= "e1b7a807-135f-52d7-bc36-c0419e82b424"
= "2024-03-07"
= "2024-03-12"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/Pikabot.yar#L1-L14"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "2a50a5f2d905122a5b7ac8ca3666b47caa24d325e246841129e53807daf2a1dd"
= 75
= 70
= "FILE"
= "clear,sysbp=$indirect+40,sysbpmode=1,force-sleepskip=1"
= "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
}
Chaînes (3 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $indirect | hex | {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 | hex | {89 44 24 08 8D 85 20 FC FF FF C7 44 24 04 FF FF 1F 00 89 04 24 E8} | |
| $sysenter2 | hex | {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 themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 2 motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Licence et attribution
Auteur : kevoreilly
Dépôt source : CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence : GNU General Public License v3.0 (licence du dépôt)
Mention de copyright : Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: e1b7a807-135f-52d7-bc36-c0419e82b424
Métadonnées
| cape_options | clear,sysbp=$indirect+40,sysbpmode=1,force-sleepskip=1 |
|---|---|
| packed | 89dc50024836f9ad406504a3b7445d284e97ec5dafdd8f2741f496cac84ccda9 |
Tags:FILE
Règles liées
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-03-07
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-13
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-13
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-13
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-10-03
- RUSSIANPANDA_Pikabot_1Métadonnées seulesMalwareRussianPanda· RussianPanda· 2024-01-02
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31