This hunt targets adversary use of common C# red and black team tools by identifying specific NET_GUID type library artifacts that often indicate reconnaissance or post-exploitation activities. Proactively hunting for these signatures in Azure Sentinel is critical because low-severity detections may be overlooked, allowing attackers to establish a foothold using legitimate-looking tooling before escalating their operations.
rule HKTL_NET_GUID_wsManager {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/guillaC/wsManager"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "9480809e-5472-44f3-b076-dcdf7379e766" 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 4 specific false positive scenarios for the HKTL_NET_GUID_wsManager detection rule, tailored for an enterprise environment:
Enterprise Software Deployment via SCCM/MECM
ccmexec.exe) or a dedicated deployment agent executes a C#-based installer to update internal management agents. These installers often load the wsManager library to register new Windows services, triggering the rule due to the presence of the specific NET_GUID.ccmexec.exe or WuaAgentHost.exe, and the file path contains \Microsoft SCCM\ or \Windows\CCM\.Scheduled .NET Framework Health Checks
DotNetHealthCheck.exe) to verify the integrity of the .NET runtime on domain-joined workstations. This tool utilizes the wsManager type library to query registry keys and service states, generating the exact GUID signature detected by the YARA rule.Task Scheduler (svchost.exe -k netsvcs) with a command line argument containing /scheduled or running during off-hours (e.g., 02:00–05:00 local time) on the specific executable hash known to be the health check tool.Internal IT Helpdesk Remote Management Suite
wsManager component to enumerate