This rule identifies potential adversary activity by detecting C#-based red and black team tools through their unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these specific tool identifiers allows the SOC team to distinguish between legitimate security operations and covert malicious reconnaissance or post-exploitation activities that often mimic standard administrative behavior.
rule HKTL_NET_GUID_VanillaRAT {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/DannyTheSloth/VanillaRAT"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "d0f2ee67-0a50-423d-bfe6-845da892a2db" ascii nocase wide
$typelibguid1 = "a593fcd2-c8ab-45f6-9aeb-8ab5e20ab402" 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 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the rule “Detects c# red/black-team tools via typelibguid,” along with suggested filters or exclusions:
Scenario: Automated CI/CD Pipeline Execution
SYSTEM, NetworkService) running on designated build server hostnames or within a specific subnet (e.g., 10.20.x.x).Scenario: Enterprise Endpoint Protection Scanning
C:\Program Files\Microsoft Defender\*, C:\ProgramData\CrowdStrike\*\falcon.sys) and filter out events where the parent process is a recognized EDR sensor service.Scenario: Scheduled PowerShell Maintenance Jobs