This rule 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 threats leveraging familiar .NET tools to evade standard detection mechanisms.
rule HKTL_NET_NAME_MagentoScanner {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/soufianetahiri/MagentoScanner"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "MagentoScanner" 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,” along with suggested filters or exclusions:
Scenario: Automated Backup and Maintenance Scripts
Veeam.Backup.Engine.exe or Commvault.CommandCenter.exe. These tools mimic the naming convention of security utilities by including terms like “Engine,” “Agent,” or “Service” in their filenames.Image Path contains specific backup vendor directories (e.g., C:\Program Files\Veeam\Backup and Replication\) AND the Parent Process Name is a known service host like svchost.exe or wuauserv.exe.Scenario: Internal DevOps CI/CD Pipeline Agents
BuildAgent.exe, AzurePipelines.Agent.Service.exe, or NuGet.CommandLine.exe to compile code and manage dependencies, which triggers the rule due to their .NET nature and tool-like naming.NT SERVICE\JenkinsBuildAgent) where the Command Line arguments contain keywords like “build,” “compile,” or “pipeline” rather than security-related flags.Scenario: Scheduled Endpoint Configuration Management
ccmexec.exe, `AppDeploymentService