This rule detects the execution of specialized C# Red and Black team security tools by identifying their unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC to distinguish between legitimate security operations and potential adversary activity that mimics trusted tooling, thereby reducing false positives and enhancing situational awareness during internal exercises or attacks.
rule HKTL_NET_GUID_HiveJack {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/Viralmaniar/HiveJack"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "e12e62fe-bea3-4989-bf04-6f76028623e3" 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: Automated Build Pipeline Execution
Jenkins, AzureDevOps, or MSBuild from the detection logic, specifically when the parent process is a known service account (e.g., NT SERVICE\jenkins).Scenario: Scheduled Office 365 Compliance Scans
ComplianceScanner.exe or Office365Connector.exe, ensuring the rule only triggers outside these maintenance hours.Scenario: Endpoint Antivirus Heuristic Scanning
Parent_Process_Name is the specific EDR agent (e.g., `