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 Azure environment. Proactively hunting for these specific identifiers allows the SOC team to distinguish legitimate tooling from stealthy adversary activity, ensuring early identification of potential lateral movement or command-and-control infrastructure before it escalates in severity.
rule HKTL_NET_GUID_Povlsomware {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/povlteksttv/Povlsomware"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "fe0d5aa7-538f-42f6-9ece-b141560f7781" 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 rule “Detects c# red/blue-team tools via typelibguid”, including suggested filters and exclusions:
Scheduled Software Distribution via SCCM/MECM
ccmexec.exe) or the Application Deployment Service frequently loads C# assemblies containing known Red Team tool typelib GUIDs during routine software updates, patch deployments, or inventory scans. These actions occur on a strict schedule across thousands of endpoints.C:\Windows\CCM\* and specifically whitelist the parent process ccmexec.exe. Additionally, filter out events occurring during defined maintenance windows (e.g., 02:00–04:00 local time) where mass deployment is expected.Endpoint Detection & Response (EDR) Agent Scans
C:\Windows\Microsoft.NET\Framework directory or specific application folders, they may instantiate typelib GUIDs associated with common red team frameworks (e.g., SharpUp, Invoke-Command) as part of their signature matching engine.C:\Program Files\CrowdStrike\fs.exe, MsMpEng.exe). If the tool generates a specific “Scan” or “Integrity Check” event ID, add that to the exclusion logic.Automated PowerShell Health Checks by IT Operations