This rule identifies potential adversary activity by detecting C# tools commonly used in both offensive and defensive operations through their unique TypeLibGUID signatures within Azure Sentinel. Proactively hunting for these indicators allows the SOC team to distinguish between legitimate security tooling and suspicious red-team simulations or malicious reconnaissance, ensuring early visibility into specialized threat actor behaviors that may otherwise blend with routine system noise.
rule HKTL_NET_GUID_Quasar {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/quasar/Quasar"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "cfda6d2e-8ab3-4349-b89a-33e1f0dab32b" ascii nocase wide
$typelibguid1 = "c7c363ba-e5b6-4e18-9224-39bc8da73172" 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 2 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the “Detects c# red/black-team tools via typelibguid” rule, including suggested filters and exclusions:
Scenario: Automated Build Pipeline Execution
typelibguid values associated with Red Team simulation frameworks. These legitimate builds often mimic the footprint of active security tools.AzureDevOpsAgentService) or restrict detection to exclude executable paths located within the build server’s installation directory (e.g., C:\Program Files\Microsoft\VisualStudio\*).Scenario: Scheduled Backup and Inventory Scans
VeeamBackupService) during their defined maintenance windows (e.g., 02:00 – 04:00 local time) or exclude specific process names like vss.exe and commvaultcmd.exe.Scenario: Endpoint Management Agent Updates