This detection rule identifies the execution of specialized C# Red and Black team security tools by monitoring unique TypeLibGUID signatures within process creation events. Proactively hunting for these specific tool identifiers in Azure Sentinel enables the SOC to distinguish between authorized security operations and potential adversary activity that mimics legitimate tool usage, thereby reducing false positives and uncovering stealthy reconnaissance efforts.
rule HKTL_NET_GUID_CVE_2020_1337 {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/neofito/CVE-2020-1337"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "d9c2e3c1-e9cc-42b0-a67c-b6e1a4f962cc" 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 CI/CD Pipeline Execution
dotnet, NUnit, or xUnit within the build environment. These processes often load specific TypeLibGUIDs associated with testing frameworks that mimic Red/Black team tool signatures.Jenkins.exe, VSTS.Agent.exe) and restrict detection to non-build server subnets or exclude the specific TypeLibGUIDs associated with standard testing frameworks like NUnit.Framework when running on build nodes.Scenario: Enterprise Endpoint Management & Patching
SYSTEM or specific service accounts (e.g., NT SERVICE\ccmexec) and whitelist known management tool executables like ccmsetup.exe, ivanti_agent.exe, or jamf.exe.Scenario: Scheduled Database Maintenance Jobs