Skip to content

Releases

Security Hardening, Microsoft Account Intelligence, and IPC Reliability

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 21 Nov 17:53

Overview

Tether v1.2.3 is a focused security and reliability release that introduces comprehensive hardening across the Windows Credential Provider, IPC named pipe and event infrastructure, and the session helper's application launch surface. This release also delivers automatic Microsoft Account detection with adaptive onboarding UI, resolves multiple desktop interface layout regressions, and adds persistent paired device caching for immediate visibility at launch.


New Features

Microsoft Account Auto-Detection and Adaptive UI

A new WindowsAccountDetector component automatically identifies whether the active Windows session is backed by a Microsoft Account (MSA), a local account, or a domain account at application startup.

  • Win32 NetUserGetInfo Level 24 Integration: The detector calls NetUserGetInfo at level 24 to query the USER_INFO_24 structure, extracting the usri24_internet_identity flag, the internet provider name, and the internet principal name (e.g., user@outlook.com). Fallback detection checks the IdentityCRL registry hive and token group SIDs when the primary call is unavailable or returns inconclusive results.
  • Dynamic Sidebar Identity Display: The sidebar "Current Account" card now renders a contextual badge pill ("MICROSOFT ACCOUNT", "LOCAL ACCOUNT", or "DOMAIN ACCOUNT") alongside the detected account identity. The SAM profile alias and Microsoft Account email principal are displayed as appropriate for the account type.
  • Adaptive Auto-Unlock Setup: The credential vault setup card dynamically adjusts its title, description, placeholder text, and security disclaimer based on the detected account type. Microsoft Account users are prompted for their online account password with explicit guidance that Windows Hello PINs cannot be used for credential provider unlock. Local account users see standard local password prompts.
  • Passwordless Microsoft Account Notice: An inline guidance panel with an external documentation link is displayed for passwordless Microsoft Account configurations (Windows Hello-only setups) explaining the limitation and directing users to set an app password.
  • Pre-Save Credential Validation: Entered credentials are validated in real time against LogonUser (Win32) before being committed to the DPAPI-encrypted store. The validator detects common mistakes including PIN entry (4-10 digit numeric strings), expired passwords (ERROR_PASSWORD_EXPIRED), disabled accounts (ERROR_ACCOUNT_DISABLED), and incorrect passwords (ERROR_LOGON_FAILURE), returning clear, account-type-aware error messages. Validation attempts multiple candidate (username, domain) pairs including MSA-specific "MicrosoftAccount" domain, SAM name with local domain, and dot-domain fallbacks, using both LOGON32_LOGON_INTERACTIVE and LOGON32_LOGON_NETWORK logon types.
  • Forgot Password Recovery Card: Account-type-aware copy is applied to the recovery flow so that Microsoft Account users are asked for their online password while local users are asked for their Windows password.

Persistent Paired Device Caching

Paired phone devices now appear immediately on application launch, even when the communication service is still starting or the phone is temporarily disconnected.

  • Local Device Cache (DesktopUI): The desktop UI reads and writes a local paired device cache at %LocalAppData%\Tether\paired_devices.json. On startup, cached device entries (including device ID, display name, fingerprint, and last-seen timestamp) are loaded and rendered in the sidebar before the service connection is established.
  • Public Summary Cache (TrustStore): The TrustStore now writes a paired_devices_cache.json summary file alongside the trust data in %ProgramData%\Tether, with Authenticated Users granted read access to the trust store directory and file. This enables the non-elevated desktop UI process to read paired device state without requiring administrative privileges.
  • PROVISION_PHONE Event: The PairingManager now publishes a PROVISION_PHONE event over the internal event bus upon successful phone pairing completion, carrying a JSON payload of all currently trusted devices. The desktop UI requests a telemetry sync with retries on startup to ensure the cache is populated.

Security

Credential Provider COM Interface Hardening

Every public COM interface method in CTetherCredential has been hardened with structured exception handling and rigorous parameter validation.

  • SEH and C++ Exception Guards: The Initialize method is now wrapped in a try/catch(...) block returning E_UNEXPECTED on unhandled exceptions, matching the existing pattern applied to other COM methods. This prevents unhandled C++ exceptions from propagating across the COM boundary on the secure desktop (Winlogon).
  • E_POINTER Validation: Null output pointer checks (E_POINTER) have been added to SetSelected, GetFieldState, GetStringValue, GetBitmapValue, GetSubmitButtonValue, GetComboBoxValueCount, GetComboBoxValueAt, GetFieldOptions, ReportResult, and GetUserSid. Output pointers are pre-initialized to nullptr where applicable before any work is performed.
  • E_INVALIDARG Validation: The Initialize method now validates all three input pointers (pcpUser, rgcpfd, rgfsp) before proceeding, up from checking only pcpUser.

Plaintext Password Memory Zeroing

All code paths that handle plaintext password buffers in the credential provider now zero memory before deallocation to prevent password remnants from persisting in the process address space.

  • SetStringValue: When the password field (SFI_PASSWORD) is overwritten, the previous buffer is zeroed with SecureZeroMemory over its full wcslen * sizeof(WCHAR) extent before CoTaskMemFree.
  • _PackActualPasswordCredential: Intermediate plaintext password copies are zeroed with SecureZeroMemory before being freed via CoTaskMemFree.
  • _GetStoredPasswordAndPack: Decrypted password buffers are zeroed after use.
  • helpers.cpp / ProtectIfNecessaryAndCopyPassword: Both pwzProtected and pwzToProtectCopy buffers are zeroed with SecureZeroMemory before CoTaskMemFree. Null checks guard against double-free on already-freed pointers.

IPC Named Event Security Overhaul

The global named events used for inter-process communication between the credential provider, the communication service, and the desktop UI (TetherPhoneAppUnlocked, TetherPhoneConnected, TetherUnlockPromptRequested) have been redesigned for a consistent "open-or-create" pattern with strengthened DACLs.

  • Updated SDDL: All global IPC events now use the SDDL string D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GR;;;AU), granting SYSTEM and Administrators full generic access while granting Authenticated Users read-only (generic read) access. The previous SDDL D:P(A;;GA;;;SY)(A;;GA;;;BA) excluded Authenticated Users entirely, which caused UnauthorizedAccessException failures when the desktop UI (running as a standard user) attempted to open events with Synchronize rights.
  • TryOpenExisting Pattern (Service Side): Worker.cs and HardwareExecutor.cs now use EventWaitHandleAcl.TryOpenExisting to open pre-existing events with only the minimum required rights (Modify | ReadPermissions, or Modify | ReadPermissions | Synchronize), eliminating the previous pattern of always creating events and then checking createdNew. This avoids requesting WRITE_DAC permission on events owned by SYSTEM, which standard-user processes cannot obtain.
  • DACL Re-stamping: When an existing event is opened and passes the trusted-owner check, its DACL is re-stamped via SetKernelObjectSecurity to enforce the current expected SDDL, ensuring that events created by older versions with weaker DACLs are upgraded in place.
  • Credential Provider (Native): The native C++ credential provider (TetherCredential.cpp) applies the same "create-then-verify" pattern with the updated SDDL. The IsTrustedKernelObjectOwner helper is used consistently to validate that existing events are owned by SYSTEM or Administrators before signaling.
  • Desktop UI (Managed): MainWindow.xaml.cs opens global unlock events via EventWaitHandleAcl.TryOpenExisting with Synchronize-only rights, the minimum needed to wait on the event without requiring write or modify permissions.

Named Pipe Security Hardening

