This rule identifies adversary activity by detecting the presence of known .NET-based Red and Black team security tools through their unique TypeLibGUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC team to distinguish between legitimate internal security operations and potential adversarial use of similar tooling, thereby reducing false positives and uncovering stealthy reconnaissance or post-compromise activities.
rule HKTL_NET_GUID_SharpCrashEventLog {
meta:
description = "Detects .NET red/black-team tools via typelibguid"
reference = "https://github.com/slyd0g/SharpCrashEventLog"
author = "Arnim Rupp"
date = "2021-01-21"
strings:
$typelibguid0 = "98cb495f-4d47-4722-b08f-cefab2282b18" 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 .NET red/black-team tools via typelibguid,” including suggested filters and exclusions:
Scenario: Automated Patch Deployment via SCCM/Intune
typelibguid values associated with the underlying deployment engine, which can mimic Red Team tool signatures (e.g., Mimikatz or SharpUp).C:\Program Files\Microsoft Configuration Manager\ and C:\Windows\System32\ccmsetup.exe. Additionally, filter out events where the parent process is ccmexec.exe or IntuneManagementExtension.exe.Scenario: Scheduled Backup Jobs Using .NET Framework
typelibguid of common Blue/Red team utilities like SharpHunt or PowerSploit components.Veeam.Backup.Service.exe, Commvault.cmd, and any process running under the user account NT SERVICE\VSS. Filter based on the specific scheduled task name containing “Backup” or “Snapshot”.Scenario: Internal DevOps CI/CD Pipeline Execution