mirror of https://github.com/MISP/MISP
new: Enrichment queries now pass the base64 encoded data to the enrichment modules
- first implementation, malware is sent as an encryptet zip base64 encodedpull/1651/head
parent
2128c804cb
commit
77fdb4a854
|
@ -3804,6 +3804,9 @@ class EventsController extends AppController {
|
|||
}
|
||||
}
|
||||
$data = array('module' => $module, $attribute[0]['Attribute']['type'] => $attribute[0]['Attribute']['value'], 'event_id' => $attribute[0]['Attribute']['event_id']);
|
||||
if ($this->Event->Attribute->typeIsAttachment($attribute[0]['Attribute']['type'])) {
|
||||
$data['data'] = $this->Event->Attribute->base64EncodeAttachment($attribute[0]['Attribute']);
|
||||
}
|
||||
if (!empty($options)) $data['config'] = $options;
|
||||
$data = json_encode($data);
|
||||
$result = $this->Module->queryModuleServer('/query', $data);
|
||||
|
|
Loading…
Reference in New Issue