This hunt targets adversaries leveraging C#-based red and black team tools that register unique TypeLibGUIDs to establish persistence or execute reconnaissance within the environment. Proactively hunting for these specific GUID signatures in Azure Sentinel is critical because they often represent known security tooling that may be misused by attackers to blend into legitimate administrative activity, thereby evading standard anomaly detection.
rule HKTL_NET_GUID_Anti_Analysis {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/NYAN-x-CAT/Anti-Analysis"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "3092c8df-e9e4-4b75-b78e-f81a0058a635" 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:
Microsoft Endpoint Configuration Manager (SCCM) Client Updates
ccmexec.exe) frequently loads various C# assemblies during policy refresh cycles or software deployment tasks. These operations often instantiate standard .NET libraries that share the same TypelibGUID signatures as common red-team tools (e.g., Mimikatz or SharpUp) used for credential dumping and process enumeration.ccmexec.exe AND the file path contains \Microsoft Configuration Manager\. Additionally, filter out events occurring during standard maintenance windows defined in your IT calendar.Automated Backup Solutions (e.g., Veeam or Commvault)
Veeam.Backup.Agent.exe, CommServe.exe). Ensure the exclusion applies specifically to the TypelibGUID values commonly used by these vendors’ .NET frameworks.Scheduled PowerShell Health Checks via C# Wrappers
.exe) to monitor system health, disk usage, and service status. These tools may load the same TypeLib GUIDs used by red-team reconnaissance tools like SharpHound