This rule identifies the execution of specialized .NET-based red and blue team tools by analyzing unique TypelibGUID signatures within process events. Proactive hunting for these indicators in Azure Sentinel is essential to distinguish legitimate security testing activities from potential adversary use of similar .NET frameworks for stealthy reconnaissance or post-exploitation operations.
rule HKTL_NET_GUID_Driver_Template {
meta:
description = "Detects .NET red/black-team tools via typelibguid"
reference = "https://github.com/FuzzySecurity/Driver-Template"
author = "Arnim Rupp"
date = "2021-01-21"
strings:
$typelibguid0 = "bdb79ad6-639f-4dc2-8b8a-cd9107da3d69" 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 1 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the rule “Detects .NET red/black-team tools via typelibguid,” along with suggested filters or exclusions:
Scenario: Automated Backup and Maintenance Scripts
typelibguid values that overlap with security tool signatures during scheduled maintenance windows.Veeam.Backup.Service.exe, commvault.cmd) and restrict detection to business hours or specific backup windows, excluding off-hours execution of these known services.Scenario: Endpoint Detection and Response (EDR) Self-Scanning
typelibguid signature when initializing a new session or updating its definition database.FalconSensorService.exe, MsMpEng.exe) or filter by Process Path to ensure only processes running from trusted vendor installation directories are analyzed.Scenario: Office 365/Teams Background Synchronization
typelibguid patterns.