
Overview
Panoptes is an Endpoint Detection and Response (EDR) system designed for educational purposes to understand Windows Kernel Drivers, ETW, and Windows system interactions. This is not intended for production use.
Demo
Link to video
Features
- Kernel driver with process, image load and file system minifilter callbacks (details)
- Kernel-level DLL injection using a kernel Asynchronous Procedure Call (kAPC)
- Userland ntdll hooks for code injection and process tampering techniques (details)
- Behavioral detection: a Go rule engine matches sequences of events (injection, process hollowing, tampering, suspicious command lines and 187 LOLBAS techniques) as they stream from the service, and can kill or quarantine the process (details)
- Static analysis using Yara-X with custom rules, and Authenticode signature verification using WinVerifyTrust (details)
- Machine-learning static analysis (optional, BUILD_ML): PanoptesML scores PE files with a neural network trained on EMBER2024, run with ONNX Runtime. The model is encrypted inside the DLL, and the Go tools to train, evaluate and test it are included (details)
- Fault-isolated scanning: each scanning module runs in its own container process
- Persistent storage using RocksDB, so files already scanned are not scanned again
- JSON (NDJSON) logs compatible with ELK, HELK, and other SIEM solutions, and a terminal log viewer
- JSON configuration file with a built-in linter
- Right-click context menu integration and a command-line interface for scanning
- MSI installer for easy installation and removal
- Unit tests for the Yara module, the linter, the service, the detector and its rules, the ML tools, and every hooked API
About the Name
Panoptes, meaning "all-seeing," comes from Greek mythology. Argus Panoptes was a giant with a hundred eyes who served as a guardian to the Greek Gods. Learn more about Argus Panoptes
Architecture
Panoptes is designed with flexibility in mind, allowing users to customize deployment through a JSON configuration file. Panoptes is also packaged using Wix Toolset MSI file for easy installation and uninstallation.

