This hunt hypothesis targets adversaries leveraging C#-based red and black team tools that expose unique TypeLibGUID artifacts to evade standard signature-based detection. Proactively hunting for these specific GUIDs in Azure Sentinel is critical because it enables the SOC team to identify stealthy reconnaissance or post-exploitation activities that often bypass traditional endpoint security controls due to their low severity classification.
rule HKTL_NET_GUID_Salsa_tools {
meta:
description = "Detects c# red/black-team tools via typelibguid"
reference = "https://github.com/Hackplayers/Salsa-tools"
author = "Arnim Rupp"
date = "2020-12-13"
strings:
$typelibguid0 = "276004bb-5200-4381-843c-934e4c385b66" ascii nocase wide
$typelibguid1 = "cfcbf7b6-1c69-4b1f-8651-6bdb4b55f6b9" 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 Deployment Pipelines (Azure DevOps / GitHub Actions)
typelibguid entries associated with common Red Team tooling libraries (e.g., SharpSploit, Covenant) even when no actual attack simulation is occurring.svc-build-agent) and restrict detection to non-standard execution paths. Filter out events where the parent process is msbuild.exe, dotnet.exe, or AzureDevOpsAgentService.exe.Scenario: Endpoint Protection Scanning (CrowdStrike / SentinelOne)
typelibguid signature, mimicking the footprint of a Red Team tool like BloodHound or SharpUp.C:\Program Files\CrowdStrike\csagent.exe, SentinelOne\S1Agent.exe). Additionally, filter out events where the process command line contains specific flags related to “health check,” “scan,” or “update.”Scenario: Scheduled Group Policy Updates