![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include "PanoptesML.h"#include <algorithm>#include <array>#include <cmath>#include <cstdio>#include <cstring>#include <stdexcept>Go to the source code of this file.
Classes | |
| class | FileView |
| A read-only view of the file that refuses reads outside it. More... | |
| struct | PeLayout |
| The parts of a PE the features need. More... | |
Functions | |
| const char * | FeatureName (size_t Index) |
| The name of feature Index, or nullptr when it is out of range. | |
| PeFeatures | ExtractPeFeatures (const uint8_t *Data, size_t Size) |
| The same, from a file's bytes (used by ExtractPeFeatures and the tests). | |
| PeFeatures | ExtractPeFeatures (const std::wstring &Path) |
| Reads a file and computes its static features. The file is only read, never run or loaded. Throws std::runtime_error when the file can't be read or is too large. | |
| PeFeatures ExtractPeFeatures | ( | const std::wstring & | Path | ) |
Reads a file and computes its static features. The file is only read, never run or loaded. Throws std::runtime_error when the file can't be read or is too large.
Definition at line 326 of file pe_features.cpp.
References ExtractPeFeatures(), and PANO_ML_MAX_FILE_SIZE.
Referenced by PanoEntry(), and PanoMlScoreFile().
| PeFeatures ExtractPeFeatures | ( | const uint8_t * | Data, |
| size_t | Size ) |
The same, from a file's bytes (used by ExtractPeFeatures and the tests).
Definition at line 233 of file pe_features.cpp.
References PeLayout::AddressOfEntryPoint, FileView::Contains(), FEATURE_BYTE_HISTOGRAM, FEATURE_COUNT, FEATURE_ENTROPY, FEATURE_ENTRY_OUTSIDE_EXECUTABLE, FEATURE_HAS_DEBUG, FEATURE_HAS_RELOCATIONS, FEATURE_HAS_RESOURCES, FEATURE_HAS_SIGNATURE, FEATURE_HAS_TLS, FEATURE_IMAGE_TO_FILE_RATIO, FEATURE_IMPORTED_DLLS, FEATURE_IMPORTED_FUNCTIONS, FEATURE_IS_64BIT, FEATURE_IS_DLL, FEATURE_IS_PE, FEATURE_LOG_SIZE, FEATURE_OVERLAY_RATIO, FEATURE_SECTION_COUNT, FEATURE_SECTION_ENTROPY_MAX, FEATURE_SECTION_ENTROPY_MEAN, FEATURE_SECTION_ENTROPY_MIN, FEATURE_SUBSYSTEM_GUI, FEATURE_WRITABLE_EXECUTABLE_SECTIONS, FEATURE_ZERO_TIMESTAMP, PeLayout::FileHeader, PeLayout::Is64Bit, PeFeatures::IsPe, PeLayout::Sections, PeLayout::SizeOfImage, PeLayout::Subsystem, and PeFeatures::Values.
Referenced by ExtractPeFeatures().
| const char * FeatureName | ( | size_t | Index | ) |
The name of feature Index, or nullptr when it is out of range.
Definition at line 22 of file pe_features.cpp.
References FEATURE_COUNT.
Referenced by PanoMlFeatureName().