All NamedPipeServerStream instances across the communication service have been updated to explicitly deny the Anonymous SID (WellKnownSidType.AnonymousSid) in addition to the existing Network SID denial.

  • PipeServer: CreatePipeSecurity() now includes an explicit Deny ACE for AnonymousSid with ReadWrite rights. The method visibility was changed from private to internal to support unit testing. The access rule ordering is documented with numbered comments.
  • InputForwarder: The input forwarding pipe security descriptor adds an explicit AnonymousSid deny rule.
  • App.xaml.cs (DesktopUI): The desktop UI's local pipe security descriptor adds the same AnonymousSid deny rule.

Application Launch Command Injection Prevention

ApplicationManager.LaunchApplication in the session helper has been hardened against command injection, shell metacharacter exploitation, and execution of dangerous binaries.

  • Control Character Rejection: Paths and arguments containing any control characters (including null bytes, newlines, and carriage returns) are rejected.
  • Shell Metacharacter Blocking: Paths and arguments containing command chaining and redirection operators (&, |, <, >, ^, ;, `) are rejected.
  • Interpreter Blocklist: A static set of blocked binary names (cmd, powershell, pwsh, mshta, cscript, wscript, bash, wsl, sh, reg, vssadmin) prevents direct invoca...
Read more

Remote Terminal & Website Platform Upgrade

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 21 Nov 06:10

Tether v1.2.2 — Remote Terminal & Website Platform Upgrade

Release Date: November 21, 2026


Overview

Tether v1.2.2 is a focused release delivering a fully re-engineered remote terminal experience on Android, a comprehensive website platform overhaul, and a suite of documentation and project hygiene improvements. This release significantly raises the quality bar for in-session terminal interactivity and brings the Tether website up to production-grade standards with smart download delivery, structured community feedback channels, AI-access governance, and refined navigation.


What's New

🖥️ Remote Terminal — Full Overhaul

The remote terminal feature has been substantially rebuilt from the ground up across both the Android companion app and the Windows host-side session infrastructure.

Android Companion (RemoteTerminalScreen.kt)

  • Termux-style inline input bar — The terminal now surfaces a persistent, bottom-anchored input field styled after the Termux UX, keeping the command prompt always accessible without hiding the output viewport.
  • Fullscreen mode — Users can toggle a dedicated fullscreen terminal view, maximising screen real estate and reducing UI chrome during intensive shell sessions.
  • cls / clear command support — Issuing cls or clear from the remote terminal now correctly clears the visible output buffer, mirroring native terminal behaviour.
  • Session lifecycle improvements — The TetherLanService integration received refinements to ensure terminal sessions are correctly initialised and torn down without leaving orphaned processes.

Windows Host (TerminalSessionManager.cs, HardwareExecutor.cs)

  • Standard-user process creation — The session helper now correctly launches terminal child processes as the interactively logged-on standard user rather than under the elevated service account, eliminating a class of CreateProcessAsUser permission failures.
  • Explorer-parented window fallback — When the primary process-creation path is unavailable (e.g. no active interactive session desktop), the session manager now falls back to attaching the terminal window to the Explorer shell process, ensuring continuity.
  • Security isolation preserved — All process-spawn paths continue to enforce session isolation boundaries; privilege is not carried across the standard-user boundary.
  • Comprehensive test coverage — 85 new unit tests in TerminalTests.cs cover process creation, session lifecycle, error paths, and fallback logic, bringing terminal reliability to a verifiable standard.

Important

The terminal session helper changes require the updated Windows host package. Pairing an older desktop build with v1.2.2 of the Android companion may result in terminal sessions failing to start.


🌐 Website — Platform Upgrade

The Tether website (index.html, api/submit.js, middleware.ts, vercel.json) has undergone a major evolution from a static informational page to a fully interactive community platform.

OS-Aware Smart Downloads

  • The Download button is now fully OS-aware. It detects the visitor's operating system and fetches the correct asset from the latest GitHub Release via the Releases API — .exe for Windows visitors, .apk for Android.
  • Unsupported platforms receive a clear, non-clickable "Download not supported for this OS" state rather than a broken link.
  • Release metadata is cached in localStorage for one hour, preventing redundant API calls on page revisits; stale cache is used gracefully as a fallback when the GitHub API is unavailable or rate-limited.

Community Feedback Forms — "Ask a Question"

  • A new Ask a Question section with four structured categories has been added:
    • 🐛 Bug Report — mirrors the .github/ISSUE_TEMPLATE/01 fields
    • 💡 Feature Request — mirrors the .github/ISSUE_TEMPLATE/02 fields
    • ❤️ Appreciation & Feedback — open-form appreciation
    • 🔒 Security Vulnerability — private, never filed publicly
  • Each submission requires a mandatory private contact section (email and/or phone) with an explicit privacy statement before submission.
  • An optional GitHub username field with a public-credit opt-in toggle allows reporters to receive Reported by @user attribution on the created issue, while keeping the username private when credit is declined.

Serverless Backend (api/submit.js)

  • Bug, feature, and appreciation reports are filed as public GitHub Issues with template-compatible Markdown bodies, correct labels (bug / enhancement / appreciation), and prefixed titles.
  • Security reports are never public — vulnerability details and contact information are stored exclusively in a private contacts repository; only a reference handle is returned to the submitter.
  • Contact details are stored server-side in a private repo keyed to the submission and are never embedded in public issue bodies, comments, or labels.
  • Hardened with: per-IP rate limiting, server-side input validation, honeypot field, request-size caps, and duplicate-submission guards. The GitHub token is strictly server-side.

AI Crawler Governance

  • robots.txt now explicitly disallows all major AI crawlers (GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot, Bytespider, and others) site-wide.
  • A dedicated /ai-summary.txt is the sole path AI systems may index — providing a concise, authoritative project summary.
  • Server-side middleware (middleware.ts) enforces this policy: known AI user-agents receive 403 on all paths except the summary, robots.txt, sitemap, and the submission API endpoint.
  • Global X-Robots-Tag: noai, noimageai headers applied via vercel.json.

Navigation & UX Refinements

  • "Ask a Question" added to the top navigation bar for direct discoverability.
  • FAQ and Ask a Question sections repositioned above the Developers section for better information hierarchy.
  • Category card icons migrated from emoji codepoints to inline GitHub Octicon-style SVGs (bug, lightbulb, heart/hand, shield), tinted with the site accent colour — resolving rendering inconsistencies across platforms and browsers.
  • Footer link updated to reflect the revised section layout.

Note

Deploying api/submit.js requires three environment variables: GITHUB_TOKEN, PRIVATE_REPO_TOKEN, and CONTACTS_REPO. See the deployment documentation for setup instructions.


Documentation & Repository

README Overhaul

  • Architecture diagrams (Mermaid) revised and repositioned above the Screenshots section for a better reading flow.
  • Component interaction diagram corrected to fix Mermaid render errors.
  • New and updated screenshots committed:
    • android-remote-desktop.jpg — new screenshot showcasing the remote desktop capability
    • android-terminal.jpg — new screenshot of the redesigned terminal UI
    • android-command-center.jpg, android-remote-trackpad.jpg, android-system-apps-launcher.jpg, android-system-config-integrity.jpg, desktop-telemetry-control-plane.png — updated to reflect current UI
  • Screenshots now have appropriate captions and markdown image formatting.

Project Hygiene

  • Removed three stale GitHub Actions workflow files (ai-documentation.yml, remove_comments.yml, semgrep.yml) that were disabled or unused, reducing CI surface area.
  • .gitignore updated to exclude the skills/ directory; the directory is no longer tracked in the repository.
  • Stale AI-generated artifact files removed from the repository.

Bug Fixes

Component Fix
Terminal — Windows Process creation now succeeds in standard-user sessions; resolved CreateProcessAsUser failure on non-elevated desktop sessions
Terminal — Windows Explorer-parented fallback prevents terminal from silently failing when no interactive desktop is available
Terminal — Android Session initialisation race in TetherLanService corrected; sessions no longer start in an indeterminate state
Website — Middleware Fixed middleware returning a null response body for all non-AI traffic, which caused the entire site to serve blank pages
Website — Middleware Removed erroneous next/server import on a plain static Vercel site; replaced with undefined passthrough
Website — robots.txt Fixed wildcard block syntax that was inadvertently restricting legitimate search engine crawlers
Website — SVG icons Fixed SVG icon rendering failure in Ask a Question category cards caused by inline attribute conflicts

Internal & Infrastructure

  • vercel.json updated with global security and crawler-policy response headers.
  • Serverless API (api/submit.js) includes node --check verified syntax and a handler smoke test suite (400 on invalid input, correct contact-required validation order).
  • mdEsc utility hardened against null input encountered during smoke testing.

Version Reference

Component Previous This Release
Android Companion 1.2.1 (versionCode 3) 1.2.2 (versionCode 4)
Windows Desktop 1.2.1 1.2.2
Website — Updated

Upgrade Notes

  • Android: Install the new APK over the existing installation. No data migration required.
  • Windows: Install the updated package. The session helper binary is updated; a reboot or service restart is recommended after installation to ensure the new process-creation paths are active.
  • Website operators: Redeploy to Vercel with the three required environment variables set. The api/submit.js serverless function is new and must be included in the deployment.

Tether v1.2.1: Fallback Authentication & Hardened Trust

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 20 Nov 04:38

Tether v1.2.1 — Release Notes

This is a substantial reliability and security release. It focuses on strengthening the trust boundaries between Android and Windows, improving authentication and recovery, and making everyday operations more dependable. There are also meaningful changes to device discovery, file transfers, the Windows Credential Provider, and the desktop interface.

One of the biggest changes is the introduction of fallback PIN and password authentication for Windows, alongside a much more careful approach to restoring Credential Provider tiles after Panic Lock. Here's what's changed.

Highlights

  • Fallback authentication: Added PIN and password authentication through the Windows Credential Provider, with credential-strength validation, protected storage, and recovery controls.
  • Safer Panic Lock recovery: Tether now tracks exactly which Credential Provider tiles it hides and restores only those tiles, preserving restrictions imposed by Windows or other providers.
  • Stronger device authentication: Improved reconnect authentication with cryptographic proof-of-possession and stricter identity validation.
  • Hardened network discovery: Added stricter address validation, interface filtering, bounded discovery processing, and UDP rate limiting.
  • Improved file transfers: Added persistent transfer notifications, live progress, transfer speeds, estimated completion times, and better transfer-state reporting.
  • In-app updates: Added Android APK downloading and installation with signing-certificate verification.
  • Improved remote desktop: Fixed MJPEG stream handling and improved hardware cursor visibility.
  • Removed workflow automation: Removed the workflow automation capability and explicitly reject legacy workflow protocol operations.

Security Improvements

Windows Credential Provider and Panic Lock

  • Reworked Credential Provider filtering and restoration to preserve the original state of individual providers.
  • Added persistent tracking of providers hidden by Tether.
  • Prevented restoration from enabling providers that were already disabled by Windows, the user, or another Credential Provider filter.
  • Improved compatibility with multiple cooperating Credential Provider filters.
  • Added handling for LogonUI re-enumeration while Panic Lock is active.
  • Added stricter validation of registry security descriptors, ACLs, ownership, and expected access-control entries.
  • Improved failure handling so unsuccessful registry writes do not silently discard restoration state.
  • Added native regression tests covering restoration idempotency, third-party filtering, corrupted security descriptors, and failed registry operations.

Fallback Authentication

  • Added fallback PIN and password authentication to the Windows Credential Provider.
  • Added PIN and password strength validation, including rejection of predictable sequences and repeated digits.
  • Implemented PBKDF2-based credential verification.
  • Added DPAPI-protected credential storage bound to the Windows machine.
  • Added authentication attempt rate limiting.
  • Added credential recovery requiring phone confirmation and verification against the registered Windows account credentials.
  • Added credential reset and authentication-status controls in the Desktop UI.
  • Improved credential enumeration and synchronization between the Credential Provider, Communication Service, and Desktop UI.
  • Added native and managed regression tests for fallback credential validation and Credential Provider field switching.

Device Identity and Pairing

  • Strengthened reconnect authentication with a mandatory challenge-response proof-of-possession handshake.
  • Added cryptographically secure server nonces and client signatures over the handshake transcript.
  • Enforced strict matching between the reconnecting device's presented public key and its stored trusted identity.
  • Improved fail-closed handling for malformed proofs, invalid signatures, and handshake timeouts.
  • Strengthened pairing authentication with HMAC-SHA256-based proof verification and ECDSA identity signatures.
  • Improved pairing attempt limits, pending-request limits, and request expiration.
  • Strengthened Android TLS certificate and public-key binding.
  • Improved secure key persistence with immediate verification after storage.
  • Added stricter validation of authenticated IPC clients and their associated Windows user sessions.

Network Discovery

  • Added dedicated discovery rate limiters on Android and Windows.
  • Introduced global and per-source UDP request limits.
  • Added strict private IPv4 address validation.
  • Improved rejection of loopback, multicast, carrier-grade NAT, and invalid network addresses.
  • Restricted discovery processing to supported network interfaces.
  • Improved hotspot discovery and subnet calculations.
  • Added bounded mDNS resolution processing.
  • Improved handling of malformed, oversized, stale, and unexpected discovery packets.
  • Prevented unsolicited discovery traffic from unnecessarily initiating connections or pairing prompts.

File Transfer and IPC

  • Strengthened file-transfer authentication using the paired device's cryptographic identity.
  • Removed the unpinned token fallback from file-transfer authentication.
  • Improved filesystem confinement against directory junctions, symbolic links, and reparse-point redirection.
  • Added stronger validation of upload sidecar files and resumable transfer state.
  • Improved validation before promoting completed uploads to their final destinations.
  • Strengthened named-pipe client authentication and Windows session validation.
  • Improved protection against cross-user IPC access and unauthorized authentication-state injection.
  • Improved remote filesystem response validation, including device fingerprint and session binding.

Bug Fixes

Remote Desktop and Input

  • Fixed MJPEG stream parsing issues that could prevent Android from correctly processing incoming desktop frames.
  • Improved handling of stream boundaries and incomplete frame headers.
  • Fixed hardware cursor visibility in captured desktop frames.
  • Improved remote input session isolation and native handle ownership.
  • Strengthened terminal session isolation so sessions remain bound to their originating device and authenticated Windows session.

Authentication and Unlocking

  • Improved Android application-lock state synchronization after successful biometric or device-credential authentication.
  • Improved Credential Provider notification handling following successful authentication.
  • Added stricter validation of global Windows unlock events, including ownership and security-descriptor checks.
  • Improved handling of invalid or unexpected authentication state transitions.
  • Strengthened failure handling for malformed or unauthorized global event configurations.

Device Discovery

  • Fixed discovery candidate generation for different subnet prefix lengths.
  • Improved Android hotspot gateway and interface detection.
  • Improved mDNS resolution scheduling and bounded concurrent processing.
  • Added better handling of invalid discovery responses and unexpected network interfaces.

File Transfer

  • Improved synchronization of transfer progress between Android and Windows.
  • Added more reliable transfer-state reporting.
  • Fixed incomplete transfer status updates in the Desktop UI.
  • Improved visibility of completed and failed transfers.
  • Added direct access to saved transfer destinations.

Windows Desktop UI

  • Reworked portions of the Desktop UI with more consistent Fluent styling.
  • Replaced the previous persistent terminal-style notification area with dedicated notification cards.
  • Added a live notification feed with clearable activity entries.
  • Improved authentication configuration and fallback credential status visibility.
  • Improved dropdown and ComboBox styling.
  • Added clearer feedback for authentication and recovery operations.

Improvements

Android Companion

  • Added an in-app update installer that downloads APK files into application-private storage.
  • Added signing-certificate verification against the installed application before allowing APK installation.
  • Added FileProvider integration for securely handing verified APKs to Android's package installer.
  • Added package-installation status handling.
  • Moved runtime permission requests into the dedicated Permissions screen.
  • Prevented permission prompts from appearing before application-lock authentication.
  • Improved notification-listener permission management.
  • Added persistent file-transfer notifications with progress and transfer details.
  • Improved transfer screens with progress bars, speeds, estimated completion times, and saved destination information.
  • Updated application launcher icons and branding assets.

Windows Desktop and Installer

  • Added dedicated Windows desktop notifications for file-transfer activity.
  • Added an update notification banner to the Desktop UI.
  • Improved update detection and notification handling.
  • Added Tether branding across Windows executables and installer assets.
  • Improved installer shortcuts and application metadata.
  • Added build_debug.bat to streamline cleaning, building, deploying, registering, and packaging development builds.
  • Improved updater project metadata and signing documentation.

Branding and Website

  • Introduced a unified Tether visual identity across Android, Windows, the Credential Provider, installer, and website.
  • Added scalable SVG logos and multiple high-resolution branding assets.
  • Updated Windows executable icons and Credential Provider imagery.
  • Updated Android launcher artwork.
  • Updated website favicons, application icons, and web manifest metada...
Read more

Tether 1.2.0 — Security Hardening, Lock-Screen Reliability, and Platform Refinement

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 16 Nov 07:33

Executive Overview

This release focuses on defense-in-depth hardening across the Android companion and Windows credential provider,
resolution of critical lock-screen (LogonUI) reliability defects, pairing/handshake protocol desync fixes, and a fully
overhauled landing page for search visibility. Several legacy automation and test artifacts have been consolidated
and re-scoped.


1. Security Enhancements

TETH-SEC-005 — Android TLS Certificate Trust Management and Pin Storage Hardening

  • Severity: High
  • Affected Subsystems: TetherTransport.kt, TetherPinnedTrustManager paths, FileTransferClient.kt, TetherLanService.kt,
    TetherPairingManager.kt, ProductionSecurityEngine.kt, network_security_config.xml
  • Remediation:
    • a. Hardened TLS certificate trust evaluation across all companion transport paths (LAN, file transfer, and pairing),
      ensuring only pinned certificates are accepted.
    • b. Reworked pin storage and validation lifecycle, with dedicated coverage in TetherTransportTrustManagerTest.kt.
    • c. Tightened network_security_config.xml to remove permissive trust anchors.
  • Confidence Rating: 100% (High Confidence) — Verified in TetherTransportTrustManagerTest.kt.

TETH-SEC-006 — Handshake Device ID Validation

  • Severity: Medium
  • Affected Subsystems: TetherSession.cs, TetherTransport.kt, FileTransferClient.kt
  • Remediation:
    • a. Introduced strict validation of device identifiers during the handshake phase, rejecting malformed or mismatched
      identities before trust establishment.
    • b. Verified with dedicated negative tests in HandshakeDeviceIdValidationTests.cs.
  • Confidence Rating: 100% (High Confidence).

Credential Provider Security Re-architecture

  • Severity: High (Internal Audit)
  • Affected Subsystems: TetherCredentialProvider/TetherCredential.cpp, TetherProvider.cpp, Dll.cpp, helpers.cpp
  • Remediation:
    • a. Comprehensive hardening of the Windows credential provider event handling, eliminating event storms and
      unauthorized state transitions.
    • b. Removed the legacy QUIC transport (TetherQuicTransport.kt) in favor of the hardened TCP transport path.
    • c. Overhauled test suites (CompanionCapabilityTests.kt, replacement regression tests) and removed
      obsolete/adversarial test scaffolding.
  • Confidence Rating: 100% (High Confidence).

2. Critical Defect Fixes

TETH-BUG-002 — LogonUI Deadlock and Tile Switching Freeze

  • Severity: Critical (User-Facing)
  • Affected Subsystems: TetherCredentialProvider/TetherCredential.cpp, TetherProvider.cpp
  • Root Cause: Synchronous event waits inside the credential provider's LogonUI thread caused deadlocks, tile-switch
    freezes, and cross-tile event storms when the Tether tile was active.
  • Remediation:
    • a. Rewrote the credential tile state machine to avoid blocking waits on the LogonUI thread.
    • b. Debounced and serialized tile events, eliminating event storms.
    • c. Reduced the tile background image asset from ~23 MB to ~64 KB, dramatically improving tile render time.
  • Confidence Rating: 100% (High Confidence).

TETH-BUG-003 — Empty HANDSHAKE_PROOF and Handshake Branch Desync

  • Severity: High (Protocol)
  • Affected Subsystems: TetherPairingManager.kt, TetherSession.cs
  • Root Cause: The Android pairing flow could emit an empty HANDSHAKE_PROOF payload, and the paired-side handshake
    branch state machines had drifted out of sync, causing intermittent pairing failures.
  • Remediation:
    • a. Enforced proof generation invariants on the companion side.
    • b. Aligned handshake branch transitions between Android and Windows service implementations.
  • Confidence Rating: 100% (High Confidence).

TETH-BUG-004 — Lock/Unlock/Sync Race Conditions and Debug/Release Skew

  • Severity: Medium
  • Affected Subsystems: TetherCredential.cpp, TetherSession.cs, TetherLanService.kt, ProductionSecurityEngine.kt,
    DeviceIntegrityRegistry.kt
  • Remediation:
    • a. Resolved race conditions in the lock/unlock power-event pipeline and state synchronization paths.
    • b. Eliminated behavioral skew between Debug and Release builds by consolidating conditional compilation paths.
    • c. Improved Android UI responsiveness and service startup latency.
  • Confidence Rating: 100% (High Confidence).

3. Feature Enhancements

Power Sync & Credential Provider Control

  • Ultra-Fast Power Event Sync: Lock/unlock events from the phone now propagate to the desktop with minimal latency.
  • Credential Provider Service Control: The Windows CP service can now be managed directly from the companion.
  • Default Tile: The Tether credential provider is now registered as the default Windows logon tile.
  • Refined Lock Prompt: Improved the on-device lock confirmation UX.

Audio & Input Reliability

  • Audio Mute Synchronization: Mute state now syncs reliably between devices.
  • App Mixer Improvements: Refined per-application volume routing.
  • Window Filtering: More accurate screen-share window exclusion.
  • Touch Input Reliability: Hardened remote touch injection (InputForwarder.cs) against dropped and duplicated events.

Workflow System Re-Scoping

  • Change: Automation workflows feature is purged.

4. Website & Distribution

Landing Page SEO Overhaul

  • Affected Files: index.html, manifest.webmanifest, robots.txt, sitemap.xml, vercel.json
  • Change: Full rebuild of the landing page metadata, structured data, accessibility semantics, and crawl directives
    per the Vercel SEO playbook; added PWA manifest and sitemap.

Installer

  • Affected Files: installer/Tether.iss
  • Change: Version bumped to 1.2.0.

5. Test Suite Consolidation

  • Removed obsolete scaffolding (TEST_INFRA.md, TEST_READY.md, ExampleInstrumentedTest.kt,
    AdversarialEcosystemTests.kt, and legacy per-feature test files superseded by consolidated suites).
  • Added TETH_REG_001_WorkflowRejectionTests.cs and HandshakeDeviceIdValidationTests.cs.
  • Expanded CompanionCapabilityTests.kt and TetherTransportTrustManagerTest.kt.

Tether v1.1.9 — Security Hardening, Remote Control Reliability & Core Infrastructure Improvements

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 09 Nov 23:42

Tether v1.1.9

This release focuses on strengthening Tether's security architecture, resolving critical vulnerabilities discovered during security audits, improving remote-control reliability, and hardening the underlying Windows and Android communication infrastructure.

Across 10 commits, this release introduces substantial changes to the Windows Communication Service, SessionHelper, Credential Provider, Android Companion, file-transfer subsystem, and automatic updater.

New feature additions

  • Remote Input Forwarding: Introduced a dedicated input-forwarding infrastructure for handling remote input events through the Windows SessionHelper, improving the separation between communication handling and interactive session execution.

  • Restricted Remote Terminal Execution: Added stronger process-isolation mechanisms for remote terminal sessions, allowing shells to execute under restricted user tokens rather than inheriting elevated helper privileges.

  • Authenticode Verification: Introduced shared Authenticode verification infrastructure for validating Windows executable signatures before trusting installer binaries.

  • Security Regression Test Suite: Added extensive security-focused tests covering authentication boundaries, capability enforcement, filesystem access, named-pipe authentication, terminal isolation, and file-transfer security.

  • StrongBox Key Protection: Added hardware-backed Android Keystore support for device identity and AES-256 storage keys, with automatic fallback to the standard Android Keystore when StrongBox is unavailable.

Existing feature enhancements

  • File Transfer Improvements: Significantly reworked the Windows file-transfer server, strengthening authentication, path validation, resumable uploads, and atomic file promotion.

  • Cross-User Filesystem Isolation: File-transfer operations are now restricted to the active console user's profile, preventing access to other Windows users' private directories.

  • Resumable Upload Protection: Improved validation of .tether_part files, including protection against path traversal, reparse-point manipulation, and destination substitution during upload completion.

  • Remote Desktop Improvements: Fixed MJPEG stream boundary and header parsing issues, improved continuous stream handling, and restored hardware cursor visibility in captured desktop frames.

  • Session Management: Improved terminal session lifecycle management, session ownership, concurrency handling, and isolation between connected devices.

  • Automatic Updates: Reworked significant portions of the differential updater, introducing stricter manifest validation, staged-file integrity verification, protected staging directories, and safer installation procedures.

  • Update Installation: Improved installer verification and eliminated unsafe execution of unverified updater binaries from temporary directories.

  • Capability Management: Improved command-to-capability mapping and authorization enforcement, ensuring that paired devices cannot automatically access capabilities they have not been granted.

  • Android Connectivity: Improved the Android companion's connection handling, authentication state management, and certificate verification integration.

  • Certificate Pinning: Fixed an Android certificate-chain cleaner compatibility issue that prevented OkHttp from correctly invoking the custom pinned trust manager through Android's X509TrustManagerExtensions.

  • Unlock Reliability: Improved biometric unlock state handling, Credential Provider notifications, and synchronization-event lifetime management.

  • Windows SessionHelper: Strengthened process authentication and session validation before accepting named-pipe connections.

  • Power and Hardware Operations: Improved capability enforcement and execution boundaries for sensitive Windows operations.

Security enhancements

  • TETH-2026-001 — Remote Terminal Isolation: Prevented remote terminal processes from inheriting elevated helper privileges. Added restricted-token execution, medium-integrity isolation, session ownership enforcement, and safer process lifecycle management.

  • TETH-2026-002 — Updater Security: Hardened the elevated updater against malicious staging contents, path traversal, alternate data streams, invalid manifests, and time-of-check/time-of-use vulnerabilities. Added SHA-256 and file-size verification before applying updates.

  • TETH-2026-003 — Named Event Security: Strengthened Windows kernel synchronization-event security by validating object ownership and enforcing restrictive DACLs, preventing unauthorized pre-creation and manipulation of global unlock events.

  • TETH-2026-004 — Capability Authorization: Removed implicit authorization shortcuts for paired devices and enforced granular capability verification at sensitive command boundaries.

  • TETH-2026-005 — Local UI Token Restrictions: Restricted loopback LOCAL_UI bearer tokens from accessing privileged filesystem mutation endpoints, limiting their use to explicitly permitted remote-proxy and preview operations.

  • TETH-2026-006 — SessionHelper Authentication: Added Windows named-pipe client authentication using process identification, executable-path verification, and active-console session identity checks.

  • TETH-2026-007 — Resumable Upload Security: Strengthened temporary upload-file validation and destination revalidation, protecting against traversal, reparse-point attacks, and unsafe file promotion.

  • Android Cryptographic Storage: Improved hardware-backed key generation and added fallback handling for devices without StrongBox support.

  • TLS Certificate Validation: Fixed the Android trust-manager extension compatibility issue without weakening public-key identity pinning.

What was deleted?

  • Removed the unsafe updater fallback that allowed unverified executables from temporary directories to be launched with elevated privileges.

  • Removed implicit capability authorization paths that could grant paired devices access to restricted operations.

  • Removed permissive terminal-session input fallback behaviour that could route input to an unrelated active session.

  • Removed obsolete standalone pipe-test project files and integrated the relevant test infrastructure into the main solution.

Development and testing improvements

  • Added comprehensive security-remediation regression tests.

  • Added end-to-end tests covering filesystem isolation, upload security, authentication boundaries, and terminal-session behaviour.

  • Added dedicated Android certificate-pinning tests covering successful verification and mismatched public-key rejection.

  • Integrated the file-transfer security test project into Tether.slnx.

  • Improved security-audit automation through updated GitHub Actions workflows.

  • Added project architecture, testing infrastructure, and test-readiness documentation.

  • Integrated Ponytail and Antislop development skills into the repository to support more consistent engineering, security reviews, and implementation quality.

Development statistics

Metric Result
Commits included 10
Security audit findings addressed 7
Major subsystems modified Windows, Android, Updater, File Transfer
New security test suites Multiple
New shared security infrastructure Authenticode verification
Android cryptographic enhancement StrongBox support

Tether v1.1.9 represents a substantial security and reliability improvement over v1.1.8. Rather than focusing primarily on adding new user-facing functionality, this release concentrates on strengthening the trust boundaries behind existing features, eliminating unsafe execution paths, and improving the reliability of remote desktop, terminal, authentication, and file-transfer operations.

Tether v1.1.8 — Security Hardening, Zero-Latency Control & Ecosystem Enhancements

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 08 Nov 17:24

Release Tag: v1.1.8
Date: March 2025
Build Artifacts:

  • Windows Setup: Tether-Setup-1.1.8.exe
  • Windows Portable Update: Tether-Update-1.1.8.zip
  • Android Companion APK: Tether-v1.1.8.apk

Executive Summary

Tether v1.1.8 delivers an extensive upgrade across performance, cryptographic compliance, and peripheral synchronization. This release resolves critical CodeQL CWE-295 certificate pinning security findings, eliminates command execution latency via decoupled asynchronous control pathways, integrates real-time laptop state caching and prioritized sync pipelines, and enhances remote trackpad and audio device management.


Key Highlights & Architectural Changes

1. Security & Cryptographic Hardening (CodeQL CWE-295)

  • Inline Certificate Pinning: Configured inline strict certificate pinning within the Android companion app's RemoteDesktopScreen and WebSocket transport layer to address CodeQL CWE-295 compliance.
  • Hardware Enclave Key Generation: Eliminated fallback insecure local key generation paths, strictly enforcing AndroidKeyStore (hardware-backed TEE / StrongBox) ECDSA P-256 key generation.
  • TLS 1.3 Strict Mutual Validation: Reinforced mutual TLS certificate validation with SHA-256 fingerprint matching across all peer-to-peer control connections.

2. High-Performance Control & Latency Optimization

  • Decoupled Control Paths: Decoupled interactive control packet handling from heavy synchronization cycles, eliminating socket-level blocking and reducing input latency to sub-millisecond ranges.
  • Windows Admin Sync Fixes: Resolved IPC synchronization delays between Session 0 Tether.CommunicationService and user session Tether.SessionHelper.exe.
  • Laptop State Caching & Prioritized Sync: Implemented intelligent local state caching for battery, thermal, lock, and display status with prioritized sync rings, significantly decreasing telemetry overhead over Wi-Fi.

3. Remote Input, Audio & Peripheral Ecosystem

  • Remote Trackpad Engine: Implemented fluid, multi-touch responsive trackpad input injection with smooth inertia and gesture recognition.
  • Enhanced Bluetooth Audio Enumeration: Improved Windows Core Audio Bluetooth endpoint discovery using custom device mask fallbacks and friendly description matching for seamless audio routing.
  • Defect Resolution Across 14 Subsystems: Fixed edge cases spanning media session playback state tracking, screen capture buffer recycling, virtual terminal resize events, and administrative command telemetry dispatching.

What's Changed Since v1.1.7

  • Security:
    • 919e8d5: Fix inline CertificatePinner in RemoteDesktopScreen for CodeQL CWE-295.
    • e0523aa: Resolve CodeQL alerts for insecure local key generation and certificate pinning.
  • Core & Performance:
    • 3ea47f1: Decouple control path, eliminate socket latency, and fix Windows admin sync.
    • 1a11526: Implement laptop state caching, prioritized sync, remote trackpad, and admin telemetry.
  • Audio & Media:
    • 2521cf3: Enhance Bluetooth audio device enumeration with device mask and description fallback.
    • a3e96a2: Resolve 14 core system, media, screen, terminal, and admin defects.
  • Ecosystem & Polish:
    • 8b0006e: Implement complete ecosystem capabilities across Windows and Android.
    • 0e1212f: Enhance security, input handling, and update mechanisms across components.
  • Release Engineering:
    • eb992f7: Bump version to 1.1.8 across Windows Inno Setup and build pipeline.

Verification & Integrity

Target Component Architecture Verification Status
Tether.slnx (.NET 10) Any CPU / win-x64 Compiled & Published (Release)
TetherCredentialProvider.dll C++20 x64 Compiled (Release)
Tether-Setup-1.1.8.exe Inno Setup 7 Verified & Packaged
Android Companion (app-release.apk) ARM64 / universal Signed & Lint-Passed

v1.1.7 - Autonomous Update Discovery, Differential Smart Updater & Granular Snooze Engine

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 06 Nov 08:13

Overview

Tether v1.1.7 introduces a high-priority, zero-friction update management and differential delivery subsystem across Windows Desktop and the Android Companion app.

This release ensures rapid distribution of critical security hardening and fixes without user friction, bandwidth waste, or disruption to active local developer workflows.


Highlights & Key Improvements

1. Autonomous & Zero-Friction Update Discovery

  • No Manual "Check for Updates" Prompting: Tether no longer asks you whether you would like to look for updates. The update watcher operates silently in the background upon application startup and across debounced 4-hour intervals.
  • Pre-Verified Delivery: You are only prompted when a verified, newer release is confirmed and ready to install, complete with release notes, package size, and delta manifests.
  • HTTP ETag / 304 Caching: Uses HTTP If-None-Match caching against GitHub Releases endpoints. Unchanged checks return HTTP 304 Not Modified, transferring zero response bytes and avoiding API rate limits.

2. Debug & Development Build Immunity

  • Zero Interruption While Coding: Built-in environment detection immediately deactivates all update checks, background pollers, and reminder prompts when running in debug configurations (BuildConfig.DEBUG on Android, compile-time #if DEBUG, Debugger.IsAttached, or active source checkouts on Windows).

3. High-Priority Notifications & Native Fluent Glass UI

  • Windows Urgent Toast Notifications: Native Windows 10/11 toast alerts configured with ToastScenario.Urgent and ToastNotificationPriority.High, providing quick one-click "Update Now" and "Remind in 4h" actions.
  • Matching Dark Glass Banner: Integrated UpdateBannerControl directly inside MainWindow.xaml, matching Tether's Fluent dark glass palette (#00F0FF / #F43F5E accent borders, Cascadia mono badges, and collapsible changelog).
  • Android Heads-Up Priority: Upgraded Android update notification channel to IMPORTANCE_HIGH with vibration cues and actionable buttons.
  • Sci-Fi Cyan Dialog: Modern Jetpack Compose update dialog matching the companion app design.

4. Granular "Remind Me In {time}" Snooze Engine

  • No Indefinite Dismissal: High-priority security updates cannot be permanently ignored. Dismissing activates an exact snooze timer with choices for 1 Hour, 4 Hours, or 24 Hours.
  • AlarmManager Integration: Android uses UpdateSnoozeReceiver with system alarms to reliably re-surface alerts when the snooze interval elapses.
  • Critical Version Invalidation: If an even newer release version is published while an update is snoozed, the snooze timer is automatically bypassed to deliver the latest fixes immediately.

5. Windows Smart Differential Updater (Tether.Updater)

  • Delta-Only Binary Overwriting: Tether now generates an automated SHA-256 release manifest (update-manifest.json). The dedicated updater helper inspects local binaries in C:\Program Files\Tether and System32:
    • Files with matching SHA-256 hashes are skipped entirely (0 unnecessary disk writes).
    • Only modified or missing binaries are overwritten.
  • Zero-Downtime Service Preservation: TetherCommService is only stopped if core service binaries or shared libraries are among the modified set. UI-only updates leave the background service running uninterrupted.
  • Automatic Process Orchestration: Safely terminates the UI, updates binaries, bumps the registry version (HKLM\SOFTWARE\Tether\Version), cycles the service if needed, and relaunches Tether.DesktopUI.exe.

Release Assets

  • Windows Setup: Tether-Setup-1.1.7.exe (Full Inno Setup installer)
  • Windows Differential Archive: Tether-Update-1.1.7.zip
  • Release Manifest: update-manifest.json (SHA-256 integrity manifest)
  • Android Companion: Tether-v1.1.7.apk

v1.1.6 — Real-Time Input Pipeline Overhaul, Desktop Station Isolation & Privilege Separation

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 06 Nov 07:12

Executive Summary

Tether v1.1.6 is a major reliability, precision, and security release centered on a complete re-engineering of the remote input and session execution subsystems.

Prior builds could experience intermittent input drops, stuck modifier states, or ERROR_ACCESS_DENIED injection failures across Windows session boundaries and high-integrity windows (such as Task Manager and UAC prompts). Version 1.1.6 eliminates these friction points by introducing a dedicated STA injection worker thread bound directly to the active interactive desktop (WinSta0\Default), linked token elevation for administrator sessions, multi-tier injection fallbacks, sub-pixel movement accumulation, unified touch gesture state machines, and fine-grained Windows privilege separation.


Key Highlights

  • Desktop Window Station Isolation (WinSta0\Default): Dedicated STA input injection thread eliminates thread detachment and Win32 access denials (ERROR_ACCESS_DENIED / 5).
  • UIPI Elimination via Elevated Linked Tokens: The Session 0 communication service now inspects TokenLinkedToken to execute Tether.SessionHelper at high integrity, unlocking input control across elevated administrative applications and security surfaces.
  • Sub-Pixel Motion Accumulators: Smooth micro-movements across trackpad drag, two-finger scrolling, and AirMouse gyroscope sensor streams prevent rounding truncation and cursor stutter.
  • Unified Android Gesture Engine: Replaced competing Compose gesture recognizers with a single-pass touch-slop hysteresis state machine supporting seamless drags, two-finger scrolling, single/double taps, and right clicks.
  • IME Sentinel Buffer: Eliminates silent Backspace dropouts across soft virtual keyboards (e.g., Gboard, Samsung Keyboard).
  • Least-Privilege Desktop UI Architecture: Desktop UI runs standard user-level by default and utilizes modular, on-demand UAC elevation (RunElevatedSelf) only when committing credentials or restarting services.

Detailed Changes by Subsystem

1. Windows Input Subsystem (Tether.SessionHelper)

  • Dedicated Real-Time STA Worker Thread:
    • Created Tether.InputInjectorThread with AboveNormal priority and strict FIFO dispatch using an asynchronous bounded channel (Channel<byte[]> with 2048 frame capacity and DropOldest backpressure).
    • Removed thread-pool dispatch to eliminate out-of-order race conditions, named-pipe message tearing, and thread-switching latency.
  • Window Station & Desktop Attachment:
    • Explicitly binds the process and worker thread to WinSta0 and OpenInputDesktop via SetProcessWindowStation and SetThreadDesktop.
    • Implemented automatic desktop re-probing and recovery upon Win32 errors 5 (ERROR_ACCESS_DENIED), 6 (ERROR_INVALID_HANDLE), or 1400 (ERROR_INVALID_WINDOW_HANDLE).
  • Multi-Tier Injection Fallbacks:
    • In addition to user32!SendInput, automated fallbacks to user32!mouse_event, user32!keybd_event, and user32!SetCursorPos (with GetCursorPos) dynamically bypass User Interface Privilege Isolation (UIPI) or transient desktop lockouts.
  • Sub-Millisecond Lock State Detection:
    • Replaced expensive ~17.5ms system-wide Process.GetProcessesByName("LogonUI") polling on high-frequency packets with OpenInputDesktop(DESKTOP_READOBJECTS) and GetUserObjectInformation, cached with a 150ms TTL to sustain 120 Hz input rates.
    • Added session-scoped LogonUI.exe verification to eliminate false-positive input suppression from lingering background processes after workstation unlock.
  • Extended Key Lifecycle & Navigation Fixes:
    • Explicitly flags KEYEVENTF_EXTENDEDKEY on both down and up transitions for navigation keys (Arrow keys, Delete, Home, End, PageUp, PageDown, Windows Key), resolving logically stuck keys.
    • Mapped newline characters in Unicode streams to native VK_RETURN dispatch.
    • Added ReleaseAllHeld() fail-safe release for all tracked buttons and keys on pipe disconnection.
  • High-DPI PerMonitorV2 Manifest:
    • Embedded application manifest declaring PerMonitorV2 DPI awareness to ensure 1:1 pixel coordinate parity across high-DPI displays.

2. Windows Service & IPC Transport (Tether.CommunicationService)

  • Session 0 Linked Token Elevation:
    • In HardwareExecutor, inspected TokenLinkedToken during CreateProcessAsUser to launch Tether.SessionHelper under the administrator's high-integrity token when available.
    • Eliminates UIPI blocking across Task Manager, elevated shells, and administrative dialogs.
  • Atomic Named-Pipe Frame Serialization:
    • Replaced fragmented multi-part writes in InputForwarder with atomic [length(4)][payload] buffer frames, eliminating IPC message boundary corruption.
    • Added background connection polling to promptly detect silent client terminations and recycle stale pipe server instances.
  • Session Helper Lifecycle & De-duplication:
    • In SessionHelperDaemon, audited active console session processes to identify and terminate hung or orphaned helpers (>20s without pipe connection), preventing IPC connection deadlocks.
    • Corrected cross-session permission validation in IsTrustedServerProcess using process table auditing instead of restricted limited-information handles.

3. Android Companion (com.tether.phone)

  • Sub-Pixel Precision Accumulators (RemoteInputEngine.kt):
    • Implemented fractional accumulators for trackpad drag, two-finger scroll drag, and AirMouse gyroscope sensor feeds.
    • Prevents micro-movements from rounding down to zero, providing smooth, continuous cursor glide even at slow physical speeds.
    • Accumulators reset immediately on finger lift (resetAccumulators()).
  • Serialized Click Lane:
    • Added clickLane (Dispatchers.IO.limitedParallelism(1)) to sequence button down/delay/up phases, preventing rapid tap sequences from interleaving into malformed packet streams.
  • Unified Gesture State Machine (RemoteInputScreen.kt):
    • Consolidated conflicting pointerInput drag and detectTapGestures listeners into a single-pass event scope with touch-slop hysteresis.
    • Delivers distinct detection for single-finger drag, two-finger vertical scroll, single-tap left click, double-tap left click, and two-finger right click.
  • IME Sentinel Buffer for Soft Keyboards:
    • Introduced a zero-width space (\u200B) sentinel buffer in textBuffer to intercept IME deleteSurroundingText(1, 0) calls, ensuring Backspace works on Gboard, Samsung Keyboard, and other modern mobile keyboards.
  • Input Pump Resiliency & Stream Hygiene (TetherLanService.kt):
    • Corrected startInputPump() to verify job activity (isActive) instead of instance reference nullity.
    • Triggered input pump initialization on pinned-key network reconnects.
    • Flushes stale input frames from inputFrameChannel upon link disconnection and reconnection to eliminate buffered replay bursts.
    • Offloaded AirMouse gyroscope sensor sampling to a dedicated background HandlerThread.

4. Windows Desktop UI (Tether.DesktopUI)

  • Privilege Separation Architecture:
    • Removed requirement for the main application to run as Administrator continuously.
    • Added RunElevatedSelf helper to prompt for UAC elevation on-demand only when writing to HKLM registry paths or stopping/starting Windows services.
  • Centralized Service Control (ServiceControl.cs):
    • Implemented native Win32 Service Control Manager (SCM) interactions (advapi32.dll) to query, stop, and restart TetherCommService with timeouts and fallback to standalone executable execution.
  • Initial Telemetry Synchronization:
    • Desktop UI now issues a TELEMETRY_SYNC_REQUESTED event on startup to query current device connection state immediately.
  • Credential Vault UX:
    • Added Enter key handler to password input for immediate vault submission.
    • Host automatically releases held modifiers on UI disconnect.

5. Web & Documentation (index.html)

  • Visual Identity & Design System:
    • Modernized color hierarchy following the 70/25/5 rule with neutral dark background, steel-tinted surfaces (#0f151b), and vibrant signal green (#3ddc97) strictly reserved for active connection indicators.
  • SEO & Social Sharing:
    • Added OpenGraph meta tags (og:title, og:description, og:type) and embedded an SVG favicon.
  • Interactive UI & Performance:
    • Added responsive mobile navigation drawer with accessible ARIA state transitions.
    • Added performant, one-shot IntersectionObserver scroll-reveal animations respecting prefers-reduced-motion.
    • Added scroll-dependent header backdrop shadow.

6. Packaging & Deployment (installer/Tether.iss)

  • Version Bump: Updated version identifier to 1.1.6.
  • Standard User Execution: Removed mandatory runas administrative elevation verb from post-install launch task, running the UI under standard user context in compliance with Windows application guidelines.

Upgrade & Installation Guide

Windows

  1. Download and run Tether-Setup-1.1.6.exe.
  2. Follow installer prompts. The installer will register the background communication service (TetherCommService), register the credential provider (TetherCredentialProvider.dll), and configure necessary Windows Firewall rules.
  3. The Desktop UI launches automatically without requiring global administrative permissions.

Android

  1. Install or update to Tether-1.1.6.apk (Android 12+ required).
  2. Connect to the same local Wi-Fi or LAN as your Windows PC.
  3. Pair using the QR code or link code; existing paired credentials will automatically reconnect.

Git Commit Summary (since ae3d18e)

5af1430 Bumped version to 1.1.6
c38cf8f fix(input): resolve input failure via desktop...
Read more

Tether v1.1.5 — Unlock Prompt on Demand

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 05 Nov 20:25

New Features

Unlock Prompt Request Flow

The Windows credential provider can now request the paired phone to display an unlock prompt on demand.

  • The link field in the Windows logon UI sends an event that the communication service uses to generate an
    UNLOCK_PROMPT request (TetherCredentialProvider/TetherCredential.cpp).
  • A cooldown timer prevents rapid resends, guarding against abuse (Tether.CommunicationService/Worker.cs).
  • The Android companion service forces the prompt to display even when the current lock state would otherwise suppress
    it (TetherLanService.kt).

Improvements

  • Refined the landing page (index.html) with a substantially rewritten and leaner implementation.
  • Pruned redundant status badges and hover effects from the desktop main window, reducing visual clutter and XAML
    bulk; style resources updated to solid colors for improved rendering performance.

Internal

  • Bumped installer version to 1.1.5 (installer/Tether.iss).

Comprehensive Security Hardening, Credential Provider Isolation, and Protocol Remediations

Choose a tag to compare

@tirthsaraiya29 tirthsaraiya29 released this 05 Nov 12:08

Overview

Tether version 1.1.4 delivers critical architectural, security, and usability remediations across the entire Tether ecosystem, encompassing the Windows background service, native Credential Provider DLL, Session Helper, Desktop UI, Android companion application, and Inno Setup installer.

Key highlights include strict per-instance tile isolation in Windows LogonUI, DPAPI machine-level vault encryption, named pipe access control hardening with Network SID rejection, unique lock session tracking on Android, sequential touch input queues, and enhanced pairing rate limiting with real-time feedback.


Key Changes & Improvements

1. Windows Credential Provider & Logon UI Isolation

  • Per-Instance State Synchronization: Replaced global state triggers with atomic instance flags (_fInstancePhoneAppTriggered, _fInstanceAutoLogonReady) in CTetherCredential, preventing tile starvation and race conditions in multi-account login environments.
  • Target User SID Validation: Bound remote unlock requests directly to the configured TargetUserSid in registry secrets. SID validation performs account lookups via LookupAccountNameW and ConvertSidToStringSidW with fallbacks for domain-joined accounts.
  • LogonUI Filter Clean-up: Removed erroneous ICredentialProvider registration entries under the Windows Credential Provider Filters registry key in both register.reg and Tether.iss, preventing potential LogonUI.exe stability issues.

2. Inter-Process Communication & Secrets Hardening

  • Named Pipe Access Restrictions: Implemented explicit NetworkSid DENY access rules on \\.\pipe\TetherIPC to prevent remote or cross-network named pipe exploitation. Client process credentials and session contexts are verified via RunAsClient.
  • IPC Event Whitelisting: Prohibited unauthorized state-injection payloads (PHONE_UNLOCKED, AUTH_SUCCESS) over IPC pipes, enforcing an allowlist restricted to authorized client actions (PANIC_TRIGGERED, HARDWARE_SYNC_REQUESTED, FORGET_PHONE, VAULT_UPDATE).
  • DPAPI Machine-Level Vault Storage: Refactored TrustStore to use Windows Data Protection API (ProtectedData.Protect under DataProtectionScope.LocalMachine). Writes are performed atomically using temporary files with inheritance-stripped DACLs restricted to SYSTEM and Administrators.
  • Zero Command-Line Credential Leakage: Eliminated command-line credential passing in Tether.DesktopUI. Vault updates are now securely piped across redirected standard input via --commit-vault-stdin.

3. Session Management & Input Injection

  • Least-Privilege Process Querying: Replaced elevated process query tokens with PROCESS_QUERY_LIMITED_INFORMATION in Tether.SessionHelper, allowing standard user processes to reliably locate the Session 0 service.
  • Locked-State Input Suppression: Updated InputInjector to verify workstation lock status and suppress virtual mouse and keyboard injection while the console is locked.

4. Pairing Protocol & Rate Limiting

  • PIN Retry Policy: Expanded pairing retry attempts to a maximum of 3 failed entries before closing the handshake. Packets transmit PAIRING_INVALID_PIN with the count of remaining attempts.
  • PIN Privacy: Stripped plaintext PIN values from internal event bus distribution; the PIN is surfaced strictly to the active console session via WTSSendMessage.
  • Concurrency Guards: Added SemaphoreSlim synchronization to the Desktop UI pairing handler to eliminate concurrent dialog collisions.
  • mDNS Certificate Resolution: Embedded {hostname}.local Subject Alternative Name (SAN) records in generated self-signed TLS certificates to ensure smooth local host resolution.

5. Android Companion Application

  • Lock Session Isolation: Addressed notification deadlock by scoping unlock notifications to a unique lockSessionId (UUID) per lock event. Clearing dismissals on WTS_SESSION_UNLOCK ensures future lock events prompt the user reliably.
  • Notification Cleanup: Active unlock notifications are automatically cancelled as soon as the workstation is unlocked locally or remotely.
  • Sequential Touch and Gesture Pipeline: Migrated sendInputFrame from unbounded parallel coroutines to a sequential coroutine Channel<ByteArray>, preventing out-of-order mouse and touch packet delivery over Wi-Fi.
  • Subnet-Directed Discovery: Enhanced TetherDiscoveryManager to iterate over all active network interfaces and broadcast discovery packets to subnet-directed broadcast addresses alongside 255.255.255.255.
  • Pairing Interface: Refactored PairingConfirmationActivity to display live remaining PIN attempts without dismissing the dialog on invalid entries.
  • UI Feedback: Added charging indicator animations within LaptopScreenCard.

6. Packaging & Build Automation

  • Installer Updates: Updated Inno Setup installer script (Tether.iss) to v1.1.4. Removed obsolete 32-bit Visual C++ redistributable requirements.
  • Data Retention Guard: Added an uninstallation prompt enabling users to preserve secure vault pairings across re-installations.
  • Logging Standardization: Standardized runtime logs to rolling files placed in %ProgramData%\Tether\logs.
  • Repository Hygiene: Updated .gitignore to prevent tracking of local build scripts, binary artifacts, and signing keys.

Commit Summary

  • dd28a67 - chore: add binaries, build scripts to .gitignore and bump installer version
  • fa6e1d2 - fix(core): comprehensive architectural, security, and usability remediations

File Change Statistics

  • Total Files Changed: 34
  • Additions: +1,084 lines
  • Deletions: -219 lines