This detection identifies the execution of known .NET-based offensive and defensive utilities by monitoring process names associated with Red Team and Black Team tooling. Proactively hunting for these artifacts in Azure Sentinel allows the SOC team to distinguish legitimate security operations from potential adversary activity that mimics standard .NET tools to evade discovery.
rule HKTL_NET_NAME_MSBuildAPICaller {
meta:
description = "Detects .NET red/black-team tools via name"
reference = "https://github.com/rvrsh3ll/MSBuildAPICaller"
author = "Arnim Rupp"
date = "2021-01-22"
strings:
$name = "MSBuildAPICaller" 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 and exclusions:
Scenario: Automated Backup Service Execution
Veeam.Backup.Service.exe or similar .NET wrappers that match the rule’s naming pattern for security tools.CommandLine contains keywords like “backup”, “snapshot”, or “sync” and the UserAccount is a dedicated service account (e.g., DOMAIN\svc_backup).Scenario: Scheduled Patch Deployment Jobs
SYSTEM account and invoke executables like PatchDeployAgent.exe.ParentProcessName is TaskScheduler.exe or ccmexec.exe.Scenario: Internal Compliance & Audit Scanners
ComplianceAuditRunner.dll or InternalSecurityCheck.exe.ProcessName matches a known list of internal audit tool names (e.g., ^Internal.*\.exe$) and the