Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Dcrat_Qwqdanchun

Find DcRAT samples (qwqdanchun) based on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-01-26
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Find DcRAT samples (qwqdanchun) based on specific strings

Targets: Windows PE.

It defines 13 patterns (13 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

rat-win-dcrat-qwqdanchun.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Dcrat_Qwqdanchun : FILE
{
	meta:
		description = "Find DcRAT samples (qwqdanchun) based on specific strings"
		author = "Sekoia.io"
		id = "8206a410-48b3-425f-9dcb-7a528673a37a"
		date = "2023-01-26"
		modified = "2024-12-19"
		reference = "https://github.com/qwqdanchun/DcRat"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_dcrat_qwqdanchun.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "e6f8664e57ecce3bd7b2af5c67d564d526b32d12218b772b0e9f53709044e14d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "DcRatByqwqdanchun" wide
		$str02 = "U09GVFdBUkVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cUnVuXA==" wide
		$str03 = "Po_ng" wide
		$str04 = "Pac_ket" wide
		$str05 = "Perfor_mance" wide
		$str06 = "Install_ed" wide
		$str07 = "get_IsConnected" ascii
		$str08 = "get_ActivatePo_ng" ascii
		$str09 = "isVM_by_wim_temper" ascii
		$str10 = "save_Plugin" wide
		$str11 = "timeout 3 > NUL" wide
		$str12 = "ProcessHacker.exe" wide
		$str13 = "Select * from Win32_CacheMemory" wide

	condition:
		uint16( 0 ) == 0x5A4D and 8 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"DcRatByqwqdanchun"wide
$str02text"U09GVFdBUkVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cUnVuXA=="wide
$str03text"Po_ng"wide
$str04text"Pac_ket"wide
$str05text"Perfor_mance"wide
$str06text"Install_ed"wide
$str07text"get_IsConnected"ascii
$str08text"get_ActivatePo_ng"ascii
$str09text"isVM_by_wim_temper"ascii
$str10text"save_Plugin"wide
$str11text"timeout 3 > NUL"wide
$str12text"ProcessHacker.exe"wide
$str13text"Select * from Win32_CacheMemory"wide

Condition

uint16( 0 ) == 0x5A4D and 8 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 patterns in the rule 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: 8206a410-48b3-425f-9dcb-7a528673a37a

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE