Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Agentracoon

Detects AgentRacoon. Not Raccoon

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

What this rule detects

Detects AgentRacoon. Not Raccoon

Associated malware family: Agentracoon.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-agentracoon.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Agentracoon : FILE
{
	meta:
		description = "Detects AgentRacoon. Not Raccoon"
		author = "ditekShen"
		id = "cc31bd71-da96-5a3d-b2f1-40f9745d8d46"
		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#L11327-L11343"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "7ed17a1bc161855f2bdc432952086f3b86b58ae9ea6c0d541544f4b63a8e08e8"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "UdpClient" fullword ascii
		$s2 = "IPEndPoint" fullword ascii
		$s3 = "get_Client" fullword ascii
		$s4 = "set_ReceiveTimeout" fullword ascii
		$s5 = "Command failed:" wide
		$s6 = "uploaded" wide
		$s7 = "downloaded" wide
		$s8 = ".telemetry." wide
		$s9 = "xn--" wide

	condition:
		uint16( 0 ) == 0x5a4d and 7 of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"UdpClient"fullword ascii
$s2text"IPEndPoint"fullword ascii
$s3text"get_Client"fullword ascii
$s4text"set_ReceiveTimeout"fullword ascii
$s5text"Command failed:"wide
$s6text"uploaded"wide
$s7text"downloaded"wide
$s8text".telemetry."wide
$s9text"xn--"wide

Condition

uint16( 0 ) == 0x5a4d and 7 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 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: 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: cc31bd71-da96-5a3d-b2f1-40f9745d8d46

Tags:FILE