Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RMM_Dwagent_Screencapture

Detect DWAgent Remote Administration Tool Screen Capture Module

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2023-08-22
Modified
2024-10-04
Score / Quality
75 / 75

What this rule detects

Detect DWAgent Remote Administration Tool Screen Capture Module

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-rmm-dwagent-screencapture.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RMM_Dwagent_Screencapture : FILE
{
	meta:
		description = "Detect DWAgent Remote Administration Tool Screen Capture Module"
		author = "ditekSHen"
		id = "79586e5e-b7e5-5adc-97f3-0d29ad695079"
		date = "2023-08-22"
		modified = "2024-10-04"
		reference = "https://www.cisa.gov/sites/default/files/2023-08/JCDC_RMM_Cyber_Defense_Plan_TLP_CLEAR_508c_1.pdf"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_rmm.yar#L503-L528"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d3160fd4cce445aa6d2bc6c083893c7610ea5e72824fe9824ad853700f4d3874"
		score = 75
		quality = 75
		tags = "FILE"
		clamav1 = "INDICATOR.Win.RMM.DWAgent-ScreenCapture"

	strings:
		$s1 = "DWAgentLib" fullword wide
		$s2 = "PYTHONHOME" wide
		$s3 = "VirtualBox" wide
		$s4 = "VMware" wide
		$s5 = "ScreenCapture::prepareCursor#" ascii
		$s6 = "ScreenCapture::getMonitorCount#" ascii
		$s7 = "ScreenCapture::token" ascii
		$s8 = "dwascreencapture" ascii
		$s9 = "inputKeyboard CTRLALTCANC" ascii
		$s10 = "_Z34ScreenCaptureNativeMonitorEnumProc" ascii
		$s11 = "_Z41ScreenCaptureNativeCreateWindowThreadProc" ascii
		$s12 = "_ZN13ScreenCapture" ascii
		$s13 = "isUserInAdminGroup" ascii

	condition:
		uint16( 0 ) == 0x5a4d and 7 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"DWAgentLib"fullword wide
$s2text"PYTHONHOME"wide
$s3text"VirtualBox"wide
$s4text"VMware"wide
$s5text"ScreenCapture::prepareCursor#"ascii
$s6text"ScreenCapture::getMonitorCount#"ascii
$s7text"ScreenCapture::token"ascii
$s8text"dwascreencapture"ascii
$s9text"inputKeyboard CTRLALTCANC"ascii
$s10text"_Z34ScreenCaptureNativeMonitorEnumProc"ascii
$s11text"_Z41ScreenCaptureNativeCreateWindowThreadProc"ascii
$s12text"_ZN13ScreenCapture"ascii
$s13text"isUserInAdminGroup"ascii

Condition

uint16( 0 ) == 0x5a4d and 7 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 patterns 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: 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: 79586e5e-b7e5-5adc-97f3-0d29ad695079

Metadata

clamav1INDICATOR.Win.RMM.DWAgent-ScreenCapture

Tags:FILE