Skip to content

Remove DES TLS from VNC desktop shared libraries - #2

Merged
moloch-- merged 2 commits into
masterfrom
feat/vnc-linux-loader
Nov 16, 2026
Merged

moloch-- merged 2 commits into
masterfrom
feat/vnc-linux-loader

Conversation

@moloch--

@moloch-- moloch-- commented Nov 16, 2026 •

Copy link
Copy Markdown

Why

The published desktop-v0.1.1 Linux libraries include TLS relocations from D3DES's private KnL buffer. The Sliver/Reflektor v0.0.8 in-memory Linux loader rejects R_X86_64_DTPMOD64 and R_AARCH64_TLSDESC, so the Armory package's native loader gate fails before the VNC adapter runs.

Change

Pass a 32-word DES key schedule explicitly through the private D3DES helper and allocate it on each encryption/decryption call's stack. This preserves independent keys across threads and removes the ELF TLS requirement from the standalone desktop profile. Normal shared libvncserver builds retain the original two-argument exported DES symbols and their thread-local wrappers. Add Linux desktop tests for the pre-change ciphertext, decrypt round-trip, and synchronized concurrent keys.

Validation

  • Ubuntu 24.04 amd64 and arm64: desktop_protocol, desktop_sliver_abi, desktop_des_schedule, and desktop_des_legacy passed (4/4 per architecture).
  • Both built ELF libraries have no TLS relocations; Reflektor v0.0.8 loaded each exact library in memory and called VNCDesktopCommand with status and start --port 0, receiving one expected callback each.
  • Normal macOS shared libvncserver still exports the original two-argument DES symbols; direct ABI call matched the vector. The macOS desktop profile rebuilt; protocol and Sliver ABI tests passed. The native desktop capture test skipped without host permissions.
  • git diff --check passed.

After merge, publish a forward desktop-v0.1.2 source release and update the package PR to pin that release. Do not replace desktop-v0.1.1.

@moloch--
moloch-- merged commit 749ef7c into master Nov 16, 2026
81 of 122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant