This detection identifies the execution of known .NET-based red and black team utility names to distinguish legitimate security testing activities from potential adversary use of similar frameworks for reconnaissance or lateral movement. Proactively hunting for these tools in Azure Sentinel allows the SOC team to validate authorized test engagements against unexpected occurrences, ensuring that legitimate operations are not mistaken for malicious activity while uncovering hidden threats leveraging standard .NET binaries.
rule HKTL_NET_NAME_weevely3 {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/epinna/weevely3"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "weevely3" 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 or exclusions:
Scenario: Automated Backup and Maintenance Scripts
Veeam.Backup.Agent.exe might be running on the file system root, triggering the rule due to its .NET framework signature and naming convention resembling red-team utilities.Veeam.Backup.Service) AND the executable path resides within the standard vendor installation directory (e.g., C:\Program Files\Veeam\Backup\).Scenario: Internal DevOps and CI/CD Pipeline Agents
dotnet.exe or custom wrappers named BuildRunner.exe to compile code. These agents often run on the same network segment as security monitoring servers and may mimic the behavior of red-team reconnaissance tools by scanning directories or executing scripts.NT SERVICE\Jenkins or DEVOPS-BUILD-AGENT) where the command line arguments contain keywords like “build,” “compile,” or “pipeline” rather than security-specific flags like “recon” or “scan.”Scenario: Endpoint Management and Patching Solutions