-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '8.x' into redos-54-6190
- Loading branch information
Showing
15 changed files
with
393 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[[cspm-required-permissions]] | ||
= CSPM privilege requirements | ||
|
||
This page lists required privileges for {elastic-sec}'s CSPM features. There are three access levels: read, write, and manage. Each access level and its requirements are described below. | ||
|
||
[discrete] | ||
== Read | ||
|
||
Users with these minimum permissions can view data on the **Findings** page and the Cloud Posture dashboard. | ||
|
||
[discrete] | ||
=== {es} index privileges | ||
`Read` privileges for the following {es} indices: | ||
|
||
* `logs-cloud_security_posture.findings_latest-*` | ||
* `logs-cloud_security_posture.scores-*` | ||
|
||
[discrete] | ||
=== {kib} privileges | ||
|
||
* `Security: Read` | ||
|
||
|
||
[discrete] | ||
== Write | ||
|
||
Users with these minimum permissions can view data on the **Findings** page and the Cloud Posture dashboard, create detection rules from the findings details flyout, and enable or disable benchmark rules. | ||
|
||
[discrete] | ||
=== {es} index privileges | ||
`Read` privileges for the following {es} indices: | ||
|
||
* `logs-cloud_security_posture.findings_latest-*` | ||
* `logs-cloud_security_posture.scores-*` | ||
|
||
[discrete] | ||
=== {kib} privileges | ||
|
||
* `Security: All` | ||
|
||
|
||
[discrete] | ||
== Manage | ||
|
||
Users with these minimum permissions can view data on the **Findings** page and the Cloud Posture dashboard, create detection rules from the findings details flyout, enable or disable benchmark rules, and install, update, or uninstall CSPM integrations and assets. | ||
|
||
[discrete] | ||
=== {es} index privileges | ||
`Read` privileges for the following {es} indices: | ||
|
||
* `logs-cloud_security_posture.findings_latest-*` | ||
* `logs-cloud_security_posture.scores-*` | ||
|
||
[discrete] | ||
=== {kib} privileges | ||
|
||
* `Security: All` | ||
* `Spaces: All` | ||
* `Fleet: All` | ||
* `Integrations: All` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[[detections-logsdb-index-mode-impact]] | ||
= Using logsdb index mode with {elastic-sec} | ||
|
||
NOTE: To use the {ref}/mapping-source-field.html#synthetic-source[synthetic `_source`] feature, you must have the appropriate subscription. Refer to the subscription page for https://www.elastic.co/subscriptions/cloud[Elastic Cloud] and {subscriptions}[Elastic Stack/self-managed] for the breakdown of available features and their associated subscription tiers. | ||
|
||
This topic explains the impact of using logsdb index mode with {elastic-sec}. | ||
|
||
With logsdb index mode, the original `_source` field is not stored in the index but can be reconstructed using {ref}/mapping-source-field.html#synthetic-source[synthetic `_source`]. | ||
|
||
When the `_source` is reconstructed, {ref}/mapping-source-field.html#synthetic-source-modifications[modifications] are possible. Therefore, there could be a mismatch between users' expectations and how fields are formatted. | ||
|
||
Continue reading to find out how this affects specific {elastic-sec} components. | ||
|
||
[discrete] | ||
[[logsdb-alerts]] | ||
== Alerts | ||
|
||
When alerts are generated, the `_source` event is copied into the alert to retain the original data. When the logsdb index mode is applied, the `_source` event stored in the alert is reconstructed using synthetic `_source`. | ||
|
||
If you're switching to use logsdb index mode, the `_source` field stored in the alert might look different in certain situations: | ||
|
||
* {ref}/mapping-source-field.html#synthetic-source-modifications-leaf-arrays[Arrays can be reconstructed differently or deduplicated] | ||
* {ref}/mapping-source-field.html#synthetic-source-modifications-field-names[Field names] | ||
* `geo_point` data fields (refer to {ref}/mapping-source-field.html#synthetic-source-modifications-ranges[Representation of ranges] and {ref}/mapping-source-field.html#synthetic-source-precision-loss-for-point-types[Reduced precision of `geo_point` values] for more information) | ||
|
||
Alerts generated by the following rule types could be affected: | ||
|
||
* Custom query | ||
* Event correlation (non-sequence only) | ||
* Non-aggregate rule types (for example, {esql} rules that use non-aggregating queries) | ||
|
||
Alerts that are generated by threshold, {ml}, and event correlation sequence rules are not affected since they do not contain copies of the original source. | ||
|
||
[discrete] | ||
[[logsdb-rule-actions]] | ||
== Rule actions | ||
|
||
While we do not recommend using `_source` for actions, in cases where the action relies on the `_source`, the same limitations and changes apply. | ||
|
||
If you send alert notifications by enabling {kibana-ref}/alerting-getting-started.html#alerting-concepts-actions[actions] to the external systems that have workflows or automations based on fields formatted from the original source, they may be affected. In particular, this can happen when the fields used are arrays of objects. | ||
|
||
We recommend checking and adjusting the rule actions using `_source` before switching to logsdb index mode. | ||
|
||
[discrete] | ||
[[logsdb-runtime-fields]] | ||
== Runtime fields | ||
|
||
Runtime fields that reference `_source` may be affected. Some runtime fields might not work and need to be adjusted. For example, if an event was indexed with the value of `agent.name` in the dot-notation form, it will be returned in the nested form and might not work. | ||
|
||
The following is an example of accessing `_source` that works with the logsdb index mode enabled: | ||
|
||
[source,console] | ||
---- | ||
"source": """ emit(params._source.agent.name + "_____" + doc['agent.name'].value ); """ | ||
"source": """ emit(params._source['agent']['name'] + "_____" + doc['agent.name'].value ); """ | ||
"source": """ emit(field('agent.name').get(null) + "_____" + doc['agent.name'].value ); """ | ||
"source": """ emit($('agent.name', null) + "_____" + doc['agent.name'].value ); """ | ||
---- | ||
|
||
The following will not work with synthetic source (logsdb index mode enabled): | ||
|
||
[source,console] | ||
---- | ||
"source": """ emit(params._source['agent.name'] + "_____" + doc['agent.name'].value ); """ | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.