Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Mar 3, 2025
1 parent 0e0c428 commit e98bb29
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 160 deletions.
278 changes: 151 additions & 127 deletions misp_modules/__init__.py

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions misp_modules/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
import joe_mapping
from .vt_graph_parser import * # noqa

all = [
"joe_parser",
"lastline_api",
"cof2misp",
"qintel_helper",
"dnstrails",
"onyphe",
"ODTReader",
]
4 changes: 0 additions & 4 deletions misp_modules/modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
#from .expansion import * # noqa
#from .import_mod import * # noqa
#from .export_mod import * # noqa
#from .action_mod import * # noqa
1 change: 0 additions & 1 deletion misp_modules/modules/action_mod/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# __all__ = ["testaction", "mattermost", "slack"]
5 changes: 0 additions & 5 deletions misp_modules/modules/expansion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import os
import sys



minimum_required_fields = ("type", "uuid", "value")

checking_error = 'containing at least a "type" field and a "value" field'
Expand Down
2 changes: 1 addition & 1 deletion misp_modules/modules/expansion/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def handler(q=False):
else:
return {"error": "Vulnerability Lookup API not accessible."}
parser = VulnerabilityLookupParser(attribute, api_url)
parser.parser_lookup_result(vulnerability)
parser.parse_lookup_result(vulnerability)
return parser.get_results()


Expand Down
5 changes: 1 addition & 4 deletions misp_modules/modules/expansion/onyphe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

from pymisp import MISPEvent, MISPObject

try:
from onyphe import Onyphe
except ImportError:
print("pyonyphe module not installed.")
from misp_modules.lib.onyphe import Onyphe

misperrors = {"error": "Error"}

Expand Down
5 changes: 1 addition & 4 deletions misp_modules/modules/expansion/onyphe_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import json

try:
from onyphe import Onyphe
except ImportError:
print("pyonyphe module not installed.")
from onyphe import Onyphe

misperrors = {"error": "Error"}

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ optional = true
black = "*"
codecov = "*"
flake8 = "*"
ipdb = "*"
nose = "*"
pytest = "*"
ipdb = "*"
# decorator = "*"

[tool.poetry.group.docs]
optional = true
Expand Down

0 comments on commit e98bb29

Please sign in to comment.