This detection identifies the execution of known .NET-based security testing utilities by monitoring process names associated with Red and Black team operations. Proactively hunting for these tools in Azure Sentinel allows the SOC to distinguish legitimate security assessments from potential adversary activity that mimics standard diagnostic or penetration testing behaviors.
rule HKTL_NET_NAME_ConfuserEx {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/yck1509/ConfuserEx"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "ConfuserEx" 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/black-team tools via name”, including suggested filters and exclusions:
Scenario: A scheduled backup job utilizes a custom .NET wrapper named RedTeam_Scan.exe to verify data integrity before archiving.
C:\Program Files\BackupAgent\Jobs\) and the parent process is the backup service (BackupEngineService.exe).Scenario: The IT Helpdesk runs a routine deployment script using a tool named BlackTeam_Audit.dll to check user permissions on the domain controller.
DOMAIN\IT-Admin, DOMAIN\HelpDesk) where the command line contains specific flags like /mode=audit.Scenario: A third-party vulnerability scanner named RedTeam_HealthCheck.exe is installed on a file server to monitor disk health and network latency.
RTHC_Service) rather than being launched interactively by a user session, or filter by the specific installation path C:\Tools\VulnScan\.Scenario: Developers in the R&D department use a custom .NET utility named BlackTeam_LogParser.exe to aggregate application logs during nightly maintenance windows.
Scenario: The security team deploys a .NET agent named `RedTeam_M