Skip to content

Commit f7bcc26

Browse files
authored
sentinel_one_cloud_funnel: improve process handling (#9361)
1 parent b5d1e40 commit f7bcc26

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

packages/sentinel_one_cloud_funnel/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: "0.13.0"
3+
changes:
4+
- description: Improve detection rules support for process events.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/9361
27
- version: "0.12.0"
38
changes:
49
- description: Improve detection rules support.

packages/sentinel_one_cloud_funnel/data_stream/event/_dev/test/pipeline/test-process.log-expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"args_count": 1,
4040
"command_line": "./nr-winpkg",
4141
"entity_id": "D0046CBAF5BC03DA",
42+
"executable": "C:\\ProgramFiles\\NewRelic\\newrelic-infra\\newrelic-integrations\\nr-winpkg.exe",
4243
"hash": {
4344
"md5": "65f9131df4b7c909ae41add0fcd172fa",
4445
"sha1": "a1d7ac9e15c26535a7dec40bba21cda4de078504",

packages/sentinel_one_cloud_funnel/data_stream/event/elasticsearch/ingest_pipeline/pipeline-process.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ processors:
274274
field: json.tgt.process.publisher
275275
target_field: sentinel_one_cloud_funnel.event.tgt.process.publisher
276276
ignore_missing: true
277+
- set:
278+
field: process.code_signature.subject_name
279+
copy_from: sentinel_one_cloud_funnel.event.tgt.process.publisher
280+
ignore_empty_value: true
277281
- rename:
278282
field: json.tgt.process.reasonSignatureInvalid
279283
target_field: sentinel_one_cloud_funnel.event.tgt.process.reason_signature_invalid
@@ -293,6 +297,14 @@ processors:
293297
field: json.tgt.process.signedStatus
294298
target_field: sentinel_one_cloud_funnel.event.tgt.process.signed_status
295299
ignore_missing: true
300+
- set:
301+
field: process.code_signature.exists
302+
value: true
303+
if: ctx.sentinel_one_cloud_funnel?.event?.tgt?.process?.signed_status == 'signed'
304+
- set:
305+
field: process.code_signature.exists
306+
value: false
307+
if: ctx.sentinel_one_cloud_funnel?.event?.tgt?.process?.signed_status != 'signed'
296308
- date:
297309
field: json.tgt.process.startTime
298310
tag: 'date_json_tgt_process_startTime'
@@ -321,6 +333,14 @@ processors:
321333
field: json.tgt.process.verifiedStatus
322334
target_field: sentinel_one_cloud_funnel.event.tgt.process.verified_status
323335
ignore_missing: true
336+
- set:
337+
field: process.code_signature.trusted
338+
value: true
339+
if: ctx.sentinel_one_cloud_funnel?.event?.tgt?.process?.verified_status == 'verified'
340+
- set:
341+
field: process.code_signature.trusted
342+
value: false
343+
if: ctx.process?.code_signature?.exists == true && ctx.sentinel_one_cloud_funnel?.event?.tgt?.process?.verified_status != 'verified'
324344
- remove:
325345
field:
326346
- process.parent
@@ -336,6 +356,10 @@ processors:
336356
field: process.name
337357
copy_from: sentinel_one_cloud_funnel.event.tgt.process.name
338358
ignore_empty_value: true
359+
- set:
360+
field: process.executable
361+
copy_from: sentinel_one_cloud_funnel.event.tgt.process.image.path
362+
ignore_empty_value: true
339363
- convert:
340364
field: sentinel_one_cloud_funnel.event.tgt.process.pid
341365
target_field: process.pid

packages/sentinel_one_cloud_funnel/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.0.2"
22
name: sentinel_one_cloud_funnel
33
title: SentinelOne Cloud Funnel
4-
version: "0.12.0"
4+
version: "0.13.0"
55
description: Collect logs from SentinelOne Cloud Funnel with Elastic Agent.
66
type: integration
77
categories: ["security", "edr_xdr"]

0 commit comments

Comments
 (0)