Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RMM_Pdqconnect_Agent

Detects PDQ Connect Agent. Review RMM Inventory

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

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:
		description = "Detects PDQ Connect Agent. Review RMM Inventory"
		author = "ditekSHen"
		id = "067e75a3-291b-500f-865d-8758eebe91e7"
		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#L200-L227"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "34d0b07925551d1b08b86aa226c59aba569b6548cfa00a86ce6b1f271e427662"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$api1text"/devices/register"ascii
$api2text"/devices/socket/websocket?device_id="ascii
$api3text"/devices/tasks"ascii
$api4text"/devices/auth-challenge"ascii
$api5text"/devices/receiver/Url"ascii
$s1text"sign_pdq.rs"ascii
$s2text"x-pdq-dateCredential=(.+?)/"ascii
$s3text"pdq-connect-agent"ascii
$s4text"PDQ Connect Agent"ascii
$s5text"PDQConnectAgent"ascii
$s6text"PDQConnectAgentsrc\\logger.rs"ascii
$s7text"-PDQ-Key-IdsUser-Agent"ascii
$s8text"\\PDQ\\PDQConnectAgent\\"ascii
$s9text"\\pdq_connect_agent.pdb"ascii
$s10text"task_ids[]PDQ rover"ascii
$s11text"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.

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: 067e75a3-291b-500f-865d-8758eebe91e7

Tags:FILE