This hunt hypothesis identifies the execution of known .NET-based red and blue team utilities by monitoring process names that match established tool signatures within the Azure Sentinel environment. Proactively hunting for these specific artifacts allows the SOC team to distinguish between legitimate security testing activities and potential adversary reconnaissance, ensuring that authorized tools are not mistaken for malicious behavior while maintaining visibility into internal security operations.
rule HKTL_NET_NAME_SharPyShell {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/antonioCoco/SharPyShell"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "SharPyShell" 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 4 specific false positive scenarios for the rule “Detects .NET red/blue-team tools via name,” including suggested filters and exclusions:
Scenario: Automated Backup Scripts Executing PowerShell Tools
.exe files or PowerShell scripts wrapped in .NET to manage data snapshots. These tools frequently include names like Veeam.Backup.Engine.exe or custom scripts named BackupAgent_v2.dll.C:\Program Files\Veeam\*) and exclude processes where the command line contains keywords like “backup”, “snapshot”, or “agent”.Scenario: Scheduled Patching Jobs Using .NET Wrappers
PatchOrchestrator.exe running under the SYSTEM account during maintenance windows.TaskScheduler.exe and the user context being NT AUTHORITY\SYSTEM. Additionally, exclude processes where the file hash matches a known baseline of approved patching tools.Scenario: Endpoint Detection and Response (EDR) Self-Scanning
FalconSensorService.exe or CarbonBlackAgent.dll, which can be mistaken for external red-team tools.