YARA · ditekSHen detection
DITEKSHEN_INDICATOR_RMM_Pdqconnect_Agent
Detects PDQ Connect Agent. Review RMM Inventory
- Author
- ditekSHen
- Date
- 2023-08-22
- Modified
- 2024-10-04
- Score / Quality
- 75 / 75
What this rule detects
Detects PDQ Connect Agent. Review RMM Inventory
Targets: Windows PE.
It defines 16 patterns (16 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
indicator-rmm-pdqconnect-agent.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RMM_Pdqconnect_Agent : FILE
{
meta:
= "Detects PDQ Connect Agent. Review RMM Inventory"
= "ditekSHen"
= "067e75a3-291b-500f-865d-8758eebe91e7"
= "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#L200-L227"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "34d0b07925551d1b08b86aa226c59aba569b6548cfa00a86ce6b1f271e427662"
= 75
= 75
= "FILE"
strings:
$api1 = "/devices/register" ascii
$api2 = "/devices/socket/websocket?device_id=" ascii
$api3 = "/devices/tasks" ascii
$api4 = "/devices/auth-challenge" ascii
$api5 = "/devices/receiver/Url" ascii
$s1 = "sign_pdq.rs" ascii
$s2 = "x-pdq-dateCredential=(.+?)/" ascii
$s3 = "pdq-connect-agent" ascii
$s4 = "PDQ Connect Agent" ascii
$s5 = "PDQConnectAgent" ascii
$s6 = "PDQConnectAgentsrc\\logger.rs" ascii
$s7 = "-PDQ-Key-IdsUser-Agent" ascii
$s8 = "\\PDQ\\PDQConnectAgent\\" ascii
$s9 = "\\pdq_connect_agent.pdb" ascii
$s10 = "task_ids[]PDQ rover" ascii
$s11 = "https://app.pdq.com/" ascii
condition:
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 ) and ( 4 of ( $s* ) or ( 3 of ( $api* ) and 1 of ( $s* ) ) )
}
Strings (16 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $api1 | text | "/devices/register" | ascii |
| $api2 | text | "/devices/socket/websocket?device_id=" | ascii |
| $api3 | text | "/devices/tasks" | ascii |
| $api4 | text | "/devices/auth-challenge" | ascii |
| $api5 | text | "/devices/receiver/Url" | ascii |
| $s1 | text | "sign_pdq.rs" | ascii |
| $s2 | text | "x-pdq-dateCredential=(.+?)/" | ascii |
| $s3 | text | "pdq-connect-agent" | ascii |
| $s4 | text | "PDQ Connect Agent" | ascii |
| $s5 | text | "PDQConnectAgent" | ascii |
| $s6 | text | "PDQConnectAgentsrc\\logger.rs" | ascii |
| $s7 | text | "-PDQ-Key-IdsUser-Agent" | ascii |
| $s8 | text | "\\PDQ\\PDQConnectAgent\\" | ascii |
| $s9 | text | "\\pdq_connect_agent.pdb" | ascii |
| $s10 | text | "task_ids[]PDQ rover" | ascii |
| $s11 | text | "https://app.pdq.com/" | ascii |
Condition
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 ) and ( 4 of ( $s* ) or ( 3 of ( $api* ) and 1 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in ( $s* ) must match.
- At least 3 patterns in ( $api* ) must match.
- At least 1 patterns in ( $s* ) 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: 067e75a3-291b-500f-865d-8758eebe91e7
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