![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
The Panoptes Service client used to talk to the service over gRPC. More...
#include <container_ipc.hpp>
Public Member Functions | |
| PanoptesServiceClient () | |
| The PanoptesServiceClient class is a class that implements the PanoptesServiceClient class. | |
| bool | Hello (ExtensibilityType extensibilityType, std::string port) |
| The Hello function sends a Hello message to the Panoptes main service from the container. | |
| bool | SendResults_Yara (std::string PePath, std::string FileHash, DWORD ProcessId, std::string YaraRulesPath, INT MatchRules, std::vector< std::string > DetectedRules) |
| PanoptesServiceClient () | |
| bool | Hello (ExtensibilityType ExtensibilityType, int ContainerPort) |
| Send a hello message to the Panoptes Service to bind to the service containing the type of extensibility and the port of the container that the extensibility is running in. | |
| bool | SendResults_ML (const std::string &PePath, const std::string &FileHash, const MlScanResult &Result) |
| PanoptesServiceClient () | |
| bool | Hello (ExtensibilityType extensibilityType, int ContainerPort) |
| bool | SendResults_Yara (std::string PePath, std::string FileHash, std::vector< std::string > DetectedRules, const SignatureInfo &Signature) |
| Send the results of the YARA scan to the Panoptes Service. | |
| PanoptesServiceClient () | |
| bool | QueuePeScan (std::string PePath, std::string FileHash, std::string &message) |
| Send a request to the Panoptes Service to scan a PE file. | |
| PanoptesServiceClient () | |
| ~PanoptesServiceClient () | |
| PanoptesServiceClient (const PanoptesServiceClient &)=delete | |
| PanoptesServiceClient & | operator= (const PanoptesServiceClient &)=delete |
| bool | QueuePeScan (const std::string &PePath, const std::string &FileHash, bool Poll, ScanReply &Reply, std::string &Error) |
| Asks the service to scan a file with every extension that hasn't yet. With Poll, only reads back the stored result and the scans still running (FileHash from an earlier reply, so the file needn't still be there). | |
The Panoptes Service client used to talk to the service over gRPC.
The Panoptes Service Client that used to communicate via gRPC.
Definition at line 24 of file container_ipc.hpp.
| PanoptesServiceClient::PanoptesServiceClient | ( | ) |
The PanoptesServiceClient class is a class that implements the PanoptesServiceClient class.
Constructor for the Panoptes Service Client.
Constructor for the Panoptes Service Client to set up the connection to the.
Definition at line 15 of file service_client.cpp.
References SERVICE_PORT, and stub_.
Referenced by operator=(), and PanoptesServiceClient().
| PanoptesServiceClient::PanoptesServiceClient | ( | ) |
| PanoptesServiceClient::PanoptesServiceClient | ( | ) |
| PanoptesServiceClient::PanoptesServiceClient | ( | ) |
| PanoptesServiceClient::PanoptesServiceClient | ( | ) |
|
default |
|
delete |
References PanoptesServiceClient().
| bool PanoptesServiceClient::Hello | ( | ExtensibilityType | extensibilityType, |
| int | ContainerPort ) |
Send a hello message to the Panoptes Service to bind to the service containing the type of extensibility and the port of the container that the extensibility is running in.
| extensibilityType | The type of extensibility, in this case YARA |
| ContainerPort | The port of the container that the extensibility is running in |
Definition at line 51 of file service_client_ml.cpp.
| bool PanoptesServiceClient::Hello | ( | ExtensibilityType | extensibilityType, |
| int | ContainerPort ) |
| bool PanoptesServiceClient::Hello | ( | ExtensibilityType | extensibilityType, |
| std::string | port ) |
The Hello function sends a Hello message to the Panoptes main service from the container.
| extensibilityType | The type of extensibility. |
| port | The port of the Panoptes main service. |
Definition at line 25 of file service_client.cpp.
References stub_.
Referenced by PanoBind().
|
delete |
References PanoptesServiceClient().
| bool PanoptesServiceClient::QueuePeScan | ( | const std::string & | PePath, |
| const std::string & | FileHash, | ||
| bool | Poll, | ||
| ScanReply & | Reply, | ||
| std::string & | Error ) |
Asks the service to scan a file with every extension that hasn't yet. With Poll, only reads back the stored result and the scans still running (FileHash from an earlier reply, so the file needn't still be there).
Definition at line 78 of file scanner_ipc.cpp.
References ScanReply::FileHash, ScanReply::Pending, and ScanReply::Results.
| bool PanoptesServiceClient::QueuePeScan | ( | std::string | PePath, |
| std::string | FileHash, | ||
| std::string & | message ) |
Send a request to the Panoptes Service to scan a PE file.
| PePath | The path to the PE file |
| FileHash | The hash of the PE file |
| message | The message to send to the Panoptes Service |
Definition at line 79 of file scanner_ipc.cpp.
References stub_.
Referenced by WinMain().
| bool PanoptesServiceClient::SendResults_ML | ( | const std::string & | PePath, |
| const std::string & | FileHash, | ||
| const MlScanResult & | Result ) |
Definition at line 72 of file service_client_ml.cpp.
References MlScanResult::Error, MlScanResult::IsPe, MlScanResult::Malicious, MlScanResult::Model, PANO_ML_FEATURE_VERSION, PANO_ML_THRESHOLD, and MlScanResult::Score.
Referenced by PanoEntry().
| bool PanoptesServiceClient::SendResults_Yara | ( | std::string | PePath, |
| std::string | FileHash, | ||
| DWORD | ProcessId, | ||
| std::string | YaraRulesPath, | ||
| INT | MatchRules, | ||
| std::vector< std::string > | DetectedRules ) |
Referenced by PanoEntry().
| bool PanoptesServiceClient::SendResults_Yara | ( | std::string | pePath, |
| std::string | fileHash, | ||
| std::vector< std::string > | detectedRules, | ||
| const SignatureInfo & | signature ) |
Send the results of the YARA scan to the Panoptes Service.
| pePath | The path of the file that was scanned |
| fileHash | The hash of the file that was scanned |
| detectedRules | The rules that were detected |
| signature | The result of verifying the file's signature |
Definition at line 105 of file service_client_yara.cpp.
References SignatureInfo::catalogSigned, SignatureInfo::isSigned, SignatureInfo::signer, stub_, SignatureInfo::trusted, and SignatureInfo::trustStatus.