This rule 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 specific tool identifiers is essential to distinguish legitimate security operations from malicious reconnaissance or lateral movement attempts that mimic standard administrative behavior.
rule HKTL_NET_GUID_SharpCOM {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/rvrsh3ll/SharpCOM"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "51960f7d-76fe-499f-afbd-acabd7ba50d1" 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: Microsoft Office Add-in Deployment
msiexec.exe or setup.exe where the parent process is a trusted deployment service (e.g., SCCM, Intune). Specifically, filter out events where the command line contains /quiet or /passive flags indicating an automated installation.Scenario: Automated Backup and Archiving Jobs
VeeamAgent.exe, AcronisBackupService.exe). Additionally, add a time-based filter to suppress alerts generated between 01:00 and 05:00 local time on weekdays when these jobs typically run.Scenario: Endpoint Detection and Response (EDR) Scanning