YARA · SEKOIA.IO Community
SEKOIA_Manjusaka_Samples
Detects Manjusaka via protobuf struture names (Windows / Linux / implants / C2)
- Author
- Sekoia.io
- Date
- 2022-08-04
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detects Manjusaka via protobuf struture names (Windows / Linux / implants / C2)
Associated malware family: Manjusaka.
Targets: Windows PE, Linux ELF.
It defines 26 patterns (26 text, 0 hex, 0 regex).
YARA-X says: warning[duplicate_pattern_value]: duplicate pattern value
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Manjusaka_Samples : FILE
{
meta:
= "Detects Manjusaka via protobuf struture names (Windows / Linux / implants / C2)"
= "Sekoia.io"
= "7aa8edb3-2e67-4632-af68-5b65c9aefe39"
= "2022-08-04"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/manjusaka_samples.yar#L1-L41"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "58dcc406c87a8ec66c0904c4cf518cb38bca1aa9058196ce5d496f6269258200"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = ".protos.AgentStatusR" ascii wide
$ = ".protos.AgentsR" ascii wide
$ = ".protos.FileActionR" ascii wide
$ = ".protos.FileEntryR" ascii wide
$ = ".protos.HttpFileActionR" ascii wide
$ = ".protos.HttpFileEntryR" ascii wide
$ = ".protos.PassResultR" ascii wide
$ = ".protos.PortResultR" ascii wide
$ = ".protos.PortResultR" ascii wide
$ = ".protos.PortResultR" ascii wide
$ = ".protos.ConfigH" ascii wide
$ = ".protos.AgentUpdateH" ascii wide
$ = ".protos.PluginExecH" ascii wide
$ = ".protos.PluginLoadH" ascii wide
$ = ".protos.ReqCwdH" ascii wide
$ = ".protos.ReqCmdH" ascii wide
$ = ".protos.ReqListFileH" ascii wide
$ = ".protos.ReqCatFileH" ascii wide
$ = ".protos.ReqNetStatH" ascii wide
$ = ".protos.ReqTaskListH" ascii wide
$ = ".protos.ReqScreenH" ascii wide
$ = ".protos.FileEventH" ascii wide
$ = ".protos.HttpFileEventH" ascii wide
$ = ".protos.PassGetEventH" ascii wide
$ = ".protos.FileGetEventH" ascii wide
$ = ".protos.AgentEventR" ascii wide
condition:
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and 15 of them
}
Strings (26 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | ".protos.AgentStatusR" | ascii wide |
| $ | text | ".protos.AgentsR" | ascii wide |
| $ | text | ".protos.FileActionR" | ascii wide |
| $ | text | ".protos.FileEntryR" | ascii wide |
| $ | text | ".protos.HttpFileActionR" | ascii wide |
| $ | text | ".protos.HttpFileEntryR" | ascii wide |
| $ | text | ".protos.PassResultR" | ascii wide |
| $ | text | ".protos.PortResultR" | ascii wide |
| $ | text | ".protos.PortResultR" | ascii wide |
| $ | text | ".protos.PortResultR" | ascii wide |
| $ | text | ".protos.ConfigH" | ascii wide |
| $ | text | ".protos.AgentUpdateH" | ascii wide |
| $ | text | ".protos.PluginExecH" | ascii wide |
| $ | text | ".protos.PluginLoadH" | ascii wide |
| $ | text | ".protos.ReqCwdH" | ascii wide |
| $ | text | ".protos.ReqCmdH" | ascii wide |
| $ | text | ".protos.ReqListFileH" | ascii wide |
| $ | text | ".protos.ReqCatFileH" | ascii wide |
| $ | text | ".protos.ReqNetStatH" | ascii wide |
| $ | text | ".protos.ReqTaskListH" | ascii wide |
| $ | text | ".protos.ReqScreenH" | ascii wide |
| $ | text | ".protos.FileEventH" | ascii wide |
| $ | text | ".protos.HttpFileEventH" | ascii wide |
| $ | text | ".protos.PassGetEventH" | ascii wide |
| $ | text | ".protos.FileGetEventH" | ascii wide |
| $ | text | ".protos.AgentEventR" | ascii wide |
Condition
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and 15 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must start with the ELF header — a Linux/Unix executable.
- At least 15 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.
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: 7aa8edb3-2e67-4632-af68-5b65c9aefe39
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareAvast / Gen Digital IOC· Gen Threat Labs· 2022-08-19
- MalwareAvast / Gen Digital IOC· Gen Threat Labs· 2022-08-19
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareAvast / Gen Digital IOC· Gen Threat Labs· 2022-08-19
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23