Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_NET_GUID_Njrat

Detects VB.NET red/black-team tools via typelibguid

Hack toolNjratSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Arnim Rupp (https://github.com/ruppde)
Date
2020-12-30
Modified
2025-08-15
Score / Quality
75 / 85

What this rule detects

Detects VB.NET red/black-team tools via typelibguid

Associated malware family: Njrat.

Targets: Windows PE.

It defines 6 patterns (6 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

hktl-net-guid-njrat.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_NET_GUID_Njrat : FILE
{
	meta:
		description = "Detects VB.NET red/black-team tools via typelibguid"
		author = "Arnim Rupp (https://github.com/ruppde)"
		id = "2140d69e-fb15-50a2-ba85-b7c8293003fb"
		date = "2020-12-30"
		modified = "2025-08-15"
		reference = "https://github.com/mwsrc/njRAT"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_github_net_redteam_tools_guids.yar#L3982-L4000"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "fc54c34e2d908e617781ffe8b4c5538304830cfec317ed2eab4157f72bbbf059"
		score = 75
		quality = 85
		tags = "FILE"
		license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"

	strings:
		$typelibguid0lo = "5a542c1b-2d36-4c31-b039-26a88d3967da" ascii wide
		$typelibguid1lo = "6b07082a-9256-42c3-999a-665e9de49f33" ascii wide
		$typelibguid2lo = "c0a9a70f-63e8-42ca-965d-73a1bc903e62" ascii wide
		$typelibguid3lo = "70bd11de-7da1-4a89-b459-8daacc930c20" ascii wide
		$typelibguid4lo = "fc790ee5-163a-40f9-a1e2-9863c290ff8b" ascii wide
		$typelibguid5lo = "cb3c28b2-2a4f-4114-941c-ce929fec94d3" ascii wide

	condition:
		( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$typelibguid0lotext"5a542c1b-2d36-4c31-b039-26a88d3967da"ascii wide
$typelibguid1lotext"6b07082a-9256-42c3-999a-665e9de49f33"ascii wide
$typelibguid2lotext"c0a9a70f-63e8-42ca-965d-73a1bc903e62"ascii wide
$typelibguid3lotext"70bd11de-7da1-4a89-b459-8daacc930c20"ascii wide
$typelibguid4lotext"fc790ee5-163a-40f9-a1e2-9863c290ff8b"ascii wide
$typelibguid5lotext"cb3c28b2-2a4f-4114-941c-ce929fec94d3"ascii wide

Condition

( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and any of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern 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: Arnim Rupp (https://github.com/ruppde)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (stated in the rule's own meta)

“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 2140d69e-fb15-50a2-ba85-b7c8293003fb

Tags:FILE

More Njrat rules