This hunt targets adversaries leveraging C#-based red and black team tools that expose unique typelibguid artifacts to establish a foothold or conduct reconnaissance within the environment. Proactively hunting for these specific identifiers in Azure Sentinel allows the SOC team to distinguish legitimate administrative activities from stealthy tool deployment, ensuring early visibility into potential lateral movement or post-exploitation phases even when initial alert severity is low.
rule HKTL_NET_GUID_HTTPSBeaconShell {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/limbenjamin/HTTPSBeaconShell"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "aca853dc-9e74-4175-8170-e85372d5f2a9" 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 4 specific false positive scenarios for the rule “Detects C# Red/Black-Team Tools via TypelibGUID”, including suggested filters and exclusions:
Scenario: Automated Patch Management Deployment
TypelibGUIDs during their scheduled daily maintenance windows, mimicking the behavior of red team reconnaissance tools.NT SERVICE\SCCMService) and restrict alerts to non-business hours if the tool is known to run only overnight. Alternatively, whitelist the specific TypelibGUID associated with the vendor’s standard agent DLLs.Scenario: Internal IT Service Desk Ticketing Automation
w3wp.exe, jira-service.exe) and the specific user account running the job (e.g., DOMAIN\IT-Automation-Svc). Ensure the filter targets only known internal IP ranges where these service accounts operate.Scenario: Endpoint Security Agent Health Checks