Skip to content

YARA · Trellix Advanced Research Center

TRELLIX_ARC_Ransom_Conti

Conti ransomware is havnig capability too scan and encrypt oover the network

MalwareContiTrellix Advanced Research CenterApache License 2.0Compiles with YARA-X (with warnings)
Author
McAfee ATR team
Date
2020-07-09
Modified
2020-10-12
Score / Quality
75 / 70

What this rule detects

Conti ransomware is havnig capability too scan and encrypt oover the network

Associated malware family: Conti.

Targets: Windows PE.

It defines 6 patterns (3 text, 3 hex, 0 regex). YARA modules used: pe.

YARA-X says: warning[deprecated_field]: field `number_of_sections` is deprecated

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

ransom-conti.yarApache License 2.0
import "pe"

rule TRELLIX_ARC_Ransom_Conti : RANSOMWARE FILE
{
	meta:
		description = "Conti ransomware is havnig capability too scan and encrypt oover the network"
		author = "McAfee ATR team"
		id = "8fc6943d-fb99-5957-929b-4c264d9fba2d"
		date = "2020-07-09"
		modified = "2020-10-12"
		reference = "https://www.carbonblack.com/blog/tau-threat-discovery-conti-ransomware/"
		source_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/ransomware/Ransom_Conti.yar#L3-L37"
		license_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
		hash = "eae876886f19ba384f55778634a35a1d975414e83f22f6111e3e792f706301fe"
		logic_hash = "953471c130309bbc712197d49d2072bd45838f49d2b25f86273a15c6baa87354"
		score = 75
		quality = 70
		tags = "RANSOMWARE, FILE"
		rule_version = "v1"
		malware_type = "ransomware"
		malware_family = "Ransom:W32/Conti"
		actor_type = "Cybercrime"
		actor_group = "Unknown"

	strings:
		$string1 = "HOW_TO_DECRYPTP" fullword ascii
		$string2 = "The system is LOCKED." fullword ascii
		$string3 = "The network is LOCKED." fullword ascii
		$code1 = { ff b4 b5 48 ff ff ff 53 ff 15 bc b0 41 00 85 c0 }
		$code2 = { 6a 02 6a 00 6a ff 68 ec fd ff ff ff 76 0c ff 15 }
		$code3 = { 56 8d 85 38 ff ff ff 50 ff d7 85 c0 0f 84 f2 01 }

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 300KB and pe.number_of_sections == 5 and ( pe.imphash ( ) == "30fe3f044289487cddc09bfb16ee1fde" or ( all of them and all of ( $code* ) ) )
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$string1text"HOW_TO_DECRYPTP"fullword ascii
$string2text"The system is LOCKED."fullword ascii
$string3text"The network is LOCKED."fullword ascii
$code1hex{ ff b4 b5 48 ff ff ff 53 ff 15 bc b0 41 00 85 c0 }
$code2hex{ 6a 02 6a 00 6a ff 68 ec fd ff ff ff 76 0c ff 15 }
$code3hex{ 56 8d 85 38 ff ff ff 50 ff d7 85 c0 0f 84 f2 01 }

Condition

uint16( 0 ) == 0x5a4d and filesize < 300KB and pe.number_of_sections == 5 and ( pe.imphash ( ) == "30fe3f044289487cddc09bfb16ee1fde" or ( all of them and all of ( $code* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 300KB (a cheap guard that skips large files).
  • All patterns in the rule must match.
  • All patterns in ( $code* ) must match.
  • Uses the pe module.
  • Checks the PE import hash (imphash).
  • Checks PE sections (names, count or properties).

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

  • eae876886f19ba384f55778634a35a1d975414e83f22f6111e3e792f706301fe

Licence & attribution

Author: McAfee ATR team

Source repository: Trellix Advanced Research Center @ 1919562a59

Licence: Apache License 2.0 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 8fc6943d-fb99-5957-929b-4c264d9fba2d

Metadata

rule_versionv1
malware_typeransomware
malware_familyRansom:W32/Conti
actor_typeCybercrime
actor_groupUnknown

Tags:RANSOMWAREFILE

More Conti rules