Gaming PC loopback is not raw-device isolation. In live Sunshine testing, original remote mouse reports remained visible through Raw Input while ordinary window messages received only the Pico clicks. A Raw Input application may observe both sources. Do not use this mode as a claim of hardware-only input origin.
HIDway delivers keyboard and mouse actions to a target computer through USB. Access to an authorized sender or relay can therefore become control of that target. Treat the complete input path as privileged, even though the software normally runs without administrator rights.
Updated 2026-10-29 for the input preview and observed hardware limitations. This document describes source controls and known limits; it is not a certification of every deployed machine or untested input source.
The confirmed AION2 same-PC session required a manually approved elevated HIDway launch to match the game's integrity level. Elevation gives the client broader local access; the installer and client do not elevate automatically or change UAC settings. Normal launches remain unelevated. A separately launched lower- integrity Monitor may be unable to send replay IPC to an elevated client; close that Monitor and launch the companion from the elevated client when needed.
| Boundary | Trust and protection |
|---|---|
| Local input → Windows client | Selected sources are accepted while armed; injected flags are hints, not application authentication |
| Client → relay | Private routing, source allow-list and optional shared-key authenticated encryption |
| Local program on the Pi → relay (optional local socket) | Unix socket, off by default; file group/mode 0660 and optional peer uid; plaintext on purpose; never reachable from the network |
| Relay → Pico UART | Physical access is trusted; CRC detects corruption, not malicious commands |
| Pico → target USB | Target accepts the device as a keyboard/mouse; HIDway does not constrain target actions |
| Update site / GitHub release → Windows updater | Neither host is trusted: the release manifest must carry the publisher's signature; the ZIP must match its signed size and SHA-256 and its own file manifest. GitHub (the same signed manifest) only when the site cannot be reached |
| Update site → installed relay | The site is not trusted: the Pi verifies the signature of the release manifest against a public key already on the Pi, then the package's exact size and SHA-256, its listing and its version, before anything is installed. Administrator configuration and the key file are trusted; health checks and rollback reduce operational failure |
Virtual / remote enables input generated by other local software, including remote-control and accessibility software. It cannot limit acceptance specifically to AnyDesk. A virtual-HID driver may appear physical. Pico VID/PID filtering is a routing heuristic, not a security identity.
- Bind the relay to its intended private address and allow only the intended sender. Apply network access rules for UDP 47800 to those peers. Tailscale is external to HIDway and must be configured independently.
- Do not expose a serial-connected bare daemon using its permissive defaults. Without
--allowor encryption it accepts valid commands from any reachable source. The source warning does not prevent this configuration. - Enable matching shared-key encryption when application-level authentication is required. Generate an independent random 32-byte key using a cryptographic generator; do not reuse example keys. Empty settings mean plaintext mode.
- Restrict access to
hidway.iniand relay key/config files. The client stores the hexadecimal key as plaintext; it is not protected by DPAPI. Keep keys out of source control, screenshots and support reports. Rotate both ends together after suspected exposure. - The relay's optional local socket (
--local-socket,install.sh --local-socket GROUP) is a way to type on the target: anyone who can connect controls its keyboard and mouse. It is off by default. Access is limited by the socket file's group and mode (0660) and, with--local-uid, to one user, checked by the kernel (SO_PEERCRED). Its packets are plaintext on purpose: the kernel, not a key, identifies the peer, and the socket is never reachable from the network. Keep the group to the one program that needs it; use it instead of adding the Pi's own address toHIDWAY_ALLOW_EXTRA, which would admit every local process. - Trust the publisher's signing key and the release workflow that uses it. Keep root-owned configuration, the update key file (
/usr/local/share/hidway/update-keys.pem) and service files writable only by administrators. The SHA-256 fingerprint of the public key (of its DER SubjectPublicKeyInfo,openssl pkey -pubin -in update-keys.pem -outform DER | sha256sum) isc91810dfdb5fb9c702cfe13e791ccd339a80ecfe316ccd4a727307babd4cf703; compare it before installing by hand. - Test physical panic/disarm and failure recovery on the actual setup before relying on remote or loopback input. Maintain another way to stop the input path while validating it.
See relay configuration for concrete settings. The Windows client sets its working directory to its executable folder before loading the adjacent configuration; access to that folder and its plaintext key remains trusted.
The relay checks an optional source-IP allow-list, packet sizes/types, crypto mode and authentication before acting. Encrypted commands use XChaCha20-Poly1305 with a 32-byte shared key and random nonces. Command timestamps enforce increasing order per allowed sender, a clock window and a relay-start floor. Plaintext and encrypted modes are not automatically mixed.
The relay limits ordinary command rate, bounds ordered serial output, sends RELEASE after input silence (and at once when the local-socket connection in control closes) and retries disconnected serial devices. The local socket accepts at most four connections, never blocks on a client and ignores malformed messages. Pico independently releases after input silence and has a hardware watchdog. Receiver queue overflow or expired work releases and latches an input fault; new peers propagate that fault to the client. Disarm sends repeated RELEASE packets. These controls do not prove that the Windows capture state is correct or that every UDP transition reached USB.
Managed Linux deployment installs a signed, ready-built package (nothing is compiled on the Pi), runs the relay as an unprivileged user and applies systemd privilege, filesystem, device and resource restrictions. Update activation normally waits for idle input; failed health checks can roll back. Root-level service changes and the key file are applied separately (--apply-system); the updater never replaces itself. Vendored code and CI dependencies have explicit versions/revisions in source, but this review did not perform a current vulnerability-advisory audit.
The optional standalone input monitor observes local device metadata, counts and transient held state. Background counting is visible and enabled by default. Optional injection-flag hooks always pass events onward. The monitor has no network code or input-injection path. It stores names/source labels and optional numeric summaries locally. Explicit Record saves key/button identities, timestamps and movement in unencrypted local files; these can reveal typed text. Recording is visible, off by default, bounded and never part of release payloads. Replay is confirmed in the client, uses normal Pi/Pico output with live capture off, and releases on Stop/PANIC/completion or existing transport faults. Device names, bus classification and user labels are not authenticated identities.
The Windows wizard installs per user, preserves live configuration, checks the payload hashes and refuses locked binaries. SHA-256 is a corruption check, not publisher authentication; preview binaries/scripts are unsigned. Pi installation uses visible OpenSSH host verification/login/sudo and trusts the configured public repository main branch. The wizard does not store credentials. Firmware selection checks BOOTSEL family and still requires the user to identify W/non-W hardware.
The Windows Check for updates path uses the fixed update site
https://hidway.olamov.com. When HIDway opens it fetches the release manifest
latest.json and its signature (update_check = 0 in hidway.ini turns it
off). The signature (RSA, PKCS#1 v1.5, SHA-256, by the publisher's key, which
is kept only as a secret of the release workflow's signing environment and
used only for the files built in a tag's own run) is checked against the public
keys built into the updater before the manifest is read; then the tag, package
name, path, size and SHA-256 are checked, and the download address is derived
from the fixed source and the tag. Only when the site cannot be reached or
answers 404/5xx does the updater try GitHub, and there it requires the same
signed manifest, attached to the latest release of the fixed repository;
GitHub's release metadata is not used. A missing or wrong signature (after one
re-fetch two seconds later), an invalid manifest, a redirect from the site or a
certificate failure stops the check. A release without the manifest, or a
private repository, ends quietly as "no update source available". When a newer
release exists the updater downloads it and verifies it into the local cache in
the background (update_download = 0 turns that off). Installing happens only
after the user presses Update now (or Updates on the Tools tab, or the
standalone window). The one-click helper takes a 32-hex token that can only
name a record directly inside the cache, and verifies that record against the
signed manifest kept beside it, and the archive digest, paths and manifest,
again before installing; no path or URL comes from the command line, and
downloaded scripts are never run before installation. Records without a signed
manifest (from older updaters) are refused. Traversal/duplicate entries,
oversized archives and payload/version mismatches are refused. Applying refuses
running client/Monitor processes; it never terminates input sessions, elevates
or flashes hardware. Downloaded packages remain in the user's local update
cache.
Someone who takes over the Cloudflare or GitHub account, or who intercepts the
connection with a certificate Windows accepts (a compromised certificate
authority, or a company proxy that inspects TLS), cannot make the updater
install anything without the signing key. They can withhold updates, make PCs
use the GitHub fallback, or serve an older validly signed manifest again: it is
never installed as a downgrade, but it can hide a newer release while they stay
in the path (the manifest has no expiry date). Trusted remain: the holder of the
signing key, the release workflow that uses it, and whoever may create v*
tags. The signature covers the release manifest; binaries and scripts are not
Authenticode-signed. See updates.
The repository is going private. The Windows GitHub fallback then finds no signed release (GitHub answers 404) and ends quietly as "no update source available"; it fails harmlessly and the update site remains the source. The code stays for now.
The Raspberry Pi relay installs and updates from the same site (from v0.9.1; the
last release a Pi takes from the repository). latest.json.sig is verified on the
Pi with openssl against the key in /usr/local/share/hidway/update-keys.pem
(one line of base64, any one of the keys may verify it, one re-fetch after a
failure) before any byte of the manifest is read. The tag and the Pi's entry are
then read with strict line patterns, the package must have exactly the signed size
and SHA-256, its listing may contain only the expected regular files (no .., no
absolute path, no link, nothing twice, at most 64 MiB), it is unpacked without the
archive's owners or modes, and its binary is first run as the unprivileged
hidway user. A version that is not newer than the running one is never
installed. With no key file, nothing is installed. Limits, plainly. Someone who controls
the update site or the network path to it can withhold updates, can serve an
older signed manifest to a Pi that is not ahead of it, and on a first install
can choose which signed release is installed. They cannot install anything
that is unsigned, and they cannot downgrade a Pi: a signed release older than
the running one is refused, by the updater and by the installer. A rotated key
or a fixed updater reaches a Pi only through sudo hidway-update --apply-system; until then the Pi keeps the key and the updater it has. A
release built on the Pi (before v0.9.1) has no signed service files, so
--apply-system refuses it; sudo hidway-update --now first replaces it with
the signed package. The same two attacker rows
apply as for Windows: a changed site, a network attacker or a taken-over
GitHub or Cloudflare account can delay or withhold an update or replay an older
signed manifest, but cannot get code onto the Pi without the signing key. See
relay operations.
- Driver-dependent capture: the 2026-10-28 implementation fixes source overlap, removes keyboard echo/time guesses, rejects Unicode packets before scan mapping and adds generation/enqueue/age checks. Injection flags still do not identify applications, and virtual HID drivers can appear physical. Same-machine native/Pico overlap and remote-driver behavior require hardware acceptance.
- Capture loss: Windows can silently remove a slow low-level hook. Virtual-only mode lacks the exclusive mode's foreground checks; healthy network traffic can continue carrying stale held state. Transport watchdogs cannot detect that case. Windows hook behaviour.
- Initial connection failure: corrected on 2026-10-27. The no-reply deadline starts at ARM even if no status was ever received. The configurable timeout can still be disabled explicitly.
- Status freshness: corrected on 2026-10-27 using session validation, echoed-client timestamp ordering and an age limit. Duplicate/older replies do not refresh health; a delayed reply's lease uses its request time. This does not remove real network delay or authenticate plaintext independently of its network.
- Update authenticity: the Windows updater accepts a release, from the update site or the GitHub fallback, only with a manifest signed by the publisher's key; there is no expiry or freshness field, so an old signed manifest can be replayed to hide newer releases (never to downgrade). The Linux updater (from v0.9.1) accepts a release only with the same signature, so it is a signed chain too, with the same replay limit (an older manifest is never installed, but can hide a newer release). Before v0.9.1 it trusted its repository and ref and built locally; a Pi that has not yet run
sudo hidway-update --apply-systemafter v0.9.1 still does. The release workflow gates publication on CI and signs only the files it built; the client does not independently attest that workflow. The relay is linked statically and the cross-built unit tests run under qemu in CI; the packages are not tested on real Arm hardware by CI. - OS boundaries: Secure Desktop, logon, integrity levels and remote-input drivers have different rules. Lock/power notifications do not establish reliable capture-loss detection across every secure-desktop transition. Do not assume ordinary desktop hooks capture those screens. Windows input restrictions.
- Bounded cancellation: 100 ms local capture/journal/sender backlog and receiver queues are cancelled rather than replayed. A genuine GUI/USB/UART stall can therefore disarm. UDP has no per-edge acknowledgment/retry; arrived-edge preservation is not a delivery guarantee.
- Multiple controllers: the relay can permit up to eight exact IPv4 peers, but only one active input session owns it. Configure only intended controllers. Fresh ARM sessions retire earlier sessions; this prevents delayed takeover, not malicious access by an already authorized/key-holding peer.
Do not publish working credentials, private addresses, remote-access information or exploit details that put a live target at risk. Use the repository's private vulnerability-reporting channel if enabled; otherwise arrange a private maintainer contact before sharing sensitive details. This source tree does not establish a dedicated security email or a supported-release response commitment.
Provide the affected revision, operating system, topology, selected sources, encryption mode, a minimal reproduction and expected/actual behaviour. Remove secrets from logs. Separate a source-level finding from an observed deployment issue.
Require Windows and Linux builds, common tests, relay fail-safe tests and installer checks. Add capture-state regression tests, authenticated reply replay tests and an actual-device matrix covering key overlap, button release, disconnects, hook loss, lock/UAC transitions and source changes. Run a sustained hardware session and confirm release behaviour independently at the target. The current passing shared tests do not cover all of these conditions.