This detection identifies potential adversary activity by monitoring for known C# Red and Black team tools through their unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these specific identifiers allows the SOC team to distinguish between legitimate security testing operations and malicious tool usage that may mimic standard administrative behavior, thereby reducing false positives while enhancing visibility into internal threat landscape activities.
rule HKTL_NET_GUID_SharpHound3 {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/BloodHoundAD/SharpHound3"
author = "Arnim Rupp"
date = "2020-12-29"
strings:
$typelibguid0 = "a517a8de-5834-411d-abda-2d0e1766539c" 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 “Detects c# red/black-team tools via typelibguid” rule, including suggested filters and exclusions:
Scheduled Backup Verification Jobs
Veeam.Backup.Service.exe, commvault_agent.exe) and restrict detection to non-scheduled execution windows or exclude specific known TypeLib GUIDs associated with the vendor’s SDK.Microsoft Office 365 Click-to-Run Updates
OfficeClickToRun.exe or msiexec) frequently instantiates C# components to manage add-ins and registry keys, generating TypeLib GUIDs that overlap with those used by security testing frameworks. This often occurs during the daily maintenance window.C:\Program Files\Microsoft Office directory path or filter based on the specific TypeLibGUID range assigned to Microsoft Office components (e.g., excluding GUIDs starting with 0002...).Enterprise Endpoint Management Agents (SCCM/Intune)