elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Security Solution] Update the event generation script to create distinctly Posix and distinctly Windows event trees #128315

Open kqualters-elastic opened 2 years ago

kqualters-elastic commented 2 years ago

Describe the bug: Currently, the event generation script creates trees of events that consist exclusively event.type of start or end for process events, which are what are found on windows endpoints, with some linux only fields, for testing. As of now this shouldn't cause any sort of bugs, however for testing behavior around fork/exec event types, the script is lacking.

Kibana/Elasticsearch Stack version: 8.2+ Server OS version: All Browser and Browser OS versions: All Elastic Endpoint version: N/A

Functional Area (e.g. Endpoint management, timelines, resolver, etc.): Analyzer

Steps to reproduce:

  1. From x-pack/plugins/security_solution, run yarn test:generate
  2. Observe hybrid events generated.

Current behavior: Windows lifecycle events contain posix eventing model fields. Expected behavior: Trees of events with only windows lifecycle events should not contain the eventing model fields, Trees with Posix lifecycle event types should contain only these types of lifecycle events + the eventing model fields.

elasticmachine commented 2 years ago

Pinging @elastic/security-threat-hunting (Feature:Resolver)

elasticmachine commented 2 years ago

Pinging @elastic/security-solution (Team: SecuritySolution)

MadameSheema commented 2 years ago

@kqualters-elastic can we close this or is there any pending task to be done? Thanks!

kqualters-elastic commented 2 years ago

@MadameSheema no, we should keep this open. The pending task is to still do what the ticket describes ha, they are currently fake and not true to reality, i.e. process trees with windows process names and lifecycle event types have session data, and events with session data are never of type fork/exec etc.