-
|
I'm trying to create a processing pipeline to apply a default field to items of a keyword-based detection. But it seems that all conditions and transformations are applying on field-based detections (or attributes not related to detection). Let's take the following sigma detection : detection:
keywords:
- a
- b
- c
condition: keywordsIt produces, in Splunk for example : I even just tried to throw a SigmaTransformationError using the detection_item_failure transformation pipeline when in input I have a rule not using fields, but one more time I could not add a condition related to the keyword-based detection. Any advice on making something work only using pipelines ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
You could try to work with the replace post processing step.
title: Test
logsource:
category: process_creation
product: windows
detection:
keywords:
- a
- b
- c
selection:
already_a_field: test
condition: keywords and selection
---
name: test
postprocessing:
- type: replace
pattern: '(?<!\=)"([^"]*)"'
replacement: 'my_new_field="\\\1"'
- type: replace
pattern: '"\\'
replacement: '"'
|
Beta Was this translation helpful? Give feedback.
-
|
Valid use case, should be easy to implement with the already existing field name mappings by allowing to map null values to something. I transfer this to an issue. |
Beta Was this translation helpful? Give feedback.
-
|
This pipeline is working (tested here) : name: Default field name
transformations:
- id: field_mapping
type: field_name_mapping
mapping:
null:
- my_field_name |
Beta Was this translation helpful? Give feedback.
This pipeline is working (tested here) :