This rule identifies potential adversary activity by detecting the presence of known Red and Black team .NET tools through their unique typelib GUID signatures within Azure Sentinel. Proactively hunting for these specific tool artifacts allows the SOC team to distinguish between authorized security testing operations and unauthorized reconnaissance or lateral movement attempts that may mimic legitimate administrative traffic.
rule HKTL_NET_GUID_SharpHide {
meta:
description = "Detects .NET red/black-team tools via typelibguid"
reference = "https://github.com/outflanknl/SharpHide"
author = "Arnim Rupp"
date = "2021-01-21"
strings:
$typelibguid0 = "443d8cbf-899c-4c22-b4f6-b7ac202d4e37" 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: Automated Backup and Archiving Tasks
Veeam.Backup.Service.exe (or similar agent executables) when running under the service account NT SERVICE\VeeamBackupService, or filter out events occurring within the defined maintenance window (e.g., 02:00–04:00 local time).Scenario: Microsoft Endpoint Configuration Manager (SCCM/MECM)
ccmsetup.exe or ccmexec.exe) invokes .NET assemblies to communicate with the site server. These interactions often trigger typelib GUIDs associated with configuration management that mimic Red/Black team tool behavior.\Microsoft Configuration Manager\ and filter out events where the parent process is ccmexec.exe or WUAHandler.exe.Scenario: Office 365 ProPlus Update and Telemetry