Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_IN_TA397_Wmrat

track wmRAT based on socket usage, odd error handling, and reused strings

APT / acteurWm RatSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Ne compile pas avec YARA-X
Auteur
Proofpoint
Date
2024-11-20
Modifiée
2025-01-17
Score / Qualité
75 / 85

Ce que détecte cette règle

track wmRAT based on socket usage, odd error handling, and reused strings

Famille de malware associée : Wm Rat.

Elle définit 2 motifs (0 texte, 2 hex, 0 regex).

YARA-X indique : error[E001]: syntax error

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

apt-in-ta397-wmrat.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_IN_TA397_Wmrat : HUNTING
{
	meta:
		description = "track wmRAT based on socket usage, odd error handling, and reused strings"
		author = "Proofpoint"
		id = "c5855b30-3e75-570f-b327-498dfc382159"
		date = "2024-11-20"
		modified = "2025-01-17"
		reference = "https://www.proofpoint.com/us/blog/threat-insight/hidden-plain-sight-ta397s-new-attack-chain-delivers-espionage-rats"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_ta397_dec24.yar#L2-L80"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "3bf4bbd5564f4381820fb8da5810bd4d9718b5c80a7e8f055961007c6f30da2b"
		hash = "3e9a08972b8ec9c2e64eeb46ce1db92ae3c40bc8de48d278ba4d436fc3c8b3a4"
		hash = "40ddb4463be9d8131f363fd78e21d9de5d838a3ec4044526aea45a473d6ddd61"
		hash = "4836cb7eed0b20da50acb26472f918b180917101c026ce36074e0e879b604308"
		hash = "4e3e4d476810c95c34b6f2aa9c735f8e57e85e3b7a97c709adc5d6ee4a5f6ccc"
		hash = "5ab76cf85ade810b7ae449e3dff8a19a018174ced45d37062c86568d9b7633f9"
		hash = "811741d9df51a9f16272a64ec7eb8ff12f8f26794368b1ff4ad5d30a1f4bb42a"
		hash = "b588a423b826b57dce72c9ab58f89be2ddc710a0367ed0eed001c047d8bef32a"
		hash = "caf871247b7256945598816e9c5461d64b6bdb68a15ff9f8742ca31dc00865f8"
		logic_hash = "b20a13b87f4b81e7ebc10ff2f6203aeab46980e0d481bad786695339dd59bf7a"
		score = 75
		quality = 85
		tags = "HUNTING"
		category = "hunting"
		malfamily = "wmRAT"
		version = "1.0"

	strings:
		$code_sleep_loop = {
            6a 64              // push    0x64
            ff d6              // call    esi
            6a 01              // push    0x1
            e8 ?? ?? ?? ??     // call    operator new
            83 c4 04           // add     esp, 0x4
            3b c7              // cmp     eax, edi

        }
		$code_error_handling = {
            88 19           // mov     byte [ecx], bl
            4a              // dec     edx
            41              // inc     ecx
            47              // inc     edi
            4e              // dec     esi
            85 d2           // test    edx, edx
            ?? ??           // jne     0x401070
            5f              // pop     edi {__saved_edi}
            49              // dec     ecx
            5e              // pop     esi {__saved_esi}
            b8 7a 00 07 80  // mov     eax, 0x8007007a

        }

Chaînes (2 motifs)

IdentifiantTypeValeurModificateurs
$code_sleep_loophex{ 6a 64 // push 0x64 ff d6 // call esi 6a 01 // push 0x1 e8 ?? ? …
$code_error_handlinghex{ 88 19 // mov byte [ecx], bl 4a // dec edx 41 // inc ecx 47 …

Références

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).

  • 3bf4bbd5564f4381820fb8da5810bd4d9718b5c80a7e8f055961007c6f30da2b
  • 3e9a08972b8ec9c2e64eeb46ce1db92ae3c40bc8de48d278ba4d436fc3c8b3a4
  • 40ddb4463be9d8131f363fd78e21d9de5d838a3ec4044526aea45a473d6ddd61
  • 4836cb7eed0b20da50acb26472f918b180917101c026ce36074e0e879b604308
  • 4e3e4d476810c95c34b6f2aa9c735f8e57e85e3b7a97c709adc5d6ee4a5f6ccc
  • 5ab76cf85ade810b7ae449e3dff8a19a018174ced45d37062c86568d9b7633f9
  • 811741d9df51a9f16272a64ec7eb8ff12f8f26794368b1ff4ad5d30a1f4bb42a
  • b588a423b826b57dce72c9ab58f89be2ddc710a0367ed0eed001c047d8bef32a
  • caf871247b7256945598816e9c5461d64b6bdb68a15ff9f8742ca31dc00865f8

Licence et attribution

Auteur : Proofpoint

Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

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: c5855b30-3e75-570f-b327-498dfc382159

Métadonnées

categoryhunting
malfamilywmRAT
version1.0

Tags:HUNTING