![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Configuration.hpp>
Public Types | |
| enum | ContainerType : int { CONTAINER_TYPE_NONE = 0 , CONTAINER_TYPE_AMSI = 10 , CONTAINER_TYPE_PE = 20 , CONTAINER_TYPE_YARA = 30 } |
| The type of container that the extensibility is running in. More... | |
Public Member Functions | |
| Configuration (std::string configurationPath) | |
| Constructor for the Configuration class. | |
| void | Parse () |
| Parse the configuration file. | |
| void | IsValidJson () |
| Check if the configuration file is valid. | |
| std::vector< std::string > | GetJsonKeys () |
| Get the keys from the configuration file. | |
Public Attributes | |
| std::vector< std::string > | m_exclusions |
| The exclusions from the configuration file. | |
| std::vector< Configuration::ContainerType > | m_extensibility |
| The extensibility selected from the configuration file. | |
| std::vector< std::string > | m_extensibilityListName |
| The list of extensibility names from the configuration file. | |
| std::vector< std::tuple< std::string, unsigned long, unsigned long > > | m_eventProviders |
| The event providers from the configuration file. | |
| bool | m_ignoreDriver = false |
| The ignore driver from the configuration file. | |
| bool | m_quartine = false |
| The quarantine malicious files from the configuration file. | |
Protected Member Functions | |
| void | GetExtensibilitySelected () |
| Get the extensibility selected from the configuration file. | |
| void | GetScannerExclusions () |
| Get the scanner exclusions from the configuration file. | |
| void | GetIgnoreDriver () |
| Get the ignore driver from the configuration file. | |
| void | GetQuarantineMaliciousFiles () |
| Get the quarantine malicious files from the configuration file. | |
| void | GetEventProviders () |
| Get the event providers from the configuration file. | |
Protected Attributes | |
| nlohmann::json | m_data |
| std::ifstream | m_fileStream |
Definition at line 7 of file Configuration.hpp.
| enum Configuration::ContainerType : int |
The type of container that the extensibility is running in.
| Enumerator | |
|---|---|
| CONTAINER_TYPE_NONE | |
| CONTAINER_TYPE_AMSI | |
| CONTAINER_TYPE_PE | |
| CONTAINER_TYPE_YARA | |
Definition at line 29 of file Configuration.hpp.
| Configuration::Configuration | ( | std::string | configurationPath | ) |
Constructor for the Configuration class.
| configurationPath | The path to the configuration file |
Definition at line 55 of file Configuration.cpp.
References m_fileStream.
|
protected |
Get the event providers from the configuration file.
Definition at line 78 of file Configuration.cpp.
References m_data, m_eventProviders, SplitString(), and StringToDWORD().
Referenced by Parse().
|
protected |
Get the extensibility selected from the configuration file.
Definition at line 103 of file Configuration.cpp.
References CONTAINER_TYPE_AMSI, CONTAINER_TYPE_PE, CONTAINER_TYPE_YARA, m_data, m_extensibility, and StrToLower().
Referenced by Parse().
|
protected |
Get the ignore driver from the configuration file.
Definition at line 145 of file Configuration.cpp.
References m_data, and m_ignoreDriver.
Referenced by Parse().
| std::vector< std::string > Configuration::GetJsonKeys | ( | ) |
Get the keys from the configuration file.
Definition at line 166 of file Configuration.cpp.
References m_data.
Referenced by main().
|
protected |
Get the quarantine malicious files from the configuration file.
Definition at line 155 of file Configuration.cpp.
References m_data, and m_quartine.
Referenced by Parse().
|
protected |
Get the scanner exclusions from the configuration file.
Definition at line 134 of file Configuration.cpp.
References m_data, and m_exclusions.
Referenced by Parse().
| void Configuration::IsValidJson | ( | ) |
Check if the configuration file is valid.
Definition at line 72 of file Configuration.cpp.
References m_data, and m_fileStream.
Referenced by main().
| void Configuration::Parse | ( | ) |
Parse the configuration file.
Definition at line 61 of file Configuration.cpp.
References GetEventProviders(), GetExtensibilitySelected(), GetIgnoreDriver(), GetQuarantineMaliciousFiles(), GetScannerExclusions(), m_data, and m_fileStream.
Referenced by WinMain().
|
protected |
Definition at line 9 of file Configuration.hpp.
Referenced by GetEventProviders(), GetExtensibilitySelected(), GetIgnoreDriver(), GetJsonKeys(), GetQuarantineMaliciousFiles(), GetScannerExclusions(), IsValidJson(), and Parse().
| std::vector<std::tuple<std::string, unsigned long, unsigned long> > Configuration::m_eventProviders |
The event providers from the configuration file.
Definition at line 46 of file Configuration.hpp.
Referenced by GetEventProviders(), and StartPanoptesTrace().
| std::vector<std::string> Configuration::m_exclusions |
The exclusions from the configuration file.
Definition at line 37 of file Configuration.hpp.
Referenced by GetScannerExclusions().
| std::vector<Configuration::ContainerType> Configuration::m_extensibility |
The extensibility selected from the configuration file.
Definition at line 40 of file Configuration.hpp.
Referenced by GetExtensibilitySelected(), and WinMain().
| std::vector<std::string> Configuration::m_extensibilityListName |
The list of extensibility names from the configuration file.
Definition at line 43 of file Configuration.hpp.
|
protected |
Definition at line 10 of file Configuration.hpp.
Referenced by Configuration(), IsValidJson(), and Parse().
| bool Configuration::m_ignoreDriver = false |
The ignore driver from the configuration file.
Definition at line 49 of file Configuration.hpp.
Referenced by GetIgnoreDriver(), and WinMain().
| bool Configuration::m_quartine = false |
The quarantine malicious files from the configuration file.
Definition at line 52 of file Configuration.hpp.
Referenced by GetQuarantineMaliciousFiles().