[New] Windows Clickfix Investigation - #34
Open
w0rk3r wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Agent Builder-centered Windows ClickFix investigation workflow. For a supported alert, the workflow collects bounded endpoint evidence and reputation context, constructs a typed evidence manifest, and asks the ClickFix Investigation Agent to produce a structured, evidence-referenced assessment.
After receiving a schema-valid agent response, the workflow creates, deduplicates, or repairs an Elastic Security Case and attaches selected correlated alerts. The disposition and attacker-behavior chain are AI-generated analytical conclusions for analyst review; evidence citations provide traceability to the collected observations.
The workflow performs investigation, external enrichment, and Case creation. It does not execute containment or endpoint response actions.
How it works
clickfix-investigation-agent. The agent is instructed to call its assigned read-only ES|QL tool at most once to retrieve up to 20 fragments for one exact PowerShell script-block locator. It returns a disposition, confidence, rationale, material uncertainties, and a structured three-to-eight-stage attacker-behavior chain.Trigger and scope
The workflow uses an
alerttrigger and currently provides a specialized investigation for Suspicious Command Execution via Windows Run (f4f436c8-5c4a-4f61-b0cc-17b154920887).Alerts without the required host, process, or time context return an explicit unresolved result without creating a Case. Unsupported behaviors return an explicit unsupported result.
Included components
windows-clickfix-investigation.yaml: the alert-triggered investigation, enrichment, agent invocation, and Case-delivery workflow.windows-clickfix-agent.md: setup instructions for the ClickFix Investigation Agent and its read-only ES|QL tool.README.md: workflow catalog entry and setup guidance.The agent is assigned exactly one ClickFix-specific custom tool. Elastic capabilities are disabled, although Agent Builder may still show built-in tools in the active-tool total.
Prerequisites
REPLACE_WITH_CONNECTOR_IDvalue before importing the workflow.clickfix.get_script_blockbefore creating the agent so the tool is available for assignment.Investigation boundaries
complete_within_policymeans the configured bounded collection and enrichment checks reconciled successfully; it does not imply unlimited investigative completeness.Testing
Validated end to end in an Elastic Serverless deployment using the July 20 alert generated from malware delivered through a Cloudflare CAPTCHA ClickFix flow.
The final execution:
complete_within_policycoverage for the configured investigation boundary.maliciousdisposition withhighconfidence.Case Markdown: https://gist.github.com/w0rk3r/5a6e84ee4ef046bf244271012671fcb2
Workflow execution JSON: https://p.elstc.co/?4411f86bd36d00f0#8GnhUWvRsNzqg4HWXaimrjxVWdTZwB64c3qZQERPq7ux