Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Cargobayloader

CargoBay Loader

MalwareCargobayCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2023-02-20
Score / Quality
75 / 70

What this rule detects

CargoBay Loader

Associated malware family: Cargobay.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

cargobayloader.yarGNU General Public License v3.0
rule CAPE_Cargobayloader : FILE
{
	meta:
		description = "CargoBay Loader"
		author = "kevoreilly"
		id = "5b347863-0bea-55d2-aaf3-b3d6e604be89"
		date = "2023-02-20"
		modified = "2023-02-20"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/CargoBayLoader.yar#L1-L13"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "75e975031371741498c5ba310882258c23b39310bd258239277708382bdbee9c"
		logic_hash = "1d5c4ca79f97e1fac358189a8c6530be12506974fc2fb42f63b0b621536a45c9"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "CargoBay Loader"

	strings:
		$jmp1 = {40 42 0F 00 0F 82 [2] 00 00 48 8D 15 [4] BF 04 00 00 00 41 B8 04 00 00 00 4C 8D [3] 4C 89 F1 E8}
		$jmp2 = {84 DB 0F 85 [2] 00 00 48 8D 15 [4] 41 BE 03 00 00 00 41 B8 03 00 00 00 4C 8D 7C [2] 4C 89 F9 E8}

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

Strings (2 patterns)

IdentifierTypeValueModifiers
$jmp1hex{40 42 0F 00 0F 82 [2] 00 00 48 8D 15 [4] BF 04 00 00 00 41 B8 04 00 00 00 4C 8D [3] 4C 89 F1 E8}
$jmp2hex{84 DB 0F 85 [2] 00 00 48 8D 15 [4] 41 BE 03 00 00 00 41 B8 03 00 00 00 4C 8D 7C [2] 4C 89 F9 E8}

Condition

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

In plain words (Heuristic)

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

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 75e975031371741498c5ba310882258c23b39310bd258239277708382bdbee9c

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: 5b347863-0bea-55d2-aaf3-b3d6e604be89

Metadata

cape_typeCargoBay Loader

Tags:FILE

  • MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-02-26
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-03-07
  • MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-03-07