This rule identifies the execution of known .NET-based red and black team tools by monitoring process names that match established security utility signatures. Proactive hunting for these artifacts in Azure Sentinel is essential to distinguish legitimate security operations from adversarial activity that may mimic similar tooling to evade detection or establish persistence.
rule HKTL_NET_NAME_CACTUSTORCH {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/mdsecactivebreach/CACTUSTORCH"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "CACTUSTORCH" 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 Backup Execution
Veeam.Backup.Service.exe or Commvault.Agent.exe) during scheduled maintenance windows. These often include “red-team” style keywords in their process paths or command lines, triggering the rule despite being standard infrastructure operations.\Program Files\Veeam\ or \Commvault\ and the user context is a dedicated service account (e.g., NT SERVICE\VeeamBackup) rather than an interactive logged-in user.Scenario: Endpoint Protection Scanning
FalconSensor.exe or SentinelOneAgent.exe, which may match the rule’s signature for “red-team” .NET utilities due to shared naming conventions in the security sector.FalconService.exe or SentinelOneAgentService.exe).Scenario: Internal DevOps Deployment Pipelines