This rule detects the execution of specialized C# Red and Black team tools by identifying unique TypeLibGUID signatures often associated with reconnaissance or post-exploitation activities. Proactive hunting for these artifacts in Azure Sentinel is essential to distinguish legitimate security engineering operations from potential adversary use of similar custom C# utilities that may evade standard signature-based detection.
rule HKTL_NET_GUID_BlockEtw {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/Soledge/BlockEtw"
author = "Arnim Rupp"
date = "2020-12-29"
strings:
$typelibguid0 = "daedf7b3-8262-4892-adc4-425dd5f85bca" 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 rule “Detects c# red/black-team tools via typelibguid,” including suggested filters and exclusions:
Scenario: Legitimate deployment of Microsoft Office Add-ins or VSTO (Visual Studio Tools for Office) solutions.
ImageName matches known Office application paths (e.g., EXCEL.EXE, WINWORD.EXE) and the parent process is a trusted installer (msiexec.exe or setup.exe).Scenario: Execution of Microsoft Endpoint Configuration Manager (SCCM) Client Agent tasks.
SharpChk or PowerSploit.ccmexec.exe and its child processes running under the account NT SERVICE\CcmExec, provided the execution path is within the standard SCCM installation directory (C:\Program Files\Microsoft Configuration Manager).Scenario: Scheduled PowerShell jobs utilizing .NET assemblies for backup or reporting.
Bloodhound or Ladon.ParentProcessName is `sv