Wrong Boot (codename: wrong8007) is a programmable dead man's switch for Linux, living entirely in kernel space. Think of it as the software equivalent of a burner phone OR a modular kernel trigger framework for last-resort execution.
Inspired by the legendary USBKill project and reinvented from scratch, it's modular, trigger-agnostic, and execution-flexible: you choose how it activates, you choose what it does.
This project was revisited and expanded in memory of Mark Klein (May 2, 1945 – March 8, 2025) the AT&T technician who, in 2006, revealed the existence of warrantless mass surveillance (Secrets of Room 641A) by the NSA.
In a world where truths vanish into evidence lockers, systems can be seized, tampered with or forcibly accessed, and control can be taken in seconds, reaction time is everything.
Wrong Boot isn't just a tool. It's last words. A line you draw before someone else crosses it.
When the moment comes, wrong8007 won't ask questions. It will act exactly how you told it to.
Installation • Security model • Philosophy
Disclaimer: This project is for educational and lawful defensive purposes only. Using it to damage systems you don't own or have permission to modify is illegal.
- Kernel-space monitoring: Zero user-space dependencies; works even if most of the system is compromised.
- Multiple triggers: Phrase detection, USB events, network packets all extendable by design.
- Custom execution hooks: Run any script or binary, from data wipes to custom alerting logic.
- Fail-closed design: Invalid configurations prevent module load rather than causing undefined behavior.
- Fast & silent: Triggers execution instantly, without relying on cron jobs or user-space daemons.
- Modular architecture: Clean separation between core logic and triggers.
The design of this project was intentionally made modular to allow for customization and the use of individualized solutions (by default, it comes with a rudimentary script for nuking).
Wrong Boot's architecture keeps triggers separate from the core logic, making it easy to add or remove trigger types without touching the core.
For example, the keyboard trigger (trigger/keyboard.c) listens for a secret phrase and instantly runs your configured executable when matched. Other triggers (USB, network) work independently - load the module with any combination you need.
You can read more about the project's design philosophy here. For trust boundaries and non-goals, see the security model.
The usage is pretty simple, actually, but you will need to have superuser access to the machine.
$ git clone https://github.com/0x48piraj/wrong8007.git
$ cd wrong8007/Compiling the LKM,
$ makeDebugging:
-
Optional
-DDEBUGflag prints verbose logs for keypresses and command executionEnable with:
$ make EXTRA_CFLAGS=-DDEBUGAt last, installing the kernel module,
Example: run wipe.sh when the phrase secret phrase is typed.
$ chmod +x wipe.sh
$ test -f wipe.sh && make load PHRASE='secret phrase' EXEC="$(realpath wipe.sh)"The executable/script must have execute permissions (
chmod +x) and use an absolute path.
$ make remove # Remove the module
$ make clean # Optional: clean build artifactsThe wrong8007 module can trigger actions when a specific phrase is typed on the keyboard.
- Case-sensitive matching.
"nuke"is different from"NUKE". - Matches exactly as typed, without ignoring spaces or punctuation.
- Works only on printable characters (no special keys like Shift or Ctrl).
Load the module with the desired trigger phrase:
make load PHRASE="nuke" EXEC="/path/to/script"The configured script will run immediately after the phrase is typed in sequence.
- Works with the US keymap only.
- Requires the phrase to be typed without mistakes - any wrong key resets the match.
- Does not capture keys from virtual keyboards or remote sessions.
The wrong8007 kernel module supports advanced USB event–based triggers with flexible configuration:
- Multiple USB devices supported in a single load.
- Fine-grained control over event types: insertion, removal (eject), or any activity.
- Support for whitelisting or blacklisting USB devices.
You can specify a list of USB devices using their Vendor ID (VID) and Product ID (PID), along with an event type.
make load USB_DEVICES="1234:5678" EXEC="/path/to/script"make load USB_DEVICES="1234:5678:eject" EXEC="/path/to/script"make load USB_DEVICES="1234:5678:any" EXEC="/path/to/script"make load USB_DEVICES="1234:5678:insert,abcd:ef00:any" EXEC="/path/to/script"Use the WHITELIST param:
WHITELIST=1→ Only listed devices trigger the payload.WHITELIST=0(default) → Listed devices are blocked, all others trigger.
Example:
make load USB_DEVICES="1234:5678:any" WHITELIST=1 EXEC="/path/to/script"Use:
lsusbDynamic configuration via the usb_devices module parameter was introduced and improved in commits 7a6ab4d and 4fd9648, enabling runtime specification of USB device rules for fine-grained trigger control.
This replaces the legacy approach introduced in commit 875ff0a.
-
The module accepts USB device rules via the
usb_devicesmodule parameter as an array of strings in the format:VID:PID:EVENTwhere
EVENTis one ofinsert,eject, orany. -
Upon module load, these rules are parsed and validated strictly:
- Each rule is checked for correct hexadecimal VID and PID values.
- The event string is verified to be one of the supported values.
- Invalid or malformed rules cause the module initialization to fail with clear error messages.
-
If no valid USB device rules are provided, the USB trigger disables itself silently and does not register for USB event notifications.
-
This rigorous validation ensures that only well-formed configurations are accepted, avoiding undefined or unexpected behavior at runtime.
-
usb_notifier_callback()schedules work once per USB event so we don't need to dedup for correctness. -
Users must provide valid rules; incorrect inputs will prevent module load.
-
Validation is performed in the kernel module on load, ensuring invalid configurations are rejected immediately.
-
This balances robustness and safety with kernel code simplicity.
-
The module avoids runtime overhead of repeated checks by validating once during initialization.
-
Users should still carefully prepare module parameters (e.g. via scripts or tooling) to avoid load failures.
The wrong8007 module supports various network-triggering modes - flexible enough for LAN environments, and stealthy when used with passive traffic.
Trigger when any packet from this MAC address is seen on the interface:
make load MATCH_MAC='aa:bb:cc:dd:ee:ff' EXEC="/path/to/script"Trigger only when a packet originates from the matching IPv4 address:
make load MATCH_IP='192.168.1.1' EXEC="/path/to/script"Send a single UDP packet with a known payload - acts as a remote kill switch:
make load MATCH_PORT=1234 MATCH_PAYLOAD='MAGIC' EXEC="/path/to/script"Send it using the provided helper:
python3 scripts/whisperer.py 192.168.1.1 1234 "MAGIC"Trigger if no packet from a host is received for a set duration:
make load HEARTBEAT_HOST='192.168.1.1' HEARTBEAT_INTERVAL=10 HEARTBEAT_TIMEOUT=30 EXEC="/path/to/script"Use the heartbeat sender script to periodically "ping" the module from the host:
python3 scripts/heartbeat.py 192.168.1.1 1234MAC-based triggers can activate immediately and unexpectedly, because any frame (such as ARP, broadcast, or even passive presence) from the target MAC is enough to trigger the module - no IP traffic is required.
IP-based triggers are slightly more restrictive - they only fire when a valid IP packet is seen from the specified address. If the device hasn't sent anything yet at the IP layer, the trigger won't activate.
If you're using MAC- or IP-only triggers on devices already active on the same network (e.g., your own machine), you risk triggering the payload immediately on load, which can lead to unintended consequences including self-triggering.
To avoid accidental activation:
- Do not rely solely on MAC/IP triggers in sensitive environments.
- Prefer using magic packets if precision is critical. You can use
whisperer.py, or any network utility to "poke" the module. - Ensure your trigger source is not present on the network during module load (e.g., an external device that only joins the network when needed).
While limited, MAC/IP-only triggers are not useless, they shine in scenarios where:
- The target device is not always connected, and
- You want the module to activate only when that specific MAC or IP joins the network.
This makes them ideal for:
- Air-gapped or controlled environments
- Proximity-based activation
- Triggers that rely on the appearance of a trusted device
New trigger implementations are welcome and encouraged.
Before contributing, please read:
PRs that violate the project's trust boundaries or safety guarantees will not be accepted.
Wrong Boot does not prescribe how you destroy data, only when.
For operators designing their wipe or sanitization payloads, see:
This document covers common myths, modern research, and practical tooling for effective data sanitization.
This checklist outlines what's been completed so far and what still needs to be addressed.
-
Functionally complete
- Performs all core tasks reliably (e.g., all triggers work as intended)
- Handles edge cases (e.g., timeout conditions, invalid input)
-
Documented
- README explains purpose, setup, usage, and caveats
- Example commands, options, and expected behavior are clear
- Module parameters and triggers are well-explained
-
Configurable and extensible
- Users can add or combine triggers easily
- Clear boundaries between core logic and pluggable parts (e.g., USB/network)
-
Tested or testable
- Demonstrates functionality in multiple environments or under stress
- Includes safety mechanisms (e.g., no accidental wipes, warnings for common mistakes)
-
No obvious bugs or kernel warnings
- Loads/unloads cleanly
- No kernel panics
-
dmesgpollution
-
Stable and versioned
- At least one tagged release (e.g., v1.0.0)
- Changelog is maintained
-
Logging levels or debug modes for safe testing
-
Optional dry-run modes or mock environments
-
Security hardening (e.g., restrict who can insert the module)
-
Packaging
- DKMS support
- Polished Makefile
- Install/uninstall scripts
Wrong Boot has the potential to evolve into a full-fledged, bootable OS, purpose-built for operational survivability.
- Security researchers
- Linux kernel developers
- High-risk environment operators
- Incident response and contingency planning
- Stealth malware
- Unauthorized system access
- Persistent implants
- Remote command-and-control frameworks
If you'd like to shape its future:
- Star the repo to show support
- Open issues to discuss ideas or bugs
- Send PRs if you're building something cool (look into development guide)