This rule identifies the execution of known C# red and black team security tools by monitoring for specific TypeLibGUID artifacts within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC to distinguish between authorized testing activities and potential adversary reconnaissance that mimics legitimate tooling behavior.
rule HKTL_NET_GUID_ToxicEye {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/LimerBoy/ToxicEye"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "1bcfe538-14f4-4beb-9a3f-3f9472794902" 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 Build Agents
csc.exe (C# Compiler) and related MSBuild tools which instantiate specific C# assemblies containing unique TypelibGUIDs often flagged as “Red Team” reconnaissance tools.svc-build-agent, jenkins-service) or restrict the rule to only trigger on workstations and not on servers designated in the Build-Infrastructure OU.Scenario: Scheduled Endpoint Protection Updates
falcon.sys, MsMpEng.exe) or exclude specific TypelibGUID values known to belong to the organization’s primary EDR vendor by cross-referencing with the asset inventory database.Scenario: Microsoft Office 365 ProPlus Background Tasks
OfficeClickToRun.exe or Groove.exe (SharePoint Workspace) utilize C# libraries for add-in management and cloud synchronization. These tools often register Type Libraries