This hunt hypothesis identifies potential adversary activity by detecting C#-based red and black team tools through unique TypelibGUID signatures within Azure Sentinel logs. Proactively hunting for these indicators allows the SOC team to distinguish between legitimate security testing operations and suspicious reconnaissance or tool deployment by threat actors, ensuring early visibility into internal security exercises versus external threats.
rule HKTL_NET_GUID_SweetPotato {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/CCob/SweetPotato"
author = "Arnim Rupp"
date = "2020-12-28"
strings:
$typelibguid0 = "6aeb5004-6093-4c23-aeae-911d64cacc58" ascii nocase wide
$typelibguid1 = "1bf9c10f-6f89-4520-9d2e-aaf17d17ba5e" 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 5 specific false positive scenarios for the rule “Detects c# red/black-team tools via typelibguid”, including suggested filters and exclusions:
Scenario: Automated CI/CD Pipeline Execution
typelibguid events similar to those used by Red Team tools like Cobalt Strike Beacon or Mimikatz.C:\Program Files\Microsoft Visual Studio\*\MSBuild\*, C:\Windows\System32\msbuild.exe) and restrict the rule to exclude user accounts named SYSTEM or specific service accounts like CI-Build-Svc.Scenario: Scheduled Antivirus or EDR Scans
typelibguid creation events, mimicking the behavior of Black Team tools like BloodHound collectors.falcon-sensor.exe, SentinelOneAgent.exe, or MsMpEng.exe) to prevent alerts when these security agents are the root cause of the event.Scenario: Office 365 ProPlus Add-in Initialization