This hunt targets adversaries executing C#-based red or black team reconnaissance tools by identifying unique TypeLibGUID artifacts often overlooked in standard logging. Proactively hunting for these indicators within Azure Sentinel is critical to distinguish legitimate security testing from potential lateral movement or early-stage malware activity that mimics benign tooling behavior.
rule HKTL_NET_GUID_Carbuncle {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/checkymander/Carbuncle"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "3f239b73-88ae-413b-b8c8-c01a35a0d92e" 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, tailored for an enterprise environment:
Automated Patch Management Deployments (Microsoft Endpoint Configuration Manager / SCCM)
ccmexec.exe) frequently invokes C#-based deployment scripts or custom extensions to install security updates. These processes often load specific TypeLib GUIDs associated with internal management tools that mimic the signature of Red/Blue team reconnaissance utilities, particularly when scanning for compliance or inventory collection.ccmexec.exe and the command line contains keywords like /package, /install, or specific SCCM site codes (e.g., SITENAME=ABC).Scheduled Office 365 Compliance & Data Loss Prevention Scans
Microsoft.Compliance.Engine.exe or OneDriveStandaloneUpdater.exe running during off-peak maintenance windows (e.g., 02:00–04:00 local time) with a known user context of SYSTEM or a dedicated service account.Enterprise Antivirus Real-Time Protection Scans (CrowdStrike / SentinelOne)