[crowdstrike, microsoft_defender_endpoint, sentinel_one] Update host.* ECS mappings - #13373
Conversation
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportPackage
|
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
falcon |
7518.8 | 5714.29 | -1804.51 (-24%) | 💔 |
Package sentinel_one 👍(2) 💚(0) 💔(3)
Expand to view
| Data stream | Previous EPS | New EPS | Diff (%) | Result |
|---|---|---|---|---|
agent |
3378.38 | 2057.61 | -1320.77 (-39.09%) | 💔 |
alert |
3236.25 | 2457 | -779.25 (-24.08%) | 💔 |
group |
35714.29 | 29411.76 | -6302.53 (-17.65%) | 💔 |
To see the full report comment with /test benchmark fullreport
| - android | ||
| source: | | ||
| for (String os: params.os_type) { | ||
| if (ctx.crowdstrike.vulnerability.host_info.platform.toLowerCase().contains(os)) { |
There was a problem hiding this comment.
Map look-up or case-folded equality? If not, hoist the string construction outside the loop.
There was a problem hiding this comment.
Please hoist the string construction out of the loop.
String platform = ctx.crowdstrike.vulnerability.host_info.platform.toLowerCase();
for (String os: params.os_type) {
| if (ctx.host.os.family.toLowerCase().contains(os)) { | ||
| ctx.host.os.put('type', os); | ||
| } |
| if (ctx.host == null) { | ||
| ctx.put('host', new HashMap()); | ||
| } | ||
| if (ctx.host.os == null) { | ||
| ctx.host.put('os', new HashMap()); | ||
| } |
There was a problem hiding this comment.
| if (ctx.host == null) { | |
| ctx.put('host', new HashMap()); | |
| } | |
| if (ctx.host.os == null) { | |
| ctx.host.put('os', new HashMap()); | |
| } | |
| ctx.host = ctx.host ?: [:]; | |
| ctx.host.os = ctx.host.os ?: [:]; |
| if (ctx.json.osType.toLowerCase().contains(os)) { | ||
| ctx.host.os.put('type', os); | ||
| } |
There was a problem hiding this comment.
Map look-up or case-folded equality? Otherwise hoist string construction.
| if (ctx.host == null) { | ||
| ctx.put('host', new HashMap()); | ||
| } | ||
| if (ctx.host.os == null) { | ||
| ctx.host.put('os', new HashMap()); | ||
| } | ||
| for (String os: params.os_type) { | ||
| if (ctx.sentinel_one.alert.agent.os.type.toLowerCase().contains(os)) { | ||
| ctx.host.os.put('type', os); | ||
| } | ||
| } |
| if (ctx.host == null) { | ||
| ctx.put('host', new HashMap()); | ||
| } | ||
| if (ctx.host.os == null) { | ||
| ctx.host.put('os', new HashMap()); | ||
| } | ||
| for (String os: params.os_type) { | ||
| if (ctx.json.agentRealtimeInfo.agentOsType.toLowerCase().contains(os)) { | ||
| ctx.host.os.put('type', os); | ||
| } | ||
| } |
…endpoint-sentinel_one
…endpoint-sentinel_one
|
💚 Build Succeeded
History
|
|
Package crowdstrike - 1.63.0 containing this change is available at https://epr.elastic.co/package/crowdstrike/1.63.0/ |
|
Package microsoft_defender_endpoint - 2.32.0 containing this change is available at https://epr.elastic.co/package/microsoft_defender_endpoint/2.32.0/ |
|
Package sentinel_one - 1.33.0 containing this change is available at https://epr.elastic.co/package/sentinel_one/1.33.0/ |




Proposed commit message
To improve bidirectional response actions, maintain consistent
host.*mappings for CrowdStrike, SentinelOne, and Microsoft Defender for Endpoint packages.All three integrations will provide
host.id(which will be used for sending action requests to the EDR platform) andhost.os.typevalues.Checklist
changelog.ymlfile.Author's Checklist
Related issues