This detection identifies adversary activity by monitoring for specific TypeLibGUID signatures associated with known C# red and black team reconnaissance or attack tools within Azure Sentinel environments. Proactive hunting for these indicators is essential to uncover stealthy tool deployment that may evade standard signature-based controls, allowing the SOC to validate legitimate administrative actions against potential early-stage threat presence.
rule HKTL_NET_GUID_SneakyService {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/malcomvetter/SneakyService"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "897819d5-58e0-46a0-8e1a-91ea6a269d84" 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 rule “Detects c# red/black-team tools via typelibguid”, including suggested filters and exclusions:
Scenario: Automated CI/CD Pipeline Execution
TypelibGUIDs matching known security tool signatures.\AzureDevOps\, \Jenkins\workspace\) and restrict the rule to trigger only on interactive user sessions, excluding service accounts like SYSTEM or specific build service accounts (e.g., svc-build-agent).Scenario: Scheduled Antivirus Definition Updates
MsMpEng.exe, CcmExec.exe) and exclude events occurring during defined maintenance windows (e.g., 02:00–04:00 local time) for these specific service accounts.Scenario: Enterprise Configuration Management Tools
TypelibGUID patterns as security assessment tools during mass deployment tasks.