Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Arechclient2

Detects Arechclient2 RAT

MalwareArechclient2ditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects Arechclient2 RAT

Associated malware family: Arechclient2.

Targets: Windows PE.

It defines 25 patterns (24 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-arechclient2.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Arechclient2 : FILE
{
	meta:
		description = "Detects Arechclient2 RAT"
		author = "ditekSHen"
		id = "c12858ea-5e06-5303-9df0-0f59ba83b5e5"
		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#L4271-L4303"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "0d841f4d4664fb09801c51f7b65e897e4e698753ad67fc20e2b81d98c0b3d07d"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "\\Google\\Chrome\\User Data\\copiedProf\"" wide
		$s2 = "\",\"BotName\":\"" wide
		$s3 = "\",\"BotOS\":\"" wide
		$s4 = "\",\"URLData\":\"" wide
		$s5 = "{\"Type\":\"ConnectionType\",\"ConnectionType\":\"Client\",\"SessionID\":\"" wide
		$s6 = "{\"Type\":\"TestURLDump\",\"SessionID\":\"" wide
		$s7 = "<ReceiveParticipantList>" ascii
		$s8 = "<potocSkr>" ascii
		$s9 = "fuck_sd" fullword ascii
		$s10 = "HandleBotKiller" fullword ascii
		$s11 = "RunBotKiller" fullword ascii
		$s12 = "ConnectToServer" fullword ascii
		$s13 = "KillBrowsers" fullword ascii
		$s14 = "keybd_event" fullword ascii
		$s15 = "FuckCodeImg" fullword ascii
		$v1_1 = "grabber@" fullword ascii
		$v1_2 = "<BrowserProfile>k__" ascii
		$v1_3 = "<SystemHardwares>k__" ascii
		$v1_4 = "<geoplugin_request>k__" ascii
		$v1_5 = "<ScannedWallets>k__" ascii
		$v1_6 = "<DicrFiles>k__" ascii
		$v1_7 = "<MessageClientFiles>k__" ascii
		$v1_8 = /<Scan(Browsers|Wallets|Screen|VPN)>k__BackingField/ fullword ascii
		$v1_9 = "displayName[AString-ZaString-z\\d]{2String4}\\.[String\\w-]{String6}\\.[\\wString-]{2String7}Local Extension Settingshost" wide
		$v1_10 = "\\sitemanager.xml MB or SELECT * FROM Cookiesconfig" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 7 of ( $v1* ) or ( 6 of ( $v1* ) and 1 of ( $s* ) ) )
}

Strings (25 patterns)

IdentifierTypeValueModifiers
$s1text"\\Google\\Chrome\\User Data\\copiedProf\""wide
$s2text"\",\"BotName\":\""wide
$s3text"\",\"BotOS\":\""wide
$s4text"\",\"URLData\":\""wide
$s5text"{\"Type\":\"ConnectionType\",\"ConnectionType\":\"Client\",\"SessionID\":\""wide
$s6text"{\"Type\":\"TestURLDump\",\"SessionID\":\""wide
$s7text"<ReceiveParticipantList>"ascii
$s8text"<potocSkr>"ascii
$s9text"fuck_sd"fullword ascii
$s10text"HandleBotKiller"fullword ascii
$s11text"RunBotKiller"fullword ascii
$s12text"ConnectToServer"fullword ascii
$s13text"KillBrowsers"fullword ascii
$s14text"keybd_event"fullword ascii
$s15text"FuckCodeImg"fullword ascii
$v1_1text"grabber@"fullword ascii
$v1_2text"<BrowserProfile>k__"ascii
$v1_3text"<SystemHardwares>k__"ascii
$v1_4text"<geoplugin_request>k__"ascii
$v1_5text"<ScannedWallets>k__"ascii
$v1_6text"<DicrFiles>k__"ascii
$v1_7text"<MessageClientFiles>k__"ascii
$v1_8regex/<Scan(Browsers|Wallets|Screen|VPN)>k__BackingField/fullword ascii
$v1_9text"displayName[AString-ZaString-z\\d]{2String4}\\.[String\\w-]{String6}\\.[\\wString-]{2String7}Local Extension Settingshost"wide
$v1_10text"\\sitemanager.xml MB or SELECT * FROM Cookiesconfig"wide

Condition

uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 7 of ( $v1* ) or ( 6 of ( $v1* ) and 1 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 patterns in ( $s* ) must match.
  • At least 7 patterns in ( $v1* ) must match.
  • At least 6 patterns in ( $v1* ) must match.
  • At least 1 patterns in ( $s* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: c12858ea-5e06-5303-9df0-0f59ba83b5e5

Tags:FILE