Library: Using pynput for the listener. It handles cross-platform input well, but I’ve found that processing special characters and modifier keys (Shift, Alt, Ctrl) consistently across different OS layouts requires significant conditional logic.
Persistence: I’ve implemented basic persistence by adding the script to the system's startup directory/registry.
Detection/Heuristics: Even without malicious intent, basic heuristic scanners often flag the script due to the nature of the hooks. I am currently looking into ways to make the execution more efficient and less "noisy" to avoid immediate termination by local security software.
For those experienced in security automation, what are the most common efficiency bottlenecks when using pynput or pynput.keyboard.Listener?
What are some professional-grade GitHub repositories or resources you recommend for studying clean, high-performance security scripting?
Are there better alternatives to pynput for low-level input monitoring that offer more granular control?