This detection identifies the execution of known .NET-based Red and Blue team utility names to distinguish legitimate security operations from potential adversary tool usage within the environment. Proactive hunting for these artifacts in Azure Sentinel is essential to validate authorized testing activities and quickly uncover unauthorized or stealthy .NET tools that adversaries may deploy to establish persistence or conduct reconnaissance.
rule HKTL_NET_NAME_reconness {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/reconness/reconness"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "reconness" 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 3-5 specific false positive scenarios for the rule “Detects .NET red/black-team tools via name,” along with suggested filters or exclusions:
Scenario: Automated Backup and Reporting Scripts
BackupAgent.exe, ReportGenerator.dll) that utilize common naming conventions similar to security tools. These scripts run on scheduled tasks during off-hours, executing in the same directories as security agents.C:\Program Files\EnterpriseBackup\) and the Command Line includes known internal script names like InternalReport.exe or DataSyncService.exe.Scenario: Software Deployment via Microsoft Endpoint Configuration Manager (SCCM/Intune)
App-VirtualizationAgent.exe, DeployTool_v2.0.exe) that mimic the naming patterns of red-team emulation tools used for penetration testing. These often run on endpoints with high privilege.ccmexec.exe (SCCM) or Microsoft.IntuneManagementAgent.exe, as these are trusted orchestrators launching legitimate deployment payloads rather than suspicious red-team activity.Scenario: Internal Development and CI/CD Pipeline Agents
JenkinsAgent.dll, AzureDevOpsRunner.exe) execute .NET build tasks. These tools often carry names resembling black-team analysis utilities and run under service accounts with broad permissions.