Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Tardigrade

Detects Tardigrade

MalwareTardigradeditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects Tardigrade

Famille de malware associée : Tardigrade.

Cibles : PE Windows.

Elle définit 10 motifs (9 texte, 0 hex, 1 regex). Modules YARA utilisés : pe.

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

Source de la règle

Inclut les imports nécessaires pour la compiler seule.

malware-win-tardigrade.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Tardigrade : FILE
{
	meta:
		description = "Detects Tardigrade"
		author = "ditekSHen"
		id = "a46caaaa-2954-552a-a20f-952c47370393"
		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#L8756-L8787"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "c0976a1fbc3dd938f1d2996a888d0b3a516b432a2c38d788831553d81e2f5858"
		hash = "966b2c7c72a28310acd58bb23af4d3c893b2afca264b2d9c0ec42db815c77487"
		hash = "88be5da274df704dc7fd9882c661a0afdd35f1ce0a7145e30f51c292abd2a86b"
		hash = "cf88926b7d5a5ebbd563d0241aaf83718b77cec56da66bdf234295cc5a91c5fe"
		hash = "4afd9f0dde092daeac3f3e6ffb0aee06682b3dba6005d2bd1a914eefd5cc6a30"
		logic_hash = "2bd4f23f66844a320b6bed6242ba39096f66a08affb84abd78c342d433ed9fe6"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "cmd.exe /c echo kOJAdtQoDcMuogIZIl>\"%s\"&exit" fullword ascii
		$x2 = "cmd.exe /c echo HBnBcZPeUevCDQmKGzXxYJHqpzRAbRCQCihOxiLi>\"%s\"&exit" fullword ascii
		$x3 = "cmd.exe /c set kpUUCjoLWLZvJFc=3167 & reg add HKCU\\SOFTWARE\\EQwIobTRgsJ /v PDMXPmqSYnUx /t REG_DWORD /d 10080 & exit" fullword ascii
		$s1 = "ReplaceFileA" ascii
		$s2 = "FlushFileBuffers" ascii
		$s3 = "WaitNamedPipeA" ascii
		$s4 = "ImpersonateNamedPipeClient" ascii
		$s5 = "RegFlushKey" ascii
		$s6 = /cmd\.exe \/c (echo|set)/ ascii
		$s7 = ">\"%s\"&exit" ascii

	condition:
		uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( 1 of ( $x* ) or 6 of ( $s* ) ) and ( pe.exports ( "DllGetClassObject" ) and pe.exports ( "DllMain" ) and pe.exports ( "DllRegisterServer" ) and pe.exports ( "DllUnregisterServer" ) and pe.exports ( "InitHelperDll" ) and pe.exports ( "StartW" ) )
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"cmd.exe /c echo kOJAdtQoDcMuogIZIl>\"%s\"&exit"fullword ascii
$x2texte"cmd.exe /c echo HBnBcZPeUevCDQmKGzXxYJHqpzRAbRCQCihOxiLi>\"%s\"&exit"fullword ascii
$x3texte"cmd.exe /c set kpUUCjoLWLZvJFc=3167 & reg add HKCU\\SOFTWARE\\EQwIobTRgsJ /v PDMXPmqSYnUx /t REG_DWORD /d 10080 & exit"fullword ascii
$s1texte"ReplaceFileA"ascii
$s2texte"FlushFileBuffers"ascii
$s3texte"WaitNamedPipeA"ascii
$s4texte"ImpersonateNamedPipeClient"ascii
$s5texte"RegFlushKey"ascii
$s6regex/cmd\.exe \/c (echo|set)/ascii
$s7texte">\"%s\"&exit"ascii

Condition

uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( 1 of ( $x* ) or 6 of ( $s* ) ) and ( pe.exports ( "DllGetClassObject" ) and pe.exports ( "DllMain" ) and pe.exports ( "DllRegisterServer" ) and pe.exports ( "DllUnregisterServer" ) and pe.exports ( "InitHelperDll" ) and pe.exports ( "StartW" ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 6 motifs de ( $s* ) doivent être trouvés.
  • Utilise le module pe.
  • Vérifie des fonctions exportées ou le nom de la DLL.
  • Exige une DLL.

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

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

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

  • c0976a1fbc3dd938f1d2996a888d0b3a516b432a2c38d788831553d81e2f5858
  • 966b2c7c72a28310acd58bb23af4d3c893b2afca264b2d9c0ec42db815c77487
  • 88be5da274df704dc7fd9882c661a0afdd35f1ce0a7145e30f51c292abd2a86b
  • cf88926b7d5a5ebbd563d0241aaf83718b77cec56da66bdf234295cc5a91c5fe
  • 4afd9f0dde092daeac3f3e6ffb0aee06682b3dba6005d2bd1a914eefd5cc6a30

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: a46caaaa-2954-552a-a20f-952c47370393

Tags:FILE