Skip to content

Commit

Permalink
Fixes #602: MISP analyzer compatibility with PyMISP 2.4.120
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Jan 30, 2020
1 parent 17e0960 commit 1036d58
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analyzers/MISP/MISP.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Nils Kuhnert, CERT-Bund",
"license": "AGPL-V3",
"url": "https://github.com/BSI-CERT-Bund/cortex-analyzers",
"version": "2.0",
"version": "2.1",
"description": "Query multiple MISP instances for events containing an observable.",
"dataTypeList": [
"domain",
Expand Down
4 changes: 2 additions & 2 deletions analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __clean(self, misp_response):
"""
response = []

for event in misp_response.get('response', []):
for event in misp_response:
response.append(self.__clean_event(event['Event']))

return response
Expand All @@ -222,7 +222,7 @@ def __search(self, value, type_attribute):
if not value:
raise EmptySearchtermError
for idx, connection in enumerate(self.misp_connections):
misp_response = connection.search(type_attribute=type_attribute, values=value)
misp_response = connection.search(type_attribute=type_attribute, value=value)

# Fixes #94
if isinstance(self.misp_name, list):
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1036d58

Please sign in to comment.