This hunt hypothesis identifies adversary activity by detecting C# Red and Black team tools through their unique TypeLibGUID signatures within Azure Sentinel logs. A proactive search is essential to distinguish legitimate security tooling from potential malicious C# processes that may mimic these known identifiers to evade standard detection mechanisms.
rule HKTL_NET_GUID_scout {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/jaredhaight/scout"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "d9c76e82-b848-47d4-8f22-99bf22a8ee11" 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,” along with suggested filters or exclusions:
Scenario: Automated Backup and Recovery Jobs
typelibguid) during scheduled nightly backups or incremental scans, mimicking the behavior of red-team reconnaissance tools.VeeamBackupService, CommServe) and restrict detection to non-standard user contexts. Add a filter for known Veeam/Commvault typelibguid hashes in the allowlist.Scenario: Endpoint Protection Scanning
Cns.exe, MsMpEng.exe) and the specific typelibguid associated with the EDR vendor’s internal C# modules.Scenario: Office 365 ProPlus Updates and Macro Execution
typelibguid events that resemble security tool initialization.