Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RMM_Dwagentsvc

Detect DWAgent Remote Administration Tool service

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 service

Targets: Windows PE.

It defines 5 patterns (4 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-rmm-dwagentsvc.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RMM_Dwagentsvc : FILE
{
	meta:
		description = "Detect DWAgent Remote Administration Tool service"
		author = "ditekSHen"
		id = "5d124c20-a0f8-5e82-8bab-93a782a2a649"
		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#L484-L501"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "590d41d2e433a7a1bb373fbd0b0d47818a9867bee0399101881b05e83b586f6e"
		score = 75
		quality = 75
		tags = "FILE"
		clamav1 = "INDICATOR.Win.RMM.DWAgent-SVC"

	strings:
		$s1 = "\\native\\dwagupd.dll" wide
		$s2 = "\\native\\dwagsvc.exe\" run" wide
		$s3 = "CreateServiceW" fullword ascii
		$s4 = /dwagent\.(pid|start|stop)/ wide
		$s5 = "Check updating..." wide

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

Strings (5 patterns)

IdentifierTypeValueModifiers
$s1text"\\native\\dwagupd.dll"wide
$s2text"\\native\\dwagsvc.exe\" run"wide
$s3text"CreateServiceW"fullword ascii
$s4regex/dwagent\.(pid|start|stop)/wide
$s5text"Check updating..."wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 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: 5d124c20-a0f8-5e82-8bab-93a782a2a649

Metadata

clamav1INDICATOR.Win.RMM.DWAgent-SVC

Tags:FILE