This rule identifies potential adversary activity by detecting C#-based red and black team tools through their unique typelib GUID signatures within Azure Sentinel logs. Proactively hunting for these specific tool identifiers allows the SOC team to distinguish between legitimate security operations and suspicious reconnaissance or post-exploitation activities that may otherwise blend into normal background noise.
rule HKTL_NET_GUID_CVE_2019_1253 {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/padovah4ck/CVE-2019-1253"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "584964c1-f983-498d-8370-23e27fdd0399" 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 recommended filters and exclusions:
Scenario: Automated Deployment Pipelines (Azure DevOps / GitHub Actions)
SharpUp, BloodHound) during the compilation or testing phase, even when no actual security assessment is occurring.C:\Program Files\Microsoft Visual Studio\*\MSBuild\*, C:\Azure\DevOpsAgent\*\Runner.exe) and restrict the alert to non-build server environments.Scenario: Scheduled Endpoint Protection Scans
NT SERVICE\DefenderSvc or CrowdStrike Falcon Service).Scenario: Internal Development Environments and IDEs