This rule identifies the execution of known C# red and black team tools by monitoring for specific TypeLibGUID artifacts often used during security assessments or post-exploitation activities. Proactively hunting for these indicators in Azure Sentinel allows the SOC to distinguish between authorized testing operations and potential adversary reconnaissance, ensuring that legitimate tool usage is not mistaken for anomalous behavior while maintaining visibility into active engagement within the environment.
rule HKTL_NET_GUID_Marauder {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/maraudershell/Marauder"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "fff0a9a3-dfd4-402b-a251-6046d765ad78" 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/blue-team tools via typelibguid”, including suggested filters or exclusions:
Scenario: Scheduled Antivirus Definition Updates
ProcessName matches known EDR service executables (e.g., C:\Program Files\CrowdStrike\fsa.exe) and the CommandLine contains keywords like “update”, “scan”, or “definition”. Additionally, exclude TypeLib GUIDs belonging to major security vendors.Scenario: Microsoft Office 365 ProPlus Background Tasks
C:\Program Files\Microsoft Office directory path where the parent process is OfficeClickToRun.exe. Specifically, filter out TypeLib GUIDs associated with known Microsoft Office automation libraries (e.g., those starting with 0002...).Scenario: Internal IT Asset Management Scans