Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Lokibot

LokiBot Payload

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

What this rule detects

LokiBot Payload

Associated malware family: Lokibot.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

lokibot.yarGNU General Public License v3.0
rule CAPE_Lokibot : FILE
{
	meta:
		description = "LokiBot Payload"
		author = "kevoreilly"
		id = "8cdf69e2-ecac-5241-adba-c458cce0610f"
		date = "2022-02-01"
		modified = "2022-02-01"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/LokiBot.yar#L1-L12"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "a5b3d518371138740e913d2d6ce4fa22d3da5cea7e034c7d6b4b502e6bf44b06"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "LokiBot Payload"

	strings:
		$a1 = "DlRycq1tP2vSeaogj5bEUFzQiHT9dmKCn6uf7xsOY0hpwr43VINX8JGBAkLMZW"
		$a2 = "last_compatible_version"

	condition:
		uint16( 0 ) == 0x5A4D and ( all of ( $a* ) )
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$a1text"DlRycq1tP2vSeaogj5bEUFzQiHT9dmKCn6uf7xsOY0hpwr43VINX8JGBAkLMZW"
$a2text"last_compatible_version"

Condition

uint16( 0 ) == 0x5A4D and ( all of ( $a* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $a* ) 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: 8cdf69e2-ecac-5241-adba-c458cce0610f

Metadata

cape_typeLokiBot Payload

Tags:FILE