YARA · ditekSHen detection
DITEKSHEN_INDICATOR_RMM_Dwagentlib
Detect DWAgent Remote Administration Tool library
- 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:
= "Detect DWAgent Remote Administration Tool library"
= "ditekSHen"
= "af0f9940-fbec-5775-9b74-bd73b55ec0ca"
= "2023-08-22"
= "2024-10-04"
= "https://www.cisa.gov/sites/default/files/2023-08/JCDC_RMM_Cyber_Defense_Plan_TLP_CLEAR_508c_1.pdf"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_rmm.yar#L463-L482"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "608dd9bc8cfcec5a671bee9456dccedace31d7ae37180387ac2408f79fd9f452"
= 75
= 75
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "DWAgentLib" | fullword wide |
| $s2 | text | "PYTHONHOME" | fullword wide |
| $s3 | text | "isTaskRunning" | fullword ascii |
| $s4 | text | "isUserInAdminGroup" | fullword ascii |
| $s5 | text | "setFilePermissionEveryone" | fullword ascii |
| $s6 | text | "startProcessInActiveConsole" | fullword ascii |
| $s7 | text | "taskKill" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and all of themIn 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.
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: af0f9940-fbec-5775-9b74-bd73b55ec0ca
Metadata
| clamav1 | INDICATOR.Win.RMM.DWAgent-LIB |
|---|
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