Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
scanner_ipc.hpp
Go to the documentation of this file.
1#pragma once
2#include <memory>
3#include <string>
4#include <vector>
5
6class PanoptesService_Stub_Holder; // the gRPC stub, kept out of this header
7
9struct ScanReply {
10 std::string Results; // the file's stored result (JSON), empty if it has none yet
11 std::string FileHash; // the hash it's stored under
12 std::vector<std::string> Pending; // results still expected: "yara_scan", "ml_scan"
13};
14
16public:
25 bool QueuePeScan(const std::string& PePath, const std::string& FileHash, bool Poll, ScanReply& Reply, std::string& Error);
26
27private:
28 // A member, not a global: a global stub is destroyed during static teardown, after gRPC's
29 // own globals, and crashes the process as it exits
30 std::unique_ptr<PanoptesService_Stub_Holder> m_stub;
31};
The Panoptes Service client used to talk to the service over gRPC.
PanoptesServiceClient(const PanoptesServiceClient &)=delete
bool QueuePeScan(std::string PePath, std::string FileHash, std::string &message)
Send a request to the Panoptes Service to scan a PE file.
PanoptesServiceClient & operator=(const PanoptesServiceClient &)=delete
What the service answered a scan request with.
std::vector< std::string > Pending
std::string Results
std::string FileHash