This hunt targets adversaries leveraging C#-based red and black team tools that register unique TypeLib GUIDs to establish persistence or execute reconnaissance within the environment. Proactively hunting for these specific artifacts in Azure Sentinel is critical because their presence often indicates advanced tooling usage that may bypass standard signature-based detections, allowing analysts to identify both legitimate security operations and potential adversary activity early.
rule HKTL_NET_GUID_nopowershell {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/bitsadmin/nopowershell"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "555ad0ac-1fdb-4016-8257-170a74cb2f55" 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:
Scenario: Automated Patch Deployment via SCCM or Intune
TypelibGUID as common red-team tools like Cobalt Strike’s Beacon or Mimikatz when performing background service checks or registry modifications.ccmexec.exe (SCCM) or IntuneManagementExtension.exe, and the command line contains keywords related to “deployment,” “update,” or specific patch package IDs.Scenario: Scheduled Antivirus Definition Updates
TypelibGUID signatures identical to those used by black-team reconnaissance tools like SharpUp or PowerView during their initial execution phase.CsAgent.exe, Symantec Endpoint Protection Client.exe) running under the context of scheduled tasks with names containing “Definition Update,” “Scan,” or “Engine Sync.”Scenario: Internal IT Asset Inventory Scans
TypelibGUID events as red-team lateral movement