Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Conti

Conti Ransomware

MalwareContiCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2020-10-19
Modified
2021-03-15
Score / Quality
75 / 70

What this rule detects

Conti Ransomware

Associated malware family: Conti.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

conti.yarGNU General Public License v3.0
rule CAPE_Conti : FILE
{
	meta:
		description = "Conti Ransomware"
		author = "kevoreilly"
		id = "c94aed07-0eaf-5b51-a81e-e1992543673a"
		date = "2020-10-19"
		modified = "2021-03-15"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Conti.yar#L1-L13"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "c9842f93d012d0189b9c6f10ad558b37ae66226bbb619ad677f6906ccaf0e848"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "Conti Payload"

	strings:
		$crypto1 = {8A 07 8D 7F 01 0F B6 C0 B9 ?? 00 00 00 2B C8 6B C1 ?? 99 F7 FE 8D [2] 99 F7 FE 88 ?? FF 83 EB 01 75 DD}
		$website1 = "https://contirecovery.info" ascii wide
		$website2 = "https://contirecovery.best" ascii wide

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

Strings (3 patterns)

IdentifierTypeValueModifiers
$crypto1hex{8A 07 8D 7F 01 0F B6 C0 B9 ?? 00 00 00 2B C8 6B C1 ?? 99 F7 FE 8D [2] 99 F7 FE 88 ?? FF 83 EB 01 75 DD}
$website1text"https://contirecovery.info"ascii wide
$website2text"https://contirecovery.best"ascii wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern 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: c94aed07-0eaf-5b51-a81e-e1992543673a

Metadata

cape_typeConti Payload

Tags:FILE

More Conti rules