This detection identifies adversary activity by monitoring for specific TypeLibGUIDs associated with known C# Red and Black team tools used during penetration testing or attack simulations. Proactively hunting for these indicators in Azure Sentinel enables the SOC to distinguish between legitimate security exercises and potential malicious reconnaissance, ensuring that tool usage aligns with authorized operations before escalating anomalies.
rule HKTL_NET_GUID_SharpLocker {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/Pickfordmatt/SharpLocker"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "a6f8500f-68bc-4efc-962a-6c6e68d893af" 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 Scripts using PowerShell
typelibguid signatures of red-team tools like Cobalt Strike Beacon or Mimikatz.VeeamBackupService, CommvaultAgent) and restrict detection to specific file paths where these services reside, ignoring matches in generic temp directories (C:\Temp, C:\Windows\Temp).Scenario: Microsoft Endpoint Manager (Intune) Compliance Checks
typelibguid patterns as black-team forensic tools like Sysmon or LogParser.Microsoft.IntuneManagementExtension.exe, ccmexec.exe, or TpmService.exe. Additionally, filter out events where the command line contains keywords related to “inventory,” “compliance,” or “heartbeat.”Scenario: Scheduled Office 365 ProPlus Updates
OfficeClickToRun.exe) performs scheduled updates and feature installations using C# components. These operations can trigger the specific typelibguid associated with tools like BloodHound or SharpUp during the installation