MISP / MISP/PyMISP

The template (vulnerability) doesn't have the object_relation (vulnerable_configuration) you're trying to add.

Open
#853 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
491
Forks
290
Avg merge
2d 8h
Merged PRs (30d)
3

Description

When doing a search I get the error message The template (vulnerability) doesn't have the object_relation (vulnerable_configuration) you're trying to add. (> https://github.com/MISP/PyMISP/blob/main/pymisp/mispevent.py#L1032)

events_object = misp.search(object_name="vulnerability", date_from="2022-01-01", pythonify=True, limit=250)

The 'vulnerable' object definition is version 8, both in MISP and PyMISP (lib/python3.8/site-packages/pymisp/data/misp-objects/objects/vulnerability/). It contains vulnerable-configuration instead of vulnerable_configuration.

example event UUID 30839540-715f-46fa-9fe3-a3b0b441d01e

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at pymisp/mispevent.py around line 1032 and compare the relation name used during the search with the vulnerability object definition under lib/python3.8/site-packages/pymisp/data/misp-objects/objects/vulnerability/. Use event UUID 30839540-715f-46fa-9fe3-a3b0b441d01e and the reported search call to reproduce the error. Done means the search no longer rejects the vulnerable configuration relation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.