MISP / MISP/PyMISP

Errors in vt_to_misp.py module

Open
#974 0 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

i'm trying to run vt_to_misp.py script for enriching event
command for running:

sudo python3 /var/www/MISP/PyMISP/examples/vt_to_misp.py -i https://submit-form.com/PRpqt7rk  -c /home/cmib/MISP_tests/config.json -e 926167

./config file already have API keys and url

error, what i have when i run enrichment script:

Traceback (most recent call last):
  File "/var/www/MISP/PyMISP/examples/vt_to_misp.py", line 178, in <module>
    main(misp, config, args)
  File "/var/www/MISP/PyMISP/examples/vt_to_misp.py", line 123, in main
    submit_to_misp(misp, misp_event, misp_objects)
  File "/var/www/MISP/PyMISP/examples/vt_to_misp.py", line 163, in submit_to_misp
    template_id = misp.get_object_template_id(misp_object.template_uuid)
AttributeError: 'PyMISP' object has no attribute 'get_object_template_id'

MISP and PyMISP already updated for last version

how i can fix that?
@SteveClement

image

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 with examples/vt_to_misp.py, especially lines 123 and 163 from the traceback, and inspect the available PyMISP methods in the installed version. Reproduce the command with the supplied configuration and verify the object-template lookup path. Done means the enrichment script completes without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.