This hunt targets adversaries leveraging C#-based red and black team tools that leave distinct typelibguid artifacts within the Azure environment. Proactively hunting for these specific identifiers allows the SOC team to distinguish between legitimate security operations and potential adversary reconnaissance or lateral movement activities that might otherwise be obscured by low-severity noise.
rule HKTL_NET_GUID_AzureCLI_Extractor {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/0x09AL/AzureCLI-Extractor"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "a73cad74-f8d6-43e6-9a4c-b87832cdeace" 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: Scheduled Antivirus Definition Updates
TypeLibGuid values that overlap with known red-team tool signatures.C:\Program Files\Microsoft Defender\MsMpEng.exe) and filter out events where the parent process is TaskScheduler or a known service account (e.g., NT SERVICE\DefenderSvc).Scenario: Microsoft Office Add-in Initialization
CommandLine argument containing specific publisher names (e.g., “Adobe Inc.”, “Kofax”) and restrict alerts to non-standard user accounts if the tool is expected only in shared service accounts.Scenario: Automated Patch Management Deployment
TypeLibGuid detection logic intended for black-team emulation tools.