LaptopKeyboardLocker (KeyLock.exe) uses the Windows Low-Level Keyboard Hook API (WH_KEYBOARD_LL) in Mode 1 to block keyboard input when locked. We enforce strict architectural safeguards to protect user privacy:
- No Keystroke Storage or Transmission:
- Individual key codes (
vkCode) are never stored in memory buffers, never written to disk, and never passed outsideKeyboardHookManager. - The application is 100% offline and makes zero network requests.
- Individual key codes (
- Diagnostic Logging Scope:
DiagnosticLoggeronly records high-level application lifecycle events (e.g.,AppStart,SoftwareHookStarted,InternalKeyboardDisabled,InternalKeyboardRestored) in structured JSONL format (diagnostics.jsonl) with an automatic 512 KB rotation limit.
- Hardware Fail-Safe Design:
- In Mode 2 (
CfgMgr32), touchpads, mice, and sensors are strictly whitelisted and excluded viaDeviceClassifier. - System shutdown, sleep, crash handlers, external keyboard disconnect sensors, and
KeyLock.exe --unlockensure internal keyboards are always restored safely.
- In Mode 2 (
If you discover a security or hardware-safety issue, please open a GitHub Issue or contact the maintainers directly. We aim to address critical issues within 48 hours.