-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Detection Engine] Verify efficient usage of createPointInTimeFinder #211637
Comments
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Result of initial audit:
To summarize the above: we do not have any situations where we attempt to retrieve all known lists/items into memory. However, when deleting an exception list, there are two instances where we perform an unbounded retrieval (of items referenced by a value list, and exception lists referenced by those items, respectively) of items linked to the exception list being deleted. Since there is no limit to the number of value lists referenced in an exception list, nor to the number of exception lists referencing a value list, the size is still effectively unbounded. |
@yctercero given the above, I can think of a few angles from which to address things:
|
@rylnd thanks so much for doing the analysis of our uses here. Could you create a ticket for us to follow up on this and add to backlog? A user could easily have more than 10k value list items. I'm not as worried about the number of value lists referenced in an exception list.
This would be a breaking change and with value lists, they could very easily reach 10k+ so I'm a bit weary of going down this route.
What exactly would we warn them about? Would we need to create some kind of async route to deal with these instances?
We are prioritizing adding telemetry in 8.19, it may be worth adding a comment in this ticket to ensure we track this. |
@yctercero I created #212460; let me know if that looks good to you. |
In our plugins, the following files use
createPointInTimeFinder
andcreatePointInTimeFinderDecryptedAsInternalUser
. We should analyze whether we are loading all results into memory and apply mitigations if possible, as described in this ticket: #203017.The text was updated successfully, but these errors were encountered: