This hypothesis posits that adversaries are leveraging C#-based red and black team tools identifiable by unique TypeLibGUID signatures to establish persistence or conduct reconnaissance within the environment. Proactive hunting for these specific GUIDs in Azure Sentinel is critical because low-severity detections often indicate early-stage tool deployment that could evolve into significant threats if not correlated with broader behavioral anomalies.
rule HKTL_NET_GUID_SyscallPOC {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/SolomonSklash/SyscallPOC"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "1e54637b-c887-42a9-af6a-b4bd4e28cda9" ascii nocase wide
$typelibguid1 = "198d5599-d9fc-4a74-87f4-5077318232ad" 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 “Detects C# Red/Black-Team Tools via TypelibGUID” rule in an enterprise environment:
Automated Patch Management Deployments
TypelibGUIDs that overlap with known Red/Blue team reconnaissance libraries during routine inventory scans.NT SERVICE\CCMExec) and restrict the rule to only trigger if the parent process is not a known deployment orchestrator like ccmexec.exe or ivanti_agent_service.exe.Scheduled Software Asset Inventory Jobs
TypelibGUIDs identical to those used by security assessment frameworks, generating alerts during the standard maintenance window (e.g., 02:00–04:00 UTC).ParentProcessName matches known asset discovery tools (e.g., LansweeperAgent.exe, AssetDiscoveryService.exe).Enterprise Application Deployment & Configuration