This hunt targets adversaries leveraging C#-based Red and Black team tools that expose unique typelibguid identifiers to establish a baseline of legitimate tooling activity within the environment. Proactively hunting for these artifacts in Azure Sentinel is critical because it enables the SOC to distinguish between authorized security operations and potential adversary use of custom or modified C# utilities that may otherwise evade standard signature-based detection.
rule HKTL_NET_GUID_ESC {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/NetSPI/ESC"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "06260ce5-61f4-4b81-ad83-7d01c3b37921" ascii nocase wide
$typelibguid1 = "87fc7ede-4dae-4f00-ac77-9c40803e8248" 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 4 specific false positive scenarios for the rule “Detects C# Red/Black-Team Tools via TypelibGUID”, including suggested filters and exclusions:
Automated Patch Deployment via SCCM/Microsoft Endpoint Configuration Manager
ccmexec.exe) or the Application Enforcement service executes C#-based deployment packages. These tools often instantiate COM objects with specific TypelibGUIDs to manage software updates, which can mimic the behavior of red-team reconnaissance tools scanning for installed applications.ccmexec.exe, CcmExec.exe, or AppEnforce.exe AND the parent process is svchost.exe (specifically the AppVClient or Wuauserv service). Additionally, exclude known SCCM deployment package GUIDs found in the enterprise asset inventory.Scheduled Backup and Integrity Checks by Veeam or Commvault
PowerShell or custom .NET auditing scripts).VeeamAgent.exe, vbragent.exe, or simproxy.exe. Furthermore, filter for scheduled task triggers occurring during standard maintenance windows (e.g., 02:00–06:00 local time) where these backup jobs are known to run.**Internal IT Service Management (ITSM) and