This hypothesis posits that adversaries leverage C#-based red and black team tools with unique TypeLibGUID signatures to establish persistence or conduct reconnaissance within the environment. Proactive hunting for these specific identifiers in Azure Sentinel is essential to distinguish legitimate security tooling from malicious activity, ensuring early detection of potential lateral movement or command-and-control operations that may otherwise blend into routine administrative noise.
rule HKTL_NET_GUID_ExploitRemotingService {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/tyranid/ExploitRemotingService"
author = "Arnim Rupp"
date = "2020-12-21"
strings:
$typelibguid0 = "fd17ae38-2fd3-405f-b85b-e9d14e8e8261" ascii nocase wide
$typelibguid1 = "1850b9bb-4a23-4d74-96b8-58f274674566" ascii nocase wide
$typelibguid2 = "297cbca1-efa3-4f2a-8d5f-e1faf02ba587" 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 3 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the “Detects C# Red/Black-Team Tools via TypelibGUID” rule, along with suggested filters and exclusions:
Scenario: Automated Backup Agent Execution
ProcessName matches VeeamAgent.exe, rubrik-agent.exe, or RubrikService.exe running under the SYSTEM account during defined maintenance windows (e.g., 02:00–04:00).Scenario: Microsoft Endpoint Configuration Manager (SCCM) Client Updates
ccmexec.exe and WmiPrvSE.exe processes initiated by the NT AUTHORITY\SYSTEM account, specifically filtering out TypeLib GUIDs associated with Microsoft’s internal management libraries (e.g., Microsoft.ConfigurationManagement).Scenario: Internal DevOps CI/CD Pipeline Agents