Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RMM_Dwagentlib

Detect DWAgent Remote Administration Tool library

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 library

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-rmm-dwagentlib.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RMM_Dwagentlib : FILE
{
	meta:
		description = "Detect DWAgent Remote Administration Tool library"
		author = "ditekSHen"
		id = "af0f9940-fbec-5775-9b74-bd73b55ec0ca"
		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#L463-L482"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "608dd9bc8cfcec5a671bee9456dccedace31d7ae37180387ac2408f79fd9f452"
		score = 75
		quality = 75
		tags = "FILE"
		clamav1 = "INDICATOR.Win.RMM.DWAgent-LIB"

	strings:
		$s1 = "DWAgentLib" fullword wide
		$s2 = "PYTHONHOME" fullword wide
		$s3 = "isTaskRunning" fullword ascii
		$s4 = "isUserInAdminGroup" fullword ascii
		$s5 = "setFilePermissionEveryone" fullword ascii
		$s6 = "startProcessInActiveConsole" fullword ascii
		$s7 = "taskKill" fullword ascii

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

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"DWAgentLib"fullword wide
$s2text"PYTHONHOME"fullword wide
$s3text"isTaskRunning"fullword ascii
$s4text"isUserInAdminGroup"fullword ascii
$s5text"setFilePermissionEveryone"fullword ascii
$s6text"startProcessInActiveConsole"fullword ascii
$s7text"taskKill"fullword ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: af0f9940-fbec-5775-9b74-bd73b55ec0ca

Metadata

clamav1INDICATOR.Win.RMM.DWAgent-LIB

Tags:FILE