Commit graph

2536 commits

Author SHA1 Message Date
Steph Milovic
9c546f1a21
Hide timeline bar if user does not have security solution crud capability (#123775) (#126289)
* Hide timeline bar if user does not have security solution crud capability

* change visibility to be based on show instead of crud

* PR fix

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit 5aa26ed37d)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-02-23 14:33:21 -07:00
Kibana Machine
5619b914dc
[Security Solution] Apply field aliases to all legacy indices, not just <= version 45 (#125888) (#125900)
* Apply field aliases to all legacy indices, not just <= version 45

* Update unit tests

(cherry picked from commit 5b752653f4)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-02-17 00:44:12 -07:00
Kibana Machine
75a523d66c
Populate kibana.alert.uuid in eql sequence alerts (#125890) (#125898)
(cherry picked from commit 01a87e040b)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-02-17 00:43:32 -07:00
Kevin Qualters
0dbedb5434
[8.0] [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331) (#125810)
* [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331)

* Fetch alert ecs data in actions.tsx and not a hook in every table row

* Add error handling and tests for theshold timelines

* Fix bad merge

* Remove unused imports

* Actually remove unused file

* Remove usage of alertIds and dead code from cases

* Add basic sanity tests that ensure no extra network calls are being made

* Remove unused operator

* Remove unused imports

* Remove unused mock

(cherry picked from commit e312c36e4c)

# Conflicts:
#	x-pack/plugins/cases/public/components/case_view/case_view_page.tsx
#	x-pack/plugins/cases/public/components/user_actions/types.ts
#	x-pack/plugins/security_solution/public/cases/pages/index.tsx
#	x-pack/plugins/security_solution/public/timelines/components/side_panel/event_details/footer.tsx

* Fix types

* Fix failing tests
2022-02-16 15:01:38 -07:00
Kibana Machine
fba6713de8
[Security Solution] Upgrade tests for DE rule types - alerts on legacy alerts (#125331) (#125709)
* Add integration tests for alerts-on-legacy-alerts

* Remove query rule tests from prior location - they were moved

* Remove 'kibana' field from alerts on legacy alerts

* Fix tests

* Delete alerts before proceeding from compatibility tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7d186f945b)

Co-authored-by: Madison Caldwell <madison.caldwell@elastic.co>
2022-02-15 13:51:21 -07:00
Jan Monschke
fe3991fcd3
fix: enrich threshold data from fields data (#125634) 2022-02-15 06:44:59 -07:00
Kibana Machine
9d2091b3fd
[Security Solution] Use search strategy error in timeline (#125178) (#125423)
(cherry picked from commit 4fe96b799e)

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2022-02-11 12:56:01 -07:00
Kibana Machine
d3d6c779c0
[Security Solution] Data view override for sourcerer (#125116) (#125392)
(cherry picked from commit b0e534b1cd)

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2022-02-11 10:28:39 -07:00
Christos Nasikas
30d0ca85ad
[8.0] [Response Ops][Cases] Fetch alerts within observability (#123883) (#125370)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2022-02-11 10:18:03 -07:00
Colson Wilhoit
2149b1703b
[Detection Rules] Add 8.0 rules (#125316) 2022-02-11 09:18:13 -06:00
Sergi Massaneda
2466d4130a
[8.0] [SecuritySolution] Close field editor when page context is lost (#124378) (#124935)
* [SecuritySolution] Close field editor when page context is lost (#124378)

* close field editor when context is lost

* tests added

* typecheck clean

* close editor when timeline is unmounted

(cherry picked from commit 21710dfb77)

# Conflicts:
#	x-pack/plugins/security_solution/public/timelines/components/create_field_button/index.tsx

* fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-11 05:19:29 -07:00
Kibana Machine
27e5636c1f
count err status codes in security telemetry (#125120) (#125245)
(cherry picked from commit 1a0e4a50d5)

Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2022-02-10 09:05:47 -07:00
Kibana Machine
b285077751
[Security Solution][Lists] - Update exception item viewer overflow (#125145) (#125177)
### Summary

Addresses #119012

- updates exception item viewer UI

(cherry picked from commit dba7207787)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-02-09 18:54:33 -07:00
Kristof C
4efc0e8e8e
[Security Solution] add ability for network map to be toggable, prevent map from displaying without permissions (#123336) (#125091)
* add ability for network map to be toggable, prevent map from displaying without permissions

* PR & test additions

* Found rogue semicolon

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 57d507c121)
2022-02-09 10:08:55 -07:00
Madison Caldwell
ed37a15ec1
Filter out 'signal.*' fields to prevent alias clashes (#124410)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-07 16:07:54 -05:00
Kibana Machine
113ff7d59f
Fix double navigation links are present under security news section for each article (#124356) (#124712)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b1b522af90)

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
2022-02-04 11:45:24 -07:00
Marshall Main
57ca5e139a
Remove .siem-signals alias from preview alerts indices (#124164) 2022-01-31 12:43:05 -08:00
Kibana Machine
f13ed4ccb4
[SecuritySolution] Fix topN histograms for custom fields (#123489) (#124035)
* custom fields topN histograms fixed

* add runtime_mappings to response inspect mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit e0a7a1bb9e)

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
2022-01-31 17:01:08 +01:00
Kibana Machine
a4c3bea022
[SecuritySolution][Investigations] Add message about missing index in data view in analyzer (#122859) (#124001)
* chore: add message about missing index in data view

* fix: typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9f6c78139e)

Co-authored-by: Jan Monschke <jan.monschke@elastic.co>
2022-01-31 12:57:51 +01:00
Kibana Machine
d13a86b9a3
[Security Solution] Update trusted apps matches placeholder (#124042) (#124054)
(cherry picked from commit a7603dd080)

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2022-01-28 16:06:55 -05:00
Frank Hassanabad
257d75ac26
[8.0] [Security Solutions] Fixes the telemetry to use the new rule types (#123781) (#123866)
* [Security Solutions] Fixes the telemetry to use the new rule types (#123781)

## Summary

Telemetry was not updated to use the newer rule types so it was not querying the elastic package rules.

The query before was:

```json
# Original query which will not get the new elastic pre-packaged rule types
GET .kibana*/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "term": {
            "alert.alertTypeId": "siem.signals"
          }
        },
        {
          "term": {
            "alert.params.immutable": true
          }
        }
      ]
    }
  }
}
```

The query after this change uses the new rule types and I tested it by manually executing this query to ensure everything works as expected:

```json
# Modified query which filters against two arrays of terms. One for the set of rules
# and the second terms which filters against the rule being immutable
GET .kibana*/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "bool": {
            "filter": {
              "terms": {
                "alert.alertTypeId": [
                  "siem.signals",
                  "siem.eqlRule",
                  "siem.mlRule",
                  "siem.queryRule",
                  "siem.savedQueryRule",
                  "siem.indicatorRule",
                  "siem.thresholdRule"
                ]
              }
            }
          }
        },
        {
          "bool": {
            "filter": {
              "terms": {
                "alert.params.immutable": [true]
              }
            }
          }
        }
      ]
    }
  }
}
```

### Checklist

- [ ] [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

There doesn't look to be integration tests started for these or how to test them at this moment.

(cherry picked from commit ba6f77ca37)

* Updated to pass build since the types did not like boolean. Tested in ES directly, should still work as a string of a boolean.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-27 20:39:26 -07:00
Kibana Machine
beac9b3c4e
Change error to warning toast (#123777) (#123944)
* Change error to warning toast

* Add test for addWarning

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit 11537eacfd)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-01-27 10:27:42 -07:00
Kibana Machine
a6ffe9cd65
[Security Solution] [Detections] Fixes EQL error message when there is an empty query (#123533) (#123919)
* fixes issues 121983

* refactor

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f2447cfd7b)

Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2022-01-27 07:36:44 -07:00
Kibana Machine
1a07a1af14
[Detection Engine] Adds 8.0 rules (#123786) (#123887)
* [Detection Rules] Add 8.0 rules
* rollback changes for python tty rule https://github.com/elastic/detection-rules/pull/1731

(cherry picked from commit 36722fada9)

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
2022-01-26 19:59:58 -07:00
spalger
b1e6fd3144 skip flaky suite (#115489)
(cherry picked from commit 97a234bd6a)
2022-01-26 10:12:39 -07:00
Sergi Massaneda
2a14252113
[SecuritySolution][Timeline] Clean removed runtime fields (#122976) (#123801)
* remove unexisting fields from timeline

* replicate clean logic in security timeline

* tests updated due to mocks changes

* solve action dipatches race condition

* tests fixed

* fix async dispatches

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7f7dbbb3cc)

# Conflicts:
#	x-pack/plugins/security_solution/public/common/components/event_details/__snapshots__/alert_summary_view.test.tsx.snap
#	x-pack/plugins/security_solution/public/timelines/components/create_field_button/index.tsx
2022-01-26 05:25:51 -07:00
Kibana Machine
cba077d518
[SecuritySolution][Hosts] All hosts table OS column tooltip message (#123628) (#123798)
* tooltip added to OS column

* change os info message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 16642e0028)

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
2022-01-26 05:24:00 -07:00
Yara Tercero
8c9e96ee67
update exceptions table header and export icon (#122870) (#123787)
Addresses #121758 and #121759.

Updates exceptions table export icon to be "download" icon and updates exceptions table header to use native EUI page headers.

(cherry picked from commit 8c0fbdf502)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-26 03:25:15 -07:00
Kibana Machine
fd32ab50c4
[Security Solution][Endpoint] Search responses without a specific namespace to show pending actions (#123741) (#123769)
* search responses without a specific namespace to show pending actions

fixes elastic/kibana/issues/123707

* search over all endpoint response indices irrespective of namespace suffix

fixes elastic/kibana/issues/123707

* match namespace suffixes for endpoint action and response indices

fixes elastic/kibana/issues/123707

(cherry picked from commit dfd8bfbd90)

Co-authored-by: Ashokaditya <1849116+ashokaditya@users.noreply.github.com>
2022-01-25 19:45:55 -07:00
Kibana Machine
a52fc30f4a
Added type fixes for case cache in case it's null/undefined (#123643) (#123747)
## Summary

See this PR from here:
https://github.com/elastic/kibana/pull/123094

Where `"rule": { "id": null, "name": null },` can be null. This just adds guards around it to prevent possible errors. Note, I tested it first and there aren't errors with this even if we don't merge but that is not a guarantee that later NodeJS wouldn't cause errors if the implementation details of [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) change.

Note, I don't try to do any additional lookups if these are `null` as the release is coming very quickly and I do not want to overcomplicate telemetry and we don't have dashboards around the cases feature. Over time I would expect the telemetry to become more accurate again even if cases are `nulled` out.

**Manual testing**

Either create a true upgrade where all the id's changed by going to 7.16 and making a new space, then within that space outside of default creating cases and alerts and then do an upgrade to 8.0.0 ... or ...

Downgrade a `case-comments` like so manually in dev tools:
```ts
# Get all case-comments to choose an id
GET .kibana/_search
{
  "query": {
    "term": {
      "type": "cases-comments"
    }
  }
}
```

```ts
# Downgrades a case comment of id "25554290-7a36-11ec-8d37-0d0e30a77b60"
POST .kibana/_update/cases-comments:25554290-7a36-11ec-8d37-0d0e30a77b60
{
  "script" : {
    "source": """
    ctx._source.migrationVersion['cases-comments'] = "7.16.3";
    """,
    "lang": "painless"
  }
}
```

Restart Kibana and you should query the same `case-comments` and see that the `"rule": { "id": null, "name": null },` are all null.

Either way once you have a null rule go to `Advanced Settings -> cluster data` and ensure that you still get metrics flowing and that one is no longer counted but if you create a new one everything still works as expected:
<img width="647" alt="Screen Shot 2022-01-24 at 11 48 39 AM" src="https://user-images.githubusercontent.com/1151048/150846789-d94ac212-6c45-44cc-a663-cd304bfda22e.png">

### Checklist

- [ ] [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

We still don't have this for the existing telemetry and are running out of time for 8.0.0 to add them. We might re-write this part of telemetry as well so I am not adding tests just yet.

(cherry picked from commit 607feecb20)

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2022-01-25 13:03:32 -07:00
Marco Vettorello
676b061ad8
[charts] Fix timezone regression in charts (#123663) 2022-01-25 10:04:23 +01:00
Kibana Machine
2325ed6a22
[Security Solution] Open alerts with an associated template in the template view (#123333) (#123689)
* Open alerts with a template, with a template

* Add default values back instead of template derived ones

* Use data providers over filters always, set timeline description to alert id

* Remove prepopulated description from non threshold alerts

* Open any event in timeline, use correct timestamp

* Remove unneeded @timestamp, make sure alertsEcsData is not empty array

* Add basic getField tests

* Explicity check if alertGroupId is an array instead of using length

* Always use a valid date for time range

* Only use filter if more than 1 alert is present

* Possibly controversial change to calculate threshold time range with a template, fix test that should never have passed

* Create threshold timeline in separate function

* Use better type for createTimeline passed to createThresholdTimeline

* Invert negation as suggested in pr comment

* Use template timeline filters/query/data providers for threshold alerts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cef886f073)

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
2022-01-25 01:29:21 -07:00
Sergi Massaneda
ab1d84e46f
[8.0] tooltip added to OS column (#123377) (#123631)
* tooltip added to OS column (#123377)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit e76cedbd22)

# Conflicts:
#	x-pack/plugins/security_solution/public/hosts/components/hosts_table/columns.tsx
#	x-pack/plugins/security_solution/public/hosts/components/hosts_table/translations.ts

* remove not needed translation
2022-01-24 11:56:11 -07:00
Brian Seeders
8b2db69a3e
Revert "[charts] Fix timezone regression in charts (#123478)"
This reverts commit 3e3b0f79ff.
2022-01-21 11:15:45 -05:00
Marco Vettorello
3e3b0f79ff
[charts] Fix timezone regression in charts (#123478) 2022-01-21 12:54:15 +01:00
Kibana Machine
8df5f25f0e
Fixes the producer to be SERVER_APP_ID (#123504) (#123512)
## Summary

See:
https://github.com/elastic/kibana/issues/123500

This is a one line fix to change the `producer` to be the `SERVER_APP_ID` like the others

Before:
<img width="1700" alt="Screen Shot 2022-01-20 at 11 51 17 AM" src="https://user-images.githubusercontent.com/1151048/150410877-7c2da681-9d66-4fb8-9f17-b6015f683cf2.png">

After:
<img width="421" alt="Screen Shot 2022-01-20 at 12 39 05 PM" src="https://user-images.githubusercontent.com/1151048/150410905-12772489-ebd6-4450-8715-de8d651cff40.png">

(cherry picked from commit 1f0906ea1b)

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2022-01-20 16:18:30 -07:00
Gloria Hornero
621b39a9cf
fixes advanced seetings default message (#123480) (#123505)
(cherry picked from commit d49880b807)
2022-01-20 14:32:23 -07:00
Kibana Machine
f914e37063
Update indexNames for general threat match timeline (#123358) (#123448)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 4282355fb6)

Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
2022-01-20 05:56:59 -07:00
Kibana Machine
61d673e091
Fix issue with parsing out endpoint package policy. (#123287) (#123316)
* Fix issue with parsing out endpoint package policy.

* revert schedule.

(cherry picked from commit 4d98af824f)

Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2022-01-20 05:35:39 -07:00
Frank Hassanabad
f2473025f9
[Security Solution] Adds telemetry for legacy notifications and regular notifications at a finer grained level (#123332) (#123388)
## Summary

Related and previous PR:
https://github.com/elastic/kibana/pull/122472

This removes the above structure from the PR above and instead opts to use a more finer grained level of telemetry. The new structure adds to each rule these four counters to the telemetry:

* legacy_notifications_enabled - The number of legacy notifications on rules that are enabled/active
* legacy_notifications_disabled - The number of legacy notifications on rules that are disabled/in-active
* notifications_enabled - The number of notifications on rules that are enabled/active
* notifications_disabled - The number of notifications on rules that are disabled/in-active

For pre-built rules you have these booleans:
* has_legacy_notification - True if the pre-built rule has a legacy notification attached, otherwise false.
* has_notification - True if the pre-built rule has a notification attached, otherwise false.

Note, both those booleans are `false` if the pre-built rule has no notifications attached and both can never be `true` together.

These will show up within each rule type like for example on a query rule it will look like:

```json
"detection_rule_usage": {
  "query": {
    "enabled": 2,
    "disabled": 1,
    "cases": 0,
    "legacy_notifications_enabled": 1, <-- New
    "legacy_notifications_disabled": 0, <-- New
    "notifications_enabled": 1, <-- New
    "notifications_disabled": 1 <-- New
}
```

Within the counts/total sections it will show up on both the `elastic` rules and the `custom` rules like so:

```json
"elastic_total": {
  "enabled": 0,
  "disabled": 0,
  "alerts": 0,
  "cases": 0,
  "legacy_notifications_enabled": 0, <-- New
  "legacy_notifications_disabled": 0, <-- New
  "notifications_enabled": 0, <-- New
  "notifications_disabled": 0 <-- New
},
"custom_total": {
  "enabled": 2,
  "disabled": 1,
  "alerts": 7218,
  "cases": 0,
  "legacy_notifications_enabled": 1, <-- New
  "legacy_notifications_disabled": 0, <-- New
  "notifications_enabled": 1, <-- New
  "notifications_disabled": 1 <-- New
}
```

For pre-built it will be:

```json
"detection_rule_detail": [
  {
    "rule_name": "Potential Evasion via Filter Manager",
    "rule_id": "06dceabf-adca-48af-ac79-ffdf4c3b1e9a",
    "rule_type": "eql",
    "rule_version": 8,
    "enabled": false,
    "elastic_rule": true,
    "created_on": "2022-01-19T01:29:25.540Z",
    "updated_on": "2022-01-19T01:29:25.540Z",
    "alert_count_daily": 0,
    "cases_count_total": 0,
    "has_legacy_notification": false, <-- New
    "has_notification": false <-- New
  },
```

Screen shot of it if you go to "Advanced settings -> cluster data":
<img width="802" alt="Screen Shot 2022-01-18 at 6 27 14 PM" src="https://user-images.githubusercontent.com/1151048/150046445-b1850b1c-bca6-41e0-b101-1bac5f67dbb3.png">

<img width="798" alt="Screen Shot 2022-01-18 at 6 30 33 PM" src="https://user-images.githubusercontent.com/1151048/150046808-1109a4c9-8a54-4da8-8b42-5f957a9d3ed5.png">

Follow the manual test instructions on https://github.com/elastic/kibana/pull/122472 for how to test this. The same manual testing applies here for seeing how these work out. You should be able to see a higher granularity with these stats.

### Checklist

- [ ] [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

(cherry picked from commit d2a8bb90be)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-19 23:20:19 -07:00
Kibana Machine
7d914cc12a
Fixes broken cypress test after ECS update to Rule Registry (#123429) (#123433)
## Summary

New ECS FieldMap was generated in https://github.com/elastic/kibana/pull/123012, however since it only contained changes to `Rule Registry` code the `Security Solution` Cypress tests were not run, and thus did not catch this field change.

See https://github.com/elastic/kibana/pull/122661#discussion_r784412959 for details. Confirmed w/ @madirey that expected value is indeed `5` now that `host.geo.continent_code` has been [added](https://github.com/elastic/kibana/pull/123012/files#diff-a1647ccb73ef26c8c8b6aefd87084504b146af72fcb088ccacad93fcaad15b69R1524-R1528).

Some failing PR's from `main`:
https://github.com/elastic/kibana/pull/123357
https://github.com/elastic/kibana/pull/121644
https://github.com/elastic/kibana/pull/123352

### Checklist

Delete any items that are not applicable to this PR.

- [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

(cherry picked from commit d6917fcb8b)

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2022-01-19 21:28:51 -07:00
Kibana Machine
5491ca4482
[Security Solution] [Platform] updates rule indices to include indices from the enriched alert data (#123324) (#123335)
* updates rule indices to include indices from the enriched alert data

* quick fix for type failure

* rely on functions, not types

(cherry picked from commit 51ac9a0c89)

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2022-01-18 21:47:02 -07:00
Kibana Machine
73f4abae0f
[Security Solution] Newsfeed Url bugfix (#123283) (#123331)
(cherry picked from commit 3b28f55ddb)

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2022-01-18 19:10:35 -07:00
Kibana Machine
35aec57181
[Security Solution] [Platform] Return additional errors during import rule + action migration process (#123088) (#123329)
* exposes additional errors when ES failures occur during the swap of old, pre-8.0 action ids with the new migrated action SO ids. Ref: https://github.com/elastic/kibana/pull/120975#discussion_r778449187 for more information

* fix test error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 467d111566)

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2022-01-18 18:16:58 -07:00
Kibana Machine
3d11c3520c
[Security Solution][Exceptions] Fix export toast text (#123307) (#123326)
### Summary

Fix bug on rule export where toaster reports export total as being rule objects + exceptions objects, but should just be rule objects total. Adds cypress test.

(cherry picked from commit b2c9f10691)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-01-18 18:08:53 -07:00
Kibana Machine
d551f02ca4
Fix success message to show correct language based on timelin… (#123258) (#123320)
* Fix success message to show correct language based on timeline type

* Fix translation problems

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit 91a35c20ce)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-01-18 17:50:03 -07:00
Kibana Machine
1939432623
[Security Solution] Add aliases, fix types, remove extra fields (#122880) (#123319)
* Add aliases, fix types, remove extra fields

* Update aliases version and update tests

* Update aliases version test

* Remove dangling references to fields

* Update test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 886ad6fdaf)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-01-18 17:25:39 -07:00
Kibana Machine
d47fe31dba
[Security Solution][Exceptions] - Update exceptions tab privileges checks (#122902) (#123305)
### Summary

Addresses #122227.

(cherry picked from commit fc64d172e7)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-01-18 15:43:31 -07:00
Kibana Machine
8f656e953a
[Timelines] Update fields metadata from beats 8.0 (#123014) (#123304)
* Move beats metadata script to timelines plugin

This is the plugin that consumes the artifacts of the script, not
security_solution.

* Remove unused beats metadata file

This file also exists in the timelines plugin, but only that one is
used.

* Update fields metadata from beats 8.0.0-rc1

This will serve as the data source for our metadata in kibana 8.0.

* Update indexFields unit tests following ECS update

8.0 introduced some textual changes to field descriptions.

* Revert "Move beats metadata script to timelines plugin"

This reverts commit cbc8e9db1a.

* Update script to modify the appropriate timelines file

This is the one used by IndexFields.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8c11be1154)

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2022-01-18 15:40:38 -07:00
Kibana Machine
121259b775
Ensure alert ancestors are calculated correctly for EQL alerts (#123070) (#123286)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 726682cda1)

Co-authored-by: Madison Caldwell <madison.rey.caldwell@gmail.com>
2022-01-18 13:58:57 -07:00