kktypr adheres to zero-trust defensive engineering standards.
Security updates and patches are provided for the current active release series.
| Version | Supported |
|---|---|
| 0.1.x | ✅ |
| < 0.1.0 | ❌ |
- Architecture:
kktypruses Crossterm and Ratatui to enter terminal raw mode and alternate screen buffer for low-latency keystroke handling. - Risk: Unhandled application panic or SIGINT leaving the host terminal emulator in a bricked state (raw mode active, cursor hidden, mouse capture trapped, echoing disabled).
- Mitigation & Invariants:
- Global panic hook (
std::panic::set_hook) intercepts all panics, guaranteeing immediate execution ofdisable_raw_mode(),LeaveAlternateScreen, andShowCursorbefore propagating panic traces. - Signal traps ensure clean terminal cleanup on graceful SIGINT/SIGTERM termination.
- Global panic hook (
- Architecture: Typing accuracy, weak-key heatmaps, and lesson history persist to disk (
~/.local/state/kktypr/or platform data directory). - Risk: Concurrent process race conditions, symlink traversal, or partially written state files causing deserialization failure or data truncation.
- Mitigation & Invariants:
- Atomic write strategy: Data is serialized via
serde_jsonto a unique temporary file alongside the target directory, synced, and renamed atomically viastd::fs::rename. - Fallback error isolation: Corrupted or unreadable JSON files are gracefully logged and backed up without aborting the typing engine.
- Atomic write strategy: Data is serialized via
- Architecture: Developers practice typing across custom or built-in programming syntax tokens (Rust, Python, Bash, SQL).
- Risk: Malformed UTF-8 payloads, ANSI terminal escape injection, or boundary out-of-bounds access in text rendering buffers.
- Mitigation & Invariants:
- Keystroke and cursor slicing are strictly character- and grapheme-boundary checked.
- Zero-subprocess execution:
kktyprdoes not spawn external shells or invoke/bin/shto parse or evaluate drill text.
If you discover a security vulnerability or potential defensive flaw in kktypr, please report it responsibly:
- GitHub Security Advisory (Recommended):
- Navigate to the Security tab of the
kktyprrepository (https://github.com/kk376/kktypr/security/advisories). - Click Report a vulnerability to file a private advisory.
- Navigate to the Security tab of the
- Direct Contact:
- Email maintainer Kushagra Kumar directly at kkushagra86@gmail.com.
- Initial Acknowledgment: Within 24-48 hours.
- Triage & Patch Timeline: Patch provided in a private branch within 7 days, followed by coordinated disclosure and release tagging.
- Please do not open public GitHub issues detailing reproducible exploit payloads until a patch is released.