YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Agentracoon
Detects AgentRacoon. Not Raccoon
- 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:
= "Detects AgentRacoon. Not Raccoon"
= "ditekShen"
= "cc31bd71-da96-5a3d-b2f1-40f9745d8d46"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11327-L11343"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "7ed17a1bc161855f2bdc432952086f3b86b58ae9ea6c0d541544f4b63a8e08e8"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "UdpClient" | fullword ascii |
| $s2 | text | "IPEndPoint" | fullword ascii |
| $s3 | text | "get_Client" | fullword ascii |
| $s4 | text | "set_ReceiveTimeout" | fullword ascii |
| $s5 | text | "Command failed:" | wide |
| $s6 | text | "uploaded" | wide |
| $s7 | text | "downloaded" | wide |
| $s8 | text | ".telemetry." | wide |
| $s9 | text | "xn--" | wide |
Condition
uint16( 0 ) == 0x5a4d and 7 of themIn 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.
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).
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
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-12-05
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06