Here is how most detection teams “handle evasion”. Someone writes a rule for certutil.exe pulling a file off the internet. A week later a threat report mentions bitsadmin, so somebody duplicates the rule, swaps the binary name, bumps the title to “v2” and files it under “coverage expansion”. Repeat four times and you have a rule family: five rules that share one parent’s assumptions, one parent’s blind spots and, if you look closely, the same typo in the description. That is not engineering. That is Ctrl+C, Ctrl+V with a Jira ticket attached.
TL;DR: Sibling rules made by find-and-replace inherit every weakness of the parent, so check for an existing rule first, then use HEFAISTOS Generate Similar to draft variants along a named axis (evasion, scope, platform, related technique) and review each variant as a rule of its own.

How Copy-Paste Variants Fail
The mechanism is boring, which is why nobody notices it. When a variant is made by editing the parent’s text, the only things that change are the things that are easy to edit: a process name, a string literal, a table name. The things that decide whether a detection survives an attacker stay frozen: the same anchor, the same field assumptions, the same exclusions somebody added during a noisy week in 2023.
Three things go wrong at once:
- The axis of variation is chosen by convenience. Nobody sat down and asked “how would an operator evade this?” They asked “what can I change in this query in five minutes?”. Renamed binaries, alternative LOLBins and switch obfuscation never show up, because none of them is a one-word substitution.
- Nobody checks whether the sibling already exists. Your repository has three certutil rules written by three people who never read each other’s work. The fourth one will be written next quarter.
- Scope is a single setting. The parent has one sensitivity: no broad version for the high-security segment, no narrow one for the build farm that runs certutil 400 times a day. So the team argues about one threshold forever.
Vendor content packs do the same at scale: dozens of rules that differ by one value, sold as breadth. It’s still one idea, counted many times.
What Generate Similar Actually Asks For
Generate Similar sits in the AI Assist section of the HEFAISTOS Detection Rule editor, next to Generate with AI, Suggest Improvements and RAG Reuse Check. You pick a variation type, a count from 1 to 5 and an output format, and the platform asks the model for exactly that many distinct rules, separated so they can be shown one by one. The variation types are not marketing labels. Each one maps to a specific instruction block. These are taken from the prompt in the public HEFAISTOS repository:

A worked input. This is the kind of parent rule that gets copy-pasted most often, written in KQL for Defender advanced hunting:
DeviceProcessEvents
| where FileName =~ "certutil.exe"
| where ProcessCommandLine has_any ("urlcache", "-split")
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileName
Settings: Variation Type Evasion Variants, Count 3, Output Format KQL. The evasion block the model receives, verbatim from the public repository, reads:
Generate rules that catch EVASION VARIANTS of the original attack.
- Consider common evasion techniques attackers use to bypass the original rule
- Include obfuscation variations (encoding, case changes, character substitution)
- Add rules for alternative tools/binaries that achieve the same result
- Consider living-off-the-land alternatives
- Each rule should catch a specific evasion method
The shared guidelines on top of that tell the model to keep each rule distinct (“don’t just change minor details”), to explain what makes each one different, to consider false-positive implications, and to ground each variation in the supplied capability abstractions and documented evasions. That last part matters: the parent rule above only works while the binary is still called certutil.exe, and a variant worth keeping anchors on something harder to rename. The model is pointed at that question. Judging whether it answered well is your job.
How to Use It: Reuse Check, Generate, Review, Save
- Configure AI once. In your profile, under AI Assistant Settings, either add a personal provider key or switch on Use Organization AI if your admin has configured providers for the organization. Without this, every AI action returns “Please configure AI Settings in your profile first.”
- Open the rule from its Workbench. Open the detection rule editor from the Workbench instead of a blank editor. When a Workbench is attached, the request carries that Workbench’s context, including its selected Capability Abstractions, so the variants are generated against your documented anchors and evasions instead of the model’s imagination.
- Run RAG Reuse Check first. Before you add a sibling, ask whether one already exists. The check retrieves templates from your organization’s synced rule repositories and returns a decision of REUSE, ADAPT or CREATE_NEW, with a rationale and, where it fits, an adapted rule. It works for KQL, EQL, SPL and Wazuh, and your admin has to have connected a rule repository and run its RAG sync. If the answer is REUSE, congratulations: you just avoided writing the fourth certutil rule.
- Generate. Click Generate Similar, pick the variation type, set Count (1 to 5) and Output Format (FREE Format is manual-only and excluded from AI), add Custom Instructions only if you picked Custom, then click Generate 3 Variations (the button counts for you). The job runs asynchronously, so a slow model doesn’t time out your browser. The results land in the Similar Rules tab, marked New, one card per rule. For KQL, EQL, SPL and Wazuh output, generation is also grounded in retrieved templates from your own repositories.
- Review each card as a rule, not as a suggestion. For each variant, ask: what evasion does it actually close, which field does it anchor on, and what will it fire on in your environment? Use Change Options or Regenerate if the batch is lazy. Use This Rule loads a variant into the editor in place of the current text. Nothing is persisted until you save, so browsing is harmless; saving is not. Save after Use This Rule and the variant replaces the parent in that Workbench, which is rarely what you want for a sibling.
- Give every keeper its own life. A variant you keep is a new detection. Put it in its own Workbench, test it against a positive that isn’t your parent’s test script (we covered why in Your Detection Didn’t Learn Kerberoasting, It Memorized Your Test Script), and send it through Peer Review like anything else, with a reviewer who can actually block it, as described in Peer Review Theater. A generated rule that skipped review is just a faster copy-paste.
The gain is not “AI wrote my rules”. The variation axis becomes a choice you can name in review, duplicates get caught before they’re written, and scope fights become two rules with two sensitivities.
Do this Today
- Pick your most-copied rule (search your repository for the binary name; if it appears in more than two rules, that’s the one) and run RAG Reuse Check on its Workbench before anyone writes another sibling.
- Run Generate Similar on it with Evasion Variants, Count 3, and write one sentence per variant naming the evasion it closes. Discard any variant where you can’t write that sentence.
- Run Scope Variations on your noisiest rule and replace the current threshold argument with two reviewed rules: one broad for high-value segments, one narrow for the noisy ones.
Variants are cheap now. Make them earn their place.
Featured image generated using Artificial Intelligence (EU AI Act transparency notice).