Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Latrodectus_1

Latrodectus export selection

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

What this rule detects

Latrodectus export selection

Associated malware family: Latrodectus.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

latrodectus-1.yarGNU General Public License v3.0
rule CAPE_Latrodectus_1 : FILE
{
	meta:
		description = "Latrodectus export selection"
		author = "kevoreilly"
		id = "7c6f167a-6b76-5509-b164-306d1cd19b0f"
		date = "2024-02-26"
		modified = "2024-02-26"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/Latrodectus.yar#L1-L12"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "378d220bc863a527c2bca204daba36f10358e058df49ef088f8b1045604d9d05"
		logic_hash = "c2c9f23e287253d766425c05eb774f6e07bdcbabc259e04b723a1a87c8b91fbd"
		score = 75
		quality = 70
		tags = "FILE"
		cape_options = "export=$export"

	strings:
		$export = {48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 83 EC 30 4C 8B 05 [4] 33 D2 C7 40 [5] 88 50 ?? 49 63 40 3C 42 8B 8C 00 88 00 00 00 85 C9 0F 84}

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

Strings (1 patterns)

IdentifierTypeValueModifiers
$exporthex{48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 83 EC 30 4C 8B 05 [4] 33 D2 C7 40 [5] 88 50 ?? 49 63 40 3C 42 8B 8C 00 88 00 00 00 85 C9 0F 8 …

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

  • 378d220bc863a527c2bca204daba36f10358e058df49ef088f8b1045604d9d05

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: 7c6f167a-6b76-5509-b164-306d1cd19b0f

Metadata

cape_optionsexport=$export

Tags:FILE

More Latrodectus rules