This rule identifies the execution of known .NET-based red and blue team utility processes by matching their specific file names against a curated list of common security testing tools. Proactively hunting for these artifacts in Azure Sentinel is essential to distinguish legitimate internal security exercises from potential adversary activity that mimics standard tooling to evade detection.
rule HKTL_NET_NAME_SharpOffensiveShell {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/darkr4y/SharpOffensiveShell"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "SharpOffensiveShell" 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 Jobs Using PowerShell Modules
Veeam.Backup.Service.exe or Commvault.NetAgent.dll) which may match the rule’s keyword list for “red/blue team” tools.backup, replication, snapshot) OR exclude processes running under known service accounts like VeeamBackupService or CommvaultAgent.Scenario: Endpoint Detection and Response (EDR) Self-Scanning
FalconSensorHelper.exe or DefenderUpdateService.exe, which can be misidentified as external red-team simulation tools.C:\Program Files\CrowdStrike\), rather than temporary folders like %TEMP%.Scenario: Scheduled CI/CD Pipeline Execution