This hunt identifies potential adversary activity by detecting the execution of known C# red and black team tools through their unique TypelibGUID signatures within Azure Sentinel. Proactively hunting for these indicators is essential to distinguish legitimate security operations from malicious tool usage that may mimic standard administrative behavior, thereby reducing false positives and uncovering stealthy reconnaissance or post-compromise activities.
rule HKTL_NET_GUID_Stealer {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/malwares/Stealer"
author = "Arnim Rupp"
date = "2020-12-29"
strings:
$typelibguid0 = "8fcd4931-91a2-4e18-849b-70de34ab75df" ascii nocase wide
$typelibguid1 = "e48811ca-8af8-4e73-85dd-2045b9cca73a" ascii nocase wide
$typelibguid2 = "d3d8a1cc-e123-4905-b3de-374749122fcf" 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 3 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 CI/CD Pipeline Execution
NT SERVICE\jenkins-agent or SYSTEM) running on dedicated build servers, specifically filtering for command lines containing keywords like /test, dotnet test, or specific pipeline IDs.Scenario: Enterprise Endpoint Management & Patching
ccmexec.exe and Microsoft.IntuneManagementAgent.exe processes, specifically when they are running under the context of scheduled tasks named “Software Inventory” or “App Deployment.”Scenario: Internal DevOps Tooling & Monitoring
prometheus_exporter.exe and newrelic-agent.exe processes, ensuring