This hunt hypothesis targets adversaries leveraging C#-based red and black team tools that expose unique TypeLib GUIDs to evade standard signature-based detection. Proactively hunting for these specific identifiers in Azure Sentinel is critical because it allows SOC teams to distinguish between legitimate administrative activities and stealthy tool deployment often used during initial reconnaissance or lateral movement phases.
rule HKTL_NET_GUID_Fenrir {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/nccgroup/Fenrir"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "aecec195-f143-4d02-b946-df0e1433bd2e" 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 4 specific false positive scenarios for the rule “Detects c# red/blue-team tools via typelibguid” in an enterprise environment, along with suggested filters or exclusions:
Scenario: Automated Patch Management Deployment
typelibguid entries to verify .NET framework versions and installed COM components across thousands of workstations.C:\Program Files\Microsoft Configuration Manager\client\execmgr.exe) or whitelist the known typelibguid values used by the vendor’s inventory engine.Scenario: Enterprise Antivirus Real-Time Scanning
Shell32.dll or oleaut32.dll) which are common targets for red/blue team tooling detection.ParentImage matches C:\Program Files\CrowdStrike\csagent.exe).Scenario: Scheduled Software License Compliance Audits