Repository navigation
v0.0.1
This is the first public release of the project.
It supports Linux kernel versions 5.4.x through 6.6.x. The project includes multiple triggers (keyboard, USB, network) and has been validated with runtime testing and CI coverage.
Summary
- Support for Linux kernels 5.4.x to 6.6.x (with plans for LTS v4.x and legacy testing)
- Keyboard, USB and network trigger implementations
- Runtime testing across multiple kernel versions
- CI workflows for build and compatibility testing
- Helper utilities for testing and trigger interaction
Core
- Modular trigger framework supporting multiple trigger types simultaneously
- Centralized trigger registration and safe resource cleanup on unload
- Initialization, teardown and error handling for trigger registration
- Fixed-size internal data structures replacing sentinel-terminated arrays
Keyboard trigger
- Phrase-based trigger execution
- Case-sensitive matching with exact sequence detection
- Independent configuration from the core module
USB trigger
- Device insert, removal and any-event triggers
- Whitelist and blacklist matching
- Decimal and hexadecimal VID/PID parsing
- Duplicate rule handling and parameter validation
Network trigger
- MAC and IP address matching
- Port and payload-based magic packet triggers
- Heartbeat monitoring for detecting host inactivity
- Netfilter-based packet inspection compatible with supported kernels
Runtime behavior
- One-shot trigger execution with atomic latch
- Support for overlapping phrase matching
- USB rule truncation visibility
- Packet parsing with payload bounds validation
- Netfilter hook skb safety across L2/L3/L4
- Ordered resource teardown during module unload
- Isolated parsing state for trigger processing
- Unified logging across the module
Tooling and CI
- Multi-kernel CI builds
- Cached kernel source extraction for faster builds
- Load/unload and execution, teardown verification and exec stub integration tests
- Static analysis and shell script checks
Utilities
- Python script for sending network trigger packets
- Keep-alive beacon utility for heartbeat triggers
- USB device enumeration helper
Documentation
- Usage examples for all trigger types
- Architecture overview
- Parameter validation notes
- Project roadmap and contribution documentation
Tested kernels
- 5.4.236
- 5.10.210
- 6.1.47
- 6.6.14
- Ubuntu 22.04 LTS (6.14.0-27-generic)
Notes
- Required packages:
build-essential,bc,flex,bison,libssl-dev,libelf-dev - The keyboard trigger currently assumes a US keyboard layout.
Changelog: https://github.com/0x48piraj/wrong8007/commits/0.0.1