This detection identifies the execution of specialized C# Red and Black team security tools by analyzing unique TypeLibGUID signatures within process creation events. Proactive hunting for these indicators in Azure Sentinel is essential to distinguish legitimate security operations from potential adversary activity that mimics trusted tooling behavior, thereby reducing false positives and uncovering stealthy lateral movement attempts.
rule HKTL_NET_GUID_SharpGPOAbuse {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/FSecureLABS/SharpGPOAbuse"
author = "Arnim Rupp"
date = "2020-12-21"
strings:
$typelibguid0 = "4f495784-b443-4838-9fa6-9149293af785" 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:
Scenario: Automated Backup or Monitoring Agents
SharpHound or Bloodhound.Veeam.Backup.Service.exe, SolarWinds.Agent.exe) running under a service account context (e.g., NT SERVICE\VeeamBackupService).Scenario: Office 365/SharePoint Proactive Updates
SharpUp or PowerView.C:\Program Files\Microsoft Office\root\Office16\ or C:\Program Files\Microsoft SharePoint Server\, regardless of the specific TypeLibGUID detected.Scenario: Scheduled PowerShell Scripting for Compliance