This detection identifies the execution of known .NET-based Red and Blue team utility names to distinguish legitimate security operations from potential adversary tooling that mimics these signatures. Proactive hunting for this behavior in Azure Sentinel is essential to validate authorized activities and uncover stealthy threat actors leveraging familiar .NET tools to evade initial detection mechanisms.
rule HKTL_NET_NAME_SharpWatchdogs {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/RITRedteam/SharpWatchdogs"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "SharpWatchdogs" ascii wide
$compile = "AssemblyTitle" ascii wide
condition:
(uint16(0) == 0x5A4D and uint32(uint32(0x3C)) == 0x00004550) and all 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 .NET red/blue-team tools via name”, including suggested filters and exclusions:
Scenario: Automated Compliance Scanning by Admin
ComplianceScan.exe or AgentService.exe, which match the rule’s signature for red/blue team tools.svchost.exe) or a specific scheduled task ID (e.g., \Microsoft\Windows\Defender Identity\ComplianceScan). Alternatively, filter based on the ImageFileName containing “Qualys” or “Defender”.Scenario: Development Environment Deployment
Octo.exe or VstsTaskAgent.exe, which are often categorized under the same naming convention as security testing tools in the rule logic.*-build-server-01, *-deploy-agent). Additionally, filter out events where the process path contains \Program Files\Octopus Deploy\ or \Azure DevOps Agent\.Scenario: Internal Patch Management Execution
PdqAgent.exe or `Pd