This detection identifies adversary activity involving C#-based red and black team tools by analyzing unique TypeLibGUID signatures often associated with offensive security utilities. Proactively hunting for these artifacts in Azure Sentinel is critical to distinguish legitimate security operations from potential malicious tool usage that may mimic standard administrative behavior.
rule HKTL_NET_GUID_Minidump {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/3xpl01tc0d3r/Minidump"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "15c241aa-e73c-4b38-9489-9a344ac268a3" 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 “Detects C# Red/Black-Team Tools via TypelibGUID” rule, including suggested filters and exclusions:
Scheduled Enterprise Backup Jobs
typelibguid entries identical to those used by red team tools like Cobalt Strike’s Beacon or Mimikatz during their initialization phase.C:\Program Files\Veeam\Backup and Replication\Server\Veeam.Backup.Service.exe) combined with a whitelist of known benign typelibguid values associated with these vendors.Microsoft Endpoint Configuration Manager (SCCM) Agent Tasks
ccmexec.exe) frequently performs software inventory, compliance checks, and application deployments using C# scripts. When deploying new applications or running hardware inventories, the agent loads .NET libraries that trigger the same GUID signatures as black-team reconnaissance tools (e.g., BloodHound data collectors).ccmexec.exe and the command line contains keywords such as /SoftwareInventory, /ApplicationDeployment, or specific SCCM task sequence IDs.Automated Patch Management Scans (e.g., WSUS or Intune)