How excanear/dll-hijacking-system works
This is a Windows DLL-hijacking defense product with a WPF management GUI over a C++/CLI bridge to a native C++ engine. The principal workflow is configuring the service, then validating DLLs or starting runtime monitoring and viewing findings; offline dependency auditing and log review are separate user-facing workflows. The README documents the five protection capabilities and the GUI/bridge/engine layers. Some native implementations and page wiring were not sampled, so internal links are limited to documented or indexed relationships.
Main entry points: DhdService.cs Defense service · DhdBridge.cpp Native bridge · runtime_monitor.cpp Runtime monitor · dll_validator.cpp DLL validator
Components 25
Management GUI
- WPF application
DhdGui/App.xaml.cs - Dashboard
DhdGui/ViewModels/DashboardViewModel.cs - DLL validation UI
DhdGui/ViewModels/ValidateDllViewModel.cs - Monitor UI
DhdGui/ViewModels/RealtimeMonitorViewModel.cs - Audit UI
DhdGui/ViewModels/AuditScannerViewModel.cs - Log viewer
DhdGui/ViewModels/LogViewerViewModel.cs - Settings UI
DhdGui/ViewModels/SettingsViewModel.cs - Validation result
DhdGui/Models/ValidationResultModel.cs - Monitor finding
DhdGui/Models/MonitorFindingModel.cs - Audit finding
DhdGui/Models/AuditFindingModel.cs - Log event
DhdGui/Models/LogEventModel.cs
Managed Interop
- Defense service
DhdGui/Services/DhdService.cs - Log file reader
DhdGui/Services/LogFileReader.cs - Native bridge
DhdBridge/DhdBridge.cpp
Protection Core
- Defense lifecycle
dll-hijack-defense/core/defense_system.cpp - Search hardening
dll-hijack-defense/core/hardening.cpp - DLL validator
dll-hijack-defense/core/dll_validator.cpp - Secure loader
dll-hijack-defense/core/secure_loader.cpp - Runtime policy
dll-hijack-defense/shared/policy.cpp - Shared contracts
dll-hijack-defense/shared/types.h
Intelligence
- Risk analysis
dll-hijack-defense/intelligence/risk_analyzer.cpp - Event logging
dll-hijack-defense/intelligence/logging_engine.cpp
Detection Operations
- Runtime monitor
dll-hijack-defense/monitor/runtime_monitor.cpp - Offline auditor
dll-hijack-defense/audit/audit_scanner.cpp
Other components
- Operator
Connections 33
- Operator → WPF application: uses
README.md - WPF application → Dashboard: resolves
DhdGui/App.xaml.cs - WPF application → Defense service: registers
DhdGui/App.xaml.cs - Dashboard → Defense service: calls
DhdGui/ViewModels/DashboardViewModel.cs - Dashboard → Log file reader: reads logs
DhdGui/ViewModels/DashboardViewModel.cs - DLL validation UI → Defense service: calls
DhdGui/ViewModels/ValidateDllViewModel.cs - Monitor UI → Defense service: calls
DhdGui/ViewModels/RealtimeMonitorViewModel.cs - Audit UI → Defense service: calls
DhdGui/ViewModels/AuditScannerViewModel.cs - Log viewer → Log file reader: reads logs
DhdGui/ViewModels/LogViewerViewModel.cs - Settings UI → Defense service: calls
DhdGui/ViewModels/SettingsViewModel.cs - Log viewer → Defense service: calls
DhdGui/ViewModels/LogViewerViewModel.cs - Log file reader → Log event: creates
DhdGui/Services/LogFileReader.cs - Defense service → Native bridge: invokes
DhdGui/Services/DhdService.cs - Native bridge → Defense lifecycle: initializes
DhdBridge/DhdBridge.cpp - Native bridge → DLL validator: dispatches
README.md - Native bridge → Search hardening: dispatches
README.md - Native bridge → Runtime monitor: dispatches
README.md - Native bridge → Offline auditor: dispatches
README.md - Native bridge → Event logging: dispatches
DhdBridge/DhdBridge.cpp - DLL validator → Runtime policy: queries
dll-hijack-defense/core/dll_validator.cpp - Secure loader → DLL validator: validates
dll-hijack-defense/core/secure_loader.cpp - Secure loader → Event logging: emits events
dll-hijack-defense/core/secure_loader.cpp - Runtime monitor → Event logging: emits alerts
README.md - Runtime monitor → Secure loader: checks loader
dll-hijack-defense/monitor/runtime_monitor.cpp - Risk analysis → Runtime policy: uses thresholds
- Offline auditor → Runtime policy: uses policy
- Defense service → Validation result: maps results
DhdGui/Services/DhdService.cs - Defense service → Monitor finding: maps findings
DhdGui/Services/DhdService.cs - Defense service → Audit finding: maps findings
DhdGui/Services/DhdService.cs - Runtime monitor → Shared contracts: uses types
dll-hijack-defense/monitor/runtime_monitor.cpp - DLL validator → Shared contracts: uses types
dll-hijack-defense/core/dll_validator.cpp - Event logging → Shared contracts: uses events
dll-hijack-defense/intelligence/logging_engine.cpp - Offline auditor → Shared contracts: uses types
dll-hijack-defense/audit/audit_scanner.cpp