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

[ML] Tokens in custom URLs to security plugin are not being substituted with anomaly values #76789

Closed
peteharverson opened this issue Sep 4, 2020 · 1 comment · Fixed by #76957
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection Feature:Detection Rules Anything related to Security Solution's Detection Rules :ml v7.10.0

Comments

@peteharverson
Copy link
Contributor

Jobs in the siem_auditbeat and siem_winlogbeat modules contain custom URLs to the Hosts page in the Security plugin with $ delimited tokens to pass the anomalous user.name or process.name for use in the query in the target page. However these tokens are no longer being substituted with values from the anomaly.

For example, the rare_process_by_host_linux_ecs job contains the 'Host Details by process name' custom URL:

security/hosts/ml-hosts/$host.name$?_g=()&query=(query:'process.name%20:%20%22$process.name$%22',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')),timeline:(linkTo:!(global),timerange:(from:'$earliest$',kind:absolute,to:'$latest$')))

But the anomalous process.name is not being substituted on opening, and instead a URL of the form

security/hosts/ml-hosts/mothra?_g=()&query=(query:'',language:kuery)&timerange=(global:(linkTo:!(timeline),timerange:(from:'2020-07-22T23:00:00.000Z',kind:absolute,to:'2020-07-23T22:59:59.999Z')),timeline:(linkTo:!(global),timerange:(from:'2020-07-22T23%3A00%3A00.000Z',kind:absolute,to:'2020-07-23T22%3A59%3A59.999Z')))

is opened, where only the host.name, earliest and latest tokens are being substituted. The value of the process.name from the anomaly should be substituted into the custom URL too.

@peteharverson peteharverson added bug Fixes for quality problems that affect the customer experience :ml Feature:Anomaly Detection ML anomaly detection v7.10.0 labels Sep 4, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@FrankHassanabad FrankHassanabad added the Feature:Detection Rules Anything related to Security Solution's Detection Rules label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection Feature:Detection Rules Anything related to Security Solution's Detection Rules :ml v7.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants