You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing fields for detection rules.
Some fields such as event.module were missing from the
destination index. In few packages, the field mappings are getting
overwritten when same prefix exists in multiple files. To prevent this,
all fields with same prefix are moved into single file, ecs.yml.
This is only a temporary fix until kibana.version is updated to
>= 8.14.0, in which the root issue is fixed.
- Add comments inside ecs.yml describing the issue.
- Add `threat.feed.name` field only if its not added inside
ingest pipelines.
- Some packages have missing fields `event.module` and `event.dataset`
which are added to both source and destination.
diff <(cat ~/misp-threatattr-source-8.13-1.33.1.json ) <(cat ~/misp-threatattr-dest-8.13-1.33.1.json )
Similarly for other files to find mapping diff between source and dest files. The diff shouldn't mainly contain event.module field which is required for detection rules.
Note that for packages threatconnect and opencti there is large diff between source and destination mappings because of import_mappings: true on source adding multiple dynamic templates.
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
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
Checklist
changelog.ymlfile.Author's Checklist
Following mappings validates that missing fields such as
event.moduleare now mapped correctly in destination indices:misp-threatattr-dest-8.13-1.33.1.json
misp-threatattr-source-8.13-1.33.1.json
opencti-indicator-dest-8.13-2.1.1.json
opencti-indicator-source-8.13-2.1.1.json
recordedfuture-threat-dest-8.13-1.25.1.json
recordedfuture-threat-source-8.13-1.25.1.json
threatconnect-indicator-dest-8.13-1.0.1.json
threatconnect-indicator-source-8.13-1.0.1.json
threatq-threat-dest-8.13-1.27.1.json
threatq-threat-source-8.13-1.27.1.json
How to test this PR locally
diff <(cat ~/misp-threatattr-source-8.13-1.33.1.json ) <(cat ~/misp-threatattr-dest-8.13-1.33.1.json )Similarly for other files to find mapping diff between source and dest files. The diff shouldn't mainly contain
event.modulefield which is required for detection rules.threatconnectandopenctithere is large diff between source and destination mappings because ofimport_mappings: trueon source adding multiple dynamic templates.Related issues
Screenshots
Before:

After:
