Detection rules › Elastic

Execution of a DNGUard Protected Program

Time window
1m
Sequence by
process.entity_id
Source
github.com/elastic/protections-artifacts

Identifies when a program is loading DNGUard DLL (DNGuard HVM is a .NET obfuscator and code protector), this may indicate an attempt to bypass static detection by obfuscating malicious code.

MITRE ATT&CK coverage

Rule body

[rule]
description = """
Identifies when a program is loading DNGUard DLL (DNGuard HVM is a .NET obfuscator and code protector), this may
indicate an attempt to bypass static detection by obfuscating malicious code.
"""
id = "e691d379-6d01-43cc-9f1e-ab10df48a6bc"
license = "Elastic License v2"
name = "Execution of a DNGUard Protected Program"
os_list = ["windows"]
reference = ["https://attack.mitre.org/techniques/T1027/002/", "http://www.dnguard.net/products.php"]
version = "1.0.23"

query = '''
sequence by process.entity_id with maxspan=1m
 [process where event.action == "start" and
  (process.Ext.relative_file_creation_time <= 500 or process.Ext.relative_file_name_modify_time <= 500) and
  not process.executable : "?:\\Program Files (x86)\\Digiarty\\WinX MediaTrans\\MediaTrans.exe"]
  [library where
   (dll.name :"HVMRuntm.dll" or
    dll.hash.sha256 :"a0b11444c5913bc048c2f97b670cc801176df17565c48d6e7a30fef651ca8426" or
    dll.pe.imphash : "b2ff0f091ba14e9fe411060ab1560c66")]
'''

min_endpoint_version = "8.4.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1027"
name = "Obfuscated Files or Information"
reference = "https://attack.mitre.org/techniques/T1027/"
[[threat.technique.subtechnique]]
id = "T1027.002"
name = "Software Packing"
reference = "https://attack.mitre.org/techniques/T1027/002/"



[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"

[internal]
min_endpoint_version = "8.4.0"

Stages and Predicates

Ordered sequence: each step below must occur in order within 1m, correlated by process.entity_id.

Stage 1: process

[process where event.action == "start" and
  (process.Ext.relative_file_creation_time <= 500 or process.Ext.relative_file_name_modify_time <= 500) and
  not process.executable : "?:\\Program Files (x86)\\Digiarty\\WinX MediaTrans\\MediaTrans.exe"]

Stage 2: library

[library where
   (dll.name :"HVMRuntm.dll" or
    dll.hash.sha256 :"a0b11444c5913bc048c2f97b670cc801176df17565c48d6e7a30fef651ca8426" or
    dll.pe.imphash : "b2ff0f091ba14e9fe411060ab1560c66")]

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
process.executableeq?:\Program Files (x86)\Digiarty\WinX MediaTrans\MediaTrans.exeexcludes:process.executable field:"process.executable" value:"?:\Program Files (x86)\Digiarty\WinX MediaTrans\MediaTrans.exe"

Indicators

These rows show field, operator, and value matches.