Testing What Screen Capture Can Miss
Documented window-capture settings achieved 100% evasion without capture artefacts in controlled laboratory simulations on tested Windows and macOS versions. Commercial proctoring products and Linux were not tested.
The Finding in Brief
Windows and macOS expose documented window-sharing or capture-affinity settings that can keep an application's window visible on the physical display while excluding it from capture paths that honour those settings. The study demonstrates the resulting gap in screen-capture-based proctoring using controlled laboratory simulations.
Background: How Proctoring Works
WebRTC-based remote proctoring systems, the kind deployed by universities worldwide since 2020, work by capturing the student's screen during an exam session. The browser extension or native client requests a getDisplayMedia() stream, transmits it to the proctor's server, and flags anomalies: opened windows, visible applications, clipboard activity. The implicit security model is:
If I capture your screen, I can see everything on it.
That assumption did not hold in the tested Windows and macOS configurations.
The Windows Side: SetWindowDisplayAffinity
Windows documents display affinity as a best-effort control over compatible capture paths. Microsoft explicitly says it is not a security feature or a Digital Rights Management guarantee. The paper examines the downstream risk when capture consumers assume those frames show everything on the physical display. The API signature is:
BOOL SetWindowDisplayAffinity(HWND hWnd, DWORD dwAffinity);The study reports exclusion in its tested Windows 10/11 browser configurations. The retained Windows 10 forensic harness separately tested BitBlt and .NET CopyFromScreen. Those observations do not establish identical behaviour for every Windows capture API or later browser version.
In those tested configurations, the window remained visible on the physical display while its content was absent from capture.
No administrator privileges are required. The API operates on windows owned by the calling process, in normal user space. It needs no kernel modification, driver-signing bypass or privilege escalation.
Illustrative API call (Win32 C)
#include <windows.h>
int main() {
HWND hwnd = CreateWindowEx(/* ... window params ... */);
// Request exclusion from compatible screen-capture paths
SetWindowDisplayAffinity(hwnd, WDA_EXCLUDEFROMCAPTURE);
ShowWindow(hwnd, SW_SHOW);
// Window is visible on physical display
// Tested compatible capture paths exclude the window
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}The macOS Side: NSWindow.SharingType.none
Apple's equivalent is found in AppKit. Every NSWindow instance has a sharingType property, documented in the AppKit reference since macOS 10.6 (2009):
import AppKit
let window = NSWindow(
contentRect: NSRect(x: 100, y: 100, width: 800, height: 600),
styleMask: [.titled, .closable, .resizable],
backing: .buffered,
defer: false
)
// Request exclusion from paths that honour the sharing flag
window.sharingType = .none
window.makeKeyAndOrderFront(nil)Setting sharingType to .none requests exclusion from paths that respect the window-sharing flag. On macOS 26.3.1, the retained tests used CGWindowListCreateImage and the screencapture utility. They did not directly test ScreenCaptureKit or browser getDisplayMedia() on macOS 26. The paper separately reports browser results on macOS 14.3.
Tested macOS 26.3.1 native captures remained affected. Despite Apple's documented ScreenCaptureKit changes in macOS 15, the study observed capture exclusion with .none using native capture tools. It did not test browser-based capture on macOS 26 or establish the behaviour of every ScreenCaptureKit client.
Test Results
| Platform | Laboratory capture outcome | Observed capture artefacts |
|---|---|---|
| Windows 10 | Window excluded | None |
| Windows 11 | Window excluded | None |
| macOS 14 | Window excluded | None |
| macOS 26.3.1 | Excluded in native captures; browser capture not tested | None |
| Linux (X11) | Not tested | Not tested |
| Linux (Wayland) | Not tested | Not tested |
These results concern simulated proctoring in a controlled laboratory, not commercial products. The macOS 26 evaluation used CGWindowListCreateImage and the screencapture utility, not a browser getDisplayMedia() call. Linux X11 and Wayland were not tested. The behavioural study involved n = 8 consenting research-team members; p = 0.41 does not prove that behavioural detection is impossible. The findings reflect tested software versions as of March 2026; later versions may behave differently.
Why This Is Structurally Hard to Fix
The vulnerability is a design conflict between two legitimate OS features:
- Capture-exclusion settings: Operating systems expose window-sharing and display-affinity settings that compatible capture paths may honour. These settings do not constitute a universal content-protection guarantee.
- Exam Integrity: Proctoring systems assume that capturing the screen gives a complete view of the user's desktop.
When a tested capture path honours exclusion while the window stays visible, that stream alone is insufficient evidence of the complete physical display. The study establishes this mismatch in its stated configurations; it does not establish that every capture implementation shares it.
Mitigation options have trade-offs and do not establish a universal integrity guarantee:
- Native capture-exclusion flag enumeration and window-focus monitoring can provide additional signals, subject to the limitations discussed in the paper
- Move to hardware-attested environment proofs (TPM, Secure Enclave) rather than screen content analysis
- Advocate for OS-level capture-integrity APIs and assess residual risks rather than assuming capture alone proves integrity
Responsible Disclosure Timeline
| Date | Action |
|---|---|
| January 2026 | Discovery and verification in a controlled laboratory on Windows 10 and macOS 14 |
| February 2026 | Extended native-capture testing to macOS 26.3.1; Microsoft notified |
| March 2026 | Apple notified and responded |
| April 2026 | Microsoft responded with its security-boundary classification |
| May 2026 | Public disclosure following OS vendor responses; preprint published (CC BY 4.0) |
Both vendors classified the behavior as by design: Apple as not an Apple security issue, Microsoft as not a security vulnerability. The research frames the concern as a downstream display-fidelity failure, not an OS zero-day.
Takeaway
The tested Windows and macOS capture paths can omit an application window while it remains visible to the user, without elevated privileges or observed capture artefacts. This exposes a mismatch between content-protection features and the assumption that captured pixels fully represent the physical display. The study establishes that gap within its tested laboratory scope; it does not establish that every commercial proctoring product or every capture API can be bypassed.
The full 13-page IEEE-format preprint is linked from the project page (DOI 10.5281/zenodo.20376495, CC BY 4.0). The full proof-of-concept code is withheld on dual-use grounds; a minimal macOS test fixture is public in the Project-Simurgh repository. The illustrative API examples above remain illustrations rather than fresh test evidence.