39 YRX_RULES* g_yaraRules =
nullptr;
53 std::vector<std::string>
YaraScanFile(std::string PathToFile);
ExtensibilityType
The type of extensibility.
SignatureInfo VerifyFileSignature(const std::string &PathToFile)
Verify the Authenticode signature of a file using WinVerifyTrust. The embedded signature is checked f...
The Panoptes Service client used to talk to the service over gRPC.
bool SendResults_Yara(std::string PePath, std::string FileHash, DWORD ProcessId, std::string YaraRulesPath, INT MatchRules, std::vector< std::string > DetectedRules)
bool Hello(ExtensibilityType extensibilityType, int ContainerPort)
YaraScanner(const YaraScanner &)=delete
YaraScanner(const char *Rules)
Intializes Yara memory and attempts to load supplied yara rules.
std::vector< std::string > YaraScanFile(std::string PathToFile)
Scan a file using YARA rules.
YaraScanner & operator=(const YaraScanner &)=delete
~YaraScanner()
Destructor for the YaraScanner class that destroys the YARA rules.
The result of verifying a file's Authenticode signature with WinVerifyTrust.
bool trusted
True if WinVerifyTrust reported the signature as valid and trusted.
std::string signer
The signing certificate's display name (UTF-8), empty if unsigned.
LONG trustStatus
The WinVerifyTrust result, 0 if trusted.
bool isSigned
True if the file has an embedded or catalog signature.
bool catalogSigned
True if the signature came from a catalog file rather than being embedded.
The data that is sent to the Panoptes Service.
std::vector< std::string > detectedRules