Skip to content

Conversation

@efd6
Copy link
Contributor

@efd6 efd6 commented Oct 22, 2025

Proposed commit message

m365_defender: fix construction of file.path fields in the incident data stream

The ECS definition states that the file.path field should include the
file's basename as well as the directory.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 self-assigned this Oct 22, 2025
@efd6 efd6 added Integration:m365_defender Microsoft Defender XDR bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Oct 22, 2025
…ata stream

The ECS defintions states that the file.path field should include the
file's basename as well as the directory.
@efd6 efd6 force-pushed the s6551-m365_defender branch from 0543ae5 to 6d4a668 Compare October 22, 2025 21:08
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

cc @efd6

@efd6 efd6 marked this pull request as ready for review October 22, 2025 21:44
@efd6 efd6 requested a review from a team as a code owner October 22, 2025 21:44
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

append:
field: file.path
value: '{{{_ingest._value.file_details.path}}}'
value: '{{{_ingest._value.file_details.path}}}\{{{_ingest._value.file_details.name}}}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we ever get events with fileDetails evidence from Microsoft Defender for Endpoint on {Linux,macOS,android,ios}? If so this might need a different path separator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was wondering about that. I'm not sure how we can know this, or deal with it if we do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:m365_defender Microsoft Defender XDR Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants