YARA · SEKOIA.IO Community
SEKOIA_Apt_Agent_Racoon_Strings
Detects Agent Racoon used by CL-STA-0002
- Author
- Sekoia.io
- Date
- 2023-12-05
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Agent Racoon used by CL-STA-0002
Associated malware family: Agentracoon.
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-agent-racoon-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Agent_Racoon_Strings : FILE
{
meta:
= "Detects Agent Racoon used by CL-STA-0002"
= "Sekoia.io"
= "ec89f1db-0ba8-48c8-8c1a-c38c410f3e39"
= "2023-12-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_agent_racoon_strings.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "4e32606edffab0907e343ab2fef8642c0064d83c2933531619f9dee8957d2fe4"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "Command failed:" wide
$ = "Not uploaded:" wide
$ = "Not downloaded:" wide
$ = "xn--cc" wide
$ = "xn--ac" wide
$ = "xn--bc" wide
$ = "cmd.exe" wide
$ = ".xn--" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "Command failed:" | wide |
| $ | text | "Not uploaded:" | wide |
| $ | text | "Not downloaded:" | wide |
| $ | text | "xn--cc" | wide |
| $ | text | "xn--ac" | wide |
| $ | text | "xn--bc" | wide |
| $ | text | "cmd.exe" | wide |
| $ | text | ".xn--" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1MB (a cheap guard that skips large files).
- All 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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: ec89f1db-0ba8-48c8-8c1a-c38c410f3e39
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekShen· 2020-11-06
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11