This detection identifies adversary activity involving known .NET-based Red and Blue Team tools by matching process names against a curated YARA signature, which helps distinguish legitimate security operations from potential malicious tool usage. Proactively hunting for this behavior in Azure Sentinel is essential to reduce false positives during threat investigations and ensure that the presence of these specific utilities does not obscure genuine attack signals within the environment.
rule HKTL_NET_NAME_GhostLoader {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/TheWover/GhostLoader"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "GhostLoader" 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 HKTL_NET_NAME_GhostLoader detection rule, including suggested filters and exclusions:
Scenario: Automated Deployment via Octopus Deploy or Jenkins
GhostLoader.exe or similar variants to inject configuration updates into target machines. These tools mimic the behavior of red-team loaders by reading from network shares and executing payloads.Octopus.Service.exe, Jenkins.Agent.exe, or TfsBuildAgent.exe located in known deployment directories (e.g., C:\Program Files\Octopus Deploy\...).Scenario: Scheduled Microsoft System Center Configuration Manager (SCCM) Tasks
GhostLoader component may be invoked to stage applications or update client agents, triggering the rule due to its .NET nature and specific naming convention./taskID, /siteCode) and restrict the scope to machines within the SCCM-Management Active Directory security group or OU.Scenario: Legitimate Endpoint Protection Scanning (CrowdStrike/SentinelOne)
GhostLoader to perform on-access scanning of .NET assemblies in real-time. This is particularly common when the EDR engine updates its definition database or scans a large directory of compiled