Skip to content

[SecuritySolutions] Update risk score docs and add links to existing workflows#166741

Closed
machadoum wants to merge 1 commit intoelastic:mainfrom
machadoum:siem-explore-166717
Closed

[SecuritySolutions] Update risk score docs and add links to existing workflows#166741
machadoum wants to merge 1 commit intoelastic:mainfrom
machadoum:siem-explore-166717

Conversation

@machadoum
Copy link
Copy Markdown
Member

@machadoum machadoum commented Sep 19, 2023

issue: #166717

Summary

  • Add the "How is risk score calculated?" button to the entity analytics page and risk score tab on the Host/User page.
  • Add risk score hover action to the user/host overview component. We can't open a flyout here because this component is already inside a flyout. The links send the user to the complete documentation.

TODO

  • Update text with final version
Screenshot 2023-09-27 at 17 06 40

Checklist

Delete any items that are not applicable to this PR.

@machadoum machadoum added Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Feature:Entity Analytics Security Solution Entity Analytics features v8.11.0 labels Sep 19, 2023
@machadoum machadoum self-assigned this Sep 19, 2023
@machadoum machadoum force-pushed the siem-explore-166717 branch 2 times, most recently from c1eb20b to 0183038 Compare September 20, 2023 12:15
@machadoum machadoum marked this pull request as ready for review September 20, 2023 12:39
@machadoum machadoum requested review from a team as code owners September 20, 2023 12:39
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@machadoum machadoum added the release_note:skip Skip the PR/issue when compiling release notes label Sep 20, 2023
@machadoum
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@christineweng christineweng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@machadoum thanks for making these changes!

The risk scores on alerts flyout (old and new) do not have the "learn more about risk score" tooltip. it will be best to stay consistent if this is the new standard

@angorayc
Copy link
Copy Markdown
Contributor

angorayc commented Sep 23, 2023

Hey @machadoum , the implementation looks fine, LGTM. Just found some UI inconsistency we could confirm them with PM and UX.

Screenshot 2023-09-23 at 21 02 10

In host overview we have no information icon:
Screenshot 2023-09-23 at 21 13 09

The contents in the tooltips are different:

Screenshot 2023-09-23 at 21 18 49 Screenshot 2023-09-23 at 21 19 27

In host risk table we have colour and risk level with a hover action view unknown risk host:

Screenshot 2023-09-23 at 21 30 15

In alerts table, the behaviour host risk classification seems to have different behaviour:
We could consider (in the future) display the column name as Host risk classification and have the same content rendered in the cell with an extra hover action.
Screenshot 2023-09-23 at 21 26 27

We have host classification here but no hover action to filter by severity:
Screenshot 2023-09-23 at 21 48 11

@machadoum
Copy link
Copy Markdown
Member Author

Hey @machadoum , the implementation looks fine, LGTM. Just found some UI inconsistency we could confirm them with PM and UX.

Screenshot 2023-09-23 at 21 02 10 In host overview we have no information icon: Screenshot 2023-09-23 at 21 13 09

The contents in the tooltips are different:

Screenshot 2023-09-23 at 21 18 49 Screenshot 2023-09-23 at 21 19 27
In host risk table we have colour and risk level with a hover action view unknown risk host:

Screenshot 2023-09-23 at 21 30 15 In alerts table, the behaviour host risk classification seems to have different behaviour: We could consider (in the future) display the column name as `Host risk classification` and have the same content rendered in the cell with an extra hover action. Screenshot 2023-09-23 at 21 26 27

We have host classification here but no hover action to filter by severity: Screenshot 2023-09-23 at 21 48 11

Hey Angela! Thank you for the attentive review. I created an issue for the reported UI inconsistencies and I will address them with Product and UX.

@machadoum
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@christineweng
Copy link
Copy Markdown
Contributor

Hey @machadoum , the implementation looks fine, LGTM. Just found some UI inconsistency we could confirm them with PM and UX.

This is great catch @angorayc, the tech preview tooltip exists in the old alerts flyout (to see old flyout, add an alert to timeline and expand alert details in timeline - see screenshot below). At the time, risk score showed tech preview badge in some places, and we weren't sure if the badge can be dropped. To maintain consistency, a similar tech preview was added in the new expandable alerts view.

