Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_ENC_Diskcryptor

Detect DiskCryptor open encryption solution that offers encryption of all disk partitions

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-25
Score / Quality
75 / 75

What this rule detects

Detect DiskCryptor open encryption solution that offers encryption of all disk partitions

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-tool-enc-diskcryptor.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_ENC_Diskcryptor : FILE
{
	meta:
		description = "Detect DiskCryptor open encryption solution that offers encryption of all disk partitions"
		author = "ditekSHen"
		id = "22b25d5c-d67f-53ac-9ae8-2de077afdda9"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1209-L1232"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "7ef0bf3b11f7e4055908518ce5b6a49e04d7002ebc3396fd2da32b4e13cf68e0"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "\\DiskCryptor\\DCrypt\\" ascii
		$s1 = "Error getting %sbootloader configuration" fullword wide
		$s2 = "loader.iso" fullword wide
		$s3 = "Bootloader config for [%s]" fullword wide
		$s4 = "dc_get_mbr_config" fullword ascii
		$s5 = "dc_encrypt_iso_image" fullword ascii
		$s6 = "dc_start_re_encrypt" fullword ascii
		$s7 = "dc_start_encrypt" fullword ascii
		$s8 = "_w10_reflect_" ascii
		$d1 = "\\DosDevices\\dcrypt" fullword wide
		$d2 = "$dcsys$_fail_%x" fullword wide
		$d3 = "%s\\$DC_TRIM_%x$" fullword wide
		$d4 = "\\Device\\dcrypt" fullword wide
		$d5 = "%s\\$dcsys$" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or 4 of ( $s* ) or 3 of ( $d* ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$x1text"\\DiskCryptor\\DCrypt\\"ascii
$s1text"Error getting %sbootloader configuration"fullword wide
$s2text"loader.iso"fullword wide
$s3text"Bootloader config for [%s]"fullword wide
$s4text"dc_get_mbr_config"fullword ascii
$s5text"dc_encrypt_iso_image"fullword ascii
$s6text"dc_start_re_encrypt"fullword ascii
$s7text"dc_start_encrypt"fullword ascii
$s8text"_w10_reflect_"ascii
$d1text"\\DosDevices\\dcrypt"fullword wide
$d2text"$dcsys$_fail_%x"fullword wide
$d3text"%s\\$DC_TRIM_%x$"fullword wide
$d4text"\\Device\\dcrypt"fullword wide
$d5text"%s\\$dcsys$"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or 4 of ( $s* ) or 3 of ( $d* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $x* ) must match.
  • At least 2 patterns in ( $s* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $d* ) 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 22b25d5c-d67f-53ac-9ae8-2de077afdda9

Tags:FILE