Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Socks5Systemz

Socks5Systemz Payload

MalwareSocks5 SystemzCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2024-05-22
Modified
2025-05-23
Score / Quality
75 / 70

What this rule detects

Socks5Systemz Payload

Associated malware family: Socks5 Systemz.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

socks5systemz.yarGNU General Public License v3.0
rule CAPE_Socks5Systemz : FILE
{
	meta:
		description = "Socks5Systemz Payload"
		author = "kevoreilly"
		id = "ef14953a-2b48-54f4-8d15-c07c7459103e"
		date = "2024-05-22"
		modified = "2025-05-23"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Socks5Systemz.yar#L1-L19"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "7e324bacd1ea57585435b6a5a4c93bda63ca146c100f2361a1c5530b87668299"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "Socks5Systemz Payload"
		packed = "9b997d0de3fe83091726919a0dc653e22f8f8b20b1bb7d0b8485652e88396f29"

	strings:
		$chunk1 = {0F B6 84 8A [4] E9 [3] (00|FF)}
		$chunk2 = {0F B6 04 8D [4] E9 [3] (00|FF)}
		$chunk3 = {66 0F 6F 05 [4] E9 [3] (00|FF)}
		$chunk4 = {F0 0F B1 95 [4] E9 [3] (00|FF)}
		$chunk5 = {83 FA 04 E9 [3] (00|FF)}
		$chunk6 = {8A 04 8D [4] E9 [3] (00|FF)}
		$chunk7 = {83 C4 04 83 C4 04 E9}
		$chunk8 = {83 C2 04 87 14 24 5C E9}

	condition:
		uint16( 0 ) == 0x5A4D and 5 of them
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$chunk1hex{0F B6 84 8A [4] E9 [3] (00|FF)}
$chunk2hex{0F B6 04 8D [4] E9 [3] (00|FF)}
$chunk3hex{66 0F 6F 05 [4] E9 [3] (00|FF)}
$chunk4hex{F0 0F B1 95 [4] E9 [3] (00|FF)}
$chunk5hex{83 FA 04 E9 [3] (00|FF)}
$chunk6hex{8A 04 8D [4] E9 [3] (00|FF)}
$chunk7hex{83 C4 04 83 C4 04 E9}
$chunk8hex{83 C2 04 87 14 24 5C E9}

Condition

uint16( 0 ) == 0x5A4D and 5 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 5 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: kevoreilly

Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licence: GNU General Public License v3.0 (repository licence)

Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: ef14953a-2b48-54f4-8d15-c07c7459103e

Metadata

cape_typeSocks5Systemz Payload
packed9b997d0de3fe83091726919a0dc653e22f8f8b20b1bb7d0b8485652e88396f29

Tags:FILE