Zum Inhalt springen

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_Devilstongue_Hijackdll

Detects SOURGUM's DevilsTongue hijack DLL

MalwareDevilstongueSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Kompiliert mit YARA-X (mit Warnungen)
Autor
Microsoft Threat Intelligence Center (MSTIC)
Datum
2021-07-15
Geändert
2023-12-05
Score / Qualität
80 / 85

Was diese Regel erkennt

Detects SOURGUM's DevilsTongue hijack DLL

Zugehörige Malware-Familie: Devilstongue.

Ziele: Windows-PE.

Sie definiert 9 Muster (7 Text, 2 Hex, 0 Regex). Verwendete YARA-Module: pe.

YARA-X meldet: warning[non_bool_expr]: non-boolean expression used as boolean

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.

mal-devilstongue-hijackdll.yarDetection Rule License 1.1
import "pe"

rule SIGNATURE_BASE_MAL_Devilstongue_Hijackdll : FILE
{
	meta:
		description = "Detects SOURGUM's DevilsTongue hijack DLL"
		author = "Microsoft Threat Intelligence Center (MSTIC)"
		id = "390b8b73-6740-513d-8c70-c9002be0ce69"
		date = "2021-07-15"
		modified = "2023-12-05"
		reference = "https://www.microsoft.com/security/blog/2021/07/15/protecting-customers-from-a-private-sector-offensive-actor-using-0-day-exploits-and-devilstongue-malware/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_candiru.yar#L3-L47"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "4ad58a77f9ab5fa078dc40f3ec1d0b0180f25ff3ea304a3c85889df29739e0f5"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$str1 = "windows.old\\windows" wide
		$str2 = "NtQueryInformationThread"
		$str3 = "dbgHelp.dll" wide
		$str4 = "StackWalk64"
		$str5 = "ConvertSidToStringSidW"
		$str6 = "S-1-5-18" wide
		$str7 = "SMNew.dll"
		$code1 = { B8 FF 15 00 00 66 39 41 FA 74 06 80 79 FB E8 }
		$code2 = { 44 8B C0 B8 B5 81 4E 1B 41 F7 E8 C1 FA 05 8B CA C1 E9 1F 03 D1 69 CA 2C 01 00 00 44 2B C1 45 85 C0 7E 19 }

	condition:
		filesize < 800KB and uint16( 0 ) == 0x5A4D and ( pe.characteristics & pe.DLL ) and ( 4 of them or ( $code1 and $code2 ) or pe.imphash ( ) == "9a964e810949704ff7b4a393d9adda60" )
}

Strings (9 Muster)

BezeichnerTypWertModifikatoren
$str1Text"windows.old\\windows"wide
$str2Text"NtQueryInformationThread"
$str3Text"dbgHelp.dll"wide
$str4Text"StackWalk64"
$str5Text"ConvertSidToStringSidW"
$str6Text"S-1-5-18"wide
$str7Text"SMNew.dll"
$code1Hex{ B8 FF 15 00 00 66 39 41 FA 74 06 80 79 FB E8 }
$code2Hex{ 44 8B C0 B8 B5 81 4E 1B 41 F7 E8 C1 FA 05 8B CA C1 E9 1F 03 D1 69 CA 2C 01 00 00 44 2B C1 45 85 C0 7E 19 }

Bedingung

filesize < 800KB and uint16( 0 ) == 0x5A4D and ( pe.characteristics & pe.DLL ) and ( 4 of them or ( $code1 and $code2 ) or pe.imphash ( ) == "9a964e810949704ff7b4a393d9adda60" )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 800KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 4 Muster aus der Regel müssen treffen.
  • Nutzt das Modul pe.
  • Muster $code1 muss vorhanden sein.
  • Muster $code2 muss vorhanden sein.
  • Prüft den PE-Import-Hash (imphash).
  • Erfordert eine DLL.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Microsoft Threat Intelligence Center (MSTIC)

Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 390b8b73-6740-513d-8c70-c9002be0ce69

Tags:FILE

Weitere Devilstongue-Regeln