YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_Earthworm_Socks_Proxy_ID_Generation
Detects EarthWorm - a reverse socks proxy used by the threat group that deployed Pygmy Goat malware on Sophos XG firewall devices. The detection is based on the pool num generation x86 assembly.
- Auteur
- NCSC
- Date
- 2024-10-22
- Modifiée
- 2024-12-12
- Score / Qualité
- 75 / 85
Ce que détecte cette règle
Detects EarthWorm - a reverse socks proxy used by the threat group that deployed Pygmy Goat malware on Sophos XG firewall devices. The detection is based on the pool num generation x86 assembly.
Famille de malware associée : Earthworm.
Cibles : ELF Linux.
Elle définit 1 motifs (0 texte, 1 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 SIGNATURE_BASE_MAL_Earthworm_Socks_Proxy_ID_Generation : FILE
{
meta:
= "Detects EarthWorm - a reverse socks proxy used by the threat group that deployed Pygmy Goat malware on Sophos XG firewall devices. The detection is based on the pool num generation x86 assembly."
= "NCSC"
= "242777e4-3abb-50d8-8c45-746cc4a8b1f8"
= "2024-10-22"
= "2024-12-12"
= "https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/pygmy-goat/ncsc-mar-pygmy-goat.pdf"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_sophos_pygmy_nov24.yar#L46-L71"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "71f70d61af00542b2e9ad64abd2dda7e437536ff"
= "6837cba2637ed02d1d620c037b200d528c09a39498c1e320873a3a244e67932c"
= 75
= 85
= "FILE"
strings:
$chartoi = {
8b 45 ?? // MOV EAX,dword ptr [EBP + ??]
c1 e0 07 // SHL EAX,0x7
89 c1 // MOV ECX,EAX
8b 55 ?? // MOV EDX,dword ptr [EBP + ??]
8b 45 ?? // MOV EAX,dword ptr [EBP + ??]
01 d0 // ADD EAX,EDX
0f b6 00 // MOVZX EAX,byte ptr [EAX]
0f be c0 // MOVSX EAX,AL
01 c8 // ADD EAX,ECX
89 45 ?? // MOV dword ptr [EBP + ??],EAX
83 6d ?? 01 // SUB dword ptr [EBP + ??],0x1
}
condition:
uint32( 0 ) == 0x464c457f and all of them
}
Chaînes (1 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $chartoi | hex | { 8b 45 ?? // MOV EAX,dword ptr [EBP + ??] c1 e0 07 // SHL EAX,0x7 89 c1 // MOV ECX,EAX 8b 55 ?? // MOV EDX,dword ptr [EBP + … |
Condition
uint32( 0 ) == 0x464c457f and all of themEn clair (Heuristique)
- Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
- Tous les 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é.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 71f70d61af00542b2e9ad64abd2dda7e437536ff
Licence et attribution
Auteur : NCSC
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: 242777e4-3abb-50d8-8c45-746cc4a8b1f8
Tags:FILE
Règles liées
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-02-08
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· NCSC· 2025-09-25