This hunt hypothesis identifies potential adversary activity by detecting C#-based red and black team tools through their unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC team to distinguish between legitimate security testing operations and malicious reconnaissance or tool deployment that mimics standard administrative behavior.
rule HKTL_NET_GUID_RexCrypter {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/syrex1013/RexCrypter"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "10cd7c1c-e56d-4b1b-80dc-e4c496c5fec5" 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, including targeted filters and exclusions:
Scenario: Automated Build Pipeline Execution
msbuild.exe or dotnet.exe. These processes often load standard .NET Framework assemblies that contain the specific typelibguid signatures associated with security tools, triggering alerts during routine build jobs.Jenkins Service, BuildAgent) and restrict the rule to exclude processes running under the System or specific NetworkService accounts on designated build server hostnames.Scenario: Microsoft Endpoint Configuration Manager (SCCM) Updates
typelibguid identifiers that overlap with the Red/Black team tool signatures, causing high-volume alerts during patch cycles.ccmsetup.exe, wuauserv.exe, or TpmService running on the domain controller or management point servers. Additionally, filter out events occurring within a 2-hour window of known maintenance schedules (e.g., Sundays 02:00–04:00).Scenario: Enterprise Antivirus Heuristic Scanning