This rule detects adversary behavior involving the execution of specialized VB.NET tools commonly used by both red and blue teams for reconnaissance or post-exploitation activities through unique typelib GUID signatures. A SOC team should proactively hunt for these indicators in Azure Sentinel to distinguish between legitimate security operations and potential adversarial tool usage that may otherwise blend into normal background noise, thereby reducing false positives during incident response.
rule HKTL_NET_GUID_gray_keylogger_2 {
meta:
description = "Detects VB.NET red/black-team tools via typelibguid"
reference = "https://github.com/graysuit/gray-keylogger-2"
author = "Arnim Rupp"
date = "2020-12-30"
strings:
$typelibguid0 = "e94ca3ff-c0e5-4d1a-ad5e-f6ebbe365067" ascii nocase wide
$typelibguid1 = "1ed07564-b411-4626-88e5-e1cd8ecd860a" 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 3-5 specific false positive scenarios for the “Detects VB.NET red/black-team tools via typelibguid” rule, along with suggested filters or exclusions:
Scenario: Automated Deployment of Microsoft System Center Configuration Manager (SCCM)
ccmsetup.exe process often loads specific typelib GUIDs associated with deployment tools that mimic red-team utility signatures.\Microsoft\CCM\ or CcmExec.exe, and restrict detection to non-business hours if the alert volume spikes during known maintenance windows (e.g., 02:00–04:00 UTC).Scenario: Execution of Visual Studio Build Agents on CI/CD Servers
SharpHound or Bloodhound.NT SERVICE\TeamFoundationBuildAgent) and filter out alerts where the parent process is msbuild.exe or VSTestPlatform.exe.Scenario: Scheduled Internal Security Scanning via PowerShell Modules
PowerSploit or SharpUp).