This hunt hypothesis targets adversaries leveraging C#-based red and black team tools that generate unique TypeLibGUID artifacts to establish persistence or execute reconnaissance within the environment. Proactively hunting for these specific GUIDs in Azure Sentinel is critical because their low-severity nature often allows them to evade standard alerting thresholds, enabling attackers to maintain a stealthy foothold before escalating to more aggressive actions.
rule HKTL_NET_GUID_SHAPESHIFTER {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/matterpreter/SHAPESHIFTER"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "a3ddfcaa-66e7-44fd-ad48-9d80d1651228" 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 Detects C# Red/Black-Team Tools via TypelibGUID rule, tailored for an enterprise environment:
Scenario: Automated Patch Management Execution
TypelibGUID signatures as known red-team reconnaissance tools (e.g., BloodHound or SharpUp).C:\Program Files\Microsoft Configuration Manager\bin\x64\ccmexec.exe) and its child processes, specifically when running scheduled maintenance tasks between 02:00 and 05:00 UTC.Scenario: IT Helpdesk Remote Support Sessions
TeamViewer_Service.exe, AnyDesk.exe) and the user account belongs to the “IT_Support” or “Helpdesk_Admins” security group, rather than standard domain users.Scenario: Scheduled Compliance Auditing Jobs