Skip to content
mss06sPublic

About

A minimal Windows app (PySide6) that heuristically flags keylogger-style persistence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

KeyWatch

A minimal Windows app (PySide6) that heuristically flags keylogger-style persistence.

It checks common persistence points and gives you a simple, visual "is anything sketchy here?" answer. Not an antivirus — just a fast, UI-first sanity check.

All clear Warning


What it checks

  • Registry Run keys (HKCU/HKLM)
  • Startup folders (user + common)
  • Scheduled Tasks (lightweight CSV query)
  • Services (autostart)
  • Processes (name/cmdline hints; optional network activity hint)
  • Recent executables/scripts in AppData (bounded sweep)

A candidate only gets flagged if it looks keylogger-like by name or location and isn't cleared by a real, native Authenticode signature check (WinVerifyTrust via ctypes — no Sysinternals install required). Findings are scored additively (hidden attribute, live network activity, suspicious path all add weight) rather than gated behind a single hard condition, so persistence doesn't have to be caught mid-network-call to be flagged.

The UI runs the scanner on a worker thread (so it stays responsive), shows live progress through each check, a radial risk gauge, and a findings-by-kind breakdown — with a details table you can export to JSON.


Run (Windows)

# 1) Create & activate a virtual environment
python -m venv venv
.\venv\Scripts\Activate.ps1   # if blocked: Set-ExecutionPolicy -Scope Process Bypass

# 2) Install deps
pip install -r requirements.txt

# 3) Launch (run as a module from the repo root, so the keywatch package resolves)
python -m keywatch.app

Tests

The heuristics in keywatch/detector.py (path allowlisting, keylogger-name matching, scoring, Authenticode verification) are covered by a small pytest suite.

pip install pytest
pytest

About

A minimal Windows app (PySide6) that heuristically flags keylogger-style persistence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages