How abtinmbm/doppel works
Doppel is a local Windows continuous-authentication application: live keyboard events become privacy-preserving timing records, which are scored against an owner profile and passed to a trust rule that can lock the session. It also replays Aalto data through the collector for evaluation and provides threshold tuning and benchmark metrics. The sampled source supports the live pipeline and encrypted storage; evaluation and detector relationships are included where documented in the README. Unsampled connections are omitted rather than inferred.
Main entry points: app.py Live App · aalto.py Aalto Loader · listener.py Live Listener · collector.py Event Collector
Components 19
Input and Records
- Live Listener
src/doppel/listener.py - Event Collector
src/doppel/collector.py - Private Key Labels
src/doppel/keymap.py - Timing Records
src/doppel/records.py
Typing Identity
- Window Profile
src/doppel/window_scorer.py - Typing Scorer
src/doppel/scorer.py
Trust and Action
- Live App
src/doppel/app.py - Trust Engine
src/doppel/trust.py - Record Quarantine
src/doppel/quarantine.py
Private Storage
- Background Writer
src/doppel/writer.py - DPAPI Key Store
src/doppel/keystore.py - Encrypted SQLite
src/doppel/storage.py
Evaluation
- Aalto Loader
src/doppel/aalto.py - Event Replay
src/doppel/replay.py - Benchmark Detectors
src/doppel/detectors.py - Error Metrics
src/doppel/metrics.py - Lock Tuning
src/doppel/tuning.py
Other components
- Keyboard
- Windows Lock
Connections 24
- Keyboard → Live Listener: emits events
README.md - Live Listener → Event Collector: forwards events
src/doppel/listener.py - Live Listener → Private Key Labels: identifies keys
src/doppel/listener.py - Event Collector → Private Key Labels: labels key pairs
src/doppel/collector.py - Event Collector → Timing Records: produces records
src/doppel/collector.py - Live Listener → Live App: delivers records
src/doppel/app.py - Live App → Typing Scorer: observes records
src/doppel/app.py - Typing Scorer → Window Profile: scores windows
src/doppel/scorer.py - Live App → Trust Engine: updates trust
src/doppel/app.py - Live App → Record Quarantine: filters records
src/doppel/app.py - Live App → Windows Lock: locks session
README.md - Live App → Background Writer: queues records
README.md - Background Writer → Encrypted SQLite: writes batches
README.md - Live App → DPAPI Key Store: gets encryption key
src/doppel/app.py - DPAPI Key Store → Encrypted SQLite: provides key
README.md - Encrypted SQLite → Timing Records: loads records
src/doppel/storage.py - Aalto Loader → Event Replay: replays keystrokes
src/doppel/aalto.py - Event Replay → Event Collector: feeds events
src/doppel/replay.py - Aalto Loader → Private Key Labels: uses labels
src/doppel/aalto.py - Aalto Loader → Timing Records: returns records
src/doppel/aalto.py - Typing Scorer → Lock Tuning: tunes lock settings
src/doppel/tuning.py - Trust Engine → Lock Tuning: simulates lock rule
src/doppel/tuning.py - Benchmark Detectors → Error Metrics: measures errors
README.md - Aalto Loader → Error Metrics: evaluates results
README.md