![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Windows.h>#include <string>Go to the source code of this file.
Functions | |
| void | RecordProcessStart (DWORD processId, const std::string &image, const FILETIME &time) |
| Records a process start (ProcessCreated). | |
| void | RecordProcessExit (DWORD processId) |
| Records a process exit (ProcessTerminated). Its entry is forgotten a minute later. | |
| std::string | LookupProcessImage (DWORD processId, const FILETIME &time) |
| The image of the process that had processId at the given time, from the recorded starts. Empty if the service did not see that process start (e.g. it started before the service). | |
| std::string | ResolveProcessImage (DWORD processId, const FILETIME &time) |
| LookupProcessImage, falling back to asking Windows (QueryFullProcessImageName) for processes the service did not see start. Empty if both fail. | |
| std::string LookupProcessImage | ( | DWORD | processId, |
| const FILETIME & | time ) |
The image of the process that had processId at the given time, from the recorded starts. Empty if the service did not see that process start (e.g. it started before the service).
Definition at line 113 of file process_images.cpp.
References ProcessImageEntry::Image, PANO_IMAGE_TIME_SLACK, and ProcessImageEntry::Start.
Referenced by ResolveProcessImage(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void RecordProcessExit | ( | DWORD | processId | ) |
Records a process exit (ProcessTerminated). Its entry is forgotten a minute later.
Definition at line 95 of file process_images.cpp.
| void RecordProcessStart | ( | DWORD | processId, |
| const std::string & | image, | ||
| const FILETIME & | time ) |
Records a process start (ProcessCreated).
| image | The image path as the driver reports it. "\??\C:\..." and "\SystemRoot\..." are converted to "C:\..." paths |
| time | When the process was created |
Definition at line 80 of file process_images.cpp.
References ProcessImageEntry::Image, PANO_IMAGES_PER_PID, and ProcessImageEntry::Start.
| std::string ResolveProcessImage | ( | DWORD | processId, |
| const FILETIME & | time ) |
LookupProcessImage, falling back to asking Windows (QueryFullProcessImageName) for processes the service did not see start. Empty if both fail.
Definition at line 173 of file process_images.cpp.
References LookupProcessImage(), MAX_PATH, and ToString().