This hunt detects adversarial use of specialized .NET-based Red and Black team tools by identifying unique typelib GUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC to distinguish legitimate security testing activities from potential malicious reconnaissance or tool deployment that mimics standard administrative behavior.
rule HKTL_NET_GUID_CloneVault {
meta:
description = "Detects .NET red/black-team tools via typelibguid"
reference = "https://github.com/mdsecactivebreach/CloneVault"
author = "Arnim Rupp"
date = "2021-01-21"
strings:
$typelibguid0 = "0a344f52-6780-4d10-9a4a-cb9439f9d3de" 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 .NET red/black-team tools via typelibguid,” along with suggested filters or exclusions:
Scenario: Microsoft Visual Studio Build Automation
typelibguid values similar to those used by security assessment tools like Nmap or custom red-team agents.\Program Files\Microsoft Visual Studio\* and the parent process is msbuild.exe or devenv.exe.Scenario: Office 365 ProPlus Background Updates
OfficeClickToRun.exe) periodically queries .NET assemblies to manage license compliance and feature updates. This activity frequently triggers the detection logic due to shared library GUIDs used by both Office components and security tools (e.g., Cobalt Strike Beacon).typelibguid values associated with known Office update services, specifically filtering out events where the process name is OfficeClickToRun.exe or Groove.exe.Scenario: Scheduled PowerShell Health Checks
svchost.exe (specifically the “Task Scheduler” service) and the command line arguments contain keywords such as -Command, -File, or specific