YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_ENC_Diskcryptor
Detect DiskCryptor open encryption solution that offers encryption of all disk partitions
- 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
rule DITEKSHEN_INDICATOR_TOOL_ENC_Diskcryptor : FILE
{
meta:
= "Detect DiskCryptor open encryption solution that offers encryption of all disk partitions"
= "ditekSHen"
= "22b25d5c-d67f-53ac-9ae8-2de077afdda9"
= "2020-11-06"
= "2024-09-25"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1209-L1232"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "7ef0bf3b11f7e4055908518ce5b6a49e04d7002ebc3396fd2da32b4e13cf68e0"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "\\DiskCryptor\\DCrypt\\" | ascii |
| $s1 | text | "Error getting %sbootloader configuration" | fullword wide |
| $s2 | text | "loader.iso" | fullword wide |
| $s3 | text | "Bootloader config for [%s]" | fullword wide |
| $s4 | text | "dc_get_mbr_config" | fullword ascii |
| $s5 | text | "dc_encrypt_iso_image" | fullword ascii |
| $s6 | text | "dc_start_re_encrypt" | fullword ascii |
| $s7 | text | "dc_start_encrypt" | fullword ascii |
| $s8 | text | "_w10_reflect_" | ascii |
| $d1 | text | "\\DosDevices\\dcrypt" | fullword wide |
| $d2 | text | "$dcsys$_fail_%x" | fullword wide |
| $d3 | text | "%s\\$DC_TRIM_%x$" | fullword wide |
| $d4 | text | "\\Device\\dcrypt" | fullword wide |
| $d5 | text | "%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.
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).
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
Related rules
- Suspicious / huntingditekSHen detection· ditekSHen· 2023-08-22
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21