-
Notifications
You must be signed in to change notification settings - Fork 223
[Security] Import/export endpoint artifacts #6378
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
Open
natasha-moore-elastic
wants to merge
4
commits into
main
Choose a base branch
from
issue-6321-artifacts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,10 @@ The blocklist is not intended to broadly block benign applications for non-secur | |||||
|
|
||||||
| By default, a blocklist entry is recognized globally across all hosts running {{elastic-defend}}. You can also assign a blocklist entry to specific {{elastic-defend}} integration policies, which blocks the process only on hosts assigned to that policy. | ||||||
|
|
||||||
| ## Add a blocklist entry [add-blocklist-entry] | ||||||
|
|
||||||
| To add a blocklist entry: | ||||||
|
|
||||||
| 1. Depending on your version, do one of the following: | ||||||
| * {applies_to}`serverless: ga` {applies_to}`stack: ga 9.4+` Go to the **Artifacts** page using the navigation menu or the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md), then select the **Blocklist** tab. | ||||||
| * {applies_to}`stack: ga 9.0-9.3` Go to the **Blocklist** page using the navigation menu or the global search field. | ||||||
|
|
@@ -71,6 +75,11 @@ By default, a blocklist entry is recognized globally across all hosts running {{ | |||||
| 1. Go to the **Policies** page, then click on an integration policy. | ||||||
| 2. On the **Policy settings** tab, ensure that the **Malware protections** and **Blocklist** toggles are switched on. Both settings are enabled by default. | ||||||
|
|
||||||
| ::::{tip} | ||||||
| :applies_to: { stack: ga 9.4+, serverless: ga } | ||||||
|
|
||||||
| To add multiple blocklist entries at once, you can import an NDJSON file instead. Refer to [Import and export blocklist entries](#import-export-blocklist). | ||||||
| :::: | ||||||
|
|
||||||
|
|
||||||
| ## View and manage the blocklist [manage-blocklist] | ||||||
|
|
@@ -83,6 +92,32 @@ The **Blocklist** UI displays all the blocklist entries that have been added to | |||||
| ::: | ||||||
|
|
||||||
|
|
||||||
| ### Import and export blocklist entries [import-export-blocklist] | ||||||
|
|
||||||
| ```{applies_to} | ||||||
| stack: ga 9.4+ | ||||||
| serverless: ga | ||||||
| ``` | ||||||
|
|
||||||
| ::::{admonition} Requirements | ||||||
| * To export blocklist entries, you need the **Blocklist: Read** [privilege](/solutions/security/configure-elastic-defend/elastic-defend-feature-privileges.md). | ||||||
| * To import per-policy items, you need the **Blocklist: All** privilege. | ||||||
| * To import global items, you need the **Blocklist: All** and the **Global artifact management: All** privilege. | ||||||
| * To import items to a different space, you need the **Global artifact management: All** privilege. | ||||||
| :::: | ||||||
|
|
||||||
| You can import and export blocklist entries as NDJSON files: | ||||||
|
|
||||||
| - **When the list is empty**: click **Import blocklist entries**. | ||||||
| - **When the list has entries**: click the actions menu ({icon}`boxes_vertical`), then select **Import blocklist entries** or **Export blocklist entries**. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| When you import an NDJSON file, the imported blocklist entries are appended to your existing entries — existing entries are not removed or overwritten. | ||||||
|
|
||||||
| Items are processed individually on import — per-policy items that are not visible in the current space are skipped, while the remaining items are imported. | ||||||
|
|
||||||
| If an imported per-policy item is assigned to a policy that doesn't exist in the current environment, the item is imported with the policy assignment removed. | ||||||
|
|
||||||
|
|
||||||
| ### Edit a blocklist entry [edit-blocklist-entry] | ||||||
|
|
||||||
| You can individually modify each blocklist entry. You can also change the policies that a blocklist entry is assigned to. | ||||||
|
|
||||||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies to other, similar constructions in this PR