Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Actionrat

Detects ActionRAT, CSharp and Delfi variants

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

Was diese Regel erkennt

Detects ActionRAT, CSharp and Delfi variants

Zugehörige Malware-Familie: Action Rat.

Ziele: Windows-PE.

Sie definiert 26 Muster (23 Text, 0 Hex, 3 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-actionrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Actionrat : FILE
{
	meta:
		description = "Detects ActionRAT, CSharp and Delfi variants"
		author = "ditekSHen"
		id = "ceb4bd65-85c0-5614-a7cb-8f3f2f849eae"
		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#L6922-L6955"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1552cda3f02c08582e3dd97df98416635a25005081627097df181bfc6aac4665"
		score = 75
		quality = 71
		tags = "FILE"

	strings:
		$x1 = /<action>(connect|command|drives|getfiles|upload|execute|download)<action>/ fullword wide
		$x2 = "aHR0cDovLzE0NC45MS42NS4xMDAv" wide
		$x3 = "aHR0cDovL21mYWhvc3QuZGRucy5uZXQv" wide
		$f1 = "<updateCommand>b__" ascii
		$f2 = "<getDrives>b__" ascii
		$f3 = "<getStatus>b__" ascii
		$f4 = "<getDirectories>b__" ascii
		$f5 = "<updateUpload>b__" ascii
		$f6 = "<infinity>b__" ascii
		$f7 = "<uploadFile>b__" ascii
		$s1 = "beaconURL" ascii
		$s2 = "PingReply" ascii
		$s3 = "updateUpload" ascii
		$s4 = "updateCommand" ascii
		$s5 = "runCommand" ascii
		$s6 = "uploadFile" ascii
		$s7 = "SELECT * FROM MSFT_NetAdapter WHERE ConnectorPresent = True AND DeviceID = '{0}'" fullword wide
		$s8 = "SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion" fullword wide
		$s9 = "Mozilla/3.0" fullword wide
		$s10 = "|directory|N/A|" fullword wide
		$s11 = "cmd.exe /c" fullword wide
		$c1 = /Content-Disposition: form-data; name=(hostname|hid|id|action|secondary)/ fullword wide
		$c2 = /(classification|updatecs|update|beacon)\.php/ wide
		$c3 = "Content-Disposition: form-data;name=\"{0}\";filename=\"{1}\"filepath=\"{2}\"" fullword wide
		$pdb1 = "D:\\Projects\\C#\\HTTP-Simple\\WindowsMediaPlayer - HTTP - " ascii
		$pdb2 = "\\WindowsMediaPlayer10\\obj\\x86\\Release\\winow4.pdb" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( #x1 > 5 or ( all of ( $f* ) and ( 1 of ( $s* ) or 2 of ( $c* ) ) ) or 7 of ( $s* ) or all of ( $c* ) or ( all of ( $pdb* ) and 4 of them ) or ( 2 of ( $x* ) and 5 of them ) )
}

Strings (26 Muster)

BezeichnerTypWertModifikatoren
$x1Regex/<action>(connect|command|drives|getfiles|upload|execute|download)<action>/fullword wide
$x2Text"aHR0cDovLzE0NC45MS42NS4xMDAv"wide
$x3Text"aHR0cDovL21mYWhvc3QuZGRucy5uZXQv"wide
$f1Text"<updateCommand>b__"ascii
$f2Text"<getDrives>b__"ascii
$f3Text"<getStatus>b__"ascii
$f4Text"<getDirectories>b__"ascii
$f5Text"<updateUpload>b__"ascii
$f6Text"<infinity>b__"ascii
$f7Text"<uploadFile>b__"ascii
$s1Text"beaconURL"ascii
$s2Text"PingReply"ascii
$s3Text"updateUpload"ascii
$s4Text"updateCommand"ascii
$s5Text"runCommand"ascii
$s6Text"uploadFile"ascii
$s7Text"SELECT * FROM MSFT_NetAdapter WHERE ConnectorPresent = True AND DeviceID = '{0}'"fullword wide
$s8Text"SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion"fullword wide
$s9Text"Mozilla/3.0"fullword wide
$s10Text"|directory|N/A|"fullword wide
$s11Text"cmd.exe /c"fullword wide
$c1Regex/Content-Disposition: form-data; name=(hostname|hid|id|action|secondary)/fullword wide
$c2Regex/(classification|updatecs|update|beacon)\.php/wide
$c3Text"Content-Disposition: form-data;name=\"{0}\";filename=\"{1}\"filepath=\"{2}\""fullword wide
$pdb1Text"D:\\Projects\\C#\\HTTP-Simple\\WindowsMediaPlayer - HTTP - "ascii
$pdb2Text"\\WindowsMediaPlayer10\\obj\\x86\\Release\\winow4.pdb"ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( #x1 > 5 or ( all of ( $f* ) and ( 1 of ( $s* ) or 2 of ( $c* ) ) ) or 7 of ( $s* ) or all of ( $c* ) or ( all of ( $pdb* ) and 4 of them ) or ( 2 of ( $x* ) and 5 of them ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $f* ) müssen treffen.
  • Alle Muster aus ( $c* ) müssen treffen.
  • Alle Muster aus ( $pdb* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $c* ) müssen treffen.
  • Mindestens 7 Muster aus ( $s* ) müssen treffen.
  • Mindestens 4 Muster aus der Regel müssen treffen.
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 Muster aus der Regel müssen treffen.
  • Muster $x1 muss > 5-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: ceb4bd65-85c0-5614-a7cb-8f3f2f849eae

Tags:FILE

Weitere Action Rat-Regeln