Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Buterat

Detects ButeRAT

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

Was diese Regel erkennt

Detects ButeRAT

Zugehörige Malware-Familie: Buterat.

Ziele: Windows-PE.

Sie definiert 10 Muster (9 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-buterat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Buterat : FILE
{
	meta:
		description = "Detects ButeRAT"
		author = "ditekSHen"
		id = "74f63d61-6589-5fb1-864a-3a02ddd57ebc"
		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#L5822-L5839"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c3d93e8dc1bde8e77c11586c8d8b67d137ef2c4791e12269f1af310fbe14832b"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "TVqQAAMAA" ascii
		$s1 = "ipinfo.io/geo" wide
		$s2 = "/index.php" wide
		$s3 = "Copy-Item -Path" wide
		$s4 = ";Start-Process" wide
		$s5 = "Microsoft\\Windows\\Start Menu\\Programs\\Startup" wide
		$s6 = "LOCALAPPDATA" fullword wide
		$s7 = "passwords.json" wide
		$s8 = "Scripting.FileSystemObject" fullword wide
		$z1 = /(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ ascii wide nocase

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )
}

Strings (10 Muster)

BezeichnerTypWertModifikatoren
$x1Text"TVqQAAMAA"ascii
$s1Text"ipinfo.io/geo"wide
$s2Text"/index.php"wide
$s3Text"Copy-Item -Path"wide
$s4Text";Start-Process"wide
$s5Text"Microsoft\\Windows\\Start Menu\\Programs\\Startup"wide
$s6Text"LOCALAPPDATA"fullword wide
$s7Text"passwords.json"wide
$s8Text"Scripting.FileSystemObject"fullword wide
$z1Regex/(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ascii wide nocase

Bedingung

uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 1 Muster aus ( $z* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus der Regel müssen treffen.
  • Muster $z1 muss > 4-mal vorkommen.

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: 74f63d61-6589-5fb1-864a-3a02ddd57ebc

Tags:FILE