This detection identifies the execution of known .NET-based Red and Black team reconnaissance or attack tools by matching process names against a curated list of security utilities. Proactively hunting for these artifacts in Azure Sentinel is essential to distinguish legitimate security operations from adversarial activity that mimics standard tooling to evade signature-based defenses.
rule HKTL_NET_NAME_ibombshell {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/Telefonica/ibombshell"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "ibombshell" 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,” along with suggested filters or exclusions:
Scenario: Automated Backup Jobs Using PowerShell
.NET based agents or custom PowerShell scripts that invoke dotnet.exe to manage data snapshots. These processes frequently spawn child processes with names resembling security tools (e.g., Veeam.Backup.Agent.exe) which may contain keywords like “Red” or “Blue” in their version strings or command lines, triggering the rule.Veeam.*, Commvault.*) running under the context of known service accounts (e.g., DOMAIN\BackupSvc).Scenario: Scheduled Compliance Scanning via .NET CLI
.NET Command Line Interface (CLI) tools to audit Active Directory or file permissions. These scripts often name their executables generically, such as ComplianceScan.Red.exe, which matches the rule’s logic for “Red-team” tool naming conventions despite being a legitimate administrative task.Task Scheduler or System) and restrict detection to specific file paths where these custom tools are installed (e.g., C:\Program Files\InternalTools\Compliance\).Scenario: CI/CD Pipeline Execution in Build Agents
.NET applications during the continuous integration phase. These agents often run tools named BuildAgent.RedTool.exe to simulate security testing within the pipeline,