This hunt hypothesis targets adversaries leveraging C#-based red and black team tools that generate distinct typelibguid artifacts to establish persistence or execute reconnaissance within the environment. Proactively hunting for these specific identifiers in Azure Sentinel is critical because low-severity detections may otherwise be overlooked, allowing attackers to maintain a stealthy foothold before escalating their activities.
rule HKTL_NET_GUID_LOLBITS {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/Kudaes/LOLBITS"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "29d09aa4-ea0c-47c2-973c-1d768087d527" 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 Detects C# Red/Black-Team Tools via TypelibGUID rule, including suggested filters and exclusions:
Scenario: Automated Software Deployment via SCCM or Intune
typelibguid as known red-team frameworks like Cobalt Strike’s Beacon or specific PowerShell execution engines during package installation and inventory scans.NT SERVICE\ccmexec, Microsoft.Inc.IntuneManagement) originating from trusted parent paths such as C:\Program Files\Microsoft Intune Management Extension or C:\Windows\CCM.Scenario: Scheduled Backup and Archiving Jobs
VeeamAgent.exe, cvp.exe) and the execution time aligns with established maintenance windows defined in the enterprise calendar.Scenario: Internal IT Support & Patch Management Tools