shawtyknowmyname/privacy_screen
Über uns
One-way screen privacy for Windows remote-desktop hosts. Local monitor is blanked; the remote operator keeps a normal view.
Produktivität und AutomatisierungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
privacy_screen
One-way display privacy for the host of a remote-desktop session on Windows.
Installed on the machine being controlled. During a remote session the host's local monitor is hidden, so people physically at the machine do not see what the remote operator is doing. The operator, connected through AnyDesk, RustDesk, TeamViewer or Chrome Remote Desktop, continues to see and interact with the real desktop normally.
windows C++20 overlay privacy remote-desktop apache-2.0
How it works
Two mechanisms are applied together while the overlay is up:
- A full-screen black window spans every attached monitor and covers the entire desktop on the host side.
- The window is marked with
WDA_EXCLUDEFROMCAPTURE, so the DWM compositor omits it from the frame handed to screen-capture consumers. AnyDesk, RustDesk, TeamViewer, Chrome Remote Desktop, OBS and the Windows Snipping Tool all receive the real desktop frame underneath.
Activation is automatic by default: the overlay raises when a supported remote-desktop tool opens a session on the host and lowers after it ends. Manual control is available via the Ctrl + Alt + B global hotkey and through the tray menu.
The overlay is click-through. The host user can still interact with the desktop, they just cannot see it. This is intentional: a hung overlay never prevents the host user from reaching the tray icon or the hotkey, so the host is never locked out of their own machine.
[!IMPORTANT] privacy_screen needs administrator rights at launch (one UAC prompt) so it can raise its overlay above Alt+Tab / Win+Tab / Start Menu.
[!WARNING] Each release ships a prebuilt
privacy_screen.exe, but it is unsigned, so SmartScreen and some AV engines will flag it on first launch. See docs/troubleshooting.md for the one-click dismiss.
Tested with
Each row was validated end-to-end: incoming session started, overlay came up after Accept, came down after disconnect.
| Tool | How it's detected | Status |
|---|---|---|
| Chrome Remote Desktop | process name (remoting_desktop.exe) |
works |
| AnyDesk | window class ad_watermark#NN |
works |
| RustDesk | process count (rustdesk.exe >= 3) |
works |
| TeamViewer | window class TV_ControlWin |
works |
| Parsec, MeshCentral, VNC | process name (user-editable list) | in the default watchlist, not personally validated |
Anything else can be added via Settings -> Remote-tool process watchlist.
Quick start
# one-time build
$env:VCPKG_ROOT = "C:\path\to\vcpkg"
cmake --preset default
cmake --build --preset release
# run
.\build\src\Release\privacy_screen.exe
The tray icon appears. Default mode is Auto-detect. Done.
Full install walkthrough (prereqs, install location, autostart)
See docs/install.md. Short version:
- Need Windows 10 20H2+ or Windows 11, Visual Studio 2022 with the C++ workload, CMake 3.25+, Ninja, vcpkg.
- Build with
cmake --preset default && cmake --build --preset release. - Drop
privacy_screen.exewherever you want (per-user%LOCALAPPDATA%\privacy_screen\or per-machineC:\Program Files\privacy_screen\). - Enable autostart from the tray menu if you want it to launch at logon.
Usage
Launch, approve the UAC prompt, done. From the tray icon:
- Activate now - raise or lower the overlay manually.
- Auto-detect remote sessions - default on. Overlay follows the remote session.
- Show status indicator - the small "PRIVACY SCREEN ACTIVE" badge at the top of the primary monitor. Visible to the remote side only. Default on.
- Start with Windows - adds a Run-key entry pointing at the current exe.
- Settings - delays, process watchlist, indicator toggle.
- About / Exit.
Shortcuts
| Chord | Effect |
|---|---|
Ctrl + Alt + B |
Toggle overlay (idle <-> active) |
Only one chord, and it is hardcoded in current releases. A configurable chord is on the roadmap.
Settings
All settings live in HKCU\Software\privacy_screen. Back up with reg export HKCU\Software\privacy_screen backup.reg.
| Name | Default | What it does |
|---|---|---|
| Mode | Auto-detect |
Manual, Auto-detect remote sessions, or Always on |
| Activate delay | 1500 ms | How long a session must be detected before the overlay raises |
| Deactivate delay | 1500 ms | How long the detector must stay quiet before the overlay lowers |
| Arming / Disarming | 300 ms each | Length of the short transition animations |
| Show status indicator | on | The top-center badge for the remote operator |
| Start with Windows | off | Writes HKCU\...\Run\privacy_screen with the exe path |
Verify it works
The overlay is visible on the host monitor and invisible to screen-capture APIs. To confirm both sides of that, after activating the overlay on the host:
- Open a remote-desktop session to the host (from your own machine, with your usual tool). The remote view shows the real desktop and the "PRIVACY SCREEN ACTIVE" badge at the top of the screen; the host's physical monitor is black.
- Directly on the host: run
Win + Shift + Sand snip the whole screen. The snip shows the real desktop; the black overlay is not in the image. OBS with a Display Capture source shows the same thing. This confirms the overlay is correctly excluded from capture APIs.
Uninstall
- Right-click the tray icon -> Exit (or stop
privacy_screen.exe). - If autostart was on:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v privacy_screen /f - Settings:
reg delete "HKCU\Software\privacy_screen" /f - Delete the exe.
Known limitations
- No input blocking. The overlay is click-through on purpose. The person at the host keyboard cannot see the screen, but they can still type and click and affect the system.
- Not a secure-display solution.
WDA_EXCLUDEFROMCAPTUREis a privacy layer, not a confidentiality control. Anyone with administrator rights and the right kernel-level capture tooling on the host can still grab the real frame. - Service-mode installs of the remote tools. The dedicated AnyDesk / RustDesk / TeamViewer detectors are calibrated for user-mode installs. Service-mode installs run with a higher baseline and can cause a false positive on the Accept prompt. Workaround: switch to Manual mode.
- Outgoing sessions from the host. If someone on the host side launches a supported remote tool to connect out to a third party, the detector may still raise the overlay on the host. Workaround: Manual mode or dismiss with the hotkey.
- DPI awareness of the Settings dialog is not perfect; minor clipping at 150%+ scaling, functionality unaffected.
Full threat model: docs/threat-model.md.
Documentation
- docs/install.md - build-from-source walkthrough
- docs/architecture.md - how the overlay, detectors, policy and state machine fit together
- docs/threat-model.md - what the tool protects against and what it does not
- docs/tested.md - full remote-tool compatibility matrix
- docs/troubleshooting.md - SmartScreen, hotkey conflict, overlay stuck
- CHANGELOG.md, CONTRIBUTING.md, SECURITY.md
License
Ähnliche Projekte entdecken
Wird geladen…