@machadoum appreciate you creating the ticket, let me know if you have any updates from product and UX :)

image

@SourinPaul
Copy link
Copy Markdown

@machadoum an additional item to track if we create a follow-up GH issue along with these inconsistencies:

  • Changing the UI field label for Host/ User Risk Classification to Host/User Risk Label

We use the term classification in additional functionalities like 'asset classification'. Hence we decided to change the user-facing label to label to avoid confusion. cc: @craig-abbott

Please lmk if you need additional contexts. Thanks!

@machadoum
Copy link
Copy Markdown
Member Author

@SourinPaul @christineweng Here is the ticket for inconsistencies: #167143
I will update it with the new findings.

@machadoum
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@machadoum
Copy link
Copy Markdown
Member Author

machadoum commented Sep 27, 2023

@christineweng I updated all places where risk score fields are displayed to have the tooltip (except for tables). Could you please take a second look? I also extracted the tooltip content to a component so we can reuse it.

Screenshot 2023-09-27 at 11 53 06 Screenshot 2023-09-27 at 11 53 14 Screenshot 2023-09-27 at 11 53 38 Screenshot 2023-09-27 at 11 54 00 Screenshot 2023-09-27 at 13 48 55

Copy link
Copy Markdown
Contributor

@christineweng christineweng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Thank you for making the changes!

Copy link
Copy Markdown
Contributor

@nkhristinin nkhristinin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detection-engine changes look good to me, but I am confused in the text that we query "open" alerts, and I am not sure that it's true for new algo.

@rylnd do we have this filter for alerts?

@kibana-ci
Copy link
Copy Markdown

kibana-ci commented Sep 28, 2023

💔 Build Failed

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 4550 4551 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 12.8MB 12.8MB +4.4KB

History

  • 💔 Build #163005 failed 3fc37ce44750564321f1927ae573c1f6e21756d0
  • 💔 Build #162910 failed bf6d618314eaa3891fd94fad12f8e5250f625443
  • 💔 Build #162892 failed ef974781c917bdb008ce42e42d79cb1050b89f9a
  • 💔 Build #162786 failed c9773c3b8961fe980a02f26fedce83e295ff3ccd
  • 💔 Build #161759 failed 45d11c402c6631e869451c439970488703933cc1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @machadoum

@machadoum machadoum marked this pull request as draft September 28, 2023 13:45
@rylnd
Copy link
Copy Markdown
Contributor

rylnd commented Sep 28, 2023

@rylnd do we have this filter for alerts?

We do now: be1d844

@machadoum
Copy link
Copy Markdown
Member Author

machadoum commented Sep 29, 2023

The changes in this PR have widely diverged from the code reviewed code. I am closing this PR and opening a new one that only contains the final changes.

@machadoum machadoum closed this Sep 29, 2023
machadoum added a commit that referenced this pull request Oct 2, 2023
…e in-app docs (#167638)

issue: #166717
original PR: #166741


## Summary
General
* Add the "How is risk score calculated?" button to the entity analytics
dashboard and risk score tab on the Host/User page.
* ~Add risk score hover action to the user/host overview component.~ Add
a tooltip with link to risk score external doc.
* Update risk score in-app doc
* Update the field name “classification” to “level” everywhere the risk
score is displayed
* Update the “tech preview” label to “beta” everywhere the risk score is
displayed
* Rename Learn More to "How is host/user risk score calculated?" and
link to External Docs
* Add Beta tag to the settings page

EA Dashboard: (User and Host)
  * Retain panel tooltip - Remove “Tech Preview”
  *  Learn more link -> In Product flyout
  *  Learn More (in Flyout) -> Add link to external docs page
  * Remove the tooltip from *Risk Classification column

Alert Page -> Insights:
* Change Tooltip on *Classification field -> How is Risk Score
Calculated link

Host/User Pages-> Risk Score Tab
  * Retain panel tool-tip
  * Add "How is Risk Score Calculated" similar to Dashboard
  * Remove tooltip from "Risk Classification" column

Host/User Details:
* Change Tooltip on "Classification field -> How is Risk Score
Calculated link
* Move score over time "learn more"  link to the table header
* Don't show the dashboard link when risk engine is enabled. 


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Entity Analytics Security Solution Entity Analytics features release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants