This hunt hypothesis identifies potential adversary activity by detecting C# Red and Black team tools through unique TypelibGUID signatures within Azure Sentinel logs. Proactively hunting for these specific tool identifiers allows the SOC team to distinguish between legitimate security operations and malicious reconnaissance or post-exploitation activities that may otherwise blend into normal background noise.
rule HKTL_NET_GUID_BrowserPass {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/jabiel/BrowserPass"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "3cb59871-0dce-453b-857a-2d1e515b0b66" 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:
Scenario: Automated Deployment of Microsoft Teams or Office 365 ProPlus updates.
Microsoft.Update.Client service or background update agents utilize C# assemblies with specific TypeLib GUIDs that overlap with common Red Team tools (e.g., Mimikatz or SharpUp) during the installation phase.\Program Files\Microsoft Office\root\Office16\ or \Teams\, and filter out events where the parent process is msiexec.exe or dcomcnfg.exe.Scenario: Scheduled PowerShell Health Checks via System Center Configuration Manager (SCCM).
SharpHunt or Bloodhound.CCMExec.exe) running under the SYSTEM account.Scenario: Execution of Internal .NET-Based Reporting Tools (e.g., Tableau Server Agents).
SharpView or Rubeus.