This detection identifies the execution of specialized C# Red and Black team tools by analyzing unique TypeLibGUID signatures within Azure Sentinel logs. Proactive hunting for these indicators is essential to distinguish legitimate security testing activities from potential adversary use of similar custom frameworks that could mask malicious operations.
rule HKTL_NET_GUID_TeleShadow2 {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/ParsingTeam/TeleShadow2"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "42c5c356-39cf-4c07-96df-ebb0ccf78ca4" ascii nocase wide
$typelibguid1 = "0242b5b1-4d26-413e-8c8c-13b4ed30d510" 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 2 string patterns in its detection logic.
Here are specific false positive scenarios for the rule “Detects c# red/black-team tools via typelibguid”, including suggested filters and exclusions:
Scenario: Automated Deployment Pipelines
NT SERVICE\TeamFoundationBuild, Jenkins) and restrict detection to non-build server workstations. Alternatively, add a filter for process paths containing \AzureDevOps\ or \Jenkins\.Scenario: Endpoint Protection Scanning
C:\Program Files\CrowdStrike\, C:\ProgramData\Microsoft\Windows Defender\). Filter out events where the parent process is the EDR service itself.Scenario: Scheduled Office 365/SharePoint Provisioning Jobs