Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Malware_Venom_Agent_Strings

Detects Venom agent strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-08-29
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects Venom agent strings

Targets: Windows PE, Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-venom-agent-strings.yarDetection Rule License 1.1
rule SEKOIA_Malware_Venom_Agent_Strings : FILE
{
	meta:
		description = "Detects Venom agent strings"
		author = "Sekoia.io"
		id = "87633510-8b39-4eb1-b95b-4ebff21f3bba"
		date = "2022-08-29"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_venom_agent_strings.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "66dd1cb7bd66fcf78c8eaad8aaab7cfd624b898b7b479e571bacf5c4e48edac9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "dispather.handleDownloadCmd"
		$ = "dispather.handleUploadCmd"
		$ = "dispather.handleShellCmd"
		$ = "dispather.handleSocks5Cmd"
		$ = "dispather.handleLForwardCmd"
		$ = "dispather.localLForwardServer"
		$ = "dispather.handleRForwardCmd"
		$ = "dispather.AgentHandShake"
		$ = "dispather.AgentParseTarget"
		$ = "dispather.PipeWhenClose"
		$ = "dispather.handleSshConnectCmd"
		$ = "node.(*NetworkTopology).InitNetworkMap"
		$ = "node.CopyNet2Node"
		$ = "node.(*Node).CommandHandler.func1"
		$ = "node.(*Buffer).WriteLowLevelPacket"
		$ = "protocol.(*Packet).ResolveDat"
		$ = "netio.InitTCP.func2"

	condition:
		( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 10MB and 6 of them
}

Strings (17 patterns)

IdentifierTypeValueModifiers
$text"dispather.handleDownloadCmd"
$text"dispather.handleUploadCmd"
$text"dispather.handleShellCmd"
$text"dispather.handleSocks5Cmd"
$text"dispather.handleLForwardCmd"
$text"dispather.localLForwardServer"
$text"dispather.handleRForwardCmd"
$text"dispather.AgentHandShake"
$text"dispather.AgentParseTarget"
$text"dispather.PipeWhenClose"
$text"dispather.handleSshConnectCmd"
$text"node.(*NetworkTopology).InitNetworkMap"
$text"node.CopyNet2Node"
$text"node.(*Node).CommandHandler.func1"
$text"node.(*Buffer).WriteLowLevelPacket"
$text"protocol.(*Packet).ResolveDat"
$text"netio.InitTCP.func2"

Condition

( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 10MB and 6 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.
  • The file must be smaller than 10MB (a cheap guard that skips large files).
  • At least 6 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: 87633510-8b39-4eb1-b95b-4ebff21f3bba

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE