Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Commonmagic

Detects CommonMagic and Modules

MalwareCommon MagicditekSHen 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 CommonMagic and Modules

Zugehörige Malware-Familie: Common Magic.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-commonmagic.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Commonmagic : FILE
{
	meta:
		description = "Detects CommonMagic and Modules"
		author = "ditekSHen"
		id = "cbebe334-9b66-5931-8f92-25d080f7fd6a"
		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#L9645-L9660"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e94ba53f31f3effe12b1fbaca19fea59c0e12f742f6fc0af2a0a679bf4299cbe"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$p1 = "\\\\.\\pipe\\PipeMd" wide
		$p2 = "\\\\.\\pipe\\PipeCrDtMd" wide
		$p3 = "\\\\.\\pipe\\PipeDtMd" wide
		$s1 = "graph.microsoft.com" fullword wide
		$s2 = "CreateNamedPipe" ascii
		$s3 = "\\CommonCommand\\" wide
		$ua1 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" wide
		$ua2 = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $p* ) and 1 of ( $s* ) ) or ( 1 of ( $ua* ) and 1 of ( $s* ) and 1 of ( $p* ) )
}

Strings (8 Muster)

BezeichnerTypWertModifikatoren
$p1Text"\\\\.\\pipe\\PipeMd"wide
$p2Text"\\\\.\\pipe\\PipeCrDtMd"wide
$p3Text"\\\\.\\pipe\\PipeDtMd"wide
$s1Text"graph.microsoft.com"fullword wide
$s2Text"CreateNamedPipe"ascii
$s3Text"\\CommonCommand\\"wide
$ua1Text"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36"wide
$ua2Text"Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 2 of ( $p* ) and 1 of ( $s* ) ) or ( 1 of ( $ua* ) and 1 of ( $s* ) and 1 of ( $p* ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 2 Muster aus ( $p* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $ua* ) müssen treffen.
  • Mindestens 1 Muster aus ( $p* ) 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: cbebe334-9b66-5931-8f92-25d080f7fd6a

Tags:FILE

Weitere Common Magic-Regeln