The driver and the hook DLL only produce events; PanoptesService does all of the logging and decides what to scan. PanoptesDetector watches the service's events for attack behavior and reports what it finds back to the service, which decides how to respond. Each component's folder has a README with the details.
| Component | Role |
| Kernel driver (Panoptes.sys) | Process, image load and file system minifilter callbacks. Injects the hook DLL into new processes. |
| Hook DLL (PanoptesDLLx64.dll, PanoptesDLLx86.dll) | Hooks ntdll inside each injected process to catch code injection and process tampering. |
| PanoptesService | Collects the driver's and the hooks' events, writes the log, queues scans, quarantines detections and shows tray notifications. Reads the configuration. |
| PanoptesDetector | Matches behavioral rules (rules\*.yaml) against the event stream and reports detections to the service, which logs them, shows a notification and, with EnforceDetectionActions, kills or quarantines the process. The service starts it. |
| Containers and extensibility modules | Scan files for the service, each module in its own process. PanoptesYara is the core module; PanoptesML (optional) adds an ML verdict. Every file the service scans goes to each running module, and their results are stored together. |
| Scanners | PanoptesScan (right-click menu) and PanoptesScanCLI ask the service to scan a file. |
| Linter | Checks a configuration file. |
| Tools | A terminal UI for browsing logs by process. |
How the components talk:
- Driver to service: the driver's device object, \\.\Panoptes. The service keeps IOCTL_PANOPTES_GET_EVENT requests pending and the driver completes them with events (inverted call). The service configures the driver through IOCTLs on the same device.
- Hook DLL to service: ETW. Each injected process writes to the Panoptes.Hook TraceLogging provider, which the service consumes through a real-time session.
- Service, containers, scanners and detector: gRPC (proto/src/panoptes.proto), on a port the service publishes in the registry. The detector subscribes to the service's events (SubscribeEvents) and sends back detections (ReportDetection); the service only accepts both from PanoptesDetector.exe in its own folder.
Every event ends up in one log, C:\ProgramData\Panoptes\Logs\pano.log, one JSON object per line, including a Detection event for each detection and what the service did about it. The detector also keeps its own record, detection.log, with the events that matched. Both rotate at 5 MB. Created and modified PE files are scanned once their writes settle.
Installation
- Download the MSI installer from the Releases page
- To use the Panoptes Kernel Driver ensure that testsigning is enabled using the following command:
bcdedit /set TESTSIGNING ON
Then restart your system
- Run the MSI installer
- Place compiled Yara-X rules (rules.pkg) in C:\Program Files\Panoptes\ (see compiling custom rules)
- Start PanoptesService.exe as Administrator. It starts the driver, the containers and PanoptesDetector.exe, which loads the behavioral rules from C:\Program Files\Panoptes\rules\
- Optionally set "EnforceDetectionActions": true in C:\ProgramData\Panoptes\Panoptes.config to let kill and quarantine rules act; without it every detection only alerts
Usage
- Right-click files and choose Scan with Panoptes, or use PanoptesScanCLI.exe -file <file> (scanners). The file is scanned by YARA and, when installed, PanoptesML; the CLI waits for both and prints the combined result
- Monitor tray notifications for detections
- Check quarantine folder: C:\ProgramData\Panoptes\Quarantine
- Review behavioral detections in C:\ProgramData\Panoptes\Logs\detection.log, or test rules offline by replaying a log with a Debug build or go run (the installed Release exe runs without a console and prints nothing; see the detector README):
cd src/detector
go run ./src -rules rules -replay C:\ProgramData\Panoptes\Logs\pano.log
- View logs in C:\ProgramData\Panoptes\Logs, or browse them by process with the log viewer TUI:
pip install textual
python tools/pano_tui.py C:\ProgramData\Panoptes\Logs\pano.log
Development Setup
Prerequisites
- Visual Studio 2026 with C++ desktop development workload
- vcpkg (included with Visual Studio or standalone)
- Windows Driver Kit (WDK) (for kernel driver builds)
- Go (for the detector, winget install GoLang.Go; or configure with -DBUILD_DETECTOR=OFF). PanoptesML also needs it, to encrypt its model into the DLL
- Test signing enabled (for driver development)
- Virtual Machine configured for Windows Kernel Debugging using WinDbg
Set the VCPKG_ROOT environment variable to your vcpkg installation:
# If installed with Visual Studio
$env:VCPKG_ROOT = "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\vcpkg"
# Or set it permanently
[System.Environment]::SetEnvironmentVariable("VCPKG_ROOT", "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\vcpkg", "User")
For kernel development environment setup, see:
Building with CMake
The project uses a single CMake preset with the Visual Studio multi-config generator. You configure once and choose Debug/Release at build time.
Configure
Build
# Debug build (with debug symbols for your code)
cmake --build build/default --config Debug
# Release build (optimized)
cmake --build build/default --config Release
Build the Kernel Driver
cmake --preset default -DBUILD_DRIVER=ON
cmake --build build/default --config Debug --target PanoptesDriver
Build and Run Tests
cmake --preset tests
cmake --build --preset tests --config Debug
cd bin/Debug/tests
./Test_PanoptesYara.exe
./Test_Linter.exe
./Test_Service.exe
The detector's tests, including every shipped rule, run with Go, as do the PanoptesML tools' (feature extraction, training, model export and encryption):
cd src/detector
go test ./...
cd ../extensibility/PanoptesML/tools
go test ./...
Each hooked API also has a test for both architectures, e.g. Test_NtWriteVirtualMemoryx64.exe and Test_NtWriteVirtualMemoryx86.exe. They only test anything in Debug builds; see the hook README for how they work, how to debug them, and how to run them on a KDNET target.
CMake Build Options
The following options can be passed during configuration with -D:
| Option | Default | Description |
| BUILD_DRIVER | OFF | Build the kernel driver package (requires WDK) |
| BUILD_DETECTOR | ON | Build PanoptesDetector and copy its rules to bin/<config>/rules (requires Go) |
| BUILD_ML | OFF | Build the PanoptesML module into bin/<config>/ext, with the model from assets/ml/model.onnx encrypted inside it (requires Go). Its own vcpkg sub-build compiles ONNX Runtime the first time, which takes a while; see building PanoptesML |
| PANOPTES_ML_EMBED_MODEL | ON | With BUILD_ML: embed the model encrypted in the DLL. OFF ships model.onnx next to it unencrypted |
| BUILD_GRPC | ON | Generate gRPC code from protobuf definitions |
| BUILD_TESTS | OFF | Build the unit tests into bin/<config>/tests (enabled by the tests preset) |
| BUILD_DOC | OFF | Build Doxygen documentation |
| BUILD_WIX_INSTALLER | OFF | Build the Wix MSI installer package |
Example with multiple options:
cmake --preset default -DBUILD_DRIVER=ON -DBUILD_DOC=ON
cmake --build build/default --config Release
Building the MSI Installer
The MSI installer requires the WDK (for the driver), Go (for the detector) and the WiX Toolset v5 CLI:
dotnet tool install --global wix --version 5.0.2
The required WiX extensions (WixToolset.UI.wixext, WixToolset.Util.wixext) are installed automatically during CMake configuration. Then configure and build with the installer preset, which enables BUILD_DRIVER and BUILD_WIX_INSTALLER and builds every packaged binary in Release:
cmake --preset installer
cmake --build --preset installer
In VS Code, select the MSI Installer configure preset and the MSI Installer (Release) build preset in the CMake Tools status bar, then run CMake: Build.
The MSI will be output to bin/Release/installer/PanoptesInstaller.msi. It includes PanoptesML (ext\PanoptesML.dll) when the build is configured with -DBUILD_ML=ON, e.g. cmake --preset installer -DBUILD_ML=ON.
Screenshots of Panoptes Features
Scanning and Detecting Malicious Activity Notification


MSI Installer



Installed Locations


Easily Uninstall in App and Programs Menu in Settings

Roadmap
- Component-specific documentation
- Add more NTDLL hooks for monitoring
Future Plans
PanoptesLite
A lighter, driver-less edition of Panoptes. Instead of the kernel driver, PanoptesLite would collect its telemetry only from ETW providers (for example Microsoft-Windows-Kernel-Process and Microsoft-Windows-Kernel-File), while still using the same extensibility (Yara) containers for scanning. This makes it installable where loading a kernel driver isn't possible or wanted, at the cost of the visibility and enforcement the driver provides.
References
License
Panoptes is licensed under the [GNU General Public License v3.0](LICENSE).