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

Vulnerabilities template wrong type for package size #27979

Closed
1 task done
sebasfalcone opened this issue Jan 31, 2025 · 2 comments · Fixed by wazuh/wazuh-indexer#662, #27988, wazuh/wazuh-indexer#663 or wazuh/wazuh-indexer-plugins#259
Assignees
Labels
level/task type/bug Something isn't working

Comments

@sebasfalcone
Copy link
Member

sebasfalcone commented Jan 31, 2025

Description

While investigating:

It was found that there is an issue with the type used to express the package size for vulnerability events:

The type used is long (int 64), when in reality it should be an unsigned long (unit 64)

DoD

  • Template updated
@QU3B1M
Copy link
Member

QU3B1M commented Feb 3, 2025

The field package.size comes from the default ECS fields, we need to override it in order to modify its type, something like this should do the trick:

- name: package
  title: Package
  group: 2
  short: Fields to describe the package relevant to an event.
  description: >
    The package fields describe information about a package that is
    relevant to an event.
  type: group
  fields:
    - name: size
      type: <type>
      level: custom
      description: >
        Size of the package.

The value uint (or unsigned INT) is not compatible with the ECS mappings fields, but the unsigned_long is, so im using that type instead. More info about supported types can be found in the ECS reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment