Skip to content

[9.3] [Security Solution][Entity Analytics][Risk Scoring] Handle special characters in ESQL query for risk scoring (#247060)#247244

Merged
kibanamachine merged 2 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247060
Dec 23, 2025
Merged

[9.3] [Security Solution][Entity Analytics][Risk Scoring] Handle special characters in ESQL query for risk scoring (#247060)#247244
kibanamachine merged 2 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247060

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…aracters in ESQL query for risk scoring (elastic#247060)

## Summary

Fixes `json.parse()` failures when ES|QL risk score calculation query's
output contain special characters (quotes, backslashes, newlines, etc.)
by encoding field values with Base64 in queries.

Fixes: elastic/sdh-security-team#1529

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 998226c)
@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 22, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #107 / ObservabilityApp o11y sidenav sidenav & breadcrumbs renders the correct nav and navigate to links

Metrics [docs]

✅ unchanged

History

cc @abhishekbhatia1710

@kibanamachine kibanamachine merged commit c25ff7d into elastic:9.3 Dec 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants