Skip to content

Commit

Permalink
Add vulnerability.scanner.reference field to VD and alerts indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Feb 17, 2025
1 parent a7cc235 commit 47e4d6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def generate_random_vulnerability():
'scanner': {
'vendor': f'vendor-{random.randint(0, 9)}',
'source': random.choice(['NVD', 'OpenCVE', 'OpenVAS', 'Tenable']),
'condition': random.choice(['is', 'is not'])
'condition': random.choice(['is', 'is not']),
'reference': f'https://cti.wazuh.com/vulnerabilities/cves/CVE-{id}'
},
'score': {
'base': round(random.uniform(0, 10), 1),
Expand Down
5 changes: 5 additions & 0 deletions ecs/vulnerability-detector/fields/custom/vulnerability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@
level: custom
description: >
The condition matched by the package that led the scanner to consider it vulnerable.
- name: scanner.reference
type: keyword
level: custom
description: >
Scanner's resource that provides additional information, context, and mitigations for the identified vulnerability.

0 comments on commit 47e4d6d

Please sign in to comment.