Skip to content
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

[SIEM] Detection engine when security is disabled #54743

Open
cwurm opened this issue Jan 14, 2020 · 6 comments
Open

[SIEM] Detection engine when security is disabled #54743

cwurm opened this issue Jan 14, 2020 · 6 comments
Labels
Feature:Detection Rules Security Solution rules and Detection Engine Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM

Comments

@cwurm
Copy link
Contributor

cwurm commented Jan 14, 2020

When security is disabled (as is the default), the Detection engine will show Detection engine permissions required. It's somewhat misleading, since without the security plugin the concept of privileges doesn't even exist.

A more helpful message might be The Security plugin has to be enabled to use the detection engine. See the documentation on how to do that. (documentation could link to this).

In the background there is a 500 Internal Server Error:
Screen Shot 2020-01-14 at 15 20 26

@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@tsg
Copy link
Contributor

tsg commented Jan 23, 2020

Related to this, in BC2, one gets an additional toaster error saying "Failed to query signals". That's unnecessary since the page is blocked anyway.

Screenshot 2020-01-23 at 11 59 46

@rylnd
Copy link
Contributor

rylnd commented Mar 31, 2020

Resurrecting this issue as it's resurfaced during our testing of 7.7. (Thanks @XavierM)

With #59438, the default behavior for errors coming from SIEM endpoints is to display them in a toaster. When security is disabled, SIEM endpoints that attempt to communicate with elasticsearch will return a 401. As a result, the original issue persists, and we're now seeing more toaster errors than in 7.6; typically one for each failed request. This is incorrect: this behavior can occur, but only if security is disabled in kibana and enabled in elasticsearch, which is not a situation we need to support.

@rylnd
Copy link
Contributor

rylnd commented Mar 31, 2020

A bit more context: we've been testing the behavior of SIEM when security is disabled mainly to verify that SIEM continues to function for something like demo.elastic.co. However, after speaking with the owners of that instance, it appears that they do not disable security and instead just have a read-only user that's always logged in.

Regardless, security being disabled is still a situation that SIEM needs to support (or at least address).

@rylnd
Copy link
Contributor

rylnd commented Apr 1, 2020

After some more thorough testing I wanted to update this issue with the current behavior as of 7.7.0 BC2.

If security is disabled on both the elasticsearch instance and kibana, when visiting the detections page you see the "permissions required" message on the page, and there's additionally a toaster error with a clear CTA:

Detections_-_Kibana

Other notes

  • The "signals index exists" endpoint correctly returns a 404, which is ignored by the frontend (i.e. it is not presented to the user as a toaster)
  • Detections is the only tab that displays an error toaster; the other tabs e.g. hosts continue to display data as expected.

@kdk2933
Copy link

kdk2933 commented Oct 18, 2020

After some more thorough testing I wanted to update this issue with the current behavior as of 7.7.0 BC2.

If security is disabled on both the elasticsearch instance and kibana, when visiting the detections page you see the "permissions required" message on the page, and there's additionally a toaster error with a clear CTA:

Detections_-_Kibana

Other notes

* The "signals index exists" endpoint correctly returns a 404, which is ignored by the frontend (i.e. it is not presented to the user as a toaster)

* Detections is the only tab that displays an error toaster; the other tabs e.g. hosts continue to display data as expected.

After some more thorough testing I wanted to update this issue with the current behavior as of 7.7.0 BC2.

If security is disabled on both the elasticsearch instance and kibana, when visiting the detections page you see the "permissions required" message on the page, and there's additionally a toaster error with a clear CTA:

Detections_-_Kibana

Other notes

* The "signals index exists" endpoint correctly returns a 404, which is ignored by the frontend (i.e. it is not presented to the user as a toaster)

* Detections is the only tab that displays an error toaster; the other tabs e.g. hosts continue to display data as expected.

Did you get the fix for the issue?

@MindyRS MindyRS added Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Detection Rules Security Solution rules and Detection Engine labels Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Detection Rules Security Solution rules and Detection Engine Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM
Projects
None yet
Development

No branches or pull requests

6 participants