This hypothesis posits that adversaries are leveraging C#-based red and black team tools to execute reconnaissance or post-exploitation activities, identifiable by unique TypeLibGUID signatures within process execution logs. Proactively hunting for these specific GUIDs in Azure Sentinel is critical because low-severity detections often indicate early-stage tool usage that may precede more impactful malicious actions if left uninvestigated.
rule HKTL_NET_GUID_Lime_Downloader {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/NYAN-x-CAT/Lime-Downloader"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "ec7afd4c-fbc4-47c1-99aa-6ebb05094173" 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 Software Deployment via SCCM or Intune
typelibguid values that overlap with known red-team reconnaissance tools during the installation phase of enterprise applications.C:\Windows\CCM\* (SCCM) or C:\Program Files\Microsoft Intune Management Extension\*. Additionally, filter by parent process names such as ccmexec.exe, IntuneManagementExtension.exe, or msiexec.exe to allow legitimate deployment activities.Scenario: Scheduled PowerShell Health Checks and Reporting
typelibguid signatures identical to those used by black-team enumeration tools like BloodHound or SharpHound.svchost.exe with image path containing \System32\Tasks) where the command line contains specific keywords related to internal reporting (e.g., HealthCheck, ComplianceReport). Whitelist known internal script paths located in C:\Scripts\Enterprise\*.Scenario: Microsoft Office 365 ProPlus Background Updates