This detection identifies potential adversary activity by monitoring for unique TypeLibGUID signatures associated with known .NET-based red and black team reconnaissance or post-exploitation tools. Proactive hunting for these indicators in Azure Sentinel is essential to uncover stealthy tool usage that may evade standard signature-based defenses, allowing the SOC team to validate legitimate administrative actions against suspicious tool deployment early in the kill chain.
rule HKTL_NET_GUID_SharpSvc {
meta:
description = "Detects .NET red/black-team tools via typelibguid"
reference = "https://github.com/jnqpblc/SharpSvc"
author = "Arnim Rupp"
date = "2021-01-21"
strings:
$typelibguid0 = "52856b03-5acd-45e0-828e-13ccb16942d1" 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 3-5 specific false positive scenarios for the ”.NET Red/Black-team tools via typelibguid” detection rule, including suggested filters and exclusions:
Scenario: Automated Backup Agents with .NET Components
ImageName (e.g., Veeam.Backup.Service.exe) or the specific CommandLine containing backup keywords (e.g., -mode=backup). Alternatively, exclude the known TypeLib GUIDs associated with these vendors from the detection logic.Scenario: Endpoint Detection and Response (EDR) Self-Scans
ParentImageName matches known EDR service executables (e.g., FalconSensorService.exe, cbcservice.exe). Additionally, exclude TypeLib GUIDs belonging to the specific security vendor’s namespace.Scenario: Scheduled PowerShell Administrative Tasks