This hunt targets adversaries leveraging C#-based red and black team tools that expose unique TypeLibGUID identifiers to establish persistence or conduct reconnaissance within the environment. Proactively hunting for these specific GUIDs in Azure Sentinel is critical because they often indicate early-stage tool deployment or lateral movement activities that may not yet trigger standard high-severity alerts due to their low initial risk profile.
rule HKTL_NET_GUID_logger {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/xxczaki/logger"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "9e92a883-3c8b-4572-a73e-bb3e61cfdc16" 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 3-5 specific false positive scenarios for the Detects C# Red/Black-team tools via TypelibGUID rule, including suggested filters and exclusions:
Scenario: Scheduled Automated Patch Deployment (SCCM/Microsoft Endpoint Configuration Manager)
ccmexec.exe process or a specific deployment agent invokes C# assemblies containing known TypeLibGUIDs associated with security scanning tools to verify patch integrity before installation.ccmexec.exe, UpdateOrchestrator.exe, or WuaUerSvc.exe originating from the trusted path C:\Windows\CCM\*. Additionally, filter out events occurring during the defined maintenance window (02:00–04:00 UTC) on endpoints tagged as “Production Servers.”Scenario: Corporate Endpoint Protection Health Checks (CrowdStrike or SentinelOne)
FalconSensorService.exe (CrowdStrike) or S1Service.exe (SentinelOne). Ensure the exclusion applies specifically to file paths located within C:\Program Files\CrowdStrike\* or C:\ProgramData\SentinelOne\*.Scenario: Internal Compliance Audit Script Execution