arXiv:2610.24162cs.CROct 2026

Manuscript Offprint

arXiv:2610.24162

Automated Rule Mutation for Emerging Attack Variants using Infrastructure-Aware Technique Proximity

Sepehr Ghaffarzadegan, Boubakr Nour, Makan Pourzandi, Mourad Debbabi, Chadi Assi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sepehr Ghaffarzadegan¶, Boubakr Nour*, Makan Pourzandi*, Mourad Debbabi¶, and Chadi Assi¶

¶Concordia University, Canada

*Ericsson Security Research, Canada

Abstract—Detection rules are typically crafted based on specific observations of an attack. While these rules are effective for particular attack instances, their coverage diminishes when adversaries modify their techniques, such as by employing alternative execution paths or adapting to different telemetry environments while achieving the same objective. To address this challenge, we introduce ARMS, an automated rule mutation solution that generates variant detection rules. ARMS defines a novel three-dimensional proximity space to identify techniques related to the original attack that capture structural relations, functional similarity, and environmental constraints. Rather than relying on ungrounded generation, ARMS leverages verifiable attack execution commands, which are extracted via semantic alignment with the Atomic Red Team repository, to construct a context-aware Retrieval-Augmented Generation (RAG) pipeline. We evaluated ARMS using verified, public SigmaHQ rules and successfully generated variants, demonstrating ARMS's capability to expand detection coverage. We further evaluated ARMS across multiple research questions, showing the effectiveness of each proximity dimension and infrastructure-aware rule customization. Nearly all generated variant rules successfully compiled into SIEM queries, and ≈92%\approx 92\% of the newly generated rules detect the original behavior despite attackers' technique variations.

PoC demo: https://youtu.be/QbGtuGGEnmQ

Index Terms—Cyber Threat Intelligence, Security Automation, Detection Rule Generation, Detection Rule Mutation

I. INTRODUCTION

Detection engineering has become an enduring and escalating challenge for modern organizational security [1]. As organizations try to strengthen their defense by methods such as monitoring and rule-based detection, threat actors increasingly respond by changing how they can achieve the same goal through tool substitution, technique switching, and cross-platform execution changes [2]. Recent advancements in automation and artificial intelligence, including the widespread availability of Generative AI-based tools [3], have further diminished the cost of rapidly generating new scripts and commands, thereby accelerating the rate at which attackers can iterate through behavioral variants.

In practice, detection rules are implemented using diverse technologies. Security teams develop detection rules as SIEM queries (e.g., Splunk SPL, Elastic/ES|QL, Microsoft Sentinel KQL), endpoint detections, or signature-like rules associated with specific telemetry sources [4]. This diversity and variety create an operational challenge. Even though the detection logic remains the same, the cost of translating rules from one environment to another is often very high, and even small environmental differences can make a correct rule unusable. The Sigma rule format [5] addresses part of this challenge by offering a vendor-agnostic representation for detection logic, facilitating the sharing and translation of rules across different platforms and their mapping to the MITRE ATT&CK framework [6].

Challenges: Gathering Sigma rules is not tied to a single method or a single source of evidence. In real deployments, a Sigma rule may be (i) handcrafted by security practitioners, (ii) adopted from shared repositories, (iii) exchanged across organizations, or (iv) produced by automated rule generation tools. Regardless of how the rule is obtained, it is typically static [7]. It codifies assumptions about a particular attack instance and about the telemetry for that particular attack. This brittleness becomes visible when an attacker changes techniques while preserving the intent. For example, a rule written for a PowerShell-based procedure will fail once the same goal is achieved via an alternate interpreter, a different execution primitive, or a platform shift. At the same time, directly deploying external or generic rules often triggers operational friction because enterprises differ in their OS mix, logging coverage, schemas, and legitimate administrative activity [8]. Without an awareness of the infrastructure, rules may become redundant, inapplicable, and generate excessive noise.

Limitation of existing solutions: Previous research has investigated methods to reduce the cost of generating initial detections, including approaches that apply Natural Language Processing (NLP) and Large Language Models (LLMs) to generate detection rule candidates from unstructured sources [9], [10]. Other attempts tend to address the operational cost of large rule sets [11] by optimizing and consolidating rule sets to reduce redundancy and improve efficiency. As shown in Table I, these approaches do not address fundamental challenges frequently encountered in detection operations: ① maintaining coverage when attackers alter their techniques, and ② ensuring that the rules remain valid and compatible with the target environment. Although evasion-aware rule hardening [7] can enhance robustness against bypass patterns, ③ it does not address technique substitution and behavioral drift outside the original rule's scope.

Contributions: To address these challenges, we propose ARMS, an automated rule mutation solution designed to

TABLE I: Comparison with representative state-of-the-art solutions.

CategoryRef.Variant DiscoveryActionable LogicInfrastructure Awareness
Static Rule GenerationFALCON [12]✕✓✕
SIGMAGEN [13]✕✓✕
LLMCLOUDHUNTER [9]✕✓✕
RULEPILOT [14]✕✓✕
THREATPILOT [10]✕✓✕
Rule OptimizationRULEGENIE [11]✕✓✓
Rule MutationARMS✓✓✓

generate resilient, infrastructure-aware detection rule variants. Unlike previous work [9], [10] that focuses on static rule generation, ARMS emphasizes the proactive mutation of detection rules to anticipate emerging threat variants while ensuring validity and compatibility with the target environment. In this paper, we make the following contributions:

  • To address challenge 1, ARMS defines a novel three-dimensional space to identify attack variants based on the logic of adversarial equivalence. ARMS identifies technique proximity based on structure (e.g., graph-based relationships), function (e.g., semantic similarity), and environment (e.g., shared prerequisites and exploitable vulnerabilities via CAPEC [15] mappings).

  • To address challenge 2, ARMS implements a mechanism to filter and customize detection rules according to an enterprise's specific infrastructure. By utilizing a structured infrastructure profile of organizational assets, ARMS ensures that generated rules are optimized and relevant to the environment in which they are deployed.

  • To address challenge 3, ARMS utilizes Retrieval-Augmented Generation (RAG) [16] and Chain-of-Thought (CoT) reasoning [17] to convert detection logic across different technologies, such as converting Windows-centric Sysmon logic into equivalent Linux auditd or cloud-native signatures.

  • We established a robust methodology to assess generated variant rules across three critical research questions: variant fidelity, rule correctness (including syntactic and semantic validity), and infrastructure relevance.

References (36)