This hypothesis detects adversaries leveraging custom C# Red or Black team tools by identifying unique typelib GUID signatures often associated with specialized security utilities within Azure Sentinel environments. Proactive hunting for these specific identifiers is essential to distinguish legitimate operational tooling from potential adversary activity that mimics standard administrative processes, thereby reducing false positives and uncovering stealthy reconnaissance efforts.
rule HKTL_NET_GUID_Nuages {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/p3nt4/Nuages"
author = "Arnim Rupp"
date = "2020-12-29"
strings:
$typelibguid0 = "e9e80ac7-4c13-45bd-9bde-ca89aadf1294" 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 Microsoft Office Deployment & Configuration
msiexec or OfficeSetup.exe processes invoke C# libraries to install or update Office 365 components. These installations often load specific TypeLib GUIDs associated with COM add-ins (e.g., Outlook, Excel) that overlap with Red Team tool signatures.C:\Program Files\Microsoft Office* and C:\Program Files (x86)\Microsoft Office*. Additionally, filter out events where the parent process is msiexec.exe running under the SYSTEM or a known deployment service account.Scenario: Scheduled Antivirus Database Updates
MsMpEng.exe, C-Service.exe) and their child processes. Filter events occurring during defined maintenance windows (e.g., 02:00–04:00 UTC) where the parent process is identified as a scheduled task (Task Scheduler).Scenario: Internal IT Management & Reporting Dashboards