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

Bug: STIX2ObservableObjectConverter object has no attribute '_parse_domain_observable' #53

Open
1 task done
SYNchroACK opened this issue Oct 25, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@SYNchroACK
Copy link
Contributor

SYNchroACK commented Oct 25, 2023

MISP-STIX usage

standalone script

Expected behavior

normal event creation.

Actual behavior

Found issue during parsing on the following objects. dict_items([('bundle--3fc50ef4-4b21-497d-b590-1b8640cf6bce',
{'Error parsing the Observable object with id domain-name--bedb4899-d24b-5401-bc86-8f6b4cc18ec7:
   File "/home/vscode/.local/lib/python3.10/site-packages/misp_stix_converter/stix2misp/external_stix2_to_misp.py", line 315, in _handle_unparsed_content
    getattr(self.observable_object_parser, to_call)(object_id)\n\'STIX2ObservableObjectConverter\' object has no attribute \'_parse_domain_observable\''})])

Steps to reproduce

from misp_stix_converter import ExternalSTIX2toMISPParser
from stix2 import Bundle, DomainName

parser = ExternalSTIX2toMISPParser()

domain = DomainName(value="example.com")

bundle = Bundle([domain])

parser.load_stix_bundle(bundle)
parser.parse_stix_bundle()
event = parser.misp_event

if parser.errors:
    print(f"Found issue during parsing on the following objects. {parser.errors.items()}")

Version

2.4.176

Python version

3.10

Relevant log output

No response

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SYNchroACK SYNchroACK added the bug Something isn't working label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant