This hunt targets adversaries leveraging C#-based Red and Black team tools that can be uniquely identified by their specific TypeLibGUID values within process execution logs. Proactively hunting for these signatures in Azure Sentinel is essential to distinguish legitimate security operations from malicious activity masquerading as standard administrative tooling, thereby reducing false negatives during early-stage threat detection.
rule HKTL_NET_GUID_Adamantium_Thief {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/LimerBoy/Adamantium-Thief"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "e6104bc9-fea9-4ee9-b919-28156c1f2ede" 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 Patch Management Deployment
TypelibGUIDs associated with standard .NET framework libraries used by the tooling vendor, which can be mistaken for a Red Team “living off the land” (LOTL) execution attempt.ccmexec.exe or IvantiAgent.exe) and restrict the alert to only trigger if the TypelibGUID is not in a known “trusted infrastructure” list (e.g., exclude GUIDs associated with Microsoft Office, .NET Framework Core, and specific vendor libraries).Scenario: Scheduled Backup Verification Jobs
TypelibGUID to interact with storage APIs, mimicking the behavior of a Black Team tool performing reconnaissance on data repositories.svc-veeam-backup, DOMAIN\BackupService).Scenario: Endpoint Detection and Response (EDR) Self-Monitoring