Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECS categorization examples #860

Closed
leehinman opened this issue May 29, 2020 · 5 comments · Fixed by #1242
Closed

Add ECS categorization examples #860

leehinman opened this issue May 29, 2020 · 5 comments · Fixed by #1242
Assignees
Labels
7.12 candidate documentation enhancement New feature or request ready Issues we'd like to address in the future. Team: ECS

Comments

@leehinman
Copy link
Contributor

Summary:
We have documentation for each of the four buckets in ECS categorization, but we don't have examples of how all four buckets would be used together in real world examples.

Motivation:
Examples would help those implementing ECS to use the categorization buckets in a consistent manor.

Detailed Design:
Where in the documentation should we add these examples? Some options are:

  • add to values_section_header in scripts/generators/asciidoc_fields.py
  • add a new examples.yml file and generate a new page
  • other?

Examples:

  1. Firewall blocked a network connection
    event:
      kind: event
      category:
        - network
      type:
        - connection
        - denied
      outcome:
        - success
  1. Failed attempt to add a user to Active Directory
    event:
      kind: event
      category:
        - iam
      type:
        - user
        - creation
      outcome:
        - failure
  1. Information about a file
    event:
      kind: event
      category:
        - file
      type:
        - info
  1. IDS failed to block a network connection
    event:
      kind: alert
      category:
        - intrusion_detection
        - network
      type:
        - connection
        - denied
      outcome: failure
@leehinman leehinman added the enhancement New feature or request label May 29, 2020
@ebeahan
Copy link
Member

ebeahan commented Jun 1, 2020

Thanks @leehinman! @webmat and I have discussed improvements to the overall "Getting Started" experience of ECS in the documentation, and I agree these type of examples in the docs would be helpful for ECS end-users, implementers, and contributors alike.

@webmat
Copy link
Contributor

webmat commented Jun 1, 2020

Yes we should work this into the documentation soon. Any additional examples you encounter would be welcome here.

Thanks for opening this, Lee :-)

@gimmic
Copy link

gimmic commented Jun 25, 2020

Very minor point on example 4:
An IDS will never block a network connection. It Detects; an IPS will block(or fail to block) a network connection- It Prevents.

IPS != IDS

@vpiserchia
Copy link

more on example4: for IPS, following the description [1] it would be beneficial to have also the action added to the event field:
resulting in something like this:

      type:
        - connection
        - denied
      action: blocked
      outcome: failure

What confuses me is the outcome field; that is from the IPS perspective if the connection was blocked the outcome should be success while from the perspective of the peer that has seen his connection attempt denied than the same field would report a failure.

So my question, how this is intended to be solved?

[1] https://www.elastic.co/guide/en/ecs/current/ecs-allowed-values-event-type.html#ecs-event-type-denied

@ebeahan ebeahan added the ready Issues we'd like to address in the future. label Jul 2, 2020
@ebeahan ebeahan self-assigned this Aug 13, 2020
@ebeahan
Copy link
Member

ebeahan commented Oct 22, 2020

The functionality to add more detailed usage documentation, touched on previously #860 (comment), has been added. Details can be found here.

The ECS team plans to add some initial usage docs soon, which can also serve as examples for other contributions, but I thought I'd go ahead and share that the functionality is available!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.12 candidate documentation enhancement New feature or request ready Issues we'd like to address in the future. Team: ECS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants