Skip to content

[Security Solution] Add read index privileges to kibana_system role for Microsoft Defender integration indexes #126803

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/changelog/126803.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 126803
summary: "[Security Solution] Add `read` index privileges to `kibana_system` role\
\ for Microsoft Defender integration indexes"
area: Authorization
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ static RoleDescriptor kibanaSystem(String name) {
// ingested by Fleet integrations
// in order to provide support for response actions related to malicious events
// for such agents.
RoleDescriptor.IndicesPrivileges.builder().indices("logs-sentinel_one.*", "logs-crowdstrike.*").privileges("read").build(),
RoleDescriptor.IndicesPrivileges.builder()
.indices("logs-sentinel_one.*", "logs-crowdstrike.*", "logs-microsoft_defender_endpoint.*", "logs-m365_defender.*")
.privileges("read")
.build(),
// For ILM policy for APM, Endpoint, & Synthetics packages that have delete
// action
RoleDescriptor.IndicesPrivileges.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ public void testKibanaSystemRole() {
// Tests for third-party agent indices that `kibana_system` has only `read` access
Arrays.asList(
"logs-sentinel_one." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-crowdstrike." + randomAlphaOfLength(randomIntBetween(0, 13))
"logs-crowdstrike." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-microsoft_defender_endpoint." + randomAlphaOfLength(randomIntBetween(0, 13)),
"logs-m365_defender." + randomAlphaOfLength(randomIntBetween(0, 13))
).forEach((index) -> {
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index);
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(indexAbstraction), is(false));
Expand Down
Loading