This detection identifies the execution of known C# red and black team tools by analyzing unique TypeLibGUID artifacts, which often indicate active reconnaissance or post-exploitation activities within the environment. Proactively hunting for these signatures in Azure Sentinel is essential to distinguish legitimate security operations from adversarial tooling that may be masquerading as standard administrative tasks.
rule HKTL_NET_GUID_MultiOS_ReverseShell {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/belane/MultiOS_ReverseShell"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "df0dd7a1-9f6b-4b0f-801e-e17e73b0801d" 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 Software Deployment via SCCM or Intune
typelibguid events identical to those used by security testing frameworks.ccmexec.exe (SCCM) or IntuneManagementExtension.exe, and the file path matches the organization’s standard deployment share directory (e.g., C:\Windows\CCMCache\*).Scenario: Scheduled Health Check Scripts using PowerShell
System.Runtime.InteropServices) to query system components, they may trigger the rule by registering temporary type libraries during execution.TaskScheduler (svchost.exe -k netsvcs) where the command line contains keywords such as “HealthCheck,” “Inventory,” or specific scheduled task names (e.g., \Microsoft\Windows\Defender Antivirus\*).Scenario: Development Environment Build Agents (Jenkins/GitLab CI)