new: Enrichment queries now pass the base64 encoded data to the enrichment modules

- first implementation, malware is sent as an encryptet zip base64 encoded
pull/1651/head
Iglocska 2016-11-02 21:26:39 +01:00
parent 2128c804cb
commit 77fdb4a854
1 changed files with 3 additions and 0 deletions

View File

@ -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);