This hunt targets adversaries leveraging C#-based red and black team tools that expose unique typelibguid artifacts to establish persistence or conduct reconnaissance within Azure environments. Proactively hunting for these specific identifiers allows the SOC team to distinguish legitimate administrative activity from stealthy tool deployment, ensuring early identification of potential lateral movement or post-exploitation phases even when initial rule severity is low.
rule HKTL_NET_GUID_Obfuscator {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/3xpl01tc0d3r/Obfuscator"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "8fe5b811-a2cb-417f-af93-6a3cf6650af1" 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:
Microsoft Office Click-to-Run Updates
OfficeClickToRun.exe) or background update tasks frequently instantiate C# assemblies that register specific TypeLib GUIDs during scheduled maintenance windows. These legitimate updates often mimic the behavior of reconnaissance tools by probing system libraries.ImageName matching *OfficeClickToRun.exe, *setup.exe (Microsoft Office path), and *OneDrive.exe where the parent process is svchost.exe or a known Microsoft update service.Enterprise Endpoint Protection Scans
ImageName containing known EDR vendor signatures (e.g., *FalconSensor.exe, *cb.exe, *SentinelOneAgent.exe) and restrict the rule to only trigger when these processes are running under non-admin service accounts.Automated PowerShell Deployment Scripts