[Paper Review] Automating Cyber Threat Hunting Using NLP, Automated Query Generation, and Genetic Perturbation
This paper presents WILEE, an AI-driven system that automates cyber threat hunting by using NLP (Malmo) to extract and translate human-readable threat descriptions into machine-executable domain-specific language (DSL) queries, and genetic programming (GPE) to generate novel, perturbed variants of indicators of compromise (IOCs). The system enables scalable, adaptive detection of both known and evolving threats by automating DSL generation and IOC mutation, significantly reducing reliance on manual SME input while expanding detection coverage.
Scaling the cyber hunt problem poses several key technical challenges. Detecting and characterizing cyber threats at scale in large enterprise networks is hard because of the vast quantity and complexity of the data that must be analyzed as adversaries deploy varied and evolving tactics to accomplish their goals. There is a great need to automate all aspects, and, indeed, the workflow of cyber hunting. AI offers many ways to support this. We have developed the WILEE system that automates cyber threat hunting by translating high-level threat descriptions into many possible concrete implementations. Both the (high-level) abstract and (low-level) concrete implementations are represented using a custom domain specific language (DSL). WILEE uses the implementations along with other logic, also written in the DSL, to automatically generate queries to confirm (or refute) any hypotheses tied to the potential adversarial workflows represented at various layers of abstraction.
Motivation & Objective
- To automate the translation of human-readable threat descriptions into executable, machine-processable queries for cyber threat hunting.
- To reduce manual dependency on subject matter experts (SMEs) for creating and maintaining TTP-based detection rules in the WILEE framework.
- To extend detection coverage by generating novel, behaviorally plausible variants of known threats through genetic perturbation of IOCs.
- To enable scalable, adaptive threat hunting by dynamically evolving threat models in response to evolving adversary tactics.
- To evaluate the effectiveness of AI-generated DSLs and perturbed IOCs against known threat simulations, such as those in CALDERA and OpTC.
Proposed method
- Malmo uses NLP to extract key threat elements—such as tactics, techniques, procedures (TTPs), and IOCs—from semi-structured human-readable documents, translating them into a Pythonic DSL for machine processing.
- The system employs a custom domain-specific language (DSL) based on MITRE ATT&CK and extended CybOX to model network and host entities, including those not natively supported by CybOX.
- Genetic Perturbation Engine (GPE) applies grammar-guided genetic programming to mutate threat implementations by altering IOC values using type-matched alternatives from a curated IOC database.
- GPE uses novelty search with a tunable balance between diversity and fitness to explore new threat variants when initial fitness values are unknown or dynamic.
- The system integrates with data stores via a data proxy, automatically generating and executing queries to detect TTP sequences across enterprise network data.
- Perturbations are applied at the AST level of DSL code, enabling safe, syntactically valid mutations that preserve execution semantics while exploring new attack surface variations.
Experimental results
Research questions
- RQ1Can NLP techniques effectively extract and translate human-readable threat descriptions into executable, machine-processable DSL queries for automated threat hunting?
- RQ2To what extent can genetic programming generate meaningful, behaviorally plausible variants of known IOCs to detect evolving or unknown threats?
- RQ3How does the performance of AI-generated DSLs and perturbed IOCs compare to manually authored SME-generated rules in detecting simulated attacks?
- RQ4Can novelty search with adaptive balancing improve the exploration of unknown threat variants when fitness signals are delayed or unstable?
- RQ5What is the potential of using learned attacker behaviors to guide the generation of new IOCs and expand detection families?
Key findings
- Malmo successfully extracts and translates key threat elements—including IOCs and TTPs—from semi-structured human documents into a machine-executable DSL, enabling automated query generation.
- The GPE component generates syntactically valid, diverse variants of threat implementations by mutating IOC values using a type-aware, database-driven substitution mechanism.
- Novelty search with a tunable balance between diversity and fitness enables effective exploration of the threat space even when initial fitness values are unknown or unstable.
- The system demonstrates feasibility in detecting known threats using AI-generated DSLs, with initial evaluations showing alignment with ground truth from CALDERA and OpTC simulations.
- The framework enables dynamic, adaptive hunting by generating new IOCs that reflect plausible attacker evolution, such as replacing known software authors with plausible alternatives in C2C domains.
- Future work indicates that GPE could be enhanced to generate regular expression-like patterns for detecting entire families of related threats, increasing detection coverage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.