Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Hyperbro02

Detects HyperBro IronTiger / LuckyMouse / APT27 malware

MalwareHyperbro02ditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects HyperBro IronTiger / LuckyMouse / APT27 malware

Zugehörige Malware-Familie: Hyperbro02.

Ziele: Windows-PE.

Sie definiert 17 Muster (15 Text, 2 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-hyperbro02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Hyperbro02 : FILE
{
	meta:
		description = "Detects HyperBro IronTiger / LuckyMouse / APT27 malware"
		author = "ditekSHen"
		id = "1880afd7-ca06-5b43-af8f-e791ded0d7d8"
		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#L5450-L5474"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ca4ee116516549fc42f7e32b3c24d631b7f2c638efbde5c07227358e78fd6f35"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "\\cmd.exe /A" fullword wide
		$s2 = "C:\\windows\\explorer.exe" fullword wide
		$s3 = "\\\\.\\pipe\\testpipe" fullword wide
		$s4 = "Elevation:Administrator!new:{" wide
		$s5 = "log.log" fullword wide
		$s6 = "%s\\%d.exe" fullword wide
		$s7 = ".?AVTPipeProtocol@@" fullword ascii
		$s8 = ".?AVTCaptureMgr@@" fullword ascii
		$s9 = "system-%d" fullword wide
		$s10 = "[test] %02d:%02d:%02d:%03d %s" fullword wide
		$s11 = "\\..\\data.dat" fullword wide
		$s12 = "\\..\\config.ini" fullword wide
		$s13 = { 73 00 76 00 63 00 68 00 6f 00 73 00 74 00 2e 00 65 00 78 00 65 00 00 00 20 00 2d 00 77 00 6f 00 72 00 6b 00 65 00 72 00 }
		$s14 = { 73 00 76 00 63 00 68 00 6f 00 73 00 74 00 2e 00 65 00 78 00 65 00 00 00 20 00 2d 00 64 00 61 00 65 00 6d 00 6f 00 6e 00 }
		$cnc1 = "https://%s:%d/ajax" fullword wide
		$cnc2 = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36" fullword wide
		$cnc3 = "139.180.208.225" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 2 of ( $cnc* ) and 2 of ( $s* ) ) )
}

Strings (17 Muster)

BezeichnerTypWertModifikatoren
$s1Text"\\cmd.exe /A"fullword wide
$s2Text"C:\\windows\\explorer.exe"fullword wide
$s3Text"\\\\.\\pipe\\testpipe"fullword wide
$s4Text"Elevation:Administrator!new:{"wide
$s5Text"log.log"fullword wide
$s6Text"%s\\%d.exe"fullword wide
$s7Text".?AVTPipeProtocol@@"fullword ascii
$s8Text".?AVTCaptureMgr@@"fullword ascii
$s9Text"system-%d"fullword wide
$s10Text"[test] %02d:%02d:%02d:%03d %s"fullword wide
$s11Text"\\..\\data.dat"fullword wide
$s12Text"\\..\\config.ini"fullword wide
$s13Hex{ 73 00 76 00 63 00 68 00 6f 00 73 00 74 00 2e 00 65 00 78 00 65 00 00 00 20 00 2d 00 77 00 6f 00 72 00 6b 00 65 00 72 00 }
$s14Hex{ 73 00 76 00 63 00 68 00 6f 00 73 00 74 00 2e 00 65 00 78 00 65 00 00 00 20 00 2d 00 64 00 61 00 65 00 6d 00 6f 00 6e 00 }
$cnc1Text"https://%s:%d/ajax"fullword wide
$cnc2Text"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"fullword wide
$cnc3Text"139.180.208.225"fullword wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 2 of ( $cnc* ) and 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 7 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $cnc* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.

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: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

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

Regel-ID: 1880afd7-ca06-5b43-af8f-e791ded0d7d8

Tags:FILE