Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nanocore

Detects NanoCore

MalwareNanocoreditekSHen 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 NanoCore

Zugehörige Malware-Familie: Nanocore.

Ziele: Windows-PE.

Sie definiert 20 Muster (20 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-nanocore.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nanocore : FILE
{
	meta:
		description = "Detects NanoCore"
		author = "ditekSHen"
		id = "931b98f6-df2b-538b-bc49-ecbbd24334da"
		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#L7654-L7681"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "6336260e0af2b4b51338ee066f41b7c58aa134a6c03ca110db7e088edf2b65a7"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "NanoCore Client" fullword ascii
		$x2 = "NanoCore.ClientPlugin" fullword ascii
		$x3 = "NanoCore.ClientPluginHost" fullword ascii
		$i1 = "IClientApp" fullword ascii
		$i2 = "IClientData" fullword ascii
		$i3 = "IClientNetwork" fullword ascii
		$i4 = "IClientAppHost" fullword ascii
		$i5 = "IClientDataHost" fullword ascii
		$i6 = "IClientLoggingHost" fullword ascii
		$i7 = "IClientNetworkHost" fullword ascii
		$i8 = "IClientUIHost" fullword ascii
		$i9 = "IClientNameObjectCollection" fullword ascii
		$i10 = "IClientReadOnlyNameObjectCollection" fullword ascii
		$s1 = "ClientPlugin" fullword ascii
		$s2 = "EndPoint" fullword ascii
		$s3 = "IPAddress" fullword ascii
		$s4 = "IPEndPoint" fullword ascii
		$s5 = "IPHostEntr" fullword ascii
		$s6 = "get_ClientSettings" fullword ascii
		$s7 = "get_Connected" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $i* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 3 of ( $i* ) or 2 of ( $s* ) ) ) )
}

Strings (20 Muster)

BezeichnerTypWertModifikatoren
$x1Text"NanoCore Client"fullword ascii
$x2Text"NanoCore.ClientPlugin"fullword ascii
$x3Text"NanoCore.ClientPluginHost"fullword ascii
$i1Text"IClientApp"fullword ascii
$i2Text"IClientData"fullword ascii
$i3Text"IClientNetwork"fullword ascii
$i4Text"IClientAppHost"fullword ascii
$i5Text"IClientDataHost"fullword ascii
$i6Text"IClientLoggingHost"fullword ascii
$i7Text"IClientNetworkHost"fullword ascii
$i8Text"IClientUIHost"fullword ascii
$i9Text"IClientNameObjectCollection"fullword ascii
$i10Text"IClientReadOnlyNameObjectCollection"fullword ascii
$s1Text"ClientPlugin"fullword ascii
$s2Text"EndPoint"fullword ascii
$s3Text"IPAddress"fullword ascii
$s4Text"IPEndPoint"fullword ascii
$s5Text"IPHostEntr"fullword ascii
$s6Text"get_ClientSettings"fullword ascii
$s7Text"get_Connected"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $i* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 3 of ( $i* ) or 2 of ( $s* ) ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 8 Muster aus ( $i* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 3 Muster aus ( $i* ) 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: 931b98f6-df2b-538b-bc49-ecbbd24334da

Tags:FILE