[Enhancement] Add Entropy Enrichments to PowerShell events#15698
Merged
[Enhancement] Add Entropy Enrichments to PowerShell events#15698
Conversation
|
Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform) |
efd6
reviewed
Oct 20, 2025
Contributor
efd6
left a comment
There was a problem hiding this comment.
Note that you can also calculate the entropy variance with very little extra work.
packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml
Outdated
Show resolved
Hide resolved
🚀 Benchmarks reportTo see the full report comment with |
efd6
reviewed
Oct 28, 2025
packages/windows/data_stream/powershell_operational/fields/fields.yml
Outdated
Show resolved
Hide resolved
packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline/default.yml
Show resolved
Hide resolved
efd6
approved these changes
Oct 28, 2025
Contributor
efd6
left a comment
There was a problem hiding this comment.
LGTM after nits (but not a code owner).
packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml
Outdated
Show resolved
Hide resolved
packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml
Show resolved
Hide resolved
packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml
Outdated
Show resolved
Hide resolved
…peline/powershell_operational.yml Co-authored-by: Dan Kortschak <[email protected]>
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
…peline/powershell_operational.yml Co-authored-by: Dan Kortschak <[email protected]>
w0rk3r
commented
Oct 29, 2025
packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml
Outdated
Show resolved
Hide resolved
…peline/powershell_operational.yml
efd6
reviewed
Oct 29, 2025
packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
faec
approved these changes
Oct 29, 2025
💚 Build Succeeded
History
cc @w0rk3r |
nfritts
approved these changes
Nov 6, 2025
|
Package windows - 3.1.3 containing this change is available at https://epr.elastic.co/package/windows/3.1.3/ |
5 tasks
tehbooom
pushed a commit
to tehbooom/integrations
that referenced
this pull request
Nov 19, 2025
…5698) * [Enhancement] Add Script Entropy Fields to PowerShell events * Update default.yml * Drop normalized entropy * Test * v2 * v2 - forwarded data stream * Apply suggestions * Update packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml Co-authored-by: Dan Kortschak <[email protected]> * Update README.md * update expected json files - script_block_surprisal_stdev * Update packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml Co-authored-by: Dan Kortschak <[email protected]> * Update packages/windows/data_stream/forwarded/elasticsearch/ingest_pipeline/powershell_operational.yml * Update default.yml --------- Co-authored-by: Dan Kortschak <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Proposed commit message
Summary
Related to https://github.com/elastic/ia-trade-team/issues/704
Adds four fields for script analysis at ingest time:
These fields help us improve and tune PowerShell obfuscation detections by providing additional context about the scripts content.
Inspired by: Painless Parsing: Shannon Entropy Calculation - Services
Checklist
changelog.ymlfile.