This rule identifies the execution of specialized C# Red and Black team tools by analyzing unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these artifacts allows the SOC team to distinguish between legitimate security testing activities and potential adversary use of similar frameworks for stealthy reconnaissance or lateral movement.
rule HKTL_NET_GUID_ADFSDump {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/fireeye/ADFSDump"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "9ee27d63-6ac9-4037-860b-44e91bae7f0d" 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”, along with suggested filters or exclusions:
Scenario: Automated Build and Deployment Pipelines
typelibguid detection logic even though no security tool is being actively used for testing.dotnet.exe, msbuild.exe, vstest.console.exe) running under service accounts like SYSTEM or specific build service identities (svc-build-agent).Scenario: Enterprise Endpoint Management Software
ccmexec.exe, IvantiAgent.exe) and restrict detection to non-service user contexts if the tool is typically run as a system service.Scenario: Scheduled PowerShell Inventory Scripts
Add-Type or compiled assemblies) to query Active Directory or local machine configurations. These scripts explicitly read TypeLib GUIDs from the registry to map application versions, triggering the rule during scheduled maintenance windows.