Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RMM_Connectwise_Screenconnect

Detects ConnectWise Control (formerly ScreenConnect). 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 ConnectWise Control (formerly ScreenConnect). Review RMM Inventory

Targets: Windows PE.

It defines 9 patterns (8 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-rmm-connectwise-screenconnect.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RMM_Connectwise_Screenconnect : FILE
{
	meta:
		description = "Detects ConnectWise Control (formerly ScreenConnect). Review RMM Inventory"
		author = "ditekSHen"
		id = "d752b7e4-b595-56cb-97f1-a60e73160e5a"
		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#L62-L83"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "43003f97c33c631a2806ce2b82b2367d2452ceb21b0267b5dfe78b350b66924a"
		score = 75
		quality = 75
		tags = "FILE"
		clamav1 = "INDICATOR.Win.RMM.ConnectWise-ScreenConnect"

	strings:
		$s1 = "FILESYSCREENCONNECT.CORE, VERSION=" wide
		$s2 = "feedback.screenconnect.com/Feedback.axd" wide
		$s3 = /ScreenConnect (Software|Client)/ wide
		$s4 = "ScreenConnect.InstallerActions!ScreenConnect." wide
		$s5 = "\\\\.\\Pipe\\TerminalServer\\SystemExecSrvr\\" wide
		$s6 = "\\jmorgan\\Source\\cwcontrol\\Custom\\DotNetRunner\\" wide
		$s7 = "ScreenConnect." ascii
		$s8 = "\\ScreenConnect.Core.pdb" ascii
		$s9 = "relay.screenconnect.com" ascii

	condition:
		( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 ) and 3 of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"FILESYSCREENCONNECT.CORE, VERSION="wide
$s2text"feedback.screenconnect.com/Feedback.axd"wide
$s3regex/ScreenConnect (Software|Client)/wide
$s4text"ScreenConnect.InstallerActions!ScreenConnect."wide
$s5text"\\\\.\\Pipe\\TerminalServer\\SystemExecSrvr\\"wide
$s6text"\\jmorgan\\Source\\cwcontrol\\Custom\\DotNetRunner\\"wide
$s7text"ScreenConnect."ascii
$s8text"\\ScreenConnect.Core.pdb"ascii
$s9text"relay.screenconnect.com"ascii

Condition

( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 ) and 3 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 3 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: d752b7e4-b595-56cb-97f1-a60e73160e5a

Metadata

clamav1INDICATOR.Win.RMM.ConnectWise-ScreenConnect

Tags:FILE