[Security Solution] Strip tools from alert analysis classification agent - #290140
Conversation
Use configuration_overrides so the classification call cannot invoke tools or skills, and drop the redundant prompt-only instruction. Relabel workflow_version to v0.0.3. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
@elasticmachine merge upstream |
|
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::anthropic-claude-4.6-opus | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::anthropic-claude-4.6-opus
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::anthropic-claude-4.6-sonnet | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::anthropic-claude-4.6-sonnet
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::google-gemini-3.0-flash | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::google-gemini-3.0-flash
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::google-gemini-3.1-pro | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::google-gemini-3.1-pro
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::openai-gpt-5.4 | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::openai-gpt-5.4
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
PR run: bk-01a09293-6c96-4589-9975-4fc1edd61a38::security-alert-analysis-workflow::openai-gpt-oss-120b | Baseline (main): bk-01a07328-2f89-4201-93fc-e763ec8c96e7::security-alert-analysis-workflow::openai-gpt-oss-120b
Summary
View full comparison in UI | Refresh baseline against latest main (click Unblock in the eval build) No significant changes (3 rows)
|
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
Test Failures
History
|
Summary
This PR hard-strips the alert analysis classification agent's tool and skill belt by setting
configuration_overridesonrunAgent_step(enable_elastic_capabilities: false, emptytoolsandskill_ids).configuration_overrideswas merged into the agent builder steps weeks after the alert analysis workflow shipped. Because the agent's context is pre-built by earlier steps, this agent should never have been able to invoke tools. The previous protection was a prompt-only instruction ("Don't use any tools") which was an unnecessary artifact that introduced possible model variance. This PR drops that redundant prompt line and enforces the restriction at the framework level, shrinking the attack surface on untrusted alert fields.consts.workflow_versionis bumped tov0.0.3. The managed definitionversionis unchanged (the yaml content hash still auto-upgrades installs).Local eval results
Suite
security-alert-analysis-workflow, 5 reps × 8 examples, on the current batched workflow. Judge: Gemini 3.1 Pro.Eval notes:
995finstead of95f), scoring no verdict. The same example was correct on the other 4 reps.To test
system-security-alert-analysisso it picks up the new yaml hash.configuration_overridesonrunAgent_stepandworkflow_version: "v0.0.3".Screenshots: not applicable (no UI change).
PR developed with Cursor + Gemini 3.1 Pro