![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include "hook_events.h"#include "error_message.h"#include "pano_log.h"#include "detector_stream.h"#include "process_images.h"#include "utils.h"#include <evntrace.h>#include <evntcons.h>#include <tdh.h>#include <nlohmann/json.hpp>#include <chrono>#include <condition_variable>#include <cstdio>#include <iostream>#include <mutex>#include <string>#include <thread>#include <vector>Go to the source code of this file.
Classes | |
| struct | HookSessionProperties |
Macros | |
| #define | HOOK_SESSION_NAME L"Panoptes Hook Trace" |
| #define | HOOK_KEYWORD_DETECTION 0x1 |
| #define | HOOK_LOSS_CHECK_MS 5000 |
Functions | |
| ERRORCODE | StartHookEvents () |
| Starts a real-time ETW session for the hook DLL's "Panoptes.Hook" TraceLogging provider and a thread that logs each event it delivers. A session left behind by a previous run of the service is stopped and replaced. Requires SYSTEM or Administrators. | |
| void | StopHookEvents () |
| Stops the ETW session and waits for the consumer thread to deliver what it buffered. | |
| #define HOOK_KEYWORD_DETECTION 0x1 |
Definition at line 34 of file hook_events.cpp.
| #define HOOK_LOSS_CHECK_MS 5000 |
Definition at line 37 of file hook_events.cpp.
| #define HOOK_SESSION_NAME L"Panoptes Hook Trace" |
Definition at line 25 of file hook_events.cpp.
Referenced by StartHookEvents().
| ERRORCODE StartHookEvents | ( | ) |
Starts a real-time ETW session for the hook DLL's "Panoptes.Hook" TraceLogging provider and a thread that logs each event it delivers. A session left behind by a previous run of the service is stopped and replaced. Requires SYSTEM or Administrators.
Definition at line 330 of file hook_events.cpp.
References ERRORCODE, HOOK_KEYWORD_DETECTION, HOOK_SESSION_NAME, NOT_ADMIN, PANO_SUCCESS, HookSessionProperties::Properties, StopHookEvents(), and WINDOWS_ERR.
Referenced by WinMain().
| void StopHookEvents | ( | ) |
Stops the ETW session and waits for the consumer thread to deliver what it buffered.
Definition at line 381 of file hook_events.cpp.
References HookSessionProperties::Properties.
Referenced by StartHookEvents().