This rule identifies potential adversary activity by detecting specific TypelibGUID signatures associated with common VB.NET tools used in both offensive and defensive operations within Azure Sentinel. Proactive hunting for these indicators is essential to distinguish legitimate administrative tooling from malicious reconnaissance or post-exploitation activities that leverage standard .NET frameworks to evade signature-based detection.
rule HKTL_NET_GUID_njRAT {
meta:
description = "Detects VB.NET red/black-team tools via typelibguid"
reference = "https://github.com/mwsrc/njRAT"
author = "Arnim Rupp"
date = "2020-12-30"
strings:
$typelibguid0 = "5a542c1b-2d36-4c31-b039-26a88d3967da" ascii nocase wide
$typelibguid1 = "6b07082a-9256-42c3-999a-665e9de49f33" ascii nocase wide
$typelibguid2 = "c0a9a70f-63e8-42ca-965d-73a1bc903e62" ascii nocase wide
$typelibguid3 = "70bd11de-7da1-4a89-b459-8daacc930c20" ascii nocase wide
$typelibguid4 = "fc790ee5-163a-40f9-a1e2-9863c290ff8b" ascii nocase wide
$typelibguid5 = "cb3c28b2-2a4f-4114-941c-ce929fec94d3" ascii nocase wide
condition:
(uint16(0) == 0x5A4D and uint32(uint32(0x3C)) == 0x00004550) and any of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 6 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the “Detects VB.NET red/black-team tools via typelibguid” rule, including suggested filters and exclusions:
Scenario: Legitimate deployment of Microsoft Visual Studio or .NET SDK on developer workstations.
ProcessName matches devenv.exe, msbuild.exe, or dotnet.exe running under user accounts within the “Developers” AD group, specifically if the parent process is a known installer (e.g., msiexec.exe).Scenario: Scheduled backup jobs utilizing VB.NET-based agents.
ProcessPath containing specific backup vendor directories (e.g., C:\Program Files\Veeam\Backup and Replication\Agent) or exclude events occurring during the defined maintenance window (e.g., 02:00–04:00 local time).Scenario: Execution of internal administrative reporting tools.