This hunt targets adversaries leveraging C#-based Red and Black team tools that expose unique TypeLibGUID artifacts to establish persistence or conduct reconnaissance within the environment. Proactively hunting for these specific GUIDs in Azure Sentinel allows the SOC team to distinguish legitimate security operations from covert adversary tooling, ensuring early identification of potential lateral movement or data exfiltration activities before they escalate.
rule HKTL_NET_GUID_Crypter_Runtime_AV_s_bypass {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/netreverse/Crypter-Runtime-AV-s-bypass"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "c25e39a9-8215-43aa-96a3-da0e9512ec18" 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 5 specific false positive scenarios for the Detects C# Red/Black-Team Tools via TypelibGUID rule, including suggested filters and exclusions:
Scenario: Automated Patch Management Deployment (SCCM/Microsoft Endpoint Configuration Manager)
ccmexec.exe) or the associated deployment engine utilizes C# libraries to generate inventory reports or validate software installations. These legitimate operations often instantiate COM objects with GUIDs that overlap with those used by security assessment tools (e.g., Microsoft.VisualStudio.TestTools or specific System.Management.Automation modules).\Program Files\Microsoft Configuration Manager\Client\ccmexec.exe and parent processes named SMS_EXECUTIVE. Additionally, filter out events occurring strictly between 02:00 and 04:00 UTC on weekdays to align with standard maintenance windows.Scenario: Internal IT Service Desk Ticketing System (ServiceNow Agent or Jira Service Management)
typelibguid detection logic due to shared .NET framework dependencies.SNDesktopAgent.exe, JiraServiceDeskAgent.exe, and their child processes. Further refine by excluding events where the UserAccount is a known service account (e.g., svc-itagent) rather than interactive user sessions.Scenario: Corporate Endpoint Protection Scans (CrowdStrike, SentinelOne, or Carbon Black)