Open banderror opened 1 month ago
Pinging @elastic/security-solution (Team: SecuritySolution)
Pinging @elastic/security-detection-engine (Team:Detection Engine)
Pinging @elastic/security-detections-response (Team:Detections and Resp)
Note from sync: we should add validation to disallow and encourage users in docs to correctly format image links.
Kibana versions: main branch, 8.11.3
Summary
A rule fails during its execution when trying to index generated alerts, if its investigation guide contains a base64-encoded image instead of a link to an image by URL. Error message:
As you can see from the screenshot, the guide itself renders on the Rule Details page - we support base64-encoded images in our markdown components.
Example of an investigation guide that causes this issue:
Image URLs, however, don't break the rule execution:
How to reproduce
Import two rules using the following ndjson file:
Index some source documents with a
host.name
field to alogs-*
index. Enable the rules and see that one of them fails and the other one succeeds.Alternatively, use https://www.base64encode.net/base64-image-encoder to get your own base64-encoded image.