[DO NOT MERGE][Security Solution][Attacks/Alerts] POC: Alerts/Attacks promotion#252977
[DO NOT MERGE][Security Solution][Attacks/Alerts] POC: Alerts/Attacks promotion#252977e40pud wants to merge 90 commits into
Conversation
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (6)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR introduces a Proof of Concept (POC) for scheduling ad-hoc rule executions within the Alerting framework. This mechanism allows triggering a one-off execution of a rule type using inline parameters and the authenticated user's credentials, without requiring a persistent Rule Saved Object.
Overview
For a detailed explanation of the problem, proposal, and design, please refer to the following overview document.
Key Changes
AdHocExecutionClient: A new client in the Alerting framework dedicated to queuing ad-hoc rule runs. It validates parameters, creates anAdHocRunSO, and schedules the execution task.AdHocTaskRunnerhas been enhanced to execute rules based solely on the context provided in theAdHocRunSO(including a generated API Key), bypassing the need to fetch a Rule Saved Object.AdHocRunSO,transformBackfillParamToAdHocRun) to ensure consistency and minimize code duplication.POST /internal/attack_discovery/promote) and a corresponding rule executor (security.attack.promotion) demonstrate how this capability enables the "Attack Promotion" workflow.PR developed with Cursor + Gemini 3 Pro