This hunt hypothesis identifies the execution of specialized C# Red and Black team security tools by analyzing unique TypelibGUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC team to distinguish legitimate security testing activities from potential adversary reconnaissance or tool deployment that mimics known security utilities.
rule HKTL_NET_GUID_SharpPrinter {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/rvrsh3ll/SharpPrinter"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "41b2d1e5-4c5d-444c-aa47-629955401ed9" 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 rule “Detects c# red/black-team tools via typelibguid,” along with suggested filters and exclusions:
Scenario: Automated Patch Deployment via SCCM/Intune
typelibguid values matching known Red Team tools (e.g., mimicking the GUIDs of tools like SharpUp or PowerSploit).ccmexec.exe, msedge.exe (for Intune), or wuauserv.exe. Additionally, exclude specific known GUIDs associated with Microsoft Update components if they overlap with tool signatures.Scenario: Scheduled Backup and Compliance Scans
DOMAIN\svc_backup). Alternatively, exclude alerts where the user context is a dedicated service account rather than an interactive user session.Scenario: Development Environment Build Pipelines