Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nglite

Detects NGLite

MalwareNgliteditekSHen 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 NGLite

Zugehörige Malware-Familie: Nglite.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-nglite.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nglite : FILE
{
	meta:
		description = "Detects NGLite"
		author = "ditekSHen"
		id = "b014ed4f-57b1-597e-befc-6e7f80855201"
		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#L8646-L8668"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d83663908949f69018461c73cf7137cf4ab16cc057cfe47942e6de0415ab5447"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "/lprey/main.go" ascii
		$x2 = "/NGLiteV1.01/lprey/" ascii
		$x3 = "/ng.com/lprey/" ascii
		$x4 = "/mnt/hgfs/CrossC2-2.2/src/" ascii
		$x5 = "WHATswrongwithUu" ascii
		$s1 = "main.Preylistener" fullword ascii
		$s2 = "main.Runcommand" fullword ascii
		$s3 = "main.RandomPass" fullword ascii
		$s4 = "main.AesEncode" fullword ascii
		$s5 = "main.RsaEncode" fullword ascii
		$s6 = "main.AesDecode" fullword ascii
		$s7 = "main.initonce" fullword ascii
		$s8 = "main.SendOnce" fullword ascii
		$s9 = "main.clientConf" fullword ascii
		$s10 = "main.Sender" fullword ascii

	condition:
		( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f or uint16( 0 ) == 0xfacf ) and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 6 of ( $s* ) ) )
}

Strings (15 Muster)

BezeichnerTypWertModifikatoren
$x1Text"/lprey/main.go"ascii
$x2Text"/NGLiteV1.01/lprey/"ascii
$x3Text"/ng.com/lprey/"ascii
$x4Text"/mnt/hgfs/CrossC2-2.2/src/"ascii
$x5Text"WHATswrongwithUu"ascii
$s1Text"main.Preylistener"fullword ascii
$s2Text"main.Runcommand"fullword ascii
$s3Text"main.RandomPass"fullword ascii
$s4Text"main.AesEncode"fullword ascii
$s5Text"main.RsaEncode"fullword ascii
$s6Text"main.AesDecode"fullword ascii
$s7Text"main.initonce"fullword ascii
$s8Text"main.SendOnce"fullword ascii
$s9Text"main.clientConf"fullword ascii
$s10Text"main.Sender"fullword ascii

Bedingung

( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f or uint16( 0 ) == 0xfacf ) and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 6 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 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: b014ed4f-57b1-597e-befc-6e7f80855201

Tags:FILE

Weitere Nglite-Regeln