This rule identifies the execution of known .NET-based red and blue team utilities by matching process names against a curated list of security tooling signatures. Proactively hunting for these artifacts in Azure Sentinel is essential to distinguish legitimate internal testing activities from potential adversaries leveraging similar frameworks to establish persistence or conduct reconnaissance within the environment.
rule HKTL_NET_NAME_Recon_AD {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/outflanknl/Recon-AD"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "Recon-AD" 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”, including suggested filters and exclusions:
Scenario: Automated Security Scanning by Enterprise Antivirus
falcon.sysmon.exe or defender.msc.exe which contain keywords matching the rule’s detection logic for security tools.C:\Program Files\CrowdStrike\...\falcon.sysmon.exe) or where the image path resides within the vendor’s installation directory.Scenario: Scheduled Compliance Reporting Job
ComplianceAuditTool.exe to aggregate logs and generate reports for regulatory compliance (e.g., SOC2, HIPAA). This tool is developed in-house using the .NET framework and mimics the naming convention of standard red-team tools like Invoke-Command.ps1 or similar utility names.\Microsoft\Windows\ScheduledTasks\ComplianceReport) and runs during off-hours (e.g., 02:00 – 04:00).Scenario: Deployment of Internal .NET Management Utilities