mirror of https://github.com/MISP/MISP
Merge branch '2.4' of github.com:MISP/MISP into 2.4
commit
e267ef48fa
|
@ -1267,7 +1267,7 @@ class StixBuilder():
|
|||
return pattern
|
||||
|
||||
@staticmethod
|
||||
def resolve_stix2_pattern(attributes):
|
||||
def resolve_stix2_pattern(attributes, _):
|
||||
for attribute in attributes:
|
||||
if attribute['object_relation'] == 'stix2-pattern':
|
||||
return attribute['value']
|
||||
|
|
|
@ -305,6 +305,7 @@ objectsMapping = {'asn': {'to_call': 'handle_usual_object_name',
|
|||
'registry-key': {'to_call': 'handle_usual_object_name',
|
||||
'observable': {'0': {'type': 'windows-registry-key'}},
|
||||
'pattern': "windows-registry-key:{0} = '{1}'"},
|
||||
'stix2-pattern': {'to_call': 'handle_usual_object_name'},
|
||||
'url': {'to_call': 'handle_usual_object_name',
|
||||
'observable': {'0': {'type': 'url'}},
|
||||
'pattern': "url:{0} = '{1}'"},
|
||||
|
|
Loading…
Reference in New Issue