This hunt targets adversaries leveraging C#-based red and black team tools that can be uniquely identified by their specific TypeLib GUID signatures within Azure Sentinel logs. Proactively searching for these artifacts allows the SOC to distinguish legitimate security tooling from malicious activity masquerading as standard development environments, thereby reducing false positives and enhancing visibility into internal reconnaissance efforts.
rule HKTL_NET_GUID_AddReferenceDotRedTeam {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/ceramicskate0/AddReferenceDotRedTeam"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "73c79d7e-17d4-46c9-be5a-ecef65b924e4" 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 Deployment via SCCM or Intune
TypelibGUID signatures identical to those used by red-team reconnaissance frameworks (e.g., SharpUp or BloodHound).C:\Program Files\Microsoft Intune Management Extension\*C:\Program Files (x86)\Microsoft Configuration Manager\bin\x64\ccmexec.exeWmiPrvSE.exe when running under the SYSTEM account during maintenance hours.Scenario: Enterprise Anti-Virus Real-Time Scanning
TypelibGUID detection logic, mimicking the behavior of a black-team lateral movement tool.C:\Program Files\CrowdStrike\fs.exe or SentinelOne\SentinelAgent.exe.NT AUTHORITY\SYSTEM account running