YARA · CAPE Sandbox (CAPEv2)
CAPE_Netsupport
Detects NetSupport Manager RAT on disk or in memory
- Author
- YungBinary
- Date
- 2025-10-17
- Score / Quality
- 75 / 70
What this rule detects
Detects NetSupport Manager RAT on disk or in memory
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule CAPE_Netsupport : FILE
{
meta:
= "Detects NetSupport Manager RAT on disk or in memory"
= "YungBinary"
= "c517193e-bee3-59c4-9fbf-aad01ee13379"
= "2025-10-17"
= "2025-10-17"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/NetSupport.yar#L3-L16"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "d12e46d74ae0ba9f599d27dc2f55ff92a6648accbcd1a43cc3f1a9a2755e5fc7"
= 75
= 70
= "FILE"
= "NetSupport Payload"
strings:
$a1 = "NetSupport Manager" wide
$b1 = "NetSupport Remote Control" wide
$s1 = "Client Application" wide
$s2 = "NetSupport Ltd" wide
condition:
uint16( 0 ) == 0x5a4d and ( ( pe.imports ( "PCICL32.dll" , "_NSMClient32@8" ) ) or ( ( $a1 and $b1 ) or ( $s1 and $s2 ) ) )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a1 | text | "NetSupport Manager" | wide |
| $b1 | text | "NetSupport Remote Control" | wide |
| $s1 | text | "Client Application" | wide |
| $s2 | text | "NetSupport Ltd" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( ( pe.imports ( "PCICL32.dll" , "_NSMClient32@8" ) ) or ( ( $a1 and $b1 ) or ( $s1 and $s2 ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- Uses the pe module.
- Pattern $a1 must be present.
- Pattern $b1 must be present.
- Pattern $s1 must be present.
- Pattern $s2 must be present.
- Checks imported functions or libraries.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Licence & attribution
Author: YungBinary
Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence: GNU General Public License v3.0 (repository licence)
Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: c517193e-bee3-59c4-9fbf-aad01ee13379
Metadata
| cape_type | NetSupport Payload |
|---|
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2025-09-04
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2024-10-25
- GenericCAPE Sandbox (CAPEv2)· YungBinary· 2026-04-11
- GenericCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24