This hunt identifies potential adversary activity by detecting C#-based red and black team tools through their unique TypeLibGUID signatures within Azure Sentinel logs. Proactive hunting for these indicators is essential to distinguish legitimate security testing from malicious reconnaissance or early-stage tool deployment that may otherwise evade standard signature-based detections.
rule HKTL_NET_GUID_SharpGPO_RemoteAccessPolicies {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/FSecureLABS/SharpGPO-RemoteAccessPolicies"
author = "Arnim Rupp"
date = "2020-12-21"
strings:
$typelibguid0 = "fbb1abcf-2b06-47a0-9311-17ba3d0f2a50" 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 Backup Verification Scripts
TypelibGUID signatures that overlap with security tooling libraries used by Red/Black teams.vbrsvc.exe, ctfmon.exe) and the file path resides within the vendor’s installation directory (e.g., C:\Program Files\Veeam\Backup & Replication\).Scenario: Scheduled .NET Framework Updates or Health Checks
01:30 and 04:30 on weekdays, specifically filtering out processes with names containing “Microsoft.Update” or “HealthCheckAgent” running under the SYSTEM account.Scenario: Development Environment Build Agents (CI/CD)
TypelibGUID events during the “restore” or “build” phases that mimic Red Team tool behavior.