Skip to content

Commit 188d92a

Browse files
authored
crowdstrike - fix (de-dot) flattened process fields (elastic#4709)
Fix flattened process fields in default ingest pipeline. The field names contained dots.
1 parent e025b56 commit 188d92a

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

packages/crowdstrike/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: "1.8.1"
3+
changes:
4+
- description: Fix parse of flattened `process` fields in Falcon data stream.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/4709
27
- version: "1.8.0"
38
changes:
49
- description: Update package to ECS 8.5.0.

packages/crowdstrike/data_stream/falcon/_dev/test/pipeline/test-falcon-events.log-expected.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@
8585
},
8686
"message": "Terminated a process related to the deletion of backups, which is often indicative of ransomware activity.",
8787
"process": {
88+
"args": [
89+
"C:\\Windows\\Explorer.EXE"
90+
],
91+
"command_line": "C:\\Windows\\Explorer.EXE",
92+
"executable": "C:\\Windows\\Explorer.EXE",
8893
"name": "explorer.exe",
8994
"pid": 38684386611
9095
},
91-
"process.args": [
92-
"C:\\Windows\\Explorer.EXE"
93-
],
94-
"process.command_line": "C:\\Windows\\Explorer.EXE",
95-
"process.executable": "C:\\Windows\\Explorer.EXE",
9696
"related": {
9797
"hash": [
9898
"6a671b92a69755de6fd063fcbe4ba926d83b49f78c42dbaeed8cdb6bbc57576a",

packages/crowdstrike/data_stream/falcon/_dev/test/pipeline/test-falcon-sample.log-expected.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,18 +512,18 @@
512512
},
513513
"message": "This file meets the machine learning-based on-sensor AV protection's low confidence threshold for malicious files.",
514514
"process": {
515+
"args": [
516+
"\"C:\\ProgramData\\file\\path\\filename.exe\""
517+
],
518+
"command_line": "\"C:\\ProgramData\\file\\path\\filename.exe\"",
519+
"executable": "\"C:\\ProgramData\\file\\path\\filename.exe\"",
515520
"name": "filename.exe",
516521
"parent": {
517522
"command_line": "C:\\Windows\\Explorer.EXE",
518523
"executable": "\\Device\\HarddiskVolume2\\Windows\\explorer.exe"
519524
},
520525
"pid": 663790158277
521526
},
522-
"process.args": [
523-
"\"C:\\ProgramData\\file\\path\\filename.exe\""
524-
],
525-
"process.command_line": "\"C:\\ProgramData\\file\\path\\filename.exe\"",
526-
"process.executable": "\"C:\\ProgramData\\file\\path\\filename.exe\"",
527527
"related": {
528528
"hash": [
529529
"0a123b185f9a32fde1df59897089014c92e3d08a0533b54baa72ba2a93d64deb",

packages/crowdstrike/data_stream/falcon/elasticsearch/ingest_pipeline/default.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,11 @@ processors:
312312
def args = Arrays.asList(/ /.split(commandLine));
313313
args.removeIf(arg -> arg == "");
314314
315-
ctx["process.command_line"] = commandLine;
316-
ctx["process.args"] = args;
317-
ctx["process.executable"] = args.get(0);
315+
ctx.process = [
316+
'command_line': commandLine,
317+
'args': args,
318+
'executable': args.get(0)
319+
]
318320
}
319321
}
320322
- pipeline:

packages/crowdstrike/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: crowdstrike
22
title: CrowdStrike
3-
version: "1.8.0"
3+
version: "1.8.1"
44
description: Collect logs from Crowdstrike with Elastic Agent.
55
type: integration
66
format_version: 1.0.0

0 commit comments

Comments
 (0)