This hunt hypothesis targets adversaries leveraging custom C# Red and Black team tools that register unique TypeLibGUIDs to establish persistence or execute reconnaissance activities within the environment. Proactively hunting for these specific GUID signatures in Azure Sentinel allows the SOC team to identify legitimate security tooling versus potential adversary implants, thereby reducing false positives while uncovering stealthy tool usage that may evade standard signature-based detections.
rule HKTL_NET_GUID_SharpShooter {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/mdsecactivebreach/SharpShooter"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "56598f1c-6d88-4994-a392-af337abe5777" 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 rule “Detects c# red/black-team tools via typelibguid”, including suggested filters and exclusions:
Scenario: Automated CI/CD Pipeline Execution
dotnet CLI or MSBuild. These processes often instantiate standard .NET assemblies that share the same typelibguid as known security tools like Cobalt Strike or BloodHound.*\.msbuild.exe, *\dotnet.exe) running under service accounts named BuildService, AzureDevOpsAgent, or Jenkins.Scenario: Scheduled Microsoft Endpoint Configuration Manager (MECM) Updates
SMS_* service accounts (e.g., NT SERVICE\SMS_EXECUTIVE) where the parent process is ccmexec.exe.Scenario: Active Directory PowerShell Scripting by Sysadmins
typelibguid signatures with tools like GRC (Governance, Risk, and Compliance) scanners.