Skip to content

Commit 2230596

Browse files
authored
[suricata] Defensive copy of parameter lists (elastic#4731)
* Defensive copy of param lists Copy list parameters before setting them into the context, rather than setting them directly -- this avoids leaking a 'static' mutable list (and the resulting concurrent modification exceptions). * Add an entry to the changelog * Bump the version number in the manifest * Update changelog link to the PR not the bug
1 parent cf97d82 commit 2230596

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/suricata/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.5.1"
3+
changes:
4+
- description: Defensive copy of parameter lists
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/4731
27
- version: "2.5.0"
38
changes:
49
- description: Update package to ECS 8.5.0.

packages/suricata/data_stream/eve/elasticsearch/ingest_pipeline/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ processors:
231231
} else {
232232
ctx.network.protocol = v;
233233
}
234+
} else if (v instanceof List) {
235+
ctx.event[k] = new ArrayList(v);
234236
} else {
235237
ctx.event[k] = v;
236238
}

packages/suricata/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: suricata
22
title: Suricata
3-
version: "2.5.0"
3+
version: "2.5.1"
44
release: ga
55
description: Collect logs from Suricata with Elastic Agent.
66
type: integration

0 commit comments

Comments
 (0)