Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Pik23

PikaBot Payload February 2023

MalwarePikabotCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2023-02-13
Modified
2024-03-13
Score / Quality
75 / 70

What this rule detects

PikaBot Payload February 2023

Associated malware family: Pikabot.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

pik23.yarGNU General Public License v3.0
rule CAPE_Pik23 : FILE
{
	meta:
		description = "PikaBot Payload February 2023"
		author = "kevoreilly"
		id = "fc804c63-fc6c-5b26-92b1-aa5d2fbc4917"
		date = "2023-02-13"
		modified = "2024-03-13"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/PikaBot.yar#L30-L44"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "59f42ecde152f78731e54ea27e761bba748c9309a6ad1c2fd17f0e8b90f8aed1"
		logic_hash = "71a71df2f2a075294941c54eed06cafaaa4d3294e45b3a0098c1cffddd0438bc"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "PikaBot Payload"

	strings:
		$rdtsc = {89 55 FC 89 45 F8 0F 31 89 55 F4 89 45 FC 33 C0 B8 05 00 00 00 C1 E8 02 2B C3 3B C1 0F 31 89 55 F0 89 45 F8 8B 44 8D}
		$int2d = {B8 00 00 00 00 CD 2D 90 C3 CC CC CC CC CC CC CC}
		$subsys = {64 A1 30 00 00 00 8B 40 18 C3}
		$rijndael = {EB 0F 0F B6 04 3? FE C? 8A 80 [4] 88 04 3? 0F B6 [3] 7C EA 5? 5? C9 C3}

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

Strings (4 patterns)

IdentifierTypeValueModifiers
$rdtschex{89 55 FC 89 45 F8 0F 31 89 55 F4 89 45 FC 33 C0 B8 05 00 00 00 C1 E8 02 2B C3 3B C1 0F 31 89 55 F0 89 45 F8 8B 44 8D}
$int2dhex{B8 00 00 00 00 CD 2D 90 C3 CC CC CC CC CC CC CC}
$subsyshex{64 A1 30 00 00 00 8B 40 18 C3}
$rijndaelhex{EB 0F 0F B6 04 3? FE C? 8A 80 [4] 88 04 3? 0F B6 [3] 7C EA 5? 5? C9 C3}

Condition

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

In plain words (Heuristic)

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

  • 59f42ecde152f78731e54ea27e761bba748c9309a6ad1c2fd17f0e8b90f8aed1

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: fc804c63-fc6c-5b26-92b1-aa5d2fbc4917

Metadata

cape_typePikaBot Payload

Tags:FILE

More Pikabot rules