This hunt hypothesis posits that adversaries are leveraging C#-based red and black team tools identifiable by unique typelibguid values to establish persistence or conduct reconnaissance within the environment. Proactively hunting for these specific identifiers in Azure Sentinel is critical because low-severity alerts may be overlooked, allowing attackers to operate undetected before escalating their activities to more impactful stages of the kill chain.
rule HKTL_NET_GUID_BrowserGhost {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/QAX-A-Team/BrowserGhost"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "2133c634-4139-466e-8983-9a23ec99e01b" 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:
Automated Patch Management Deployment
typelibguid values in the HKEY_CLASSES_ROOT\TypeLib and TypeLibs keys to verify .NET assembly versions before applying updates.NT SERVICE\SCCMAgent) or whitelist known patch management executable paths (e.g., C:\Program Files\Microsoft Configuration Manager\bin\ccmexec.exe).Enterprise Endpoint Protection Scans
typelibguid entries to analyze the integrity of .NET-based applications and detect potential anomalies in registered COM components, triggering the rule during routine background scans without any malicious intent.C:\Program Files\CrowdStrike\fs.exe) or filter out events where the parent process is the OS security service (SecurityHealthService).Scheduled Software Inventory Audits