Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Manjusaka_Samples

Detects Manjusaka via protobuf struture names (Windows / Linux / implants / C2)

MalwareManjusakaSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
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

manjusaka-samples.yarDetection Rule License 1.1
rule SEKOIA_Manjusaka_Samples : FILE
{
	meta:
		description = "Detects Manjusaka via protobuf struture names (Windows / Linux / implants / C2)"
		author = "Sekoia.io"
		id = "7aa8edb3-2e67-4632-af68-5b65c9aefe39"
		date = "2022-08-04"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/manjusaka_samples.yar#L1-L41"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "58dcc406c87a8ec66c0904c4cf518cb38bca1aa9058196ce5d496f6269258200"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

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: 7aa8edb3-2e67-4632-af68-5b65c9aefe39

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Manjusaka rules