Skip to content

Commit 285d924

Browse files
use params based severity map lookup
1 parent 026f8f3 commit 285d924

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

packages/crowdstrike/_dev/build/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The [CrowdStrike](https://www.crowdstrike.com/) integration allows you to easily
2828

2929
3. **Falcon Data Replicator**: This collects events from your endpoints, cloud workloads, identities, and data. CrowdStrike Falcon Data Replicator (FDR) enables you with actionable insights to improve SOC performance. FDR contains data collected by the Falcon platform's single, lightweight agent. It includes the following datasets for receiving logs:
3030

31-
- `fdr` dataset: consists of logs forwarded using the [Falcon Data Replicator](https://github.com/CrowdStrike/FDR). In addition to the existing log types, the integration supports parsing of Cloud Security Posture Management (CSPM) Indicators of Misconfiguration (IOM) and Indicators of Attack (IOA) events.
31+
- `fdr` dataset: consists of logs forwarded using the [Falcon Data Replicator](https://github.com/CrowdStrike/FDR). In addition to the existing log types, the integration supports parsing of Cloud Security Posture Management (CSPM). CSPM contains Indicators of Misconfiguration (IOM) and Indicators of Attack (IOA) events.
3232

3333
4. **CrowdStrike Event Stream**: This streams security logs from CrowdStrike Event Stream, including authentication activity, cloud security posture management (CSPM), firewall logs, user activity, and XDR data. It captures real-time security events like user logins, cloud environment changes, network traffic, and advanced threat detections. The streaming integration provides continuous monitoring and analysis for proactive threat detection. It enhances visibility into user behavior, network security, and overall system health. This setup enables faster response capabilities to emerging security incidents. It includes the following datasets for receiving logs:
3434

packages/crowdstrike/data_stream/fdr/elasticsearch/ingest_pipeline/cspm_ioa.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,16 @@ processors:
208208
lang: painless
209209
tag: set_event_severity_from_severity_name
210210
if: ctx.crowdstrike?.SeverityName instanceof String && ctx.crowdstrike.SeverityName != ''
211+
params:
212+
low: 21
213+
info: 21
214+
informational: 21
215+
medium: 47
216+
high: 73
217+
critical: 99
211218
source: |-
212219
ctx.event = ctx.event ?: [:];
213-
def severityScores = [
214-
'low': 21,
215-
'info': 21,
216-
'informational': 21,
217-
'medium': 47,
218-
'high': 73,
219-
'critical': 99
220-
];
221-
Integer score = severityScores[ctx.crowdstrike.SeverityName.toLowerCase()];
220+
Integer score = params[ctx.crowdstrike.SeverityName.toLowerCase()];
222221
if (score != null) {
223222
ctx.event.severity = score;
224223
}

packages/crowdstrike/data_stream/fdr/elasticsearch/ingest_pipeline/cspm_iom.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -333,17 +333,16 @@ processors:
333333
lang: painless
334334
tag: set_event_severity_from_severity_name
335335
if: ctx.crowdstrike?.SeverityName instanceof String && ctx.crowdstrike.SeverityName != ''
336+
params:
337+
low: 21
338+
info: 21
339+
informational: 21
340+
medium: 47
341+
high: 73
342+
critical: 99
336343
source: |-
337344
ctx.event = ctx.event ?: [:];
338-
def severityScores = [
339-
'low': 21,
340-
'info': 21,
341-
'informational': 21,
342-
'medium': 47,
343-
'high': 73,
344-
'critical': 99
345-
];
346-
Integer score = severityScores[ctx.crowdstrike.SeverityName.toLowerCase()];
345+
Integer score = params[ctx.crowdstrike.SeverityName.toLowerCase()];
347346
if (score != null) {
348347
ctx.event.severity = score;
349348
}

packages/crowdstrike/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The [CrowdStrike](https://www.crowdstrike.com/) integration allows you to easily
2828

2929
3. **Falcon Data Replicator**: This collects events from your endpoints, cloud workloads, identities, and data. CrowdStrike Falcon Data Replicator (FDR) enables you with actionable insights to improve SOC performance. FDR contains data collected by the Falcon platform's single, lightweight agent. It includes the following datasets for receiving logs:
3030

31-
- `fdr` dataset: consists of logs forwarded using the [Falcon Data Replicator](https://github.com/CrowdStrike/FDR). In addition to the existing log types, the integration supports parsing of Cloud Security Posture Management (CSPM) Indicators of Misconfiguration (IOM) and Indicators of Attack (IOA) events.
31+
- `fdr` dataset: consists of logs forwarded using the [Falcon Data Replicator](https://github.com/CrowdStrike/FDR). In addition to the existing log types, the integration supports parsing of Cloud Security Posture Management (CSPM). CSPM contains Indicators of Misconfiguration (IOM) and Indicators of Attack (IOA) events.
3232

3333
4. **CrowdStrike Event Stream**: This streams security logs from CrowdStrike Event Stream, including authentication activity, cloud security posture management (CSPM), firewall logs, user activity, and XDR data. It captures real-time security events like user logins, cloud environment changes, network traffic, and advanced threat detections. The streaming integration provides continuous monitoring and analysis for proactive threat detection. It enhances visibility into user behavior, network security, and overall system health. This setup enables faster response capabilities to emerging security incidents. It includes the following datasets for receiving logs:
3434

0 commit comments

Comments
 